cancel
Showing results for 
Search instead for 
Did you mean: 

How can Update data kna1 from XD02.

Former Member
0 Kudos

Dear expart,

I append 3 feild (passport_no, issue_date, Expire_date)in kna1.

Then i design a screen with name1,ORT01,TELF1,passport_no, issue_date, Expire_date.

Then I display the screen in XD01, XD02,Xd03 by badi 'Customer_add_data' and 'customer_add_data_cs'.

here I can insert & view succesfully.

But when i change by XD02, passport_no, issue_date, Expire_dat feilds are update but name1,ORT01,TELF1 did not update.

Can any body help me.

Rayhan.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hello

To Update data in KNA1 table you can use "BAPI_ADDRESSORG_SAVEREPLICA" Bapi.

Hope this will solve your problem.

Regards,

Sayali

Edited by: Sayali Paradkar on Apr 27, 2010 8:12 AM

Former Member
0 Kudos

Hi Rayhan,

SD_CUSTOMER_MAINTAIN_ALL is not only a bad idea but it does not help in your case.

As the custom fields are appended to KNA1 AND you have implemented CUSTOMER_ADD_DATA and CUSTOMER_ADD_DATA_CS.

I guess you are quite near to the solution .

method SET_DATA of CUSTOMER_ADD_DATA_CS must be implemented to pass back your data to KNA1. The saving is therefore done by the standard save functionality of the transaction.

If the custom data would be out of any standard table (ie: a z_table), then you would need to implement method SAVE_DATA of CUSTOMER_ADD_DATA. There the saving is needed to be dione in update task !

A remark, there is no possibility to save general data and custom general data when you extend an existing customer to a sales area or a company code.

Hope this helped

BR

Alain

Former Member
0 Kudos

Hi,

You can use Standard Batch input method of LSMW for TCode XD02,

after uploading the data from LSMW it will automatically go into the tables.

Hope it helps

Regards

Mansi

Former Member
0 Kudos

Use batch input or LMSW

Former Member
0 Kudos

Hi,

SD_CUSTOMER_MAINTAIN_ALL use this FM

Regards

Azeez

Former Member
0 Kudos

Dear Azeez,

Thanks for respons.

Try to understand my problem.

In kna1 table i append 3 feilds.

& I can update data for those fields.

But can not update data for standard feilds.

where I use the FM SD_CUSTOMER_MAINTAIN_ALL.

pls help by code.

What can I do.