‎2008 Apr 29 4:03 PM
hi frinds,
i am using below code,
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = sy-datum
MKTLS = 'X'
MEHRS = 'X'
MTNRV = '1E0061790000'
STLAL = '01'
STLAN = '1'
STPST = 0
SVWVO = 'X'
WERKS = '0306'
VRSVO = 'X'
TABLES
STB = t_stb
MATCAT = t_matcat
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
.
the abaove code was supposed to produce same output as CS12.
when i am using the above code,
t_stb had as many records as output of CS12 for teh same matnr.
but i could not get the material numbers of individual record.
can some one help.
‎2008 Apr 29 4:48 PM
‎2008 Apr 29 5:02 PM
Hi,
This function explode the BOM showing all valid date of the materials.
You can delete the duplicate materials.
Regards,
Fernando
‎2008 Apr 29 5:09 PM
hi pinto,
i am sorry, i didnot understand what you are saying pinto.
can u explain.
thanks.
‎2008 Apr 29 6:09 PM
‎2008 Apr 29 6:27 PM
Sanjana,
I can give you some suggestion....
try to check only one of the exporting parameters instead of multiple like
MEHRS = 'X'
and comment the remaining and c..
MKTLS = 'X'
SVWVO = 'X'
VRSVO = 'X'
comment those once and check... u may get some idea