Business Scenario

Your company receives a purchase order from a trading partner in EDI format. You need to translate the EDI file to IDoc format and send it using file-based RFC to your back-end SAP system for further processing.

The approaches used to solve this business scenario include the following tasks:
Note: This business solution example focuses only on the SAP Suite adapter for JCo 3.x configuration and the SAP Inbound IDoc business process.
  • Configure EDI inbound envelopes for the purchase order. You need to define the following information in the appropriate envelopes:
    • The map used to translate the EDI file to IDoc format
    • The predefined SAPInboundIDoc business process as the business process to run after the EDI to IDoc translation is complete
  • Configure the SAP inbound route that contains the SAP ports and SAP client number of the SAP system that receives the IDoc. See Configuring an Inbound Route.
  • Configure the SAP inbound route cross-reference entry to link the SAP inbound route and EDI inbound envelope for routing the IDoc to the appropriate SAP system. See Configuring an Inbound Cross-Reference.
  • Create a business process that includes the EDI Deenvelope service for deenveloping the EDI document.
  • Configure an instance of the SAP Suite adapter for JCo 3.x that uses file-based IDoc RFC (see Example SAP Suite adapter for JCo 3.x Configuration).
  • Update the predefined SAPinbDelivery business process with the appropriate values for sending the IDoc to the SAP system. See SAP Inbound Delivery (SAPinbDelivery.bp) for the required updates.
  • Create an FTP login authentication file required by the FTP server and place the file in the directory where Sterling B2B Integrator is installed. See Creating an SAP Suite adapter for JCo 3.x Configuration.

Example SAP Suite adapter for JCo 3.x Configuration

A sample configuration might look like the following:

Business Solution Example Business Processes

The following example shows the predefined SAPInboundIDoc business process in the GPM. This business process is specified on the EDI inbound envelope and runs after EDI Deenveloping and after the EDI to IDoc translation is complete. The translated IDoc is input to the business process and becomes the primary document.
The following example shows the corresponding business process solution using BPML.
The following example shows the predefined SAPinbDelivery business process used to send the IDoc to the SAP system.
The following example shows sample output returned to the business process when the IDoc has been successfully received by the SAP system.
<EDI_DATA_INCOMING>
<PATHNAME>/sapmnt/I02/directory/orders.dat</PATHNAME>
<PORT>EDIPORT</PORT>
</EDI_DATA_INCOMING>

The EDI_DATA_INCOMING element represents the SAP Remote Function Call (RFC) that started. The PATHNAME and PORT elements are the input parameters that were passed into the SAP RFC.

A Basic Status of Success and Advanced Status of None in the Business Process Modeler indicate that the SAP Suite adapter for JCo 3.x ran the RFC successfully and that the SAP system has verified the EDI_DC header segment of the IDoc.

Running the Business Solution Example

Assuming that you have completed all the prerequisite requirements for EDI to IDoc document exchanges, you need to perform the following steps to run the business solution example:
  1. Run a business process that includes the EDI Envelope service and input the EDI file.
  2. Verify the results in the Business Process Monitor.

For information about examples of using the SAP Suite adapter for JCo 3.x, see Inbound Processing Examples and Outbound Processing Examples.