Function Module get material details
This function Module get material detail description
TYPES :BEGIN OF ty_mseg,
mtart TYPE mara-mtart.
INCLUDE STRUCTURE mseg.
TYPES : END OF ty_mseg.
DATA:mat_ge_data TYPE bapimatdoa,
return TYPE bapireturn,
mat_plant_data TYPE bapimatdoc,
mat_val_data TYPE bapimatdobew.
LOOP AT git_mseg ASSIGNING <fs_mseg>.
CLEAR:mat_ge_data,return,mat_plant_data,mat_val_data.
CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
EXPORTING
material = <fs_mseg>-matnr
plant = <fs_mseg>-werks
valuationarea = <fs_mseg>-werks
* VALUATIONTYPE =
* MATERIAL_EVG =
IMPORTING
material_general_data = mat_ge_data
return = return
materialplantdata = mat_plant_data
materialvaluationdata = mat_val_data.
<fs_mseg>-mtart = mat_ge_data-matl_type.
ENDLOOP.
Comments
Post a Comment