Hi All,
I am trying to build a infoset-query to display multi-level BOM as seen Output .I tried CS_BOM_EXPL_MAT_V2 FM
But if BOM component available In material it is working Good . but I case i am using multi material number and first Material
not have BOM component It is Give DUMP ( NO_PLANT_DATA)
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = sy-datum
EHNDL = '1'
* FBSTP = 'X'
MEHRS = 'X'
MMORY = '1'
MTNRV = itab1-matnr
STLAL = '01'
STPST = 0
WERKS = 'PGDM'"nwerks
* IMPORTING
* TOPMAT =
* DSTST =
TABLES
stb = bomdat
exceptions
NO_BOM_FOUND = 5
.
IF sy-subrc = 5.
*sy-msgty = 'I'.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards
Vicky Kumar