Docs / Connectors / Amazon Web Services

Amazon Web Services Connector

The ASAPIO Integration Add-on connects SAP S/4HANA and SAP ECC directly to AWS messaging and storage services — without middleware. Business events are published in real time to Amazon EventBridge, SNS, Kinesis Data Streams, or S3 using AWS Signature Version 4 (SigV4) signed REST calls. Unlike database-layer integrations, ASAPIO uses native SAP application-layer integration for full control over data and workload.

SAP to AWS integration architecture

Overview

ComponentType
ASAPIO Integration Add-on – FrameworkBase component (required)
ASAPIO Integration Add-on – Connector for AWSAdditional package

Prerequisites

Supported AWS Services

ServiceRequired IAM Action
Amazon EventBridgeevents:PutEvents
Amazon SNSsns:Publish
Amazon Kinesiskinesis:PutRecord and kinesis:PutRecords
Amazon S3s3:PutObject

Important: Do not use the root user. Create a dedicated IAM user without AWS Management Console access, scoped only to the required service actions (principle of least privilege). Store the secret access key in the SAP Secure Store — never in plaintext configuration.

SAP Connection Setup (in SAP Gui)

The connection setup in SAP GUI is a required first step for all configuration paths. This creates the RFC destination, imports the SSL certificate, activates the BC-Set, and registers the connection instance that Event Studio and SAP GUI-based event configuration both rely on.

Step 1 — Create RFC Destination (SM59)

Create an HTTP connection of type G pointing to the AWS regional endpoint (e.g., events.eu-central-1.amazonaws.com). On the Logon & Security tab, enable SSL and select the certificate list.

SM59 RFC destination for AWS
RFC destination SSL settings

Step 2 — Import SSL Certificate (STRUST)

In transaction STRUST, select the certificate list used in the RFC destination, click Import certificate, then Add to Certificate List.

STRUST certificate import for AWS

Step 3 — Import BC-Set (SCPR20)

Import the ASAPIO AWS framework BC-Set. This activates the cloud adapter configuration, codepage settings, and IDoc segment definitions:

SCPR20 BC-Set import for AWS connector

Step 4 — Configure Cloud Adapter

In SPRO → ASAPIO Cloud Integrator → Maintain Cloud Adapter, set:

AWS cloud adapter configuration

Step 5 — Create Connection Instance

In transaction /ASADEV/ACI_SETTINGS, create a connection instance pointing to the AWS RFC destination:

AWS connection instance

Step 6 — Configure Authentication Default Values

Set the following default values on the connection instance. These apply to all AWS service calls made through it:

Default AttributeValue / Description
AWS_ACCESS_KEYIAM access key ID
AWS_REGIONAWS region (e.g., eu-central-1)
AWS_SERVICETarget service type: sns, kinesis, s3, or events
AWS authentication default values

Store the IAM secret access key in the SAP Secure Store (transaction /ASADEV/SCI_TPW). Select the connection instance and enter the secret in the Cloud Shared Secret field:

IAM secret key in SAP Secure Store

Create an outbound interface (Event Studio)

Prerequisite: The connection instance must already be set up in SAP GUI (see SAP Connection Setup above) before Event Studio can be used to configure events.

Event Studio is the recommended web-based interface for creating and managing events. To configure an AWS event:

  1. Open Event Studio and select the backend SAP system.
  2. Go to the Data Catalog to find the data object (standard or custom) to stream.
  3. In the Available Standard Events table, click Deploy next to the object, or use Create to define a new event.
  4. Select the AWS connection from the Connection dropdown — the Header Fields table auto-populates with the connection's default attributes.
  5. Complete the mandatory header attributes for the target AWS service (see the per-service sections below).
  6. Save and activate the event.

After creating the interface in Event Studio, configure service-specific settings: EventBridge, SNS, Kinesis, or S3. For advanced configurations, see Payload Offloading and SNS Custom Attributes.

Amazon EventBridge

Configure the following header attributes on the outbound object for EventBridge targets:

Header AttributeValue / DescriptionRequired
AWS_EVENTBRIDGE_DETAIL_TYPEEvent description / detail type string for rule matchingOptional
AWS_EVENTBRIDGE_ENDPOINT_IDAWS endpoint specification for global endpointsOptional
AWS_EVENTBRIDGE_EVENT_BUS_NAMECustom event bus name (defaults to the default event bus if omitted)Optional
AWS_EVENTBRIDGE_SOURCEEvent source identifier (e.g., com.asapio.sap.s4)Optional
EventBridge header attributes configuration

Amazon SNS

Configure the following header attributes for SNS targets:

Header AttributeValue / Description
AWS_TOPICFull ARN of the target SNS topic
AWS_TOPIC_OWNERAWS account ID of the topic owner
SNS header attributes

