on 03-06-2019 10:04 AM
Hello together,
does anybody knows if there exists a class to get the marketing area of a contact by using the ID_ORIGIN and ID? Our contacts all have just one marketing area assigned.
BR/
Nice. Thank you tim.nusch . Coding works perfectly fine:
DATA: lv_marketing_area type c length 40.
IF interaction_data-mkt_area_id is initial
OR interaction_data-mkt_area_id EQ 'GLOBAL'.
SELECT SINGLE InteractionContactMktgArea FROM I_MKT_IntactnCntctMktgArea
WHERE InteractionContactOrigin EQ @interaction_data-id_origin
AND InteractionContactId EQ @interaction_data-id
AND InteractionContactUUID EQ @interaction_data-contact_key
INTO @lv_marketing_area.
* Set Marketing Area into Interaction
interaction_data-mkt_area_id = lv_marketing_area.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Oliver,
it seems that you have opened two questions for this topic. This one here and https://answers.sap.com/questions/778859/badi-cuan-ia-revise-for-import-how-to-read-marketi.html# --> It would be great if you could close the other question.
Regarding your question. It's a two-step process:
1. Identify a custom CDS view providing you the Marketing Area assignment for the ID_ORIGIN & ID tuple.
1.1 Either use the standard CDS view I_MKT_IntactnCntctMktgArea for this (standard set of fields)
1.2 Or create a custom CDS view joining the two CDS Views I_Mkt_Contact and I_Mkt_ContactFacet (if you want to select additional fields)
2. Read from CDS view from 1.1 or 1.2 in SAP Marketing Cloud BAdI similar to this example:
select ***MARKETING_AREA*** from ***CDS_VIEW_NAME*** into ***FIELD*** where InteractionContactOrigin = ***ID_ORIGIN*** and InteractionContactId = ***ID***.
Best regards,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Oliver, Tim,
just be aware of two things:
best regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
tim.nusch , johannes.hirling , surajit.mitra could you please help Oliver?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
2 | |
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.