04-14-2010 3:07 AM
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 =.
04-14-2010 3:43 AM
04-26-2010 7:31 AM
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.
04-14-2010 5:36 AM
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.
04-14-2010 5:53 AM
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.
04-14-2010 7:54 AM
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!