IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > SAP Software > SAP interfaces > ALE interfaces

Inbound processing for the ALE interfaces

The adapter supports inbound processing (from the SAP server to the adapter) for the ALE interface.

When you configure a module for the ALE interface, you can indicate whether the IDocs are sent as a packet. In addition, you can specify whether IDocs are sent parsed or unparsed. You make these selections on the Configuration Properties window of the external service wizard. The selections you make are reflected in the application-specific information for the IDoc business object.

The following list describes the sequence of processing actions that result from an inbound request using the ALE interface.

  1. The adapter starts event listeners to the SAP server.

  2. Whenever an event occurs in SAP, the event is sent to the adapter by way of the event listeners.

  3. The adapter converts the event into a business object before sending it to the endpoint.

The adapter uses the event recovery mechanism to track and recover events in case of abrupt termination. The event recovery mechanism uses a data source for persisting the event state.

If you have selected split IDocs and SAP is sending packet IDocs, the adapter delivers each IDoc inside the packet as an individual event to the end point. During recovery, the SAP system has to resubmit the whole packet. The adapter only delivers IDocs which have not been delivered in previous attempts from the packet.

The adapter is able to listen to and deliver events from multiple SAP systems using multiple activation specs.

The adapter is also able to deliver events to multiple endpoints. You enable delivery to multiple endpoints by configuring multiple activation specifications.

Define a separate activation specification for each endpoint to which events need to be delivered, except when the adapter delivers events only to those endpoints that are active.

When multiple endpoints subscribe to the same events from the same event store, the adapter assures event delivery to active endpoints only. Any endpoints that are inactive do not receive the event. If there are multiple endpoints and any one endpoint is not active, the message is skipped for that endpoint and the adapter delivers the event only to the active endpoints. If all the endpoints are inactive, the event is rolled back, and the event needs to be resubmitted from SAP.

The following table provides an overview of the differences between the ALE interface and the ALE pass-through IDoc interface for inbound processing.

differences between the ALE interface and the ALE pass-through IDoc interface
Interface When to use SplitIDoc = true SplitIDoc = false Parsed IDoc = true Parsed IDoc = false
ALE inbound This interface converts the raw incoming IDocs to business objects, which are readily consumable by the client at the endpoint. On receiving the IDoc packet from SAP, the adapter converts the IDocs to business objects, one by one, before sending each one to the endpoint. On receiving the IDoc packet from SAP, the adapter converts the IDocs in the packet as one business object before sending it to the endpoint. The incoming IDoc is parsed for both control record and data record. The individual segments in the IDoc are read and parsed to convert into business objects. The incoming IDoc is only partially parsed (the control record of the IDoc is parsed but the data record is not). The client at the endpoint is responsible for parsing the data record.
ALE pass-through IDoc This interface wraps the raw incoming IDoc in a business object before delivering it to the client at the endpoint.

The client is responsible for parsing the raw IDoc.

On receiving the IDoc packet from SAP, the adapter wraps each raw IDoc within a business object before sending the objects, one by one, to the endpoint. On receiving the IDoc packet from SAP, the adapter wraps the raw IDoc packet in a business object before sending it to the endpoint. This attribute is not applicable to the ALE pass-through IDoc. This attribute is not applicable to the ALE pass- through IDoc interface. (Neither the control record nor the data record of the IDoc is parsed.

The ALE interfaces