can anybody tell me which function i should use for explosion of BOM and which parameters I have to pass ??? Mostly i want to pass only material No and Plant or BOM no.
(I had already tried CS_BOM_EXPL_MAT_V2 by passing Material No & Plant No but it gives invalid call)
As per my knowledge some more parameters are needed to be passed
below is that call function that I had used...that might help you
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
aumng = 0
capid = 'PP01'
datuv = sy-datum
emeng = 1
mktls = 'X'
mehrs = 'X'
mtnrv = itab1-assly " i.e. as per my code
stlal = '01'
stlan = '1'
stpst = 0
svwvo = 'X'
werks = itab1-werks " i.e. Plant
stb = tstb
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1
SY-MSGV2 SY-MSGV3 SY-MSGV4.