{"audience":"Product engineering and R\u0026D, production planning, purchasing, quality and cost accounting teams.","authorization_objects":[{"note":"BOM display by plant","object":"C_STUE_WRK"},{"note":"BOM display by authorization group","object":"C_STUE_BER"},{"note":"Order display for order changes","object":"C_AFKO_AWK"},{"note":"Sending external email from SAP","object":"S_OC_SEND"}],"components":[],"countries":[],"effort_days_max":8,"effort_days_min":5,"effort_size":"M","faq":[{"a":"Order change documents are created only after change documents are activated for the order type and plant. There are no documents for changes made before activation; the report flags these orders as 'no documents'.","q":"Why are production order changes empty for some orders?"},{"a":"Changes made with a change number create a new validity slice for the item. The report shows the change number, its description and valid-from date, so you also see from which date the change affects production.","q":"How do changes made with a change number appear?"},{"a":"Recipients are defined in a settings table by material group, plant or BOM usage; email addresses are taken from user master data or a distribution list. Each recipient sees only the changes within their scope.","q":"Who receives the alerts?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"From a line you open the BOM in CS03 or the order in CO03."},{"code":"email","label":"Send the result by email","note":"A summary table is sent to recipients defined per material group or plant."},{"code":"background","label":"Runs as a background job","note":"Alert mode runs as a scheduled job and sends only new changes."},{"code":"excel","label":"Export to Excel","note":""}],"functions":[{"name":"CHANGEDOCUMENT_READ","role":"Reads change documents with their items"},{"name":"SO_DOCUMENT_SEND_API1","role":"Sends the change summary by email"}],"gap":"CS80 shows BOM change documents, but as technical output per field; the component number and old/new quantity cannot be read side by side, and nobody is notified when a change happens. Changes to production orders are shown order by order in CO03. The custom report turns the change documents into readable lines per component and order, gives a combined view and produces email alerts.","id":"pp-bom-change-log-alert","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-18","logic":"1. BOM change documents (object class STUE) are read from CDHDR for the selected date range; optionally production order change documents (object class ORDER) are added. Order change documents are created only if change documents are activated in the order type parameters.\n2. Item details come from CDPOS: table (STKO, STPO, STAS or RESB, AFKO, AFPO), field, change type (CHNGIND) and old/new value. The table key (TABKEY) is decoded to find the BOM number and item node.\n3. The BOM number is linked to the header material through MAST, the item through STPO to the component (IDNRK), item number and change number (AENNR); descriptions come from MAKT. If a change number exists, its description and valid-from date are added from AENR.\n4. For older records without change documents, the creation and change data in STPO/STAS (ANDAT/ANNAM, AEDAT/AENAM) and the date validity (DATUV) are used as a fallback source.\n5. Field names are translated into user-friendly labels (e.g. MENGE → Component quantity, DATUV → Valid from) and each line is classified as added, deleted or changed.\n6. Alert mode runs as a scheduled job: changes since the last run are mapped to a distribution setting by material group, plant or BOM usage, and each recipient group gets a summary table email sent with SO_DOCUMENT_SEND_API1; sent documents are flagged so they are not sent again.","module":"PP","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Date","source_field":"UDATE","source_table":"CDHDR"},{"calculated":false,"formula":"","label":"Time","source_field":"UTIME","source_table":"CDHDR"},{"calculated":false,"formula":"","label":"User","source_field":"USERNAME","source_table":"CDHDR"},{"calculated":true,"formula":"BOM or production order (by object class)","label":"Object","source_field":null,"source_table":null},{"calculated":true,"formula":"MAST-MATNR or AFKO-AUFNR","label":"Header material / order","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Component","source_field":"IDNRK","source_table":"STPO"},{"calculated":true,"formula":"CDPOS-FNAME translated into a user-friendly label","label":"Changed field","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Old value","source_field":"VALUE_OLD","source_table":"CDPOS"},{"calculated":false,"formula":"","label":"New value","source_field":"VALUE_NEW","source_table":"CDPOS"},{"calculated":true,"formula":"CDPOS-CHNGIND: I = added, D = deleted, U = changed","label":"Change type","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Change number","source_field":"AENNR","source_table":"STPO"},{"calculated":true,"formula":"Recipient group if an alert email was sent","label":"Notified","source_field":null,"source_table":null}],"parameters":[{"example":"01.11.2026 – 15.11.2026","kind":"select_option","label":"Change date","name":"S_UDATE","ref_field":"CDHDR-UDATE","required":true},{"example":"MAM-40021","kind":"select_option","label":"Header material","name":"S_MATNR","ref_field":"MAST-MATNR","required":false},{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MAST-WERKS","required":false},{"example":"MUH_AYILMAZ","kind":"select_option","label":"Changed by","name":"S_USER","ref_field":"CDHDR-USERNAME","required":false},{"example":"X","kind":"checkbox","label":"Also show production order changes","name":"P_ORDER","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Alert mode: email changes since the last run","name":"P_ALERT","ref_field":"","required":false}],"part_of":[],"performance":"Read CDHDR by OBJECTCLAS and UDATE; fetch CDPOS only for the change numbers found. Run the alert job e.g. hourly rather than at very short intervals and keep the last run time in a settings record.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pp-bom-change-log-alert","related":["pp-bom-component-mass-change-upload","pp-bom-where-used-open-orders","pp-routing-standard-value-change-audit"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows BOM change documents; no readable per-component list and no email alerts.","tcode":"CS80"},{"note":"Change documents can be displayed from within one order at a time.","tcode":"CO03"},{"note":"Compares two BOMs or dates; does not show who changed what and when.","tcode":"CS14"}],"summary":"A report that shows component additions, deletions, quantity and validity changes in bills of material in a readable list with who, when and the old and new values, and emails changes in selected material groups to the departments concerned. The same screen also gives the history of quantity, date and component changes in released production orders.","tables":[{"access":"read","join_on":"","role":"Change document header: user, date, time, object (driving table)","table":"CDHDR","variant":"both"},{"access":"read","join_on":"CDPOS-OBJECTCLAS = CDHDR-OBJECTCLAS AND CDPOS-OBJECTID = CDHDR-OBJECTID AND CDPOS-CHANGENR = CDHDR-CHANGENR","role":"Changed table, field, old and new value","table":"CDPOS","variant":"both"},{"access":"read","join_on":"MAST-STLNR = CDPOS-TABKEY+4(8)","role":"Header material and usage of the BOM","table":"MAST","variant":"both"},{"access":"read","join_on":"STKO-STLNR = MAST-STLNR","role":"BOM header: base quantity, status","table":"STKO","variant":"both"},{"access":"read","join_on":"STPO-STLNR = CDPOS-TABKEY+4(8) AND STPO-STLKN = CDPOS-TABKEY+12(8)","role":"BOM item: component, quantity, change number, validity","table":"STPO","variant":"both"},{"access":"read","join_on":"STAS-STLNR = STPO-STLNR AND STAS-STLKN = STPO-STLKN","role":"Alternative-to-item link and deletion indicator","table":"STAS","variant":"both"},{"access":"read","join_on":"AENR-AENNR = STPO-AENNR","role":"Change number description and valid-from date","table":"AENR","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = MAST-MATNR / STPO-IDNRK","role":"Header material and component descriptions","table":"MAKT","variant":"both"},{"access":"read","join_on":"AFKO-AUFNR ↔ CDHDR-OBJECTID (CDHDR-OBJECTCLAS = 'ORDER')","role":"Order header and dates for order changes","table":"AFKO","variant":"both"},{"access":"read","join_on":"RESB-AUFNR = AFKO-AUFNR","role":"Component items for order changes","table":"RESB","variant":"both"}],"title":"BOM Change Log Report with E-mail Alerts","url":"https://nekuhub.com/en/reports/bom-and-production-order-change-log-with-email-alerts/","vendor_id":"nekudos"}