08-21-2007 2:23 PM
Hi, everybody, How can i do to obtein the range of storage bin locations, if i have the from storage and the to storage? Regards.
08-21-2007 2:45 PM
08-21-2007 3:32 PM
But i dont have the material, the only data that i have is the lgpla start and lgpla end and i need all the storage bin between them. Regards.
08-21-2007 3:35 PM
08-21-2007 3:41 PM
I dont know how with a starter lgpla and end lgpla i can obtein all the storage locations between them. I find the t343 table but i dont know how to use it.
08-21-2007 3:51 PM
please try this code ... just replace the value 'TEST1' and 'TEST3' with you start storage location bin and end storage location bin
REPORT zpwtest .
TYPES : BEGIN OF ty_strg,
lgpla TYPE lagp-lgpla,
END OF ty_strg.
DATA : it_strg TYPE TABLE OF ty_strg ,
wa_strg TYPE ty_strg .
RANGES : r_lgpla FOR lagp-lgpla .
DATA : from_bin TYPE lagp-lgpla VALUE 'TEST1' ,
to_bin TYPE lagp-lgpla VALUE 'TEST3' .
START-OF-SELECTION .
r_lgpla-sign = 'I' .
r_lgpla-option = 'BT' .
r_lgpla-low = from_bin .
r_lgpla-high = to_bin .
APPEND r_lgpla .
SELECT lgpla
INTO TABLE it_strg
FROM lagp
WHERE lgpla IN r_lgpla .
LOOP AT it_strg INTO wa_strg .
WRITE : / wa_strg-lgpla .
ENDLOOP.
Message was edited by:
Pawan Kesari
08-21-2007 4:10 PM
Sorry but my knowledge in WM is poor. With this query i obtein the storage bin between the start and end storage bin, but are they the storage bins that i have to visit in a fisic inventory count if have they give me the star storage bin and the end storage bin?
09-29-2008 3:39 PM