‎2011 Apr 07 10:02 AM
Hi All,
i have to create a Transfer order using material document number using LT06 transaction.
for this i am using BDC and through BDC i am inserting material document number and year.
insted of BDC i have to use any (bapi or FM) standard function module. for this which function module is used and
what are the parameters need to be passed.
please tell me the way to do this
thanks
kusuma.
‎2011 Apr 07 10:16 AM
Hi Kusuma,
You can use the function module 'L_TO_CREATE_SINGLE'.
CALL FUNCTION 'L_TO_CREATE_SINGLE'
EXPORTING
i_lgnum = lqua-lgnum
i_bwlvs = bwlvs
i_matnr = matnr
i_werks = lqua-werks
i_lgort = lqua-lgort
i_bestq = bestq
i_letyp = letyp
i_anfme = anfme
i_altme = altme
i_vlpla = vlpla
i_vlenr = vlenr
i_nlpla = nlpla
i_nlenr = nlenr
i_commit_work = space
IMPORTING
e_tanum = tanum.You can also use the function module L_TO_CREATE_MULTIPLE.
CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
EXPORTING
i_lgnum = lgnum
i_bwlvs = bwlvs
i_commit_work = c_x
IMPORTING
e_tanum = tanum
TABLES
t_ltap_creat = i_ltap_creat
EXCEPTIONS
error_message = 99.Pass the bellow values to the internal table I_LTAP_CREAT.
nlber
nltyp
nlpla
werks
lgort
matnr
charg
bestq
sobkz
sonum
anfme
altme
vlqnr
vlenr
vltyp
vlplaYou can also try function module L_TO_CREATE_TR.
Regards
HM
‎2011 Apr 07 10:16 AM
Hi Kusuma,
You can use the function module 'L_TO_CREATE_SINGLE'.
CALL FUNCTION 'L_TO_CREATE_SINGLE'
EXPORTING
i_lgnum = lqua-lgnum
i_bwlvs = bwlvs
i_matnr = matnr
i_werks = lqua-werks
i_lgort = lqua-lgort
i_bestq = bestq
i_letyp = letyp
i_anfme = anfme
i_altme = altme
i_vlpla = vlpla
i_vlenr = vlenr
i_nlpla = nlpla
i_nlenr = nlenr
i_commit_work = space
IMPORTING
e_tanum = tanum.You can also use the function module L_TO_CREATE_MULTIPLE.
CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
EXPORTING
i_lgnum = lgnum
i_bwlvs = bwlvs
i_commit_work = c_x
IMPORTING
e_tanum = tanum
TABLES
t_ltap_creat = i_ltap_creat
EXCEPTIONS
error_message = 99.Pass the bellow values to the internal table I_LTAP_CREAT.
nlber
nltyp
nlpla
werks
lgort
matnr
charg
bestq
sobkz
sonum
anfme
altme
vlqnr
vlenr
vltyp
vlplaYou can also try function module L_TO_CREATE_TR.
Regards
HM
‎2011 Apr 08 3:17 PM
Hi HM,
thanks for replay
that is done by using FM "L_TO_CREATE_POSTING_CHANGE"
many many thanks...........................
‎2011 Apr 07 10:31 AM
Hi Kusuma,
try FM L_TO_CREATE_DN. pass MBLNR, MJAHR to tables parameters T_LTAK.
Regards,
Sravan.