Fonction SAP BAPI_STDMATERIAL_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
This method provides a set (to be determined) of new internallyassigned numbers for a material type.

Notes
To use these functions, you require the authorization for the materialtype.
Internal number assignment must be allowed for this material type. Thisrequires an internal number range to be assigned to the material type.
If the method ends with an error message, part of the material numbersrequested may already have been assigned. These material numbers arecontained in the output parameter MATERIAL_NUMBER.

Description
INCLUDE MATRETURN OBJECT DOKU ID TX

Value range
Type,,ID,,Number,,Explanation
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 has been
,,,,,,transferred for the set of numbers required.
E,,M3,,098,,No material type has been transferred.
E,,M3,,104,,An unknown material type has been 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 entries.

Description
This parameter is effective only 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 in which the new materials are to becreated. The number range in which the numbers are assigned is definedby the material type.
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

592229MC84: Create product group with generated material number