cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

I added a Field in the Customer Transaction i.e XD01 in the marketing Tab and mapped it to a new field in the table KNA1 append section.

Now I have a flat file which has kunnr and ktokd and my new field.

I have to use this flat file and update my new field.

Please let me know which BAPI we can use.

0 Likes
View Entire Topic
Former Member
0 Likes

We have avoided using these BAPIs since ther intent is for online store. However there is another SAP function module that we have used to update customer master information. Try using SD_CUSTOMER_MAINTAIN_ALL.

I allows you to pass in the KNA1 Structure to update the data. Here is the general flow of the program.

1. Select KNA1 data for your customer numbers, based on your file I am assuming that these already exist in your system

2. Loop at populate the i_kna1 structure of the function module with the existing data and populate the field you want to change

3. Call SD_CUSTOMER_MAINTAIN all

This function module works with both create and change. If you are trying to create a customer then you just need to leave the kunnr field on I_KNA1 blank.

Chris