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

Former Member
0 Likes
653

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 functuion module to display all the components and subcomponents of BOM irresptive of BOM Usage ?

Thanks

Sree.

3 REPLIES 3
Read only

Former Member
0 Likes
566

Try this..

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 "Material

WERKS = WA_MSEG-WERKS "Plant

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.

Read only

Former Member
0 Likes
566

hi

just check out CS_BOM_EXPLOSION or CSAP_MAT_BOM_READ

hope this helps

regards

Aakash Banga

Read only

0 Likes
566

Thanks Karan and Aakash for your replies .

I checked the above function modules , If I am not providing the BOM usage it is defaultly taking as BOM usage 3(Universal ) and it is not displaying materials with BOM usage 2 , K....

Regards

Sreedhar