cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI or BADI to modify Customer Master Data

Former Member
0 Kudos

Hi all.

I need modify a customer master data by Z program. How Can i do it ?

By a BADI, BAPI or It does not exist.

Thanks for any help!!

Renato

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Renato,

1. Use EXIT_SAPMF02D UserExit ( Customers: User Exit for checks prior to Saving ).

2. User Exits for Partner Determination

Partner determination contains the following user exits for your use:

EXIT_SAPLV09A_001

You can use this user exit to control whether an address that was entered manually and has already been used in other documents (referenced), should be referenced again if it changes or whether a new address shold be created (duplicated).

EXIT_SAPLV09A_002

Call up this user exit if a customer has not been maintained in the current sales area.

EXIT_SAPLV09A_003

Use this user exit to control the origin of partners in the partner determination procedure (origin X, Y or Z). If X, Y, or Z has been entered in the Origin field, this user exit is automatically called up during partner determination.

EXIT_SAPLV09A_004

Use this user exit to integrate your own check in a program, that runs before the partner is saved in the document.

3. Additional fields from the customer master (KNA1 and KNVV) are defined in the following INCLUDES:

Sold-to party data: KUAGVZ (in KUAGV)

The INCLUDE KUAGVZ contains the reserve fields from the customer master KUGR1-KUGR5, which are described in the step "Reserve fields in the customer master". If the fields are to be used, they no longer need to be included in the view.

Ship-to party data: KUWEVZ (in KUWEV)

Payer data: KURGVZ (in KURGV)

Bill-to party data: KUREVZ (in KUREV)

Transport fields to customer view

Field transport from master record to customer view can be found in the following user exits:

Sold-to party data:

V05EA1AG (user exit for sold-to party when reading KNA1)

V05EZZAG (user exit for sold-to party when reading KNVV)

Ship-to party data:

V05EA1WE (user exit for ship-to party when reading KNA1)

V05EZZWE (user exit for ship-to party when reading KNVV)

Payer data:

V05EA1RG (user exit for payer when reading KNA1)

V05EZZRG (user exit for payer when reading KNVV)

Bill-to party data:

V05EA1RE (user exit for bill-to party when reading KNA1)

New fields defined with the same name are automatically transported there by MOVE CORRESPONDING. Otherwise they must be transported manually.

Transport from customer view to the sales document table

The routines for assigning values to the fields in the sales document can be found in the program MV45AFZZ. Enter the new field names here (beginning with "ZZ".

USEREXIT_MOVE_FIELD_TO_VBAK

USEREXIT_MOVE_FIELD_TO_VBAP

USEREXIT_MOVE_FIELD_TO_VBKD

Regards

JACK