cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open Channel: How to create IAs?

former_member611643
Participant
0 Kudos
667

Hi, friends.

I've implemented Open Channel Integration for a campaign. I wanted to create interactions for each member of the target group of this campaign. I've implemented the BADI(4)-Open Channel: Enhance Payload for Data Transfer and BADI(5) - Open Channel: Define Template for Outbound Interaction for the same.

BADI(5) - Open Channel: Define Template for Outbound Interaction

template-id_origin            = 'ZCARD'.
template-interaction_type     = 'Z_SMS_REVAILDATION'.
template-communication_medium = 'WEB'.

BADI(4)-Open Channel: Enhance Payload for Data Transfer

LOOP AT target_group_member_status ASSIGNING FIELD-SYMBOL(<ls_target_group_member_stat>).
      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 = 'ZCARD'.
      IF sy-subrc = 0.
        <ls_target_group_member_stat>-communication_id = <ls_contact_facet>-id.
      ENDIF.
    ENDLOOP.

But still, the interactions are not created for the contacts.

All the necessary settings were carried on and I don't have any custom parameters for this action.

I'd be grateful for any feedback on solving the issue.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

former_member611643
Participant
0 Kudos

I found the problem.

My mistake was in the length of the implementation name!

In communication arrangement settings Implementation length can be 20 symbols maximum, but my implementation name length was 21 symbols.

Because of that, my BAdi didn't work and interactions didn't create.

Answers (5)

Answers (5)

isathore
Product and Topic Expert
Product and Topic Expert

Hi,

Without seeing the setup, it is difficult to assess. Create an incident to component CEC-MKT-CPG-EXE if you cannot figure it out. Please provide all details and also the CB user that we can use to connect to the system. See this note for information on how to get this user https://launchpad.support.sap.com/#/notes/2931353.

Best Regards

Isabelle

former_member599277
Contributor
0 Kudos

Hi Bhaskar,

In dkolodin case , the issue was with the length of the Implementation Name which was more than 20 characters.

(1) Open Channel: Define Implementations'

Attribute IMPLEMENTATION is a character of length 20 and contains the technical ID of your implementation = ID of your action.

On changing the Implementation Name within 20 characters , it worked in his case.

Hope this helps.

Best Regards,
Saravanakumar M

bhaskar_idp
Explorer
0 Kudos

Hi dkolodin,

Please check the below for steps i have dome in SMC.

(1) Open Channel: Define Implementations

APPEND VALUE #( implementation = 'ZOC_EXPORT'
implementation_name = 'Calling Data'
icon_name = 'message-popup'
icon_url = '' "
communication_medium = 'CC_CALL' ) TO implementations.

(4) Open Channel: Enhance Payload for Data Transfer

LOOP AT target_group_member_status ASSIGNING FIELD-SYMBOL(<ls_target_group_member_stat>).
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_C4C_BUPA'.
IF SY-SUBRC EQ 0.
<ls_target_group_member_stat>-communication_id = <ls_contact_facet>-id.
ENDIF.
ENDLOOP.

(5) Open Channel: Define Template for Outbound Interaction

template-id_origin = 'SAP_C4C_BUPA'.
template-interaction_type = 'OUTBOUND_CC'.
template-communication_medium = 'CC_CALL'.
DATA: lv_campaign_id TYPE cuan_initiative_id,
lr_oc_header_attribute TYPE REF TO cuan_s_oc_header_attribute,
ls_campaign_root_api TYPE cuan_s_campaign_root_api.
READ TABLE header_attributes REFERENCE INTO lr_oc_header_attribute WITH KEY param_name = if_cuan_mkt_orch_constants=>sc_open_channel_header_attr-campaign.
IF sy-subrc EQ 0.
lv_campaign_id = lr_oc_header_attribute->param_value.
ls_campaign_root_api = cl_cuan_campaign_helper_api=>campaign_root_read( EXPORTING iv_id = lv_campaign_id ).
IF ls_campaign_root_api-priority EQ cl_cuan_campaign_helper_api=>co_priority-high.
template-interaction_type = 'OUTBOUND_CC'.
else.
template-interaction_type = 'OUTBOUND_CC'.

ENDIF.
ENDIF.

former_member611643
Participant
0 Kudos

bhaskar.idp, in just in case check your settings in the "Manage Your Solution"!

1. Your ID_ORIGIN = 'SAP_C4C_BUPA' and INTERACTION_TYPE = 'OUTBOUND_CC' should be assigned to your COMMUNICATION_MEDIUM = 'CC_CALL'!

2. Why in IF-ELSE construction INTERACTION_TYPE is always equil to 'OUTBOUND_CC'?

bhaskar_idp
Explorer
0 Kudos

Hi Sigy,

I have double-checked these values, but still the same issue.

Regards,

Bhaskar

bhaskar_idp
Explorer
0 Kudos

Hi Sigy,

I tried without Else statment, it didnt work so i added else statement with same IA type, not working in both the cases.

Regards,

Bhaskar

former_member611643
Participant
0 Kudos

Modify (5) Open Channel: Define Template for Outbound Interaction this way:

If interactions will create then add the rest part of your code, else the problem is your settings in "Manage Your Solution"!

template-id_origin = 'SAP_C4C_BUPA'.
template-interaction_type = 'OUTBOUND_CC'.
template-communication_medium = 'CC_CALL'.
bhaskar_idp
Explorer
0 Kudos

Hi,

Does this issue is resolved? If it resolved could you please let me know the solution? I am also facing the same issue.

Thank you.

Regards,

Bhaskar

former_member611643
Participant
0 Kudos

Hi, bhaskar.idp!

Could you please tell me which steps you've done, already?

isathore
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Have you set the custom interaction type in the SSCUI? Do the contact have the right communication ID as you have defined it in BAdI (4)? Have you enabled the BAdI (3) Open Channel: Define Global Settings for Execution to check the permission?

See details in our online documentation:

Configuration Interaction Types

https://help.sap.com/viewer/ac1eab4c66bc490da7ac2c378c46b0e7/2011.500/en-US/70c6cff77c684f8ea0867856...

Open Channel https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/2011.500/en-US/07b1fbac1fea412faa83ad07...

Best Regards

Isabelle?

former_member611643
Participant
0 Kudos

Hi, Isabelle.

Thanks a lot for your feedback.

All these options were set and cross-checked. Everything is fine.

But the result is not changed, IAs are not created still.