Skip to Content

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

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.



purchaseorder = ekko-ebeln

po_rel_code = frgco


rel_indicator_new = frgke


return = lt_return


authority_check_fail = 1

document_not_found = 2

enqueue_fail = 3

prerequisite_fail = 4

release_already_posted = 5

responsibility_fail = 6


Is there any way to control this in workflow?

Please help.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 18, 2016 at 06:20 AM


    what you are passing in po_rle_code parameter , I think you are forcefully passing the release code to complete the PO.

    Please check

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi

      Well I have never had any trouble for the release of PO in background on my workflow

      But I am not exactly doing it in the same way

      fisrt I get the releasse code (next one )

      then calling the macro

      swc_clear_container lo_container .

      swc_set_element lo_container 'RelCode' lv_frgco.

      swc_call_method lo_po 'Release' lo_container.

      swc_clear_container lo_container .

      So are you sure that you have the next release code and not the current one ?



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.