Skip to Content
0
Former Member
Jun 10, 2009 at 12:49 PM

Not able to get multi level BOM from FM,CS_BOM_EXPL_MAT_V2.

1445 Views

Hi abapers,

I want to develop a report as like multi level bom(for costing pupose).I used function module CS_BOM_EXPL_MAT_V2.But, my problem is i couldnt get all the child items.It gives only the sinle level items.can anyone suggest some ideas plz.

I have passed the parameters as like below.

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'

EXPORTING

AUMNG = 0 "Scrap quantity

CAPID = 'PP01' "Required Field - Application ID

CUOBJ = 000000000000000 "Configuration

CUOVS = 0 "CUOBJ-Version

DATUV = SY-DATUM " '01072006' "Required Field

FBSTP = 'X' "Limited multi-level - stop explosion at externally procured item

MKTLS = 'X' "Material description to pick up

MDMPS = 'X' "Limited multi-level - explode phantom assemblies at least

MEHRS = 'X' "Multi-level explosion

SALWW = 'X' "eingeschr. mehrst.; Stopp bei Werkswechsel allg.

MTNRV = mat_code "Required Field

RNDKZ = '1' "Round off: ' '=always, '1'=never, '2'=only levels > 1

STPST = 0 " Maximum explosion level.

SVWVO = 'X'

VRSVO = 'X' "priority f. entered Production version

TABLES

STB = 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 SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thanks in advance.