*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* A sample program to extract data from the MRP table.
*
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REPORT ZMRPTABLE.
TABLES: MDKP, "Header Data for MRP Document
MDTB, "MRP table
MDTC, "Aggregated MRP table items
T457T. "Description of MRP elements
DATA: BEGIN OF MDTBX OCCURS 0.
INCLUDE STRUCTURE MDTB.
DATA: END OF MDTBX.
SELECT-OPTIONS: PLANT FOR MDKP-PLWRK OBLIGATORY,
MATNR FOR MDKP-MATNR OBLIGATORY.
CLEAR: MDKP, MDTB.
SELECT * FROM MDKP WHERE DTART EQ 'MD'
AND MATNR IN MATNR
AND PLWRK IN PLANT.
WRITE:/ MDKP-MATNR, MDKP-PLWRK.
IF MDKP-CFLAG EQ 'X'.
CLEAR MDTBX. REFRESH MDTBX.
IMPORT MDTBX FROM DATABASE MDTC(AR) ID MDKP-DTNUM.
LOOP AT MDTBX.
MOVE MDTBX TO MDTB.
SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
AND DELKZ = MDTB-DELKZ.
IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
MDTB-MNG01, MDTB-LGORT.
ENDLOOP.
ELSE.
SELECT * FROM MDTB
WHERE DTNUM EQ MDKP-DTNUM
ORDER BY PRIMARY KEY.
SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
AND DELKZ = MDTB-DELKZ.
IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
MDTB-MNG01, MDTB-LGORT.
ENDSELECT.
ENDIF.
ENDSELECT.
Thursday, July 23, 2009
Subscribe to:
Post Comments (Atom)
Archives
-
▼
2009
(413)
-
▼
July
(138)
- SAP PP - Define the default components reservation...
- PP Goods Receipt (101) for Process Order
- SAP PP Goods receipt and goods issue through a PI ...
- SAP PP Goods Movement Steps for Subcontracting
- SAP PP Goods Movement Stock in Transit - liquidati...
- Restricting Good Receipt Unless Production Order C...
- SAP BOM How to link BOM component to storage locat...
- When is a Material BOM Not Exploded?
- Simple BOM & Group BOM
- Explode SAP PP BOM
- Where used list for SAP PP BOM
- SAP PP - Controlling data for your Bill of Materials
- Allocating PP BOM to Other Plant
- SAP PP BOM Mass Change Bill of Materials
- Multi-level configuration with variants PP BOM
- SAP PP BOM What exactly is a Phantom item or Assem...
- Attachment Of Drawings in PP BOMs
- Variant Configuration for an Order
- SAP BOM components never explode
- Checking Costs and Revenues from the Sales Order
- Production Planning - Extract data from MRP Table
- ABAP Reports Production Order Quantity Change Dail...
- SAP PP ABAP Reports Compare Production Confirmatio...
- ABAP Reports Customized Work Center List PP
- Tcodes used for SAP Plant Maintenance
- SAP TCode for SAP ArchiveLink: Link check
- Transparent Table Relate With PM Module
- Effective SAP PM Implementation SAP
- Deadline Monitoring for Maintenance Plans
- Scheduling function in SAP
- Definition and Formula for PM terms SAP
- SAP Plant Maintenance Assembly
- SAP Track New Plant Machine Installed at Customer ...
- Questions Answers on Functional Locations SAP PM
- SAP Questions Answers on PM Equipment
- SAP PM Measuring Points Questions
- Plant Maintenance Q & A - Rept & Analyses - Mgt of...
- SAP PM Maintenance Planning Questions and Answers
- SAP PM Support Problem Solution
- Maintenance of FT Data in Purchasing Documents
- Control the SAP PM Order Type
- Maintenance Notifications Order Link
- Work Order Cost Control SAP
- Impact on Business if PM Order Not Settled
- SAP In PM how to Return Material Backflushed
- Change Maintenance Strategy in General Task List
- User Status Set Date in Maintenance order
- SAP to best handle Repeat Maintenance Jobs
- Recording Measuring Docs. Against Work Orders
- Stop Complete Confirmation (IW41) before (IW32)
- Difference Between TECO & Business Completion
- SAP Settlement Rule In Maintenance Order
- Integration Between PM, QM and PP
- PM Integration With Other Modules
- Control Maintenance Budget in SAP PM
- Before customizing the Master Data in SAP Plant Ma...
- SAP PM - Material Master Vs. Equipment Master
- SAP PM Equipment FAQ
- Show Equipments Characteristics in a List
- Component Allocation in Task List
- Scenario of Rotating Equipment
- Attach a Drawing To Equipment Master Data
- Plant Maintenance Reservations
- SAP Deletion and control of materials Reservations...
- SAP PM - SM notifications
- PM (Service Management) Geographical Work Centres
- SM Revenue and Non Revenue Combination Orders
- Open and Close Posting FICO Periods
- SAP SD Output/Email Sending a billing document by ...
- SAP Output/Email SAP SD Customizing Picking Output
- SAP SD Output/Email Program for Sales Order by Cus...
- Purchase Order and Sales Order Workflow
- Workflow of Purchase Requisition Release Strategy
- Changing Vendor on Purchase Order
- One Time Vendors SAP MM
- Vendor Evaluation for Purchasing
- Process of Subcontract in SAP MM
- Subcontracting - Key Points
- Procedure for Setting Partner Functions
- What Is Outline and Scheduling Agreement
- What is Vendor Consignment?
- Multiple Currency Quotation or Invoice From Vendor
- User Exits In MM Area
- IMG MM Transaction Codes Organizational Structures
- SAP MM Transaction codes
- SAP TCode for Personal Menu Volker Hofmann
- SAP Transaction Code for: Waive Acceptance Order T...
- SAP Transaction Code for: New Monthly Returns Repo...
- SAP MM Important Tcodes 2
- IMG Change Logs and can ACCT Tables be Deleted
- Common Tables used by SAP MM
- SAP MM All The Tables In SAP MM Purchasing
- SAP MM Tables - click to enlarge
- Interview Questions on SAP MM
- SAP Material Management Interview Questions
- SAP MM Support Problem Solution
- Common SAP MM Questions I
- SAP MM Material Management Frequently Asked Question
- What Is The DataFlow Of MM?
- SAP MM User Exit That Is Applied In MM Area
-
▼
July
(138)
Amazing blog, this is a very good information.
ReplyDeleteThanks for sharing admin!
Here are some more references please go through it.
Best ERP Software in Hyderabad | Cloud Based ERP Software in Hyderabad
ERP Software Providers in Hyderabad | Cloud Based ERP Software