REPORT Z_BAPI_MATERIAL.
 PARAMETERS: P_MATNR TYPE MARA-MATNR.
DATA : MAT_DATA TYPE BAPIMATDOA.

START-OF-SELECTION.
  CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL' "get material details
    EXPORTING
      MATERIAL              = P_MATNR
*     PLANT                 =
*     VALUATIONAREA         =
*     VALUATIONTYPE         =
*     MATERIAL_EVG          =
    IMPORTING
      MATERIAL_GENERAL_DATA = MAT_DATA
*     RETURN                =
*     MATERIALPLANTDATA     =
*     MATERIALVALUATIONDATA =.

  WRITE: / MAT_DATA-MATL_DESC, MAT_DATA-MATL_TYPE, 
MAT_DATA-IND_SECTOR, MAT_DATA-MATL_GROUP.
 
 
 
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP MM SD Consultant
Contact : serkurumsal@yandex.com