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

Transfer order - confirmation

Former Member
0 Likes
1,096

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 53

here 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 53

here sy-subrc is 1

1 REPLY 1
Read only

Former Member
0 Likes
546

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