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
-
In SAP S/4HANA, launch transaction
SE37
. -
In the Function Module field, enter
ZSTB_INSERT_TRANSF_TBL
and click on Create. -
Open the
LZSTB_FUNCTION_GROUPTOP
include for editing. -
In the Include text field, insert the following directive text:
type-pools: sbiwa, rsap, rsaot.
-
Click on Save, validate the next prompts, and activate the data element.
-
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:
-
In SAP S/4HANA, launch transaction
SE38
. -
Enter the program name
ZXRSAU01
. -
Click on Change.
-
If an Information dialog box appears, click on the check mark to validate.
-
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. -
Save and activate the program.