cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for Customer table KNA1 update

02-24-2006 8:04 AM
10835 views 7 comments
0 Likes
SAP Managed Tags
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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Likes

ok

Former Member
0 Likes

Hi,

i'am new to SDN but i've got a problem using SD_CUSTOMER_MAINTAIN_ALL. That is after running the FM it's says it's a sucess both and return a customer number, but whem i go to T Code XD03 it gives a dump with my customer number and the it exists on KNA1 but are missing fields. Any clue?

Thzs in advance

Jaime Cordeiro

Lakshmant1
Active Contributor
0 Likes

Hi Mayank,

Check FM BAPI_CUSTOMER_CHANGEFROMDATA

Thanks

Lakshman

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

Former Member
0 Likes

Hi Mayank,

Welcome to SDN !!

BAPI_CUSTOMER_CREATE

Pls.reward if it solves your prob..

Thanks

Eswar

Former Member
0 Likes

Hi,

you can try with

<b>BAPI_CUSTOMER_CREATEFROMDATA1

BAPI_CUSTOMER_CREATEFROMDATA</b>

Regards

vijay

Former Member
0 Likes

Hi,

<b>BAPI_CUSTOMER_CREATEFROMDATA1</b> is the suitale bapi for your requirement.

Regards

vijay