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

CS_BOM_EXPL_MAT_V2

Former Member
0 Likes
928

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.

5 REPLIES 5
Read only

Former Member
0 Likes
854

please help.

Read only

Former Member
0 Likes
854

Hi,

This function explode the BOM showing all valid date of the materials.

You can delete the duplicate materials.

Regards,

Fernando

Read only

0 Likes
854

hi pinto,

i am sorry, i didnot understand what you are saying pinto.

can u explain.

thanks.

Read only

Former Member
0 Likes
854

please help me.

Read only

Former Member
0 Likes
854

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