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: 

FM or BAPI for Create TO

Former Member
0 Kudos
1,020

Hi gurus,

I am new when it comes to TO.Can you please help me regarding TO. What are the FM and BAPI that can be used for creating TO?

Also, my problem is that I can create Material Document and I dont know what could be the problem.

I hope someone can help me.

Thanks in advance.

3 REPLIES 3

Former Member
0 Kudos
219

Use this function module to create TO (transaction LT01)

CALL FUNCTION 'L_TO_CREATE_SINGLE'

EXPORTING

i_lgnum = ti_lqua-lgnum

i_bwlvs = l_bwlvs

i_matnr = zwwmugeori-matnr

i_werks = ti_lqua-werks

i_lgort = ti_lqua-lgort

i_bestq = l_bestq

i_letyp = l_letyp

i_anfme = l_anfme

i_altme = l_altme

i_vlpla = l_vlpla

i_vlenr = l_vlenr

i_nlpla = l_nlpla

i_nlenr = l_nlenr

i_commit_work = space

IMPORTING

e_tanum = l_tanum.

Hope it helps.

0 Kudos
219

Hi,

Can you suggest other way because I need the Material Document (FIELD- MBLNR)?

Thanks in advance.

Former Member
0 Kudos
219

L_TO_CREATE_2_STEP_PICKING

L_TO_CREATE_DN Create a transfer order for delivery note

L_TO_CREATE_DN_MULTIPLE

L_TO_CREATE_MOVE_SU Create transfer order for moving storage units

L_TO_CREATE_MULTIPLE

L_TO_CREATE_POSTING_CHANGE Create transfer order for posting change

L_TO_CREATE_SINGLE Create a transfer order with one item

L_TO_CREATE_TR Create a transfer order for transfer requirement