cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc not getting created when Production Order is deleted

0 Kudos

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!

Accepted Solutions (0)

Answers (4)

Answers (4)

oguzhans
Explorer
0 Kudos

Hi,

While submitting the report RCCLORD, you have to give the value P_LOEKZ = 'X'.

This will include the deleted orders.

former_member330173
Discoverer
0 Kudos

Did you resolve this ? Can i please know what steps did you follow .

0 Kudos

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.

getnikhilk
Employee
Employee
0 Kudos

Hi Vijayaraghavan,

How did you configure this Production Order IDOC during Create and change ? i have configured partner profile, but outbound idoc not getting triggered when Production order is created or changed.

Regards,

Nikhil Kulkarni

raymond_giuseppi
Active Contributor
0 Kudos

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