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

BOM Components

Hi ,

How can i determine that a material number is a BOM and if that is the case then how can i find the components of it.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jun 09, 2005 at 07:36 PM

    First hit against the MAST table with the material number. Then hit against STPO with the internal BOM number to get the components. There are also some function modules that will do this to.

    data: xmast type mast.
    data: istpo type table of stpo with header line.
    Select Single * from mast
                  where matnr = p_matnr.
    If sy-subrc = 0.
    Write:/ 'This material has a BOM'.
    Write:/ 'No BOM found'.
    write:/ 'Components'.
    select * into corresponding fields of table istpo
            from stpo
                 where stlnr = xmast-stlnr.
    loop at istpo.
    write:/ istpo-idnrk.


    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Arun,

      I know you have marked this problem as solved, but in the case where you have multiple level BOMS, just selecting using the tables mast/istpo is not going to get the full list (not unless you recurse the selects).

      I would recommend going straight for the function: CS_BOM_EXPL_MAT_V2 (think spelling is correct).

      This way you'll get full explosion (for the specified plant also!).



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.