Skip to Content

Is there a function to show all raw materials used in BOMs at one plant?

I am looking for a master list of all raw materials used across all of the BOMs in my plant for organization purposes. What is the best way to go about this?

Add a comment
10|10000 characters needed characters exceeded

  • Hi, Peter:

    Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with (if you haven't already), as it provides tips for preparing questions that draw responses from our members.

    Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question -- but if that happens, you can leave more details in a comment).

    Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: By personalizing your profile with a photo of you, you encourage readers to respond.

    Kind regards,


Related questions

1 Answer

  • Posted on Jul 15, 2020 at 08:22 AM


    try the function module given below

          LOOP AT it_mast_t INTO wa_mast_t.
                  capid                 = 'PP01'
                  datuv                 = sy-datum
                  mktls                 = 'X'
                  mehrs                 = 'X'
                  mmory                 = '1'
                  mtnrv                 = wa_mast_t-matnr
                  werks                 = wa_mast_t-werks
                  stb                   = it_stb2
                  matcat                = it_matcat
                  alt_not_found         = 1
                  call_invalid          = 2
                  material_not_found    = 3
                  missing_authorization = 4
                  no_bom_found          = 5
                  no_plant_data         = 6
                  no_suitable_bom_found = 7
                  OTHERS                = 8.
              IF it_stb2[] IS NOT INITIAL.
                LOOP AT it_stb2 INTO wa_stb2.
                  CLEAR wa_mast_f.
                  MOVE-CORRESPONDING wa_stb2 TO wa_mast_f.
                  IF wa_mast_t-stlnr EQ wa_mast_f-stlnr.
                    MOVE : wa_mast_t-matnr TO wa_mast_f-matnr.
                  APPEND wa_mast_f TO it_mast_f.
              SORT it_mast_f.
    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.