2006 Jul 15 7:39 AM
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!
2006 Jul 15 7:46 AM
Hi Yang ,
what is that Status ? i havent seen any fields for BOM Status ? are u taking abt usage ?
Regards
Prabhu
2006 Jul 15 7:57 AM
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
2006 Jul 15 8:12 AM
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
2006 Jul 15 8:22 AM
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.
2006 Jul 15 8:30 AM
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
2006 Jul 15 8:54 AM
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.
2006 Jul 15 9:26 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |