Set up SAP S/4HANA to process IDocs from Semarchy xDI

Follow these instructions to configure the SAP S/4HANA server to pass IDocs through an RFC connection to Semarchy xDI.

You need to create and name an RFC destination, Program ID, port, and logical system. You can use your own names, or follow these suggestions:

  • STBIDOC: RFC destination and Program ID

  • STBIDOCPRT: port

  • STBISYS: logical System

Configure the RFC destination

  1. In SAP S/4HANA, launch transaction SM59.

  2. Add a new TCP/IP connection.

    Screenshot of setup procedure

  3. Go to the Technical Settings tab, and configure the new connection:

    • Set the RFC Destination to the name you chose.

    • Click the Registered Server Program radio button.

    • Set the Program ID to the name you chose, same as the RFC Destination.

      Screenshot of setup procedure

  4. Go to the MDMP & Unicode tab.

  5. Under Communication Type, click the Unicode radio button. * Screenshot of setup procedure

  6. Save your work.

Create a port

  1. In SAP S/4HANA, launch transaction WE21.

  2. Create a new Transactional RFC port.

    Screenshot of setup procedure

  3. In the Ports dialog box, select the own port name radio button.

  4. Set the Name to the port name you chose, and click the check mark.

    Screenshot of setup procedure

  5. Set the RFC destination field to the name you chose.

    Screenshot of setup procedure

  6. Save your work.

Create a logical system

  1. In SAP S/4HANA, launch transaction BD54.

  2. Click on New Entries to create a new entry.

    Screenshot of setup procedure

  3. Set the Log.System field to the name you chose for the logical system. Add a description in the Name field.

    Screenshot of setup procedure

  4. Save your work.

Create a logical system partner

  1. In SAP S/4HANA, launch transaction WE20.

  2. Create a Partner NDP, of type LS.

    Screenshot of setup procedure

  3. Make sure the fields are set as follows:

    • Partner No.: The name you chose for the logical system

    • Partn. Type: LS

    • Ty., Agent: Set according to your environment.

      Screenshot of setup procedure

  4. Save your work.

  5. Add an outbound parameter.

    Screenshot of setup procedure

  6. Make sure the fields are set as follows:

    • Partner No.: The name you chose for the logical system

    • Receiver port: The name you chose for the port

    • Output Mode: Collect IDocs

    • IDoc Type, Basic Type: Set according to your environment.

      Screenshot of setup procedure

  7. Save your work.

Reference the sapgw00 service

If you are on Windows, open the file C:\WINDOWS\system32\drivers\etc\services. Add the following line:

sapgw00 3300/tcp # SAP System Gateway Port