Amazon Kinesis

Only Kinesis Data Streams are supported (not Kinesis Firehose). Configure the following header attribute:

Header AttributeValue / Description
AWS_KINESIS_STREAM_NAMEName of the Kinesis Data Stream
Kinesis header attributes

Amazon S3

Configure the following header attribute for S3 targets:

Header AttributeValue / Description
AWS_S3_BUCKETName of the target S3 bucket

Create an outbound interface (SAP Gui)

All three outbound methods are available for AWS targets:

MethodExtraction FMFormatting FMResponse FM
Simple Notify/ASADEV/ACI_SIMPLE_NOTIFY/ASADEV/ACI_AWS_RESP_HANDLER
Message Builder/ASADEV/ACI_GEN_VIEW_EXTRACTOR/ASADEV/ACI_GEN_VIEW_FORMATTER/ASADEV/ACI_AWS_RESP_HANDLER
Packed Load/ASADEV/ACI_GEN_VIEW_EXT_PACK/ASADEV/ACI_GEN_VIEW_FORMATTER

Step 1 — Create Message Type (WE81 / BD50)

Create a unique message type in transaction WE81, then activate it in BD50 by ticking the Active checkbox.

WE81 message type creation

Step 2 — Create Outbound Object

In transaction /ASADEV/68000202, select the connection instance and add an entry under Outbound Objects. Set the Extraction FM, Message Type, Load Type, and Response Function as shown above.

AWS outbound object configuration
AWS outbound object detail

Step 3 — Configure Header Attributes

In the Header Attributes section of the outbound object, add the service-specific routing attributes listed in the per-service sections above.

AWS header attributes on outbound object

Step 4 — Event Linkage (SWE2)

Register the event trigger in transaction SWE2:

SWE2 event linkage for AWS

Packed Load — Header Attributes

For Packed Load (large data splitting), configure these additional header attributes:

AttributeDescriptionExample
ACI_PACK_TABLETable for key fields (typically the header table, not the extraction view)MARA
ACI_PACK_SIZENumber of records per delivery package500
ACI_PACK_KEY_LENGTHTotal length of key fields from ACI_PACK_TABLE13
ACI_PACK_WHERE_CONDOptional WHERE condition applied to ACI_PACK_TABLE
ACI_PACK_RETRY_TIMESeconds to wait before retrying server group resource acquisition300
ACI_PACK_BDCP_COMMITGenerate change pointers per entry. Requires message type. Caution: reduces performance by ~50%.X
ACI_VIEWCompatible database view name (key-compatible with ACI_PACK_TABLE)Z_MARM_TEST

Execute the initial load in transaction /ASADEV/ACI: select the connection, set Upload Type to P, select the replication object, and specify a server group. Consult your basis team before running on large data volumes.

Packed load initial load execution
AWS configuration step 18
AWS configuration step 19
AWS configuration step 20
AWS configuration step 21
AWS configuration step 22

SNS Payload Offloading

Amazon SNS has a 256 KB message size limit. The ASAPIO AWS connector supports transparent payload offloading: the payload is written to S3, and the SNS notification contains only an S3 reference URL. The consuming application retrieves the full payload from S3. Offloading supports payloads up to 2 GB.

Configure the following header attributes to enable offloading:

Header AttributeValue / Description
AWS_PAYLOAD_OFFLOADINGX — enables payload offloading
AWS_PAYLOAD_OFFLOADING_SIZEThreshold in bytes above which offloading triggers (e.g., 140). Below threshold, standard SNS is used.
AWS_S3_BUCKETS3 bucket name for offloaded payload storage
AWS_S3_DESTINATIONRFC destination name for the S3 endpoint
AWS_TOPICTarget SNS topic ARN
AWS_TOPIC_OWNERAWS account ID of the SNS topic owner

SNS Custom Message Attributes

Available from release 9.32507, SNS Custom Message Attributes let you attach structured key-value metadata to each SNS message. Subscribers can filter messages using SNS subscription filter policies without parsing the message body.

Note for SQS subscriptions: A maximum of 10 message attributes can be sent when Raw Message Delivery is enabled. Messages with more than 10 attributes directed to Raw Message Delivery-enabled SQS subscriptions will be discarded as client-side errors.

Configuration (Field Mapping Section)

In the Field Mapping section of the outbound object, add entries with:

A conversion class/method can be specified to transform the raw field value (e.g., translate SAP-specific codes to common terms). The unconverted value is what gets transmitted.

SNS custom attribute name configuration
SNS custom attribute general configuration
SNS custom attribute conversion methods

Monitor & Verification

Message attributes are visible in the ASAPIO monitor when tracing is activated:

Monitor showing SNS custom attributes
SNS custom attributes visible in SQS message