Skip to Content

How to retrive warehouse number with PO or Plant & Storage Location

Oct 03, 2017 at 12:12 AM


avatar image

Dear SDN mates

I came across a different scenario.

I wanted to retrieve warehouse number(LGNUM) based on PO (EBELN).

I tried with Plant(WERKS) & Storage location(LGORT) but not able to get the values.

Unfortunately my MSEG will not have all the Open POs.

I tried with T320 but it does not have all the values in it.

Is there a table or FM to get this warehouse number(LGNUM).

Could some through lights if you have come across this situation.

Thanks in advance for your help..!


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Jürgen L
Oct 03, 2017 at 08:37 AM

The customizing table T320 is the only table that knows about a connection from the combination of plant and storage location to a warehouse.

I have no idea what you want to say with your statement "Unfortunately my MSEG will not have all the Open POs." - of course it will not as MSEG has movements and open PO are still expecting a movement otherwise they were not open.

And many POs may not yet have a storage location as it is not mandatory to have it in the PO, if the warehouse is in the same premise as your plant and next to other storage location then it is still up to the receiver into which location he might want to store the new arrivals.

Without a storage location in the PO you can't make any prediction and can't know about the warehouse number.

If you need that then explain your functional pendant to either make the storage location mandatory or to make at least a default of a certain location via the material master field marc-lgfsb storage location for external procurement

10 |10000 characters needed characters left characters exceeded