on 06-12-2014 11:31 AM
Hi Friends,
In one customised tcode I want to have functionality to move sales order specific stock to different storage type & Bin.
So if the stock is luying in 5 bins for speciifc sales order 8552442 item 0010. I wan to move stock in one go to different bins
Pop up I am planning is as below
From Bin To Bin
xxx aaa ( This will be put manually by the User)
yyy bbb ( This will be put manually by the User)
zzz ccc ( This will be put manually by the User)
I want to have only one TO for this
I am confused whether I need to use bapi L_TO_CREATE_SINGLE or L_TO_CREATE_MULTIPLE.
Thanks,
Kiran
with a small modification in LT10 it is possible to allow individual target bins per item.
the only difference between L_TO_CREATE_SINGLE and L_TO_CREATE_MULTIPLE
is that you create a TO with only 1 item in the first function module, while it is possible to create a TO with many items with L_TO_CREATE_MULTIPLE.
Try your case in LT01 and decide which one would suit your scenario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For TO creation you can use an example like below:
call function 'L_TO_CREATE_SINGLE'
exporting
i_lgnum = wh_number "Warehouse number
i_bwlvs = '999' "MvT999
i_matnr = lqua-matnr "Material no.
i_werks = lqua-werks "Plant
i_lgort = lqua-lgort "Storage location
i_anfme = lqua-verme "Requested Qty
i_altme = lqua-meins "Unit of measure
i_letyp = ltap-letyp "SU Type
i_vlpla = lqua-lgpla "Source storage bin
i_vlqnr = lqua-lqnum "Quant
i_vltyp = lqua-lgtyp "Source storage type
i_nlpla = ltap-nlpla "Destination storage bin
i_nltyp = v_nltyp "Destination storage type
i_squit = squit
importing
e_tanum = l_tanum
e_ltap = l_ltap
exceptions
no_to_created = 1
benum_missing = 2
bwlvs_wrong = 3
betyp_missing = 4
foreign_lock = 5
vltyp_wrong = 6
vlpla_wrong = 7
vltyp_missing = 8
nltyp_wrong = 9
nlpla_wrong = 10
nltyp_missing = 11
rltyp_wrong = 12
rlpla_wrong = 13
rltyp_missing = 14
squit_forbidden = 15
manual_to_forbidden = 16
letyp_wrong = 17
vlpla_missing = 18
nlpla_missing = 19
sobkz_missing = 20
sonum_missing = 21
bestq_wrong = 22
lgber_wrong = 23
xfeld_wrong = 24
date_wrong = 25
drukz_wrong = 26
ldest_wrong = 27
update_without_commit = 28
no_authority = 29
material_not_found = 30
lenum_wrong = 31
others = 32.
You can call this FM more than once if you want to transfer more items,
or you can call L_TO_CREATE_MULTIPLE if you want to create more items
in one FM call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Kiran ,
kindly try LT10 in foreground option with proper filter criteria , please let me know if it matches your expectation.
Thanks
Jinoy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.