2010 Feb 20 3:02 PM
Dear all,
This issue is related with WM - Change of ownership from plant A to plant B
I got a Z program which picks all STO Purchase order
Create Transfer order based on outbound delivery - L_TO_CREATE_DN
Confirm Transfer order for outboun delivery- L_TO_Confirm
GI is done
Inbound delivery is created
Create Transfer order for inbound deliver - L_TO_CREATE_DN
Confirm Transfer order inbound deliver- L_TO_Confirm
GR is done
Now the issue here is, some times while creating Transfer order itself, item in TO is confirmed(LTAP-PQUIT = 'X') - so when it goes to next FM : L_TO_CONFIRM -> it thows error like items are already confirmed...
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = wa_ltap_vb-lgnum
i_tanum = wa_ltap_vb-tanum
i_squit = c_x
i_qname = sy-uname
i_ename = sy-uname
i_komim = '2' " Post GI
i_update_task = c_x
i_commit_work = c_x
TABLES
t_ltap_conf = i_conf_items
EXCEPTIONS
to_confirmed = 1 to 53here sy-subrc is 1
Dear all,
This issue is related with WM - Change of ownership from plant A to plant B
I got a Z program which picks all STO Purchase order
Create Transfer order based on outbound delivery - L_TO_CREATE_DN
Confirm Transfer order for outboun delivery- L_TO_Confirm
GI is done
Inbound delivery is created
Create Transfer order for inbound deliver - L_TO_CREATE_DN
Confirm Transfer order inbound deliver- L_TO_Confirm
GR is done
Now the issue here is, some times while creating Transfer order itself, item in TO is confirmed(LTAP-PQUIT = 'X') - so when it goes to next FM : L_TO_CONFIRM -> it thows error like items are already confirmed...
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = wa_ltap_vb-lgnum
i_tanum = wa_ltap_vb-tanum
i_squit = c_x
i_qname = sy-uname
i_ename = sy-uname
i_komim = '2' " Post GI
i_update_task = c_x
i_commit_work = c_x
TABLES
t_ltap_conf = i_conf_items
EXCEPTIONS
to_confirmed = 1 to 53here sy-subrc is 1
2010 Feb 20 3:44 PM
Hi,
Check with your functional person.
For some movement type the transfer order items can be confirmed immediately at the time of TO creation.
There is a checkbox for the same.
Check in SPRO>Warehouse Management>Activities>Transfers>Define Movement Types
Also check in FM L_TO_CREATE_DN if you are passing the parameter I_SQUIT.
Regards,
Ankur Parab
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |