Set up SAP S/4HANA to query DataSources from Semarchy xDI

Follow these instructions to set up SAP S/4HANA so Semarchy xDI can query SAP S/4HANA DataSources.

Add includes

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

  2. In the Function Module field, enter ZSTB_INSERT_TRANSF_TBL and click on Create.

  3. Open the LZSTB_FUNCTION_GROUPTOP include for editing.

    Screenshot of setup procedure

  4. In the Include text field, insert the following directive text:

    type-pools: sbiwa, rsap, rsaot.
    1. Click on Save, validate the next prompts, and activate the data element.

      Screenshot of setup procedure

Create function modules

Locate and open these text files from the provided resource ZIP file:

  • ZSTB_SOURCES/ZSTB_COUNT_NUMBER_FIELDS.txt

  • ZSTB_SOURCES/ZSTB_FREE_DS_MEMORY.txt

  • ZSTB_SOURCES/ZSTB_RFC_DATASOURCE_SELECT.txt

  • ZSTB_SOURCES/ZSTB_DS_USER_EXIT.txt

Open the instructions to create function modules. Follow these instructions once per text file to create four additional function modules.

Edit user exit ZXRSAU01

Locate and open the text file ZXRSAU01 (INSERT).txt from the provided resource ZIP file. Use it as reference for the following steps:

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

  2. Enter the program name ZXRSAU01.

    Screenshot of setup procedure

  3. Click on Change.

  4. If an Information dialog box appears, click on the check mark to validate.

    Screenshot of setup procedure

  5. A program code window appears. Copy the contents of the ZXRSAU01 (INSERT).txt file, and paste it on its own line at the end of the program.

    Screenshot of setup procedure

  6. Save and activate the program.