Skip to Content

Production order release and confirm at same time

Hi,

We are creating a production order in CO01 and then release it in CO02.

Our requirement is: when user click on release button (in CO02) and save it then production order phase '0020' should get confirmed.

To fulfill this we have tried using Customer Exit fm EXIT_SAPLCOZV_001 and BADI WORK_ORDER_UPDATE( methods AT_RELEASE and AT_SAVE). We are currently using FM 'CO_RU_CONFIRMATION_PREPARE' to confirm but when we call this FM in exits and Bad ,we get the error that Production order is not yet released.

we also tried calling this FM inside wrapper Update FM but still does not work.

Please provide any suggestion.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 02, 2019 at 09:22 AM

    'we also tried calling this FM inside wrapper Update FM but still does not work.'

    Don't use an update FM as wreapper but a RFC enabled FM and call it in BACKGROUND TASK so executed after the main commit/update task, when order released in database.

    (Also replace the FM with a released BAPI)

    NB: Other solution could be call of a FM at an event triggered by order release (SWO1, BSVZ)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 02, 2019 at 08:41 AM

    Hello,

    Yes that's correct behavior, for confirmation of order or operation, order or operation must be released.

    You should call order confirmation FM after order release saved.

    Best Regards,

    R.Brahmankar

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello,

      The recommended way is to use enhancement PPCO0001 you should carry out follow-up actions based on the status changes

      contents of the STATUS_TABLE and STATUS_TABLE_OLD tables are equal, you cannot carry out the actions. If order is REL then trigger CO_RU_CONFIRMATION_PREPARE' to confirm operation.

      Best Regards,

      R.Brahmankar

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.