{"audience":"Product engineering and R\u0026D teams, production planners, master data owners and buyers who manage supplier or part changes.","authorization_objects":[{"note":"Display BOMs by plant","object":"C_STUE_WRK"},{"note":"Display BOMs by BOM authorization group","object":"C_STUE_BER"},{"note":"Display open production orders by plant and order type","object":"C_AFKO_AWK"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"Because a phantom assembly is not produced on its own, it is kept as a link in the path and flagged in the 'Phantom on path' column. The quantity calculation ties the components below the phantom directly to the parent; if preferred, the phantom level can be hidden from the list completely.","q":"How are phantom assemblies shown?"},{"a":"Each alternative (MAST-STLAL) is evaluated as a separate path and the alternative number is shown on the line. Showing only the alternatives used in a production version can be added as an optional filter.","q":"What happens if there are several alternative BOMs?"},{"a":"Yes. STPO, STKO, MAST and AFPO keep the same structure in S/4HANA. For a clean core approach it can also be built on released CDS views for BOMs and production orders.","q":"Does the 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 component and parent open CS03; the open order count opens the COOIS list of those orders."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""}],"functions":[],"gap":"The CS15 where-used list evaluates components one at a time; running several components in one list and exporting the result to Excel as a flat table is tedious. In the multi-level view the path between the top-level material and the component is not written on one line, phantom assemblies look like a normal level and open production orders are not in the list. Before an engineering change, users move between CS15, CS12 and COOIS to answer 'which finished goods and which open orders does this part touch'. The custom report combines these three steps in one list.","id":"pp-bom-where-used-open-orders","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Material BOM items (STLTY = 'M') are read from STPO for the components on the selection screen; deleted items (LKENZ) and items not valid on the key date (DATUV after the key date, or superseded by a newer change record) are skipped.\n2. Through STPO-STLNR the STKO header (alternative, status STLST, deletion indicator LOEKZ) is read, and MAST gives the parent material, plant and usage (STLAN) the BOM belongs to.\n3. The parent material is searched as a component in the next pass, until the selected level limit is reached or a material without further where-used is found. For recursive BOMs the visited materials are kept and a repeating path is cut.\n4. At each level, assemblies with MARC-SOBSL = '50' are flagged as phantom assemblies; quantities are multiplied along the path to get the component quantity needed for one unit of the top-level material.\n5. For the top-level materials, open production order items are read from AFPO (ELIKZ blank, TECO I0045 or the deletion flag I0076 not active on AUFK-OBJNR); the number of orders and the remaining quantity (PSMNG − WEMNG) are summed.\n6. The result is listed as one line per component – top-level path; when 'only with open orders' is selected, paths without open orders are hidden.","module":"PP","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Component","source_field":"IDNRK","source_table":"STPO"},{"calculated":false,"formula":"","label":"Component description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"Plant","source_field":"WERKS","source_table":"MAST"},{"calculated":true,"formula":"BOM levels counted from the component up to the top-level material","label":"Level","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Direct parent","source_field":"MATNR","source_table":"MAST"},{"calculated":true,"formula":"Last link of the path: a material that is not a component of another BOM","label":"Top-level material","source_field":null,"source_table":null},{"calculated":true,"formula":"MAKT-MAKTX of the top-level material","label":"Top-level description","source_field":null,"source_table":null},{"calculated":true,"formula":"Material numbers from the component to the top level, separated by ' \u003e '","label":"Path","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Item quantity","source_field":"MENGE","source_table":"STPO"},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"STPO"},{"calculated":true,"formula":"Product of STPO-MENGE ÷ STKO-BMENG along the path","label":"Quantity per top-level unit","source_field":null,"source_table":null},{"calculated":true,"formula":"X when an assembly on the path has MARC-SOBSL = '50'","label":"Phantom on path","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Valid from","source_field":"DATUV","source_table":"STPO"},{"calculated":false,"formula":"","label":"BOM usage","source_field":"STLAN","source_table":"MAST"},{"calculated":true,"formula":"Number of AFPO items of the top-level material with ELIKZ blank and no TECO","label":"Open orders","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ (AFPO-PSMNG − AFPO-WEMNG)","label":"Open order quantity","source_field":null,"source_table":null}],"parameters":[{"example":"RM-2040","kind":"select_option","label":"Component","name":"S_IDNRK","ref_field":"STPO-IDNRK","required":true},{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MAST-WERKS","required":true},{"example":"1","kind":"select_option","label":"BOM usage","name":"S_STLAN","ref_field":"MAST-STLAN","required":false},{"example":"17.11.2026","kind":"parameter","label":"Key date","name":"P_DATUV","ref_field":"STPO-DATUV","required":true},{"example":"6","kind":"parameter","label":"Maximum levels","name":"P_LEVEL","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Only top-level materials with open orders","name":"P_OPEN","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Show phantom assemblies as a separate level","name":"P_PHANT","ref_field":"","required":false}],"part_of":[],"performance":"Read STPO by IDNRK; a standard secondary index exists for STPO-IDNRK. Process each level with one FOR ALL ENTRIES read instead of one SELECT per material. For mass runs with thousands of components keep the level limit at 5–6 and run the report in the background.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pp-bom-where-used-open-orders","related":["pp-bom-component-mass-change-upload","pp-missing-parts-with-covering-po"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows single- or multi-level where-used per component; open orders and a flat path list are missing.","tcode":"CS15"},{"note":"Lists open production orders, but does not start from a component's where-used.","tcode":"COOIS"}],"summary":"A custom ALV report that shows in which assemblies and, at the top, in which finished goods one or more components are used, as a flat list that includes intermediate levels and phantom assemblies. For every top-level material the number of open production orders and the remaining order quantity are on the same line, so the impact of a component change on open orders is visible in one run.","tables":[{"access":"read","join_on":"","role":"BOM items: component, quantity, validity (driving table)","table":"STPO","variant":"both"},{"access":"read","join_on":"STKO-STLTY = STPO-STLTY AND STKO-STLNR = STPO-STLNR","role":"BOM header: alternative, status, deletion indicator","table":"STKO","variant":"both"},{"access":"read","join_on":"MAST-STLNR = STKO-STLNR AND MAST-STLAL = STKO-STLAL","role":"Parent material, plant and usage of the BOM","table":"MAST","variant":"both"},{"access":"read","join_on":"MARC-MATNR = MAST-MATNR AND MARC-WERKS = MAST-WERKS","role":"Special procurement type for phantom detection","table":"MARC","variant":"both"},{"access":"read","join_on":"AFPO-MATNR = MAST-MATNR AND AFPO-DWERK = MAST-WERKS","role":"Open production order items of the top-level material","table":"AFPO","variant":"both"},{"access":"read","join_on":"AUFK-AUFNR = AFPO-AUFNR","role":"Order object number (for the status check)","table":"AUFK","variant":"both"},{"access":"read","join_on":"JEST-OBJNR = AUFK-OBJNR","role":"Excludes technically completed and deleted orders","table":"JEST","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = STPO-IDNRK / MAST-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Component and material descriptions","table":"MAKT","variant":"both"}],"title":"Multi-Level BOM Where-Used Report with Open Production Orders","url":"https://nekuhub.com/en/reports/multi-level-bom-where-used-report-with-open-orders/","vendor_id":"nekudos"}