cancel
Showing results for 
Search instead for 
Did you mean: 

Function module or Method for changing status of a Campaign.

Former Member
0 Kudos

Hi Experts,

I need to change the status of a Campaign. Which Class-Method or Function module shall i use. Any code snippet will be helpful.

Regards

Viks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vikash,

You can use class CL_CRM_MKTPL_APPL_BASE for changing the status of campaign.

Regards,

Lakshmi.Y

Answers (2)

Answers (2)

Former Member
0 Kudos

CALL METHOD CL_CGPL_STATUS_MANAGEMENT=>status_change_extern

EXPORTING

im_guid = l_guid

  • im_check_only = SPACE

im_user_status = 'E0010'

  • im_set_inact =

im_application_type = 'MKT'

EXCEPTIONS

error_found = 1

others = 2

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Former Member
0 Kudos

HI Vikash,

You have not mentioned how you want to change it from the UI or from a program or report.

And change the status to what ? From UI it is quite simple and you can use one of the service classes.

Thanks,