Application Development 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: 

Storage bin range.

Former Member
0 Kudos

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

former_member194669
Active Contributor
0 Kudos

Hi,

Check for fm BAPI_WHSE_STOCK_GET_LIST

aRs

Former Member
0 Kudos

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.

Pawan_Kesari
Active Contributor
0 Kudos

select from table LAGP for given storage location bin

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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?

Former Member
0 Kudos

Answered