Skip to Content
author's profile photo Former Member
Former Member

FM or BAPI to update KNA1 address data

I am looking for a function module or BAPI to update name and address data on KNA1

after I have translated lower case characters to upper case.

I have found BAPI_CUSTOMER_CHANGEFROMDATA

but this BAPI does not update NAME2.

Thanks in advance.

Charlie

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Jan 27, 2004 at 05:50 PM

    Looking at the code inside this BAPI, it appears that NAME does get populated. It comes from the FIRST_NAME field of PI_ADDRESS.

    p_i_kna1_01-name1 = p_i_address_01-name.

    p_i_kna1_01-name2 = p_i_address_01-first_name.

    p_i_kna1_01-name3 = p_i_address_01-name_3.

    p_i_kna1_01-name4 = p_i_address_01-name_4.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2004 at 03:59 PM

    New BAPI for customer change is BAPI_CUSTOMER_CHANGEFROMDATA1. I recommend this one as this is the one used in method of business object KNA1 to change data (previous function module is called in obsolete version of this method).

    Anyway the NAME2 is also filled with the first name (BAPIKNA101_1-FIRSTNAME).

    Don't forget to put 'X' in corresponding field of BAPIKNA101_1X

    Add comment
    10|10000 characters needed characters exceeded