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

Storage bin search - sample code user exit

Former Member
0 Likes
410

Hi All,

I am writing the user exit to do the following :

When receiving a material in the warehouse search all storage bins for the same material

check if the receiving material can be put in the existing bin if space is left in the existing bin

otherwise get an empty bin

Any sample code would be helpful.

Thanks

Meghna

1 REPLY 1
Read only

Former Member
0 Likes
325

Hi,

You can use following Logic.

1. Fire Select on LQUa with material to get storage Bins

2. Fire query on LGPA to get details of BIN

3. If (Max weight (LGPA-LGEWI) <> Occupied Weight(MGEWI) and Total Cap(LKAPV) <> Cap used(BKAPV)) -- You can consider Bin for use. (If above values not initial)

Hope this helps

Nag

Edited by: Naga Mohan Kummara on Dec 14, 2009 9:49 AM