cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Open Chanel Implementation in Hybris Marketing

krishnendu_laha
Active Contributor
0 Kudos

Dear Experts,

I have implemented "open channel Integration" using Enhancement Options and using an use case E-mail creation, that means when Campaign executes, it sends an email to a specific Email and writes an Interaction for Members involved in Target Groups.

The following is working:

1. The Iflow is executed when Campaign is executed

2. There is no error returned from Cloud Platform Integration to Hybris Marketing

3. Without Enhacement 5, Campaign does not return error.

The following is not working:

1. There is no Interaction written to Members, following code has been added to Enahncement 5:

    template-id_origin            = 'SAP_ERP_CUSTOMER'.
    template-interaction_type     = 'LOY_POINT_ACCRUAL'. " This is a customer defined interaction type
    template-communication_medium = 'ONLINE_SHOP'.

2. The Campaign results into Error with following message:

Could you please explain where does ID come from? as I can not find attribute for ID in Enhacement 5.

Thanks and regards, Krish

Accepted Solutions (1)

Accepted Solutions (1)

krishnendu_laha
Active Contributor
0 Kudos

Hello Hakan,

I got the solution. Enhancement 4 also need to be implemented, although it is as “Optional” in sap document mentioned, this is require for outbound interaction. I got the answer from SAP, it works! 🙂

Thanks, Krish

former_member611643
Participant
0 Kudos

Hi, krishnendu.laha.

If it's possible could you consult me about your solution, please?

I have the same issue, but I'm absolutely new in SAP yMKT Cloud and can't figure out my mistake.

Thanks!

Answers (3)

Answers (3)

Former Member

Hi Krishnendu,

As Hakan already mentioned, the “ID” seems to be wrong, because the “ID” used for writing the interactions has to be the “ID” as specified by the “ID_ORIGIN”. You use the identifier origin “SAP_ERP_CUSTOMER” and the framework expects ERP customer identifier therefore.

You could try to implement the BADI “(4) Open Channel: Enhance Payload for Data Transfer” to set the right identifier:

LOOP AT target_group_member_status ASSIGNING FIELD-SYMBOL(<ls_target_group_member_stat>).  
  " Replace the given identifier by ID_ORIGIN specific identifiers  
  CL_CUAN_INTERACT_CNTCT_HELPER=>GET_CONTACT_FACETS( EXPORTING IT_CONTACT_KEYS  = value #( ( conv #( <ls_target_group_member_stat>-TG_MEMBER_INTERACTION_CONTACT ) ) )   
                                                     IMPORTING ET_CONTACT_FACET = data(lt_contact_facet) ).  
  READ TABLE lt_contact_facet  ASSIGNING FIELD-SYMBOL(<ls_contact_facet>) WITH KEY id_origin = 'SAP_ERP_CUSTOMER'.  
  IF SY-SUBRC EQ 0.  
    <ls_target_group_member_stat>-communication_id = <ls_contact_facet>-id.  
  ENDIF.
ENDLOOP.

The code snippet should demonstrate how to replace the identifiers only. You should provide a more performant implementation of course.

I hope this helps.

Regards,

Ingo

krishnendu_laha
Active Contributor
0 Kudos

Hello Ingo,

Thanks for your comment, yes i had implemented Enhancement 4 and answered already. Here as you all mentioned, correct ID according to ID Origin is required.

Thanks and regards, Krish

former_member355106
Active Participant
0 Kudos

Hi together,

does exist any class to read campaign header data?

Cheers,

hakan_kose
Contributor

Hi Krishnendu,

You can retrieve SAP ERP customer number from interaction contact key. It's really strange that there's no parameter with the name "ID" as it's essential to create an interaction. If there's no parameter with the name ID, it doesn't make sense to see message "invalid value for attribute ID". I guess there should be an attribute with the name ID, I just cannot see how it's set...

hakan_kose
Contributor
0 Kudos

Hi Krishnendu,

I haven't seen the full implementation, so it's kind of hard to assume what's wrong. But from what I can see, you don't provide an "ID" for interaction creation. You seemd to provide ID Origin, Interaction Type and Communication Medium. But I guesss at least you need to provde an ID (this should be ERP customer number in your case) and Timestamp value for your interactions.

I hope this helps

Regards,

Hakan

krishnendu_laha
Active Contributor
0 Kudos

Hell Hakan,

Thanks for your answer. Actually there is no parameter to provide ID, and the ID is provided by Hybris Marketing in runtime, it is actually the contact key of Target Group members. So somehow the system is not providing the ID and I do not know yet, if something extra to be done.

Regards, Krish