cancel
Showing results for 
Search instead for 
Did you mean: 

Migrate Customer contact in CRM

Former Member
0 Kudos
85

Hi,

I have to migrate Customer contact in CRM, Can you please tell me how can i do it.

If possible can you send me sample code or somthing which can help me.

Regards,

Soumil.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

there is a standard SAP program in CRM: CRM_CALL_ACTIVITY_INTERFACE.

look at it.

it can be helpful for you while creating your program.

there is bapi BAPI_ACTIVITYCRM_CREATEMULTI used.

but you can also use crm_order_maintain -> main function module used in processing all business trancations in CRM by the system.

we wrote abap program due to what I wrote you to import crm activities.

regards

Radek

Former Member
0 Kudos

Can you please provide me sample code , I will be very thankfull to you

Former Member
0 Kudos

Hi

our program was quite similar to program CRM_CALL_ACTIVITY_INTERFACE.

please look at it.

regards

Radek

Former Member
0 Kudos

Hi,

Can you please tell me How can i upload long text for same

Former Member
0 Kudos

example:

DATA ls_text_bapi TYPE bapibus20001_text_ins.

DATA: ls_text_bapix TYPE bapibus20001_text_insx,

lt_text_bapi TYPE TABLE OF bapibus20001_text_ins,

lt_text_bapix TYPE TABLE OF bapibus20001_text_insx,

ls_text_bapi-ref_guid = lv_guid.

ls_text_bapi-ref_kind = 'A'."means header

ls_text_bapi-tdid = lv_tdid."type of text

ls_text_bapi-tdspras = 'L'.'language

ls_text_bapi-langu_iso = 'PL'."language

ls_text_bapi-tdstyle = 'SYSTEM'.

ls_text_bapi-tdform = 'SYSTEM'.

ls_text_bapi-tdformat = '*'.

ls_text_bapi-tdline = lv_txt."your text.

ls_text_bapi-mode = 'A'.

APPEND ls_text_bapi TO lt_text_bapi.

ls_text_bapix-ref_guid = 'X'.

ls_text_bapix-ref_kind = 'X'.

ls_text_bapix-tdid = 'X'.

ls_text_bapix-tdspras = 'X'.

ls_text_bapix-langu_iso = 'X'.

ls_text_bapix-tdstyle = 'X'.

ls_text_bapix-tdform = 'X'.

ls_text_bapix-tdformat = 'X'.

ls_text_bapix-tdline = 'X'.

ls_text_bapix-mode = 'X'.

APPEND ls_text_bapix TO lt_text_bapix.

"and later you have to execute, for eg BAPI_ACTIVITYCRM_CREATEMULTI' with these parameters:

CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'

TABLES

text = lt_text_bapi

textx = lt_text_bapix

*here of course you should also, except texts, insert as parameters other data like partners, and so on.

Regards

Former Member
0 Kudos

I_TEXT TYPE TABLE OF BAPIBUS20001_TEXT_INS WITH HEADER LINE,

I_TEXTX TYPE TABLE OF BAPIBUS20001_TEXT_INSX WITH HEADER LINE,

*Fill Text

I_TEXT-REF_HANDLE = '00000001'.

I_TEXT-REF_KIND = 'A'.

I_TEXT-TDID = 'A002'.

I_TEXT-TDSPRAS = 'E'.

I_TEXT-TDSTYLE = 'SYSTEM'.

I_TEXT-TDFORM = 'SYSTEM'.

I_TEXT-TDLINE = NOTES.

I_TEXT-MODE = 'A'.

APPEND I_TEXT.

I_TEXTX-REF_HANDLE = 'X'.

I_TEXTX-REF_KIND = 'X'.

I_TEXTX-TDID = 'X'.

I_TEXTX-TDSPRAS = 'X'.

I_TEXTX-TDSTYLE = 'X'.

I_TEXTX-TDFORM = 'X'.

I_TEXTX-TDLINE = 'X'.

I_TEXTX-MODE = 'X'.

APPEND I_TEXTX.

Regards,

Shiva Kumar