Skip to Content
avatar image
Former Member

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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded