Fonction SAP BAPI_MATERIAL_GETINTNUMBERRET - Assign New Internal Numbers for a Material Type for Retail Materials

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
INDUSTRY_SECTOR BAPIMATDOA-IND_SECTOR C 1 SPACE X Industry sector
MATERIAL_CATEGORY BAPIE1MATHEAD-MATL_CAT C 2 SPACE X Material category
MATERIAL_GROUP BAPIMATDOA-MATL_GROUP C 9 SPACE X Material group
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 supplies 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. Aninternal number range must also be assigned to the material type.
If the method is ended with an error message, it is possible that partof the material numbers requested have already been assigned. Thesematerial numbers are then contained in the output parameterMATERIAL_NUMBER.

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 MGW00002with component EXIT_SAPLMG72_001. 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
This parameter only has an effect if you use SAP Enhancement MGW00002with component EXIT_SAPLMG72_001. For more information, see thedocumentation for this SAP Enhancement.
For information on the meaning of the material category, see thecorresponding data element documentation:
Material category

Description
This parameter only has an effect if you use SAP Enhancement MGW00002with component EXIT_SAPLMG72_001. For more information, see thedocumentation for this SAP Enhancement.
For information on the meaning of the material group, see thecorresponding data element documentation:
Material group

Description
Transfer the material type with which the new materials are to becreated. The material type determines the number range in which thematerial numbers 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