cancel
Showing results for 
Search instead for 
Did you mean: 

CS_BOM_EXPL_MAT_V2

Former Member
0 Kudos

for exploding BOM for item at plant, what parameters do I need to fill in in the input parameters of the BAPI

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

These are the parameters to be passed -

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

AUSKZ = 'X'

CAPID = 'PP01'

DATUV = SY-DATUM

EMENG = E_MENGE1

RNDKZ = '3'

MKTLS = 'X'

MEHRS = ' '

MTNRV = MATNR

WERKS = WERKS

TABLES

STB = STPOX

MATCAT = CSCMAT

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.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

I get exception 'NO BOM FOUND', whereas I have maintained BOM in cs03, what could be missing

Former Member
0 Kudos

Hi,

In the FM, there is an exception parameters to catch these errors

TABLES

stb =

EXCEPTIONS

NO_BOM_FOUND = 5.

Include this exception line marked in BOLD letters in your pgm. This should solve your issue.

Reward points if it helps.

Regards,

JLN

david_manras
Explorer
0 Kudos

Hello,

whit this function, when I've exploded the bill material, is not included the material what I pass as argument, i.e. the field MTNRV. Is there some parameter to include this material in the table STB?

Thanks in advance

Regards