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: 

About Function Module customer_update

Former Member
0 Kudos

Hi SAP Experts,

Can anyone explain to me what parameters should I pass to the importing and tables parameters of FM customer_update. But I don't know what values should I pass. I only need to update field SORTL which is only found in KNA1. Thanks in advance!

CALL FUNCTION 'CUSTOMER_UPDATE'

EXPORTING

I_KNA1 =

I_KNB1 =

I_KNVV =

I_YKNA1 =

I_YKNB1 =

TABLES

T_XKNAS =

T_XKNB5 =

T_XKNBK =

T_XKNVA =

T_XKNVD =

T_XKNVI =

T_XKNVK =

T_XKNVL =

T_XKNVP =

T_XKNVS =

T_XKNEX =

T_XKNZA =

T_YKNAS =

T_YKNB5 =

T_YKNBK =

T_YKNVA =

T_YKNVD =

T_YKNVI =

T_YKNVK =

T_YKNVL =

T_YKNVP =

T_YKNVS =

T_YKNEX =

T_YKNZA =.

5 REPLIES 5

Former Member
0 Kudos

check BAPI, BAPI_ADDRESSORG_CHANG to update search term in customer master.

chk this thread for sample code.

0 Kudos

I tried using BAPI_ADDRESSORG_CHANGE, but it seems that it is not updating table kna1 field SORTL which is the field for SORT1 (if im not mistaken). Below is my code please advice if there are inconsistencies. Thank you! This is only a test use of this FM that's why the customer number is hardcoded.

x_bapiad1vl-sort1 = p_newst.

x_bapiad1vl_x-sort1 = 'X'.

x_bapiad1vl_x-updateflag = 'U'.

append x_bapiad1vl TO t_bapiad1vl.

append x_bapiad1vl_x TO t_bapiad1vl_x.

CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'

EXPORTING

OBJ_TYPE = 'KNA1'

OBJ_ID = '0008005843'

CONTEXT = '0001'

SAVE_ADDRESS = 'X'

TABLES

BAPIAD1VL = t_bapiad1vl

BAPIAD1VL_X = t_bapiad1vl_x

RETURN = x_return.

Former Member
0 Kudos

Hi Jami,

Please check this blog which discuss details about customer update BAPI

http://abaplovers.blogspot.com/2008/03/customer-master-bapis-function-modules.html

Regards and Best wishes.

Former Member
0 Kudos

hii,

u need to update sortl for some particular customer fill in the mandatory fields for that customer by looking in XD02

fill all mandatory fields as it is just change title(SORTL) . U WILL ACHIEVE U R REQUIREMENT .

HOPE THIS WILL HELP.

0 Kudos

Thanks for all the inputs I'm currently checking on all of them. I was wondering, in FM customer_update are all input paremeters required? Thanks again!