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

L_TO_CREATE_MULTIPLE not create unit number

Former Member
0 Likes
1,773

Hello,

I wait that you can understandme because I only speak a little english.

I try to use the bapi L_TO_CREATE_MULTIPLE. I pass the unit number into field nlenr. The transfer orden number (tanum) is ok, however, when I found this tanum the field nlenr is empty. The source storage bin and the others datas are correct.

If I look at T_LTAP_VB I found my unit number.

I try to make it with tcode LT06 and when I palletization the result is ok.

wa_ltap_creat-matnr = wa_ua_a_crear-matnr

wa_ltap_creat-werks = wa_ua_a_crear-werks.

wa_ltap_creat-lgort = wa_ua_a_crear-lgort.

wa_ltap_creat-charg = wa_ua_a_crear-charg.

wa_ltap_creat-anfme = wa_ua_a_crear-anfme

wa_ltap_creat-altme = wa_ua_a_crear-altme.

wa_ltap_creat-letyp = wa_ua_a_crear-letyp.

wa_ltap_creat-nlenr = wa_ua_a_crear-lenum.

append wa_ltap_creat to t_ltap_creat.

CALL FUNCTION 'L_TO_CREATE_MULTIPLE'

EXPORTING

i_lgnum = lgnum

i_bwlvs = '101'

I_BETYP = 'B'

I_BENUM = benum

I_COMMIT_WORK = 'X'

IMPORTING

E_TANUM = tanum

TABLES

t_ltap_creat = t_ltap_creat

T_LTAK = T_LTAK

T_LTAP_VB = T_LTAP_VB

EXCEPTIONS ...

Thank you very much.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,044

Hi,

Please try it in this way by passing only these many data to the function module.

wa_lqua-werks TO wa_ltap_creat-werks,
     wa_lqua-lgort TO wa_ltap_creat-lgort,
     wa_lqua-matnr TO wa_ltap_creat-matnr,
     wa_lqua-charg TO wa_ltap_creat-charg,
     wa_lqua-bestq TO wa_ltap_creat-bestq,
     wa_lqua-sobkz TO wa_ltap_creat-sobkz,
     wa_lqua-sonum TO wa_ltap_creat-sonum,
     wa_lqua-verme TO wa_ltap_creat-anfme,
     wa_lqua-meins TO wa_ltap_creat-altme,
     wa_lqua-lqnum TO wa_ltap_creat-vlqnr,
     wa_lqua-lenum TO wa_ltap_creat-vlenr,
     wa_lqua-lgtyp TO wa_ltap_creat-vltyp,
     wa_lqua-lgpla TO wa_ltap_creat-vlpla.

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.

Regards

Hareesh Menon

Hello,

I wait that you can understandme because I only speak a little english.

I try to use the bapi L_TO_CREATE_MULTIPLE. I pass the unit number into field nlenr. The transfer orden number (tanum) is ok, however, when I found this tanum the field nlenr is empty. The source storage bin and the others datas are correct.

If I look at T_LTAP_VB I found my unit number.

I try to make it with tcode LT06 and when I palletization the result is ok.

wa_ltap_creat-matnr = wa_ua_a_crear-matnr

wa_ltap_creat-werks = wa_ua_a_crear-werks.

wa_ltap_creat-lgort = wa_ua_a_crear-lgort.

wa_ltap_creat-charg = wa_ua_a_crear-charg.

wa_ltap_creat-anfme = wa_ua_a_crear-anfme

wa_ltap_creat-altme = wa_ua_a_crear-altme.

wa_ltap_creat-letyp = wa_ua_a_crear-letyp.

wa_ltap_creat-nlenr = wa_ua_a_crear-lenum.

append wa_ltap_creat to t_ltap_creat.

CALL FUNCTION 'L_TO_CREATE_MULTIPLE'

EXPORTING

i_lgnum = lgnum

i_bwlvs = '101'

I_BETYP = 'B'

I_BENUM = benum

I_COMMIT_WORK = 'X'

IMPORTING

E_TANUM = tanum

TABLES

t_ltap_creat = t_ltap_creat

T_LTAK = T_LTAK

T_LTAP_VB = T_LTAP_VB

EXCEPTIONS ...

Thank you very much.

4 REPLIES 4
Read only

Former Member
0 Likes
1,045

Hi,

Please try it in this way by passing only these many data to the function module.

wa_lqua-werks TO wa_ltap_creat-werks,
     wa_lqua-lgort TO wa_ltap_creat-lgort,
     wa_lqua-matnr TO wa_ltap_creat-matnr,
     wa_lqua-charg TO wa_ltap_creat-charg,
     wa_lqua-bestq TO wa_ltap_creat-bestq,
     wa_lqua-sobkz TO wa_ltap_creat-sobkz,
     wa_lqua-sonum TO wa_ltap_creat-sonum,
     wa_lqua-verme TO wa_ltap_creat-anfme,
     wa_lqua-meins TO wa_ltap_creat-altme,
     wa_lqua-lqnum TO wa_ltap_creat-vlqnr,
     wa_lqua-lenum TO wa_ltap_creat-vlenr,
     wa_lqua-lgtyp TO wa_ltap_creat-vltyp,
     wa_lqua-lgpla TO wa_ltap_creat-vlpla.

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.

Regards

Hareesh Menon

Read only

0 Likes
1,044

Hi Hareesh,

Thank you for your answer.

I suppose that I have to pass the nlenr too.

Read only

0 Likes
1,044

Hi,

I find the problem. The length of the unit number that I pass was the nine positions, but the bapi need a unit number of twenty positions.

Thank you very much.

Read only

0 Likes
1,044

I have the same problem it does not generate the number but the sy-subrc is executed successfully