Entering content frameObject documentation Customer-Specific Material Number and Material Type

Definition

Customer-Exit to determine a customer-specific material number and material type during a material replacement.

Technical name: PCSD0012

Use

The enhancement module is available for the following functions:

The enhancement is called up if you carry out a Structure link material exchange in the order browser. For a material that has been created, you can, according to your own rules, automatically:

For example, you can determine that the number for the materials that you create for a specific sales order contains an abbreviation for the customer.

When the Customer-Exit is active, the field Material number is grayed out in the dialog box Set material data.

With this enhancement, you can switch the material type during a material replacement. You can determine a material type for the new material that deviates from the material type of the original.

Prerequisite for this is that the material types have consistent properties in important points, so as to ensure a trouble-free run in the productive processes after the material replacement. For this reason the system checks the compatibility of the material types after going through the Customer-Exits.

Example

A change of the material type can, for example, be useful if, in Customizing material masters, you have defined separate material types for specific purposes when the only difference to the original material type is the number range.

Structure

Component for enhancement PCSD0012:

Function module EXIT_SAPLCSME_001 (Function group XCSA)

Import parameter

Parameter name

Description

I_IN_MATNR

Material number

I_IN_MTART

Material type

I_VBELN

Sales orders

I_VBPOS

Sales order item

I_PSPNR

WBS element

I_PSL_WERK

Plant

Export parameter

Parameter name

Description

E_CUSTO_MATNR

Material number

E_CUSTO_MTART

Material type

E_CUSTO_OPTION

Using this value you control the behavior of the program if conflicts occur for the material number or material type generated in the Customer-Exit. If you

  • set this value ('X'), the system still creates the material, however, with an internal material number and the original material type.
  • do not set this value (' '), an error occurs and the operation is cancelled. You can read the error message in the application log.

Integration

Enter your code in the include ZXCSAU17.

Leaving content frame