Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jan 27, 2010 at 10:50 AM

    Hi,

    SD_CUSTOMER_MAINTAIN_ALL use this FM

    Regards

    Azeez

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Jan 27, 2010 at 11:45 AM

    Use batch input or LMSW

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 27, 2010 at 12:10 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 29, 2010 at 05:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 27, 2010 at 04:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded