cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Double Opt-In Process for marketing area specific permissions

619

Hi all,

we have activated the option "Activate Marketing Area for Campaign Execution".The customer needs to save the marketing permissions per subsidiary.

In the SAP standard, the double opt-in process is not supported for this. We can only activate one confirmation email. This confirmation email will only be send out to the contact, if the form/landing page has the same marketing area.

So for all other marketing areas, the confirmation email will not be send out. This is our basic problem and we can't ensure that the marketing permissions are saved in the correct way.

Now, we have created a custom field and use it on the form to submit the marketing permissions. This custom fields is used for the marketing area information and is hidden for the contact. So, a contact navigates to the Form (Marketing Area 'global') and submits it. In this special form the custom field is hidden with the value for the german marketing area.

In the BADI "Revise Interaction Data Before Import" we check this custom field and change the marketing area based on this.

Now further problems come up:

1. Approach: we change the marketing area for the opt-in interaction in the BADI

IF interaction_data-ia_type = if_cuan_ce_c=>co_iatype_mkt_perm_optin. interaction_data-mkt_area_id = 'DE'. endif.

By doing so, the confirmation email will be send to the contact, because the form and the activitation email have the MA 'global' assigned. The Pre-Opt-in Interaction has also the MA 'global' assigned and the opt-in interaction will be changed to the MA 'germany'.

BUT: The Marketing permission is changed (opted-in) for the marketing area 'global'. This should be done for the marketing permission 'germany'

2. approach: we change the marketing area for the opt-in AND pre-opt-in interaction in the BADI

IF interaction_data-ia_type = if_cuan_ce_c=>co_iatype_mkt_perm_optin OR interaction_data-ia_type = if_cuan_ce_c=>co_iatype_mkt_perm_optin_pre. interaction_data-mkt_area_id = 'DE'. endif.

In that approach the contact does not receive the confirmation email, because the form has the marketing area 'global' assigned, but the pre-opt-in gets the MA 'germany' by the BADI. The confirmation email is activated for the marketing area 'global'

How can we achieve a proper double opt-in process for the marketing area specific marketing permissions?

Best regards,

Yannick Rocchia

Accepted Solutions (0)

Answers (1)

Answers (1)

jan_kaemmerle
Product and Topic Expert
Product and Topic Expert

Hello Yannick,

sorry, don't have a system at hand where the option "Activate Marketing Area for Campaign Execution" is active.
Not sure if this fact leads to the issue you having.


From my point of view you can setup the form with the marketing area that you want in your business process.
Let's assume the landing page is of marketing area "Germany". The confirmation message however is setup with marketing area "Global". As you mentioned, we are currently limited to one marketing area that we need to select for the confirmation message.

In standard the Pre-Opt-In would be send with marketing area "Germany". The confirmation message (email outbound) is then triggered with the "Global" marketing area. Email Opened and Opt-In interaction have also the "Global" marketing area, since it's derived from the email outbound.

In the IA-Revise BAdI you can implement that the marketing area of email outbound is switched to "Germany".
You just have to ensure that it's just for confirmation messages and not for "normal" campaigns (initiative_id = empty). To be sure would also check that the predecessor is of interaction type Pre-Opt-In.
The Email Opened and Opt-In will get "Germany" as it's derived from the email outbound.

Hope it helps.
Best regards,
Jan