cancel
Showing results for 
Search instead for 
Did you mean: 

Bin to bin transfer bapi

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

mihailo_sundic
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Dear Kiran ,

kindly try LT10 in  foreground option with  proper filter criteria , please let me know if it matches your expectation.

Thanks

Jinoy

Former Member
0 Kudos

Hi Jinoy

I want to do changes in custom transaction. Also I want that to do bin to bin transfer in one go to different bins.

In LT10 if I select 2 lines I will be able to send it to only one bin

Thanks,

Kiran