Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC: Process order: Message type LOIPRO

Former Member
0 Likes
4,050

Hi

I would like to know here no other way to download LOIPRO idocs as soon as the process order or production order are created/changed.

Currently i'm using program rcclord and rccltran to create idocs. The problem I see here is that during every execution ALL orders, disregarding of the status (i.e. closed orders as well), will be exported.

G.

Message was edited by: Giovanni Baumann

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
2,414

Hi Giovanni,

You do not need other solution to generate production order IDoc. Use standard program RCCLORD or RCCLTRAN.

You can use this user exits <b>EXIT_SAPLLOI1_002</b> to filter the order that you do not want, for example close order.

Regards,

Ferry Lianto

Please reward points if helpful.

7 REPLIES 7
Read only

ferry_lianto
Active Contributor
0 Likes
2,415

Hi Giovanni,

You do not need other solution to generate production order IDoc. Use standard program RCCLORD or RCCLTRAN.

You can use this user exits <b>EXIT_SAPLLOI1_002</b> to filter the order that you do not want, for example close order.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

0 Likes
2,414

Ferry

What about the process order transaction COR1 and COR2.

I want to send an idoc as soon as the process order are created or changed.

Which user-exit should i use?

Read only

0 Likes
2,414

Hi Baumann,

You can use the BADI WORKORDER_UPDATE

I am using this for releasing Process Orders. I hope this will help you..

*Appending the Selection Screen fields.

*Process Order

s_rspar-selname = c_selnam1.

s_rspar-kind = c_kind.

s_rspar-sign = c_sign.

s_rspar-option = c_option.

s_rspar-low = im_ord_header-aufnr.

APPEND s_rspar TO t_rspar_tab.

*Material Number

s_rspar-selname = c_selnam2.

s_rspar-kind = c_kind.

s_rspar-sign = c_sign.

s_rspar-option = c_option.

s_rspar-low = im_ord_header-matnr.

APPEND s_rspar TO t_rspar_tab.

*Planning plant

s_rspar-selname = c_selnam3.

s_rspar-kind = c_kind.

s_rspar-sign = c_sign.

s_rspar-option = c_option.

s_rspar-low = im_ord_header-werks.

APPEND s_rspar TO t_rspar_tab.

*Order category

s_rspar-selname = c_selnam4.

s_rspar-kind = c_kindp.

s_rspar-low = im_ord_header-autyp.

APPEND s_rspar TO t_rspar_tab.

*MRP controller

s_rspar-selname = c_selnam5.

s_rspar-kind = c_kind.

s_rspar-sign = c_sign.

s_rspar-option = c_option.

s_rspar-low = im_ord_header-dispo.

APPEND s_rspar TO t_rspar_tab.

*Logical System

SELECT SINGLE rcvprn INTO v_opt_sys FROM edp13 "#EC *

WHERE rcvprt = c_rcvtype AND mestyp = c_messageid.

s_rspar-selname = c_selnam6.

s_rspar-kind = c_kindp.

s_rspar-low = v_opt_sys.

APPEND s_rspar TO t_rspar_tab.

*Message Type

s_rspar-selname = c_selnam7.

s_rspar-kind = c_kindp.

s_rspar-low = c_mesageid.

APPEND s_rspar TO t_rspar_tab.

*This statement will submit the programme RCCLORD using the table RSPARMS

*which holds the fields to be filled in the selection screen for RCCLORD and return

SUBMIT rcclord USING SELECTION-SCREEN 1000

WITH SELECTION-TABLE t_rspar_tab

AND RETURN.

Cheers

Prasad

Read only

0 Likes
2,414

Prasad

Where should i specify the selection screen fields?

Read only

0 Likes
2,414

Hi Baumann,

You need to add the selection screen fields in BADI method suitable for you. I am using in AT_RELEASE method.

If you have any questions let me know.

Cheers

Prasad

Read only

0 Likes
2,414

Prasad

Where in the BADI should i add the screen fields. Is it in the Method parameter screen of the AT_RELEASE method or in the program?

Message was edited by: Giovanni Baumann

Read only

ferry_lianto
Active Contributor
0 Likes
2,414

Hi Giovanni,

No need user exits for process order.

You can use standard program <b>IREAD_SM_PM_ORDERS</b> (t/code <b>IORD</b>).

In this program, there is order status selection screen available for data selection.

<b>Again, don't forget to reward points if helpful!</b>

Have great weekend.

Regards,

Ferry Lianto