Skip to Content
author's profile photo Former Member
Former Member

Material group wise stock

Hi,

I need to get batches at a sloc,for a plant for a material group.

Any FM will be appreciated.

Thanks..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2007 at 03:23 PM

    Hi,

    I think Tcode: MB5B may help you.Please check.

    Hope this is useful.

    Please reward if helpful.

    Thanks,

    Srinivasa

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 23, 2007 at 03:30 PM

    HI Aries,

    Get all the material numbers for a material group form MARA.

    select matnr from mara into table it_mara where matkl = P_matkl.

    Get the batches from MCHB for the material, storage location and plant combination.

    if not it_mara[] is initial.

    select * from mchb into table it_mchb

    for all entries in it_mara

    where matnr = it_mara-matnr

    and werks in s_werks "Select-option for plant

    and lgort in s_lgort. "Select-option for Storage Location

    endif.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.