2011 Mar 16 11:01 AM
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.
2011 Mar 16 11:18 AM
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
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
2011 Mar 16 11:18 AM
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
2011 Mar 16 11:41 AM
Hi Hareesh,
Thank you for your answer.
I suppose that I have to pass the nlenr too.
2011 Mar 17 8:50 AM
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.
2022 Jan 17 12:58 PM
I have the same problem it does not generate the number but the sy-subrc is executed successfully
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |