cancel
Showing results for 
Search instead for 
Did you mean: 

interaction type to a custom field in the SAP Marketing Cloud

ressandr
Explorer

hy Experts,

in the context of the following article i wanted to create a BAdl based on CUAN_IA_REVISE_FOR_IMPORT with some changes to achieve the goal so that i'm able to set the interaction type to a custom field of the associated contact.

https://blogs.sap.com/2018/01/21/how-to-assign-interactions-to-a-contact-using-unique-ids/

But now i have some problems doing this. The field "additional_facet" which is for:

DATA ls_add_facet LIKE LINE OF additional_facet.

is not known. Was there a change unter the hood or why is this happening.

Second question: What i want to achieve in the end is to set the value of the interaction type as string to a custom field of the related interaction. Is this somehow possible and if so how?

Many Thank's BR,

Andreas

michael_piesche
Active Contributor
0 Kudos

ressandr, please follow up on your open question.

  • comment answers or your question if there are still open issues.
  • otherwise mark an answer as accepted if it helped you solve your problem
  • or post an answer of yourself and accept it if you found another useful solution yourself
  • or redirect your question to another question that is related and was useful to solve your problem
  • in the end, close your question

Accepted Solutions (0)

Answers (3)

Answers (3)

Kunal_Bansal
Active Contributor

Hi Andreas,

Please refer to point 4 of https://blogs.sap.com/2018/01/21/how-to-assign-interactions-to-a-contact-using-unique-ids/

You need to revise the usage of BADI as above.

best regards,

Kunal

ressandr
Explorer
0 Kudos

Hy Kunal,

maybe again this question to you: is it somehow possible to access also custom interaction types using if_cuan_ce_c=>?

Thank you BR,

Andreas

ressandr
Explorer
0 Kudos

hy,

first of all - thank you both for your help. I could now solve the problem regarding "additional_facet". I'm also able to use all "standard" interactions like for example "if_cuan_ce_c=>co_iatype_mkt_perm_optin". Question: is it somehow possible to access custom interaction types?

Thank's BR

Andreas

michael_piesche
Active Contributor
0 Kudos

ressandr, please use the comment function instead of the answer function, since you only provide a comment and not a clear answer on how you solved your problem.

Regarding your next question, where do you want to access the custom interaction types and what do you want to do with it? In coding or in a UI5 App?

michael_piesche
Active Contributor
0 Kudos

Based on the blog and your error, you are not following the steps for the implementation.

You say you created a BAdI Implementation for CUAN_IA_REVISE_FOR_IMPORT and have issues with the interface parameter additional_facet. This is indeed not a parameter of the above BAdI Interface, but of the second necessary BAdI Implementation for CUAN_IMPORT_IA_4_IC.