Skip to Content

Idoc not getting created when Production Order is deleted

We have a requirement to send the idocs for Production Order to an external system. We are doing it by calling Program RCCLORD from the exit,

EXIT_SAPLCOBT_001. Whenever a Production order is created or changed, the idoc LOIPRO is getting created and we are sending the idoc. But, when the Production Order is deleted by using tcode CO02 and going into Functions->Deletion flag->set, it is not creating the idoc. We will have to update the external system with the deletion flag. Is there any other way of sending the deleted Production Order idoc?

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 23, 2017 at 02:45 PM

    Did you also loop at status_table[_old] looking for deletion flag set in the EXIT_SAPLCOBT_001 exit?

    Add comment
    10|10000 characters needed characters exceeded

  • May 28 at 10:05 AM

    I have a similar requirement, need to trigger IDoc for Production order change/creation. I am looking for using the exit EXIT_SAPLCOBT_001. Can you please advise if this is the right exit as the IDoc should be triggered only if Production order is updated successfully.

    Add comment
    10|10000 characters needed characters exceeded