01-22-2004 8:23 PM
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
01-27-2004 5: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.
01-29-2004 3: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