SAP Knowledge Base Article - Public

3561911 - Purchasing document has wrong approval status

Symptom

  • An issue arises when the Workflow triggers for the approval of a supplier invoice or while creating a goods receipt, displaying Error: "Purchasing document XXXX not yet released".
  • Error:'Approval of purchase requisition failed. Contact admin'/'Errors have occured. Please check workflow log or contact administrator'.
  • Error:'Purchase order status is' In approval' but approval status is 'Released'
  • The status of Purchase order is not in sync with the status of approval status.
  • In Any document under Approval details tab you might see the error.
  • The purchase requisition remains in 'In approval' status even though already automatically approved.
  • While creating inbound delivery or goods receipt, error is seen 'Purchasing document is not released'.
  • An error stating 'Purchase requisition XXX, Item YYY, not approved for ordering' may appear while converting PR to PO.
  • SES status is 'in process' and approval status is 'workflow not yet started'

Environment

SAP S/4HANA Cloud Public Edition

Cause

Some error must have caused this issue.

Resolution

  1. Navigate to the APP 'Flexible Workflow Administration'.
  2. For example enter the Purchase order ID in the Business Object ID field (if PO ID is not 10 digits, add 0s in prefix to make it 10 digits).(If its PR then 15 digits, first 10 for PR ID So add 0s in prefix to make it 10 digits  and next 5 for  PR Item So  add 0s in prefix to make it 5 digits)
  3. Select the workflow item and open it.
  4. Click on the Workflow log button
  5. Expand the error 'Error while executing application callback (Method 'result_callback')'.
  6. Here, an understandable error should be visible, for example 'Profit center not found in controlling area ' or 'Account determination for entry YCOA WRX 0001 ___ 3300 not possible'. for help regarding fixing this issue  please check for help documents like KBA etc or raise a separate case for each unique error.
  7. If its lock issue then it should be already resolved in couple of mins, then skip step 9.
  8. If you see no errors then check the KBA 3572781 - Application error: Conversion of type "ELEMENT_TEXT" to type "DEEP_STRUCTURE" not supported. - SAP for Me 
  9. Once you fix the errors then follow steps in KBA 3402028 - Error in Workflows in Status Error App - SAP for Me if the work item status is 'error'
  10. Otherwise withdraw the PO and edit and then submit/order it again.
  11. If the issue persists, edit the document for example change the quantity to some value and save. (how to choose right field to make  change is given below) ,Then, change the quantity back to the original quantity and save.
  12. So that workflow is retriggered and will get approved fully.

Note:Choose any field that is check marked in SSCUI Manage Conditions to Restart Flexible Workflow.  or a field that triggers the restart maintained in Workflow Restart Badi ‘mmpur_po_workflow_restart’  

Note: The above is applicable for any document .

See Also

3066568 - Purchase Order is in approval when workflow status is in error - SAP for Me

Keywords

Workflow, Supplier Invoice, PO, Purchase Order, Flexible Workflow, SAP S/4HANA Cloud Public Edition, CPI, Batch Processing, Blank Status Mode, Restart Failure,wrong PO status,workflow error , KBA , MM-FIO-PUR-PO-WFL-CL , Purchase Order Workflow (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions