‎2006 Jun 23 6:23 PM
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
‎2006 Jun 23 6:43 PM
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.
‎2006 Jun 23 6:43 PM
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.
‎2006 Jun 23 7:39 PM
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?
‎2006 Jun 23 8:21 PM
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
‎2006 Jun 26 3:34 PM
‎2006 Jun 27 1:44 AM
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
‎2006 Jun 27 5:33 PM
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
‎2006 Jun 23 7:55 PM
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