Skip to Content

CSAP_MAT_BOM_READ Call

Hi all,

Have a query regarding the "CSAP_MAT_BOM_READ" call

CALL FUNCTION 'CSAP_MAT_BOM_READ'

EXPORTING

material = wa_mast-matnr(For Example : 123456)

plant = wa_mast-werks

bom_usage = wa_mast-stlan

alternative = wa_mast-stlal

valid_from = v_fdate

valid_to = v_tdate

TABLES

t_stpo = itab1

t_stko = itab2

EXCEPTIONS

error = 1

OTHERS = 2.

For Example if I pass meaterial number '123456' into the above FM as input parameter.

Does stko-BOM_NO give me 123456(The root BOM).if not which is the field to get the root meaterial number.

Does stpo-COMPONENT give me the child meaterial Number.What does stpo-BOM_NO give me.

if the above is not true,which is the stpo field which give me the child meaterial number.

Does t_stko abd t_stpo have to be passed with itab parameters.

Is that also so to understand that in stko itab there will be only 1 entry corresponding to the root BOM and

stpo itab conatins as many rows or entries as there are child componenets from the root BOM.

Thanks

P

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2010 at 11:15 AM

    Hi,

    You will get the BOM number in T_STPO-BOM_NO

    and in T_STPO- COMPONENT you will get the child bom number.

    you have to pass data in MATERIAL,PLANT and BOM_USAGE in import tab to get all the details.

    Hope it helps.

    Regards

    Hiren K.Chitalia

    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.