The document describes how to publish events to Integration Connectors through the Business Eventing Toolkit for SAP.
Prerequisites
Make sure that you or your administrators have completed the following prerequisites:
Enabled the Integration Connectors API. For information about how to enable Google Cloud APIs, see Enabling APIs.
Configured a client key for authentication. For information about how to set up authentication in the on-premises or any cloud edition of ABAP SDK for Google Cloud, see Authentication overview.
Created an RFC destination with the Integration Connectors endpoint configured as the host. For the RFC destination, in the Service mapping configuration
make sure that the Google Service Name is connectors:v1. For information about how to create an RFC destination, see Create RFC destinations.
To publish event data to Integration Connectors, call the publish() method:
DATA:lt_dataTYPE/goog/if_ce_publisher=>tt_messages." Write logic to populate LT_DATA.lt_data=VALUE#((data='Hello World!'))./goog/cl_event_publisher=>publish_event(EXPORTINGiv_event_key='EVENT_KEY'it_data=lt_dataIMPORTINGet_output=DATA(lt_output)ev_ret_code=DATA(lv_ret_code)ev_err_text=DATA(lv_err_text)).
Replace EVENT_KEY with the event key configured for publishing events to Integration Connectors.
To send an event as a CloudEvent, you can configure the Cloud Event Default Attribute Key
and attach this key to your Event key when configuring the target Google Cloud services. The Business Eventing Toolkit for SAP
then picks up the default attribute values for the CloudEvent.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Publish events to Integration Connectors\n\n\u003cbr /\u003e\n\nThe document describes how to publish events to Integration Connectors through the Business Eventing Toolkit for SAP.\n\nPrerequisites\n-------------\n\nMake sure that you or your administrators have completed the following prerequisites:\n\n- Enabled the Integration Connectors API. For information about how to enable Google Cloud APIs, see [Enabling APIs](/endpoints/docs/openapi/enable-api).\n- Configured a client key for authentication. For information about how to set up authentication in the on-premises or any cloud edition of ABAP SDK for Google Cloud, see [Authentication overview](/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/authentication).\n- Created an RFC destination with the Integration Connectors endpoint configured as the host. For the RFC destination, in the [Service mapping configuration](/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/install-config#service_mapping_config) make sure that the **Google Service Name** is `connectors:v1`. For information about how to create an RFC destination, see [Create RFC destinations](/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/install-config#create_rfc_destinations).\n- The service account configured in the client key for authentication must have the following role: [Connector Event Listener (`roles/connectors.listener`)](/iam/docs/understanding-roles#connectors.listener).\n- Configured target Google Cloud services with the following details:\n\n - **Event Processor Class** : `/GOOG/CL_PUBLISHER_CONNECTORS`\n - **Google Cloud Key Name**: The client key for authentication.\n - **Event Parameter 1**: The connection ID of the Integration Connectors.\n - **Event Parameter 2**: The location of the Integration Connectors.\n\n For information about how to configure target Google Cloud services, see [Configure target Google Cloud services](/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/eventing-toolkit-for-sap-configuration#configure-target-gc-service).\n\nPublish events\n--------------\n\nTo publish event data to Integration Connectors, call the `publish()` method: \n\n DATA: lt_data TYPE /goog/if_ce_publisher=\u003ett_messages.\n\n\n \" Write logic to populate LT_DATA.\n lt_data = VALUE #( ( data = 'Hello World!' ) ).\n\n /goog/cl_event_publisher=\u003epublish_event(\n EXPORTING\n iv_event_key = '\u003cvar class=\"edit\" translate=\"no\"\u003eEVENT_KEY\u003c/var\u003e'\n it_data = lt_data\n IMPORTING\n et_output = DATA(lt_output)\n ev_ret_code = DATA(lv_ret_code)\n ev_err_text = DATA(lv_err_text)\n ).\n\nReplace \u003cvar translate=\"no\"\u003eEVENT_KEY\u003c/var\u003e with the event key configured for publishing events to Integration Connectors.\n\nTo send an event as a CloudEvent, you can configure the **Cloud Event Default Attribute Key**\nand attach this key to your **Event key** when configuring the [target Google Cloud services](/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/eventing-toolkit-for-sap-configuration#configure-target-gc-service). The Business Eventing Toolkit for SAP\nthen picks up the default attribute values for the CloudEvent."]]