Skip to main content

Celonis Product Documentation

Local extractor for SAP ECC and SAP S/4HANA

Limited availability

This functionality is currently in limited availability. If you’re interested in trying it out, get in touch with us through celopeers.com/s/support.

You can use a local extractor for SAP ECC and SAP S/4HANA, allowing you to perform a one-time extraction of your data. This process makes use of a native RFC function - RFC_READ_TABLE - that allows the third parties to extract data provided they have the necessary user permissions in their SAP system.

Prerequisites for using the local extractor

To use the local extractor to extract data from your SAP ECC and SAP S/4HANA systems, you must meet the following prerequisites:

  • Minimum supported SAP system:

    • SAP S/4HANA: All versions supported.

    • SAP ECC: Netweaver (NW) 7.31 or higher. You may be required to install an SAP Note (3291780 or 2246160 for NW 731 and 740 respectively). If this note is not installed, you may see a 'RFC_READ_TABLE not compatible' error when attempting a dry run.

  • SAP user authorization: Access to an SAP system user that has the authorization to do the following:

    • Execute selected RFC functions.

    • Read access to the necessary tables.

    The package described in the steps below comes with a sample role (CELONIS_DESKTOP_EXTRACTOR.SAP) that has all these authorizations if necessary.

  • Local machine:

    • Windows or Linux (64 bit).

    • Java 17 runtime (pre-packaged, so no installation is required).

    • SAP JCo library for the respective OS.

Installing the local extractor for SAP ECC and SAP S/4HANA

To install the local extractor, follow these steps:

To download the package:

  1. Click Admin & Settings.

    Access_and_settings.png
  2. Click Download Portal.

  3. Locate and download the Celonis Desktop Extractor package.

  4. Extract the package locally.

The package includes the following files:

  • An SAP role template with the authorizations that are required to run the app (CELONIS_DESKTOP_EXTRACTOR.SAP).

  • The .jar file / the extractor programme.

  • An empty folder titled “jco” where the SAP JCo library should be copied.

  • The packaged Java library that will be used so that you don’t have to install Java.

  • An extraction template for the O2C process.

  • The script to launch the application.

To communicate with SAP, the extractor needs to establish a connection to the system and be able to make RFC calls. To achieve this, the SAP Java Connector (SAP JCo) library is used (maintained by SAP). The JCo library should be downloaded and set up separately. This involves two steps:

  1. Download the respective package from the SAP Marketplace. This step should be performed by someone who has an SAP Service User (S User), which authorizes users to download software from SAP portals.

  2. Copy the JCo files into the dedicated folder “jco” in the package directory, the extractor is configured to read the files from there. The library contains 2 files - a Java part “sapjco3.jar”, and an operating system-specific part, for example, sapjco3.[.dll | .so].

Once the JCo library is set up, the extractor is ready to connect to SAP.

The application is launched by running the script run.[.sh | bat] distributed inside the package. This executes a command in the terminal which invokes the application.

If successful, the following confirmation window is displayed:

Confirmation_message.png

The first step is to define the extraction configuration, i.e. what to extract. This is done by uploading an Excel file with all the required inputs, i.e. which tables and columns to extract, what filters to apply, etc. The package already includes a template with the tables for the O2C process.

You can download more process templates following the steps from this page: Generating the ABAP report.

To upload the template:

  1. Click on the 3 dot button to browse the folders.

    browse_files.png
  2. Select the file and click Load file.

    The tables from the template will be displayed.

    files_loaded.png
  3. Click Edit - SAP Systems.

    edit_sap_systems.png

    Initially it will be empty, since there are no connections defined yet.

    no_content_in_table.png
  4. Click Add and define the credentials of the SAP system that you want to connect to. Then click Save.

    The added system is now available in the dropdown.

  5. Define the directory where the output should be written, select the SAP system you want to extract data from, and click Execute.

    click_execute.png
  6. You will be prompted to enter your username password.

    Afterwards you can do a “Dry Run”, or start the Extraction right away. We recommend doing a dry run first. This checks that:

    • You can connect to the SAP system.

    • The system has the required version of the function RFC_READ_TABLE.

    • Your user is authorized to call the required functions and read from the selected tables.

    user_name_and_password.png

    Once the Dry Run progresses, messages will be displayed for the validated tables. You can also see the details of the Dry Run in the logs on the dialogue bottom. If everything is ok, you can go ahead with the extraction.

    dry_run_progress.png

You start the extraction by clicking Execute. This will establish a connection to SAP and start writing the data to files on your machine in the “Output directory” defined by you.

execute.png

As the extraction progresses, the table statuses will be updated accordingly in the Extractor GUI. Note that you might see warnings for the empty tables.

progress.png

You can also check and export the detailed logs.

export_logs.png

For every extracted table a compressed file will be generated with all the csv files. You can upload these files to Celonis via the File Uploader.