The adapter has certain prerequisites for running
with the SAP ALE interface.
To run the adapter with the ALE interface, you must do the following:
- Check the configuration of your SAP system
- Configure SAP to update the IDoc status
- Configure the adapter’s J2C activation specification properties
Check the configuration of your SAP system
Before running the adapter with the ALE
interface, verify that the SAP system is properly configured to process business
objects. The following conditions apply to both inbound and outbound processing:
- Check that the logical systems are defined and assigned for the SAP system
and external system (transaction code SALE).
- Check that the distribution model has been maintained, and that the required
message types have been added to the model (transaction code BD64).
- Check that there are partner profiles for the logical system or distribution
model (transaction code WE20).
- Check that the port definition (transaction code WE21) is defined for
the version of IDoc record types that you want.
Configure the adapter’s J2C activation specification properties
J2C activation specification
properties (also referred to as message endpoint properties), correspond to
the ActivationSpec interface of the J2EE Connector Architecture Specification.
These properties are relevant to working with the ALE interface because an
activation specification is a JavaBean used during endpoint activation. Endpoint
activation is the process of notifying the adapter of eligible listener threads.
For inbound processing, the adapter uses these listeners to receive events
from SAP before forwarding them to the endpoint (a message driven bean).
To
enable the adapter to work with the SAP ALE interface, you must configure
the J2C activation specification properties.
Configure SAP to update the IDoc status
For
inbound processing, you must do the following to ensure that the adapter updates
the standard SAP status code after it retrieves an IDoc:
- Set the AleUpdateStatus configuration property to true and set values
for the AleSuccessCode and AleFailureCode configuration properties.
- Configure the inbound parameters of the partner profile of the logical
system in SAP to receive the ALEAUD message type. Set the following properties
to the specified values:
Inbound properties of the logical system partner profile
SAP property |
Value |
Basic Type |
ALEAUD01 |
Logical Message Type |
ALEAUD |
Function module |
IDOC_INPUT_ALEAUD |
Process Code |
AUD1 |