How can Update data kna1 from XD02.

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.

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

Similar Messages

Maybe you are looking for