Skip to Content

Generate Production Order idocs using RCCLORD when the Order is saved

I have a requirement to create idoc for a Production order when it is saved. My two options are the following both of which are having issues....

Option1. Call RCCLORD as a submitted job in background and run it every 20 minutes or so. I am using selections Plant, Actual Release Date, Logical system and message type. Problem is that whenever the Program is called, it creates idocs with the same Production Order again and again if a new Production order is created. Is there a solution for this?

Option 2. using user exit, EXIT_SAPLCOBT_001(PPCO0001), submit RCCLORD with Order Number. Problem is that, since the data is not saved at this point, it does not create the idoc. Is there any other user exit I can use? Also, I am trying to avoid to create a submitted Program to run RCCLORD and run when the locks are out. This causes authorization issues for submitting a job for a lot of end users.

It will be appreciated if anyone can suggest a solution for this .

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 28, 2017 at 02:46 PM

    Hi Anjana,

    Just a suggestion ,incase As an alternate way if you want to avoid batch job scheduling inside Exit, Can you please check the SAVE exit -> EXIT_SAPLCOZV_001.

    If you have all the data for the PP order inside this exit, you may use FM CLOI_MASTERIDOC_CREATE_LOIPRO with some relevant code/business logic to generate IDOC instead of program RCCLORD or Program RCCLTRAN

    Regards,

    Avik

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 28, 2017 at 08:19 AM

    Create a RFC enabled wrapper FM for report RCCLORD with parameter order number, in EXIT_SAPLCOBT_001 call the wrapper in backgound task or unit so it will be executed after the commit and end of update tasks.

    Add comment
    10|10000 characters needed characters exceeded