Application Development 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: 

Re: What Function to create & confirm WM Transfer Orde

colin_cheong
Contributor
0 Kudos

Hi SAP Guru,

I need to explore batch creation of Transfer order from 1 source bin to multiple destination bins based on EXCEL upload.

What functions are available that would allow me to create and confirm the Transfer order in a single process?

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

Use the Function Modules .

L_TO_CONFIRM

L_TO_CREATE_SINGLE

L_TO_CREATE_MULTIPLE

Please reward if useful.

3 REPLIES 3

Former Member
0 Kudos

hi,

i dont know a function to create WM transfer order.i usually use batch input

tr code LT01 for creating transfer order

tr code LT12 for confirm transfer order

here is the sample batch for LT01,

CLEAR : messtab, bdctab.

REFRESH: messtab, bdctab.

PERFORM add_bdc USING 'SAPML03T' '0101' '' ''.

PERFORM add_bdc USING '' '' 'BDC_OKCODE' '/00'.

PERFORM add_bdc USING '' '' 'LTAK-LGNUM' gv_lgnum.

PERFORM add_bdc USING '' '' 'LTAK-BWLVS' '998'.

PERFORM add_bdc USING '' '' 'LTAP-MATNR' p_matnr.

PERFORM add_bdc USING '' '' 'RL03T-ANFME' lv_fverme.

PERFORM add_bdc USING '' '' 'LTAP-WERKS' gt_list-werks.

PERFORM add_bdc USING '' '' 'LTAP-LGORT' gt_list-lgort.

PERFORM add_bdc USING '' '' 'LTAP-LETYP' gv_letyp.

PERFORM add_bdc USING '' '' 'LTAP-BESTQ' gt_list-bestq.

PERFORM add_bdc USING '' '' 'LTAP-CHARG' p_charg.

PERFORM add_bdc USING 'SAPML03T' '0102' '' ''.

PERFORM add_bdc USING '' '' 'BDC_OKCODE' '/00'.

PERFORM add_bdc USING '' '' 'LTAP-VLTYP' gv_lgtyp.

PERFORM add_bdc USING '' '' 'LTAP-VLPLA' gv_lgpla.

PERFORM add_bdc USING '' '' 'LTAP-NLTYP' gv_lgtyp01.

PERFORM add_bdc USING '' '' 'LTAP-NLPLA' gv_lgpla01.

CALL TRANSACTION 'LT01' USING bdctab MODE mode

MESSAGES INTO messtab.

and sample for LT12

CLEAR : messtab, bdctab, lv_error .

REFRESH: messtab, bdctab.

PERFORM add_bdc USING 'SAPML03T' '0111' '' ''.

PERFORM add_bdc USING '' '' 'BDC_OKCODE' '/00'.

PERFORM add_bdc USING '' '' 'LTAK-TANUM' p_tanum.

PERFORM add_bdc USING '' '' 'LTAK-LGNUM' gv_lgnum .

PERFORM add_bdc USING '' '' 'RL03T-DUNKL' 'D'.

CALL TRANSACTION 'LT12' USING bdctab MODE mode

MESSAGES INTO messtab.

i hope it will be helpful.

best regards ,

Burak

Former Member
0 Kudos

Hi ,

Use the Function Modules .

L_TO_CONFIRM

L_TO_CREATE_SINGLE

L_TO_CREATE_MULTIPLE

Please reward if useful.

colin_cheong
Contributor
0 Kudos

I think i will use the L_TO_CREATE_MULTIPLE.

Thanks