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

Need help

Former Member
0 Likes
668

Hi,

I want to get the TOTAL Stock from MMBE Transaction when i enterd the material. When I am taking the Total Stock , it is coming at Sto loc level, but i want the Stock at plant level.

select matnr

werks

labst

from mard

into table it_mard

for all entries in lit_ipgbau

where matnr = lit_ipgbau-nrmit "Material no.

and werks = lit_ipgbau-wemit. "Plant

  • Reading data

clear it_mard.

read table it_mard with key matnr = it_ipgbau-nrmit

werks = it_ipgbau-wemit

binary search.

IF sy-subrc = 0.

it_alv_data-labst = it_mard-labst.

endif.

regards,

Ajay Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
647

Hello Ajay,

Plant level stock

just check with MARD Table field name called LABST ( There is no stock at plant level),everything should come Storage location level.

5 REPLIES 5
Read only

Former Member
0 Likes
648

Hello Ajay,

Plant level stock

just check with MARD Table field name called LABST ( There is no stock at plant level),everything should come Storage location level.

Read only

0 Likes
647

Hello Seshu,

How can we calculatethe all Stock in Storage Locations.I want display that stock in report. Need logic for this.

regards,Ajay Ram

Read only

MohanChauhan
Product and Topic Expert
Product and Topic Expert
0 Likes
647

Hi,

Stocks are at the Storage location only.

But from MARD you can get all the storage location for a plant ( along with material ) and

then total all the material quantity where plant = <selected plant> irrespective of storage location.

Regards,

Mohan

Read only

0 Likes
647

you can get the value from MARD Table - Field name is LABST

based on plant = ur value -> check with MD04 Transaction.

Thanks

Seshu

Read only

Former Member
0 Likes
647

Hi.

LABST for "Valuated Unrestricted-Use Stock",then only its taking with total stock.

if you want plant level please check your filed for plant level.

Regards.

Jay