cancel
Showing results for 
Search instead for 
Did you mean: 

Campaign Enhancement SAP Marketing Cloud

former_member576423
Participant

Hello Experts,

I want to make the Target Group mandatory at campaign header for certain campaign custom attribute. There is a BADI - Update Attributes of Campaign Header which should serve this purpose, but in the structure old_campaign, i couldnt find the field for target group id, which means i couldn't validate the target group is present or not? Can we use any other logic or table to identify the target group assigned to Campain or not?

What is the solution for this? Any help?

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee

Hi,

You can check BADI CUAN_CAMPAIGN_CHECK - Check Attributes of Campaign Header:

select single TARGETGROUPUUID from I_Mkt_Initiative into @data(lv_uuid) where CAMPAIGNID = @campaign-campaignid.
if sy-subrc eq 0 and ( lv_uuid eq '00000000000000000000000000000000' or lv_uuid is initial ).
error_message = 'TG ID cannot be blank'.
APPEND error_message to error_messages.
error_occured = abap_true.
endif.


Thanks

Saurabh

Answers (0)