cancel
Showing results for 
Search instead for 
Did you mean: 

Triggerring LOIPRO01 idoc for Production order

former_member601182
Participant
0 Kudos

Dear all

I have a questions that were already discussed many times, but i got confused and can't figure out best approach to use: i have a requirement to generate idoc LOIPRO01 during

- Production order creation/release and GR event.

I'm planning to use WORKORDER_UPDATE BADI with method AT_SAVE to catch the right event to trigger program for idoc generation, but i'm not sure what to select for that.

What i got from similar topics there are few alternatives as:

1. Using standard Report RCCLORD. And in some threads i saw that the only parameter needs to be passed is the order number. So i wanted to double check will it be enought to pass only order number and to which parameter do i need to pass PP order number.

Another thing is that i saw that i must put ABAP code in a Function Module and call the processing in BACKGROUND TASK AS SEPARATE UNIT DESTINATION ‘NONE’. What does it mean? How it works?

2. Using FM CLOI_MASTERIDOC_CREATE_LOIPRO which generates idoc based on list of importing parameters.

This FM is used inside program RCCLORD, so anyway its called from RCCLORD exporting OPT_SYS; MESSAGE_TYPE and ORDER_DATA structure table.

For me it looks as using this FM would require me to have extra development to prepare structures needed for FM to generate idoc.

So the question is: what is the best way to handle the task. It looks much easier to use program RCCLORD, but in that case i don't understand regarding processing in Background task. And what is the value of using CLOI_MASTERIDOC_CREATE_LOIPRO instead of RCCLORD?

Accepted Solutions (1)

Accepted Solutions (1)

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

You may use the standard PP-MES features to integrate production orders. Check the documentation in SAP help:

https://help.sap.com/viewer/a0d3efbac8b14fc89b29bf47a1677c86/6.17.17/en-US/758e4dd738ab4a1c9b4494f9b...

Regards,
Caetano

Answers (0)