‎2009 Jan 16 10:43 AM
Hi ,
I exploded the BOM the irresepective of BOM Usage(STLAN) . I used the Function module CS_BOM_EXPL_MAT_V2 ( by not passing the STLAN ) But it is returning the Components of only BOM usage 3(Universal ) . But I need the all the BOM components with all BOM Usages .
is there any function module other than CS_BOM_EXPL_MAT_V2 ?
Regards
Sree .
‎2009 Jan 16 10:51 AM
hi,
FM: CSAP_MAT_BOM_CREATE OR
CS_BOM_EXPL_EQU_V2
CS_BOM_EXPL_MAT_V2
CSAP_MAT_BOM_READ
'CS_WHERE_USED_MAT'
http://allian.uclv.net/saphelp/helpdata/EN/c6/893b3b449311d1893e0000e8323c4f/frameset.htm
thanks
‎2009 Jan 16 11:32 AM
Use FM 'CS_BOM_EXPLOSION_MAT'
***BOM explosion
CALL FUNCTION 'CS_BOM_EXPLOSION_MAT'
EXPORTING
CAPID = 'PP01'
DATUV = SY-DATUM
MEHRS = 'X'
MTNRV = WA_MSEG-MATNR
WERKS = WA_MSEG-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.
Hope this helps...