cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of Campaigns in CRM

Krishnan
Product and Topic Expert
Product and Topic Expert
0 Kudos
130

Hi,

I have to create Campaigns in CRM for Legancy Data. Can anyone give me the appropriate FM or Classes for Mass Upload of Campaigns in CRM.

Thanks and Regards,

H.Krishnan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Here is some pseudo code

check if the campaign already exists , if not, then do the following

Class name cl_crm_mktpl_appl_base->ELEMENT_CREATE

then call cl_crm_mktpl_appl_base->save

and cl_crm_mktpl_appl_base->commit of this class.

If you have BW and want to sync with the system then

call cl_crm_mktpl_appl_base->after_commit.

if the campaign exists already, then

Read the campaign using cl_crm_mktpl_appl_base->Element_read

then cl_crm_mktpl_appl_base->Element_change to make updates to data

then call cl_crm_mktpl_appl_base->save

and cl_crm_mktpl_appl_base->commit of this class.

If you have BW and want to sync with the system then

call cl_crm_mktpl_appl_base->after_commit.

Probably you will do this in a loop.