Hi
I Create query for BOM Explosion by FM 'CS_BOM_EXPL_MAT_V2' for multi material.
Cs13 display report like this :
my query report display like this :
how can i change the query and create abap code for sum of the Component quantity in my query.field related to these
please tell me the code for loop .
this code dosen't work:
TYPES : BEGIN OF ty_STPOX,
MNGLG TYPE STPOX-MNGLG,
IDNRK TYPE STPOX-IDNRK,
END OF ty_STPOX.
DATA : it_STPOX TYPE TABLE OF ty_STPOX,
wa_STPOX TYPE ty_STPOX.
DATA : g_sum TYPE i.
IF sy-subrc EQ 0.
LOOP AT it_STPOX INTO wa_STPOX.
g_sum = g_sum + wa_STPOX-IDNRK.
COMPONENTQUANTITY = g_sum.
ENDLOOP.
CLEAR g_sum.
ENDIF.