Symptom
-
When posting a production order confirmation with goods movements using API_PROD_ORDER_CONFIRMATION_2_SRV, error records are created in COGI with message:
Error CO469 – Order <Order Number> is already being processed by <User ID> (The user ID corresponds to the same user who executed the API). -
When cancelling a production order confirmation in Cancel Production Order Confirmation app (CO13), error records are created in COGI with message:
Error CO469 – Order <Order Number> is already being processed by <User ID> (The user ID corresponds to the same user who executed the API).
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use API API_PROD_ORDER_CONFIRMATION_2_SRV to post confirmation with goods movement for a production order.
- Use Cancel Production Order Confirmation app (CO13) to cancel a production order confirmation.
Cause
For API or cancellation of a production order, the automatic goods receipts or backflushes are always performed in the update program.
This means that the posting of goods movements in the update program is started from an online process. For this, an update process is created in addition to an online process.
The update process runs independently of the online process.
Due to this, the lock issue can happen.
This cannot be avoid.
Resolution
Use app "Schedule Posting of Predefined Confirmation Processes" app to create and schedule a job to process goods movements after confirmation or cancellation.
If the job can be scheduled for several times a day, every hour, or even more frequently, it could clean up errors like locks in 'Reprocess Goods Movements' app (COGI).
See Also
SAP Help Portal - Schedule Posting of Predefined Confirmation Processes
Keywords
CO469, API_PROD_ORDER_CONFIRMATION_2_SRV , COGI, Reprocess Goods Movements, confirmation, goods movement, CO13, Cancel Production Order Confirmation app , KBA , PP-SFC-EXE-CON-2CL , Confirmation (Public Cloud) , Problem
SAP Knowledge Base Article - Public