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

how to calculate the bom component qunatity based on the component Material

hi expects,

How to calculate the bom quantity based on the component material(stpo-idnrk), like same as the standard tcode CS12 or CK13N. how the calculation has done for the standard tcode.

can any one reply for this thread with the correct answer.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 04:04 AM

    Hi,

    Whether you want to calculate STPO-MENGE by 'Ebeln' wise or 'Matnr' wise.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 04:40 AM

    Use FM 'CS_BOM_EXPLOSION_MAT' , It will give u all the components with quantity.

    CALL FUNCTION 'CS_BOM_EXPLOSION_MAT'
                EXPORTING
                  CAPID                 = 'PP01'
                  DATUV                 = SY-DATUM
                  MEHRS                 = 'X'
                  MTNRV                 = WA_TEMP-MATNR
                  WERKS                 = WA_TEMP-WERKS
                TABLES
                  STB                   = I_STB
                EXCEPTIONS
                  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 SY-SUBRC <> 0.
              ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 30, 2009 at 04:44 AM

    Hi,

    Refer FM CS_WHERE_USED_MAT

    Pass the material number (stpo-idnrk) and check the internal table returned.

    Hope this helps you.

    Regards,

    Tarun

    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.