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

Create transfer order using material document number

Former Member
0 Likes
6,786

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,661

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
vlpla

You can also try function module L_TO_CREATE_TR.

Regards

HM

3 REPLIES 3
Read only

Former Member
0 Likes
2,662

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
vlpla

You can also try function module L_TO_CREATE_TR.

Regards

HM

Read only

0 Likes
2,661

Hi HM,

thanks for replay

that is done by using FM "L_TO_CREATE_POSTING_CHANGE"

many many thanks...........................

Read only

former_member215575
Active Participant
0 Likes
2,661

Hi Kusuma,

try FM L_TO_CREATE_DN. pass MBLNR, MJAHR to tables parameters T_LTAK.

Regards,

Sravan.