{"audience":"Production planners, MRP controllers, buyers and production managers.","authorization_objects":[{"note":"Display production orders by plant and order type","object":"C_AFKO_AWK"},{"note":"Display purchase orders by plant","object":"M_BEST_WRK"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"Reservations for the same component are sorted by requirement date and unrestricted stock is consumed in that order. The order that starts first gets the stock first, so the shortage of later orders is shown correctly.","q":"How is stock shared between several orders?"},{"a":"Yes. Optionally, open purchase requisitions (EBAN) are evaluated as a second priority and the requisition number is shown in a separate column. This extension adds about one day to the effort range.","q":"Can purchase requisitions also be shown as covering documents?"},{"a":"Yes. RESB, AFKO, EKPO and EKET keep the same structure in S/4HANA; reading MARD is served from material documents through a compatibility view. For a clean core approach, released CDS views for production order components can be used.","q":"Does this report work on S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"The order number opens CO03, the purchase order opens ME23N."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"Each MRP controller can receive their own shortage list every morning."}],"functions":[],"gap":"The CO24 missing parts info system and the COOIS component view list missing components, but they do not put the open purchase order that will cover the shortage, its vendor and its delivery date on the same line. Planners open MD04 for every component and look for the open order one by one. Stock is also not allocated by requirement date across several orders that need the same component, so every order seems able to use the whole stock. The custom report combines these three steps in one run.","id":"pp-missing-parts-with-covering-po","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Production order reservations (AUFNR filled) are read from RESB with the plant and requirement date range on the selection screen; deleted items (XLOEK), items with final issue (KZEAR) and bulk materials (SCHGT) are skipped.\n2. Header material (PLNBEZ), planned start (GSTRP), MRP controller (DISPO) and production supervisor (FEVOR) are added from AFKO; orders with TECO (I0045) or the deletion flag (I0076) active in JEST are skipped.\n3. Open requirement = RESB-BDMNG − RESB-ENMNG.\n4. Available stock is read from MARD-LABST (plant total or, by selection, the component's storage location). Requirements are sorted by requirement date (BDTER) and consumed from stock in turn, so orders that need the same component share the stock first come, first served. Shortage = open requirement − remaining stock (at least zero).\n5. For components with a shortage, open schedule lines of the same material and plant are read from EKPO and EKET (EKET-MENGE − EKET-WEMNG \u003e 0; EKPO-LOEKZ and EKPO-ELIKZ blank) by delivery date. The first line that covers the shortage cumulatively becomes the covering order; the vendor name comes from LFA1 through EKKO-LIFNR.\n6. Coverage gap = EKET-EINDT − RESB-BDTER. A positive value shows how many days the order will wait for the component. Lines without a covering order are flagged separately.","module":"PP","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Production order","source_field":"AUFNR","source_table":"RESB"},{"calculated":false,"formula":"","label":"Header material","source_field":"PLNBEZ","source_table":"AFKO"},{"calculated":false,"formula":"","label":"Order start","source_field":"GSTRP","source_table":"AFKO"},{"calculated":false,"formula":"","label":"Component","source_field":"MATNR","source_table":"RESB"},{"calculated":false,"formula":"","label":"Component description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"Requirement date","source_field":"BDTER","source_table":"RESB"},{"calculated":true,"formula":"RESB-BDMNG − RESB-ENMNG","label":"Open requirement","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"RESB"},{"calculated":true,"formula":"From MARD-LABST, the quantity left for this line after earlier requirements","label":"Allocated stock","source_field":null,"source_table":null},{"calculated":true,"formula":"Open requirement − allocated stock","label":"Shortage","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Covering purchase order","source_field":"EBELN","source_table":"EKET"},{"calculated":false,"formula":"","label":"Vendor name","source_field":"NAME1","source_table":"LFA1"},{"calculated":false,"formula":"","label":"Delivery date","source_field":"EINDT","source_table":"EKET"},{"calculated":true,"formula":"EKET-EINDT − RESB-BDTER (positive: the order waits)","label":"Coverage gap (days)","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"RESB-WERKS","required":true},{"example":"1000452","kind":"select_option","label":"Production order","name":"S_AUFNR","ref_field":"RESB-AUFNR","required":false},{"example":"001","kind":"select_option","label":"MRP controller","name":"S_DISPO","ref_field":"AFKO-DISPO","required":false},{"example":"101","kind":"select_option","label":"Production supervisor","name":"S_FEVOR","ref_field":"AFKO-FEVOR","required":false},{"example":"RM-2040","kind":"select_option","label":"Component","name":"S_MATNR","ref_field":"RESB-MATNR","required":false},{"example":"17.11.2026 – 15.12.2026","kind":"select_option","label":"Requirement date range","name":"S_BDTER","ref_field":"RESB-BDTER","required":true},{"example":"","kind":"checkbox","label":"Count stock only in the component's storage location","name":"P_LGORT","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Missing components only","name":"P_ONLYSH","ref_field":"","required":false}],"part_of":["pp-production-control-pack"],"performance":"Narrow RESB by plant and requirement date; make sure a suitable index exists on RESB-WERKS and RESB-BDTER. Read MARD and EKET once with FOR ALL ENTRIES, only for materials with a shortage. In large plants, run the report as a background job before the morning shift.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pp-missing-parts-with-covering-po","related":["mm-open-po-by-vendor","pp-overdue-production-orders"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists missing components; the covering purchase order, vendor and delivery date are not on the same line.","tcode":"CO24"},{"note":"Shows open orders per material, but it has to be opened separately for every component.","tcode":"MD04"}],"summary":"A custom ALV report that shows the missing components of production orders, the shortage quantity and the open purchase order that will cover it, with vendor and delivery date, on the same line. Planners see which order waits for which component, and for how many days, without switching to MD04.","tables":[{"access":"read","join_on":"","role":"Order components, requirement date, required and withdrawn quantity (driving table)","table":"RESB","variant":"both"},{"access":"read","join_on":"AFKO-AUFNR = RESB-AUFNR","role":"Header material, planned start, MRP controller and production supervisor","table":"AFKO","variant":"both"},{"access":"read","join_on":"JEST-OBJNR = 'OR' + RESB-AUFNR","role":"Order system status; TECO and deleted orders are excluded","table":"JEST","variant":"both"},{"access":"read","join_on":"MARD-MATNR = RESB-MATNR AND MARD-WERKS = RESB-WERKS","role":"Unrestricted-use stock of the component","table":"MARD","variant":"both"},{"access":"read","join_on":"EKPO-MATNR = RESB-MATNR AND EKPO-WERKS = RESB-WERKS","role":"Open purchase order items for the same material and plant","table":"EKPO","variant":"both"},{"access":"read","join_on":"EKET-EBELN = EKPO-EBELN AND EKET-EBELP = EKPO-EBELP","role":"Delivery date, scheduled and received quantity","table":"EKET","variant":"both"},{"access":"read","join_on":"EKKO-EBELN = EKPO-EBELN","role":"Vendor of the purchase order","table":"EKKO","variant":"both"},{"access":"read","join_on":"LFA1-LIFNR = EKKO-LIFNR","role":"Vendor name","table":"LFA1","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = RESB-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Component description (logon language)","table":"MAKT","variant":"both"}],"title":"Production Order Missing Parts with Covering Purchase Order Report","url":"https://nekuhub.com/en/reports/production-order-missing-parts-with-open-purchase-order-report/","vendor_id":"nekudos"}