Topics: |
The SAP ERP event adapter receives IDocs (Intermediate Documents) from SAP ERP.
The iWay Application Adapter for SAP ERP accepts IDocs in either SAP ERP standard format or XML format. If you are using flat IDocs, no encoding is required and the EDI_DC40 control header must be the first entry in the IDoc.
How to: |
When sending collected IDocs to SAP ERP, if the DOCNUM field does not have a unique document number for each IDoc, the system creates an IDoc for each header record in the collected IDoc file. The system also duplicates the data for each IDoc.
You must ensure that the DOCNUM field is included in the EDI_DC40 structure and that each IDoc has a unique sequence number within the collected IDoc file.
To configure an SAP ERP system to send IDocs to the SAP ERP event adapter, you use the ALE (Application Link Enabling) configuration to:
A port identifies where to send messages. The port can be used only if an RFC destination was previously created.
For more information on creating an RFC destination, see Overview. For more information on defining a port, see How to Define a Port.
One type of partner is a logical system. A logical system manages one or more RFC destinations. For more information, see How to Create a Logical System.
A partner profile is a definition of parameters for the electronic interchange of data with a trading partner using the IDoc interface. To communicate with a partner using the IDoc interface, you must create a partner profile. For more information, see How to Create a Partner Profile.
You create a distribution model for the partner and message type you designated. For more information, see How to Create a Distribution Model for the Partner and Message Type.
To define a port:
The Creating a tRFC port window opens as shown in the following image. On the left, the window is divided into a Ports pane and a Description pane. A pane for displaying information about the port is on the right.
The system generates the port name.
To create a logical system called IWAYLOG:
The Change View "Logical Systems": Overview window opens and displays a list of logical systems and their names, as shown in the following image.
The New Entries: Overview of Added Entries window opens, as shown in the following image, with columns labeled Log.System and Name for adding new log systems.
To create a partner profile:
The Partner profiles: Outbound parameters window opens and displays fields for specifying details for the partner profile, as shown in the following image.
Partn.type is LS.
Message type is DEBMAS (the IDoc document type).
The Partner profiles summary window opens and displays information for the logical system that you created, as shown in the following image. In the left pane are partners and descriptions. The right pane displays information depending on which tab is active.
To create a distribution model called IWAYMOD:
The Display Distribution Model window opens.
The Distribution Model Changed window opens with a tree structure of the distribution model in the left pane and the descriptions or technical names in the right pane, as shown in the following image.
The Add Message Type pane opens and displays the name of the model view. It includes fields for specifying the sender and receiver of the message, as well as the message type, as shown in the following image.
In this case, the sender is an SAP ERP 4.6B system.
The Change Distribution Model window opens and displays the new model view to use to send message type, DEBMAS, from the I46_CLI800 SAP ERP system to the IWAYLOG logical system, as shown in the following image.
You are now ready to test the connection to the logical system.