Skip to Content
0
Aug 18, 2016 at 05:28 AM

Purchase Order Not Released but Workflow completed without any Error/Exception

562 Views

Hi All,

I have a custom workflow for Purchase Order approval process.

The issue is workflow is in completed stage but PO has not released. and Workflow is not throwing any Error/Exception.

We are calling BAPI BAPI_PO_RELEASE to release the PO in custom method.

CALL FUNCTION 'BAPI_PO_RELEASE'

EXPORTING

purchaseorder = ekko-ebeln

po_rel_code = frgco

IMPORTING

rel_indicator_new = frgke

TABLES

return = lt_return

EXCEPTIONS

authority_check_fail = 1

document_not_found = 2

enqueue_fail = 3

prerequisite_fail = 4

release_already_posted = 5

responsibility_fail = 6

OTHERS = 7.

Is there any way to control this in workflow?

Please help.

Thanks,