on 07-12-2019 9:38 AM
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?
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
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.