Fonction SAP BAPI_MATERIAL_GETCOMPONENTS - Break down structured materials

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MATERIAL BAPIMATALL-MATERIAL C 18 Material No.
MATERIAL_EVG BAPIMGVMATNR u 82 X
UNIT BAPICOMP-UNIT C 3 X Unit of measure
UNIT_ISO BAPICOMP-UNIT_ISO C 3 X ISO unit of measure

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Return value

Paramètre Reférence Long. Facultatif Description
COMP_ITEMS BAPICOMP 113 Return table

Functionality
This method breaks down a structured material into its components. Thematerial number of the structured material, the SAP unit of measure,and the ISO unit of measure, can be transferred to the method. Thecomponents are returned in a list showing the quantity ratios. Thecomponent quantities are converted to the unit of measure entered forthe structured material.
The method always returns the ISO unit of measure if one exists for theSAP unit of measure.

Notes
Messages are returned in the RETURN paramter. See this parameterdocumentation for the return values and their meaning.

Description
This structure is used to return the Return code to the callingprogram.
For information on the meaning of the individual fields in thestructure, see the relevant data element documentation.

Default
TYPE ID NUMBER Explanation
blank blank blank Components found successfully
E WM 459 No components were found for the
structured material
E WM 460 Neither unit of measure parameter
nor ISO unit of measure parameter
contains data

Description
The material number of the structured material is used for this value.
The parameter is compulsory.

Description
Parameter for the long material number.
You can use this parameter to transfer long material numbers with amaximum length of up to 40 characters.
To be able to use this parameter, you must activate the switch for thebusiness function LAMA (long material number) in the system.
The business function LAMA is available as a component of the businessfunction set for DIMP.

Value range

Description
This value indicates the SAP unit of measure.
Either the SAP unit of measure or the ISO unit of measure must beentered.
The SAP unit of measure is converted to the ISO unit of measure, if anISO unit of measure exists, and is returned to the return structure.

Description
This value indicates the ISO unit of measure.
Either the ISO unit of measure or the SAP unit of measure must beentered.
The ISO unit of measure is converted to the SAP unit of measure and isreturned to the return structure.

Description
This table contains the components found for the structured material.
The structure of the table can be seen in the Dictionary.