on 12-31-2015 12:29 PM
What is user exit in ECC for update address from CRM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can anyone tell me how to update First and Last name in kna1 table fields name1 and name2 from CRM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear All,
I have found reason for updating mobile number in Telephone field in ECC from CRM.
We have done some customize code for update name in KNA1 table through user exit.
TBE34 - DE_BALE --> ZSAMPLE_INTERFACE_DE_BALE
check the following code.
LOOP AT ct_idoc_data INTO wa_edidd
WHERE segnam = c_kna1m.
v_tabix = sy-tabix.
CLEAR: wa_e1kna1m, wa_bapimtcs_main, wa_bapimtcs.
wa_e1kna1m = wa_edidd-sdata.
READ TABLE it_bapimtcs
WITH KEY tabname = gc_main
data+0(10) = wa_e1kna1m-kunnr
INTO wa_bapimtcs_main.
CHECK sy-subrc IS INITIAL.
*Read the structure T_BAPIMTCS for the table entry
*This has the values for name1, name2, name3 and name4
*First check TABNAME for person and if not available,
* check for organization
READ TABLE it_bapimtcs
WITH KEY tabname = gc_central_person
objkey = wa_bapimtcs_main-objkey
INTO wa_bapimtcs.
IF sy-subrc IS INITIAL.
v_name1 = wa_bapimtcs-data+3(35).
v_name2 = wa_bapimtcs-data+43(35).
v_name3 = wa_bapimtcs-data+123(35).
v_name4 = wa_bapimtcs-data+163(35).
ELSE.
READ TABLE it_bapimtcs
WITH KEY tabname = gc_central_org
objkey = wa_bapimtcs_main-objkey
INTO wa_bapimtcs.
v_name1 = wa_bapimtcs-data+0(35).
v_name2 = wa_bapimtcs-data+40(35).
v_name3 = wa_bapimtcs-data+80(35).
v_name4 = wa_bapimtcs-data+120(35).
ENDIF.
wa_e1kna1m-spras = 'E'.
wa_e1kna1m-spras_iso = 'EN'.
wa_e1kna1m-name1 = v_name1.
wa_e1kna1m-name2 = v_name2.
wa_e1kna1m-name3 = v_name3.
wa_e1kna1m-name4 = v_name4.
wa_edidd-sdata = wa_e1kna1m.
MODIFY ct_idoc_data INDEX v_tabix FROM wa_edidd TRANSPORTING sdata.
ENDLOOP.
When i removed this customization, its work properly.
Have we used modify statement properly.
regards,
Vikil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.