Fonction SAP BAPI_MATERIAL_GETINTNUMBER - Assign New Internal Numbers for a Material Type

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
INDUSTRY_SECTOR BAPIMATDOA-IND_SECTOR C 1 SPACE X Industry sector
MATERIAL_TYPE BAPIMATDOA-MATL_TYPE C 4 Material type
REQUIRED_NUMBERS BAPIMATALL-REQ_NUMBERS b 1 1 X Set of material numbers required

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

Paramètre Reférence Long. Facultatif Description
MATERIAL_NUMBER BAPIMATINR 100 Material numbers assigned

Functionality
In future, this method will no longer be supported for the object typeMaterial (BUS1001). A method of the same name is available inits place in the object type Standard Material (BUS1001006). Forretail materials, the corresponding method in object type RetailMaterial (BUS1001001) must still be used.

Description
INCLUDE MATRETURN OBJECT DOKU ID TX

Value range
Type,,ID,,Number,,Message
S,,,,,,Numbers assigned successfully.
E,,MM,,042,,The material with the number
,,,,,,assigned already exists in the
,,,,,,database.
E,,MM,,351,,A value outside the range allowed
,,,,,,was transferred for the set of
,,,,,,numbers required.
E,,M3,,098,,No material type was transferred.
E,,M3,,104,,An unknown material type was
,,,,,,transferred.
E,,M3,,319,,Internal number assignment is not
,,,,,,defined for the material type
,,,,,,transferred.
E,,M3,,851,,No authorization for this
,,,,,,material type.
The field Message contains the message text for the respectivecombination of ID / Number if they contain values.

Description
This parameter only has an effect if you use SAP Enhancement MGA00002with component EXIT_SAPLMG02_002. For more information, see thedocumentation for this SAP Enhancement.
For information on the meaning of the industry sector, see thecorresponding data element documentation:
Industry sector

Description
Transfer the material type with which you want to create the newmaterials. The material type determines the number range in which thenumbers are assigned.
For more information on the meaning of the material type, see thecorresponding data element documentation:
Material type

Description
This parameter determines how many numbers are assigned.

Value range
Minimum value: 1
Maximum value: 255

Default
1

Description
This table contains the material numbers assigned internally.
INCLUDE MATNUMMER OBJECT DOKU ID TX