cancel
Showing results for 
Search instead for 
Did you mean: 

Permissions from SAP CRM on premise to SAP Marketing Cloud

former_member536943
Participant
0 Kudos
709

Hello SAP Community,

we want to synchronize marketing permissions from CRM on premise to SAP Marketing cloud.

I already found the following blog:

Blog Marketing Permission

and an added Guide:

Guide Documentation

Why do I need to create a Z-BADI in the CRM? Is this Z-Badi really necessary?

What we have is the Basistype: CRMXIF_PARTNER_REL_SAVE_M03

Furthermore I have in the CPI the standard iFlow:

1)

2)

3)

In this standard iFlow I have the mapping to the marketing perimissions between CRM and yMKT.

Is it now possible to add the "Replicate Contact Permission From CRM to yMKT" Mapping into our Partner_Rel Mapping?

Does anyone of you have experience with this iFlows and may give me a hint?

BR Christof

View Entire Topic
hoang_ti_no_ho
Employee
Employee
0 Kudos

Hi Christof,

below my answer and comment to your questions:

there are two standard iflows relevant to Idoc CRMXIF_PARTNER_SAVE_REL_MXX

1) CRM_Business_Partner_Relationship_yMKT:

using the basec type CRMXIF_PARTNER_REL_SAVE_M02 that does not have the structure of marketing permissions and is used to

replicate contact and relationship information from CRM on premise



2) Replicate Contact Permissions from CRM to YMKT:

using the basec type CRMXIF_PARTNER_REL_SAVE_M03 that does have the structure of marekting permissions and is used to load

marketing permissions from CRM on premise initially

In order to start the initial load of contact permissions from CRM to marketing cloud, you need to implement the BADi CRMXIF_PARTNER_R_MAP as customer implementation and do the connection to the end point of the standard iflow "Replicate Contact Permissions from CRM to YMKT" , because the BAdi CRMXIF_PARTNER_R_MAP is a non multiple use BAdi, that means only one active BAdi-implementation is allowed to be used. If you already have an active BAdi-implementation in use, you have to deactivate this implementation and activate the BAdi-implementation for initial load of contact permissions temporarely. After use you can deactivate the BAdi-implementation for initial load of contact permissions. That is the reason why a Z-BAdi is necessary.

You do not need to do the mapping, because the mapping is already done in the standard iflow "Replicate Contact Permissions from CRM to YMKT". What you really have to do is described in the setup guide and the blog.

As Maik's comment, the implemented code of the BAdi checks and filters valid contact permissions, invalid contact permissions may not be loaded to CPI.

you can not combine the mapping of "Replicate Contact Permissions from CRM to YMKT" with the mapping of "CRM_Business_Partner_Relationship_yMKT", because the settings of the both logical systems in CRM middleware are different.

The logical system for the iflow "CRM_Business_Partner_Relationship_yMKT" is configurated for delta load. That means every change is replicated.

The logical system for the iflow "Replicate Contact Permissions from CRM to YMKT" si configurated for initial load, that means any change is not replicated

best regards,

Ti No