Fonction SAP BAPI_MATERIAL_GETVARNUMBERS - Supply Material Numbers for New Variants of a Generic Material

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MATERIAL BAPIMATALL-MATERIAL C 18 Material number of generic material
MATERIAL_EVG BAPIMGVMATNR u 82 X
REQUIRED_NUMBERS BAPIMATDET-REQ_NUMBERS s 2 Set of variants

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

Paramètre Reférence Long. Facultatif Description
VARIANT_NUMBERS BAPIMATINR 100 Assigned material numbers of variants

Functionality
For a generic material, this methodsupplies numbers for variants.

Description
INCLUDE MATRETURN OBJECT DOKU ID TX

Value range
Type,,ID,,Number,,Message
S,,,,,,The numbers were assigned successfully
E,,M3,,262,,No material number was transferred
E,,MH,,207,,Error assigning the numbers of variants
,,,,,,(please check customer exit MGW00002 if
,,,,,,necessary)
E,,MH,,208,,The number of the generic material does not leave
,,,,,,any space for a variant suffix
E,,MH,,209,,You tried to create more than 999 variants for
,,,,,,the generic material
The field Message contains the message text for the respectivecombination of ID / Number if they contain entries.

Description
INCLUDE MATNUMMER OBJECT DOKU ID TX

Description
Parameter for the long material number
This parameter can be used to transfer long material numbers that cancontain a maximum of 40 characters.
To use this parameter, you must activate the switch for the LAMA (longmaterial number) business function in the system.
The LAMA business function is available as part of the business functionset for DIMP.

Value range
None

Default
None

Description
This value specifies how many new variants are to be created.

Value range
Minimum value: 1
Maximum value: 999

Description
This table contains the material numbers assigned for the new variants.
INCLUDE MATNUMMER OBJECT DOKU ID TX