Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exploding BOM with out BOM Usage

Former Member
0 Likes
394

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 .

2 REPLIES 2
Read only

Former Member
0 Likes
349

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

Read only

Former Member
0 Likes
349

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...