12-21-2007 8:53 AM
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.
12-21-2007 3:29 PM
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.
12-26-2007 7:15 AM
Hi,
Can you suggest other way because I need the Material Document (FIELD- MBLNR)?
Thanks in advance.
12-26-2007 7:29 AM
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