Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM or BAPI to update KNA1 address data

Former Member
0 Kudos

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

2 REPLIES 2

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

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.

franois_henrotte
Active Contributor
0 Kudos

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