Ansicht
Dokumentation

COM_PRODUCT_ENHNC01 - Influence Internal Number Assignment

COM_PRODUCT_ENHNC01 - Influence Internal Number Assignment

Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

This enhancement can be used to assign a number internally according to customer-defined rules.

If this enhancement has been implemented actively, it is called each time a product ID is not entered when a product is being created.

This enhancement allows:

  • A free number to be determined from any internal number range interval
  • A number to be extended, for example by adding the product type as a suffix

Specifics in CRM

Example code has been implemented for this enhancement in the class CL_EXM_IM_PRODUCT_ID_INPUT_INT.

This derives a material number by internal number assignment in the CRM default destination specified in the Middleware settings. This CRM default destination must be maintained as an R/3 connection using transaction SM59.

Technically the process is as follows:

  1. The system reads the CRM default destination.
  2. The 5th to 8th position of the import parameter IV_CATEGORY_ID is taken as the material type.
  3. This material type is used to derive the next free number in the CRM default destination.
The example code uses the BAPI BAPI_MATERIAL_GETINTNUMBER, which was created in Release 4.0. If you have a Release 3.1 OLTP system, an RFC function module must be created in the customer namespace to be used instead of the BAPI to determine the next free number.
Note
The field NUMK1 in the material type table T134 contains the number range interval for internal number assignment. The function module NUMBER_GET_NEXT can be used to derive the next free number from this interval. Only the number range interval and the number range object (MATERIALNR) need to be passed to the function module.
  1. The logical system for the CRM default destination is determined.
  2. On the basis of this destination and the import parameter IV_PRODUCT_TYPE, the 18-character R/3 material number is converted to a 40-character product ID.






CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2279 Date: 20240523 Time: 161737     sap01-206 ( 46 ms )