2014 Oct 08 5:24 AM
Hi,
I want to find finished materials,so am using this function module
data: it_stpo standard table type of stpox
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
capid = 'PP01'
datuv = sy-datum
emeng = WA_FINAL-menge_i"W_ERFMG
mktls = 'X'
mehrs = 'X'
mtnrv = WA_FINAL-imatnr "W_MATNR2
stlal = w_stlal
werks = WA_FINAL-werks_i"W_WERKS
TABLES
stb = it_stpo
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.
ENDIF.
in this internal table it_stpo (stpox table) which one is finished material.
and PP01 is standard or any reason to use this as capid.????
2014 Oct 08 5:42 AM
2014 Oct 08 5:50 AM