SAP Note 536769 - Inspection lots without status object

Component : Inspection Lot Creation - Quality Inspection

Solution : https://service.sap.com/sap/support/notes/536769 (SAP Service marketplace login required)

Summary :
When using BAPI_GOODSMVT_CREATE for goods receipt entries linked to purchase orders, discrepancies in the status of some inspection lots are noted. These discrepancies manifest as missing statuses, leading to error BS001 when interacting with affected inspection lots. The root of these issues lies in a rollback scenario triggered by errors or warnings in the transaction-handling custom interface program, which disrupts the normal status management flow. Status updates cease post-rollback until a new COMMIT WORK command is executed. Corrective actions include modifying error handling by replacing ROLLBACK WORK with LEAVE TO TRANSACTION, alongside deploying correction scripts for already impacted lots.

Key words :
system generates error message bs001 ', customer-specific interface program, form routine call_status_update, attached correction program, goods receipt posting, enter goods receipts, global variable commit_forced, transaction sy-tcode, central status management, error occurs

Related Notes :

89541Inspection lot exists w/o status object: EM BS001