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

about BOM explosions

Former Member
0 Likes
1,291

hello!now i want to explosions one BOM,but that BOM status is '02'.i use the function CS_BOM_EXPL_MAT_V2 to explosions,that can't!what function i should use? thank you!

hello!now i want to explosions one BOM,but that BOM status is '02'.i use the function CS_BOM_EXPL_MAT_V2 to explosions,that can't!what function i should use? thank you!

7 REPLIES 7
Read only

Former Member
0 Likes
1,119

Hi Yang ,

what is that Status ? i havent seen any fields for BOM Status ? are u taking abt usage ?

Regards

Prabhu

Read only

Former Member
0 Likes
1,119

oh!sorry,i said that if the BOM status is '2',i can't use the funtion CS_BOM_EXPL_MAT_V2 to explosions.i ask what funtion i can use.

aside the BOM status field is STLST,in the table AFKO and STKO.

thank you!

Message was edited by: hong yang

Read only

0 Likes
1,119

Hi yang ,

Can u tell me what kind of problems u are facing while using this <b>CS_BOM_EXPL_MAT_V2</b>.

regards

Prabhu

Read only

Former Member
0 Likes
1,119

this code is.

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

aumng = 0

capid = 'PP01'

datuv = sy-datum

mehrs = 'X'

mtnrv = ITAB-MATNR

stlal = '01'

stlan = '1'

werks = p_werks

TABLES

STB = BOM_ITAB

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

conversion_error = 8

others = 9.

if the materiel BOM status is '02',BOM_ITAB is empty,but i go to CS03 this BOM is exist.

Read only

0 Likes
1,119

Hi Yang ,

i think u are not having any alternative BOM so please dont pass STLAL then check u will get the BOM Components.

<b>CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

aumng = 0

capid = 'PP01'

datuv = sy-datum

mehrs = 'X'

mtnrv = ITAB-MATNR

<b>stlal = '01'--->Alternative BOM,commet this one , and check</b>

<b>stlan = '1'---->BOM Usage,

</b>werks = p_werks

TABLES

STB = BOM_ITAB

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

conversion_error = 8

others = 9.</b>

Regards

Prabhu

Read only

Former Member
0 Likes
1,119

flooey!

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

aumng = 0

capid = 'PP01'

datuv = sy-datum

mehrs = 'X'

mtnrv = ITAB-MATNR

stlal = '01'--->Alternative BOM,commet this one , and check

stlan = '1'---->BOM Usage,

werks = p_werks

TABLES

STB = BOM_ITAB

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

conversion_error = 8

others = 9.

stlal = '01' is Alternative BOM not BOM status.

i change stlal = '02' but it can't.

whether have any funtions to explosions the BOM which BOM status is Inactive.

Read only

0 Likes
1,119

hi yang ,

Dont pass any value to that one , Just Commet that export field.

<b>CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

aumng = 0

capid = 'PP01'

datuv = sy-datum

mehrs = 'X'

mtnrv = ITAB-MATNR

*stlal = '01'--->Alternative BOM,commet this one , and check

stlan = '1'---->BOM Usage,

werks = p_werks

TABLES

STB = BOM_ITAB

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

conversion_error = 8

others = 9.</b>

Regards

Prabhu

Regards

Prabhu