Application Development 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: 

Creation of TO using 'L_TO_CREATE_MULTIPLE' greater then pallet quantity.

0 Kudos

Hello Friends,

When we are trying to create a TO (transfer order ) using FM 'L_TO_CREATE_MULTIPLE' for greater then pallet quantity/size of a material it is given me message in u201Cinsufficient quantityu201D. But there are many pallets for the material available in WH for picking.

Ex: Material = A ; Pallet size = 100 units when trying to create a TO for 1000 it gives me error mesg.

On the other hand same thing works fine when we do it directly through Tcode LT01. LT01 creates a TO with multiple line items.Can any one please let me know why the FM is not working.

Thank you,

Prashanth A.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI

Check whether you have passed all of the required parameters. Here is the sample code.

check this.

CALL FUNCTION 'L_TO_CREATE_MULTIPLE'

EXPORTING

i_lgnum = wa_tr_head-lgnum

i_bwlvs = c_bwlvs

i_betyp = c_betyp

i_benum = wa_tr_head-benum

i_commit_work = c_commitwork

i_bname = wa_tr_head-bname

i_kompl = c_kompl

i_solex = 0

i_pernr = 0

IMPORTING

e_tanum = l_tanum

TABLES

t_ltap_creat = t_ltap_creat

EXCEPTIONS

no_to_created = 1

bwlvs_wrong = 2

betyp_wrong = 3

benum_missing = 4

betyp_missing = 5

foreign_lock = 6

vltyp_wrong = 7

vlpla_wrong = 8

vltyp_missing = 9

nltyp_wrong = 10

nlpla_wrong = 11

nltyp_missing = 12

rltyp_wrong = 13

rlpla_wrong = 14

rltyp_missing = 15

squit_forbidden = 16

manual_to_forbidden = 17

letyp_wrong = 18

vlpla_missing = 19

nlpla_missing = 20

sobkt_wrong = 21

sobkt_missing = 22

sonum_missing = 23

bestq_wrong = 24

lgber_wrong = 25

xfeld_wrong = 26

date_wrong = 27

drukt_wrong = 28

ldest_wrong = 29

update_without_commit = 30

no_authority = 31

material_not_found = 32

lenum_wrong = 33

matnr_missing = 34

werks_missing = 35

anfme_missing = 36

altme_missing = 37

lgort_wrong_or_missing = 38

OTHERS = 39.

Thanks

Renuka.

3 REPLIES 3

Former Member
0 Kudos

HI

Check whether you have passed all of the required parameters. Here is the sample code.

check this.

CALL FUNCTION 'L_TO_CREATE_MULTIPLE'

EXPORTING

i_lgnum = wa_tr_head-lgnum

i_bwlvs = c_bwlvs

i_betyp = c_betyp

i_benum = wa_tr_head-benum

i_commit_work = c_commitwork

i_bname = wa_tr_head-bname

i_kompl = c_kompl

i_solex = 0

i_pernr = 0

IMPORTING

e_tanum = l_tanum

TABLES

t_ltap_creat = t_ltap_creat

EXCEPTIONS

no_to_created = 1

bwlvs_wrong = 2

betyp_wrong = 3

benum_missing = 4

betyp_missing = 5

foreign_lock = 6

vltyp_wrong = 7

vlpla_wrong = 8

vltyp_missing = 9

nltyp_wrong = 10

nlpla_wrong = 11

nltyp_missing = 12

rltyp_wrong = 13

rlpla_wrong = 14

rltyp_missing = 15

squit_forbidden = 16

manual_to_forbidden = 17

letyp_wrong = 18

vlpla_missing = 19

nlpla_missing = 20

sobkt_wrong = 21

sobkt_missing = 22

sonum_missing = 23

bestq_wrong = 24

lgber_wrong = 25

xfeld_wrong = 26

date_wrong = 27

drukt_wrong = 28

ldest_wrong = 29

update_without_commit = 30

no_authority = 31

material_not_found = 32

lenum_wrong = 33

matnr_missing = 34

werks_missing = 35

anfme_missing = 36

altme_missing = 37

lgort_wrong_or_missing = 38

OTHERS = 39.

Thanks

Renuka.

0 Kudos

Thank you for reply this is exactly the way I am call this FM . is there any specify parameter which need to passed or any configuration which needs to be done. Actually it should pick up all pallet up the quantity passed to FM and create a TO.

While creating a TO using LT01 I am use Storage Type as *** so based on search strategy it search all the storage type and picks up the pallet and then create a TO.

Thank you.

bruno_bazzoli2
Explorer
0 Kudos

After 14 years I am facing the same problem... is there a way to solve this?