Ansicht
Dokumentation
BADI_CRM_BUPA_MKP_OP - BAdI: Opt-In Evaluation for Accounts and Contacts
BAL Application Log Documentation Addresses (Business Address Services)This documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used in Service. You can use this BAdI to determine the opt-in rules and consent validity for accounts and contacts for marketing permissions.
If the example implementation (see Example below) based on the Customizing activity Define Opt-In Identifers does not meet your local legal requirements, you can implement this BAdIto meet your own requirements for determining when you can contact customers with marketing messages.
Example Implementation
- You have made settings in the Customizing activity Define Opt-In Settings.
- You have created marketing permissions.
For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Definitions tab in the BAdI Builder (transaction SE18).
You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitions tab in the Implementation Example Classessection.
The following example implementation is available, and it is also a fallback implementation.
- CL_CRM_BUPA_MKP_OPT_IN
- To determine the applicable jurisdiction and the validity of the consent, the fallback implementation of the BAdI reads the settings made in the Customizing activity Define Opt-In Settings.
- In this activity, the account jurisdiction is the country/region, and if required, the region entered in the general address data. For the contact jurisdiction, the country/region and, if required the region of the account to which the contact has a relationship is used to determine the jurisdiction. If this procedure does not meet your local legal requirements, you can use this example implementation.
This BAdI definition has a CHECKmethod and comprises the following optional parameters:
- IV_OPTID
- Identifier for opt-in settings
- IV_ACCOUNT_COUNTRY
- Country/region key
- IV_ACCOUNT_REGION
- Region (State, Province, County)
- IV_CHANNEL
- Communication Channel
- IV_ACCOUNT_ID
- Business Partner Number
- IV_ACCOUNT_GUID
- Business Partner GUID
- IV_CONTACT_ID
- Contact ID for customer implementation
- IV_CONTACT_GUID
- Contact GUID for customer implementation
Select the parameters you require to determine the applicable opt-in settings for your accounts and contacts. The system returns the following export parameters:
- ET_OPT_IN_SETTINGS
- Table comprising communication channel(s), opt-in identifiers, and validity period according to the input parameters
- ET_RETURN
- Error message table
PERFORM Short Reference RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 4096 Date: 20240607 Time: 123025 sap01-206 ( 57 ms )