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 range.

Former Member
0 Likes
1,042

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.

7 REPLIES 7
Read only

former_member194669
Active Contributor
0 Likes
856

Hi,

Check for fm BAPI_WHSE_STOCK_GET_LIST

aRs

Read only

Former Member
0 Likes
856

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.

Read only

Pawan_Kesari
Active Contributor
0 Likes
856

select from table LAGP for given storage location bin

Read only

Former Member
0 Likes
856

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.

Read only

0 Likes
856

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

Read only

0 Likes
856

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?

Read only

Former Member
0 Likes
856

Answered