Products

Demos & Recordings

Pricing

Free Trial

Contact Us

DVW Analytics
  • Products
    • DVW Connectors for SAP >
      • DVW Alteryx Connector for SAP
      • DVW KNIME Connector for SAP
      • DVW Dataiku Connector for SAP
    • DVW Flow Tool >
      • DVW Flow Tool
      • DVW Employee Master Data Migration for SAP Solutions
    • DVW RPA Tools for SAP >
      • DVW Alteryx RPA Tools for SAP
      • DVW KNIME RPA Tools for SAP
      • DVW Flow Tool RPA Tools for SAP
  • Demos & Recordings
    • DVW Connectors for SAP >
      • DVW Alteryx Connector for SAP Demos
      • DVW KNIME Connector for SAP Demos
      • DVW Dataiku Connector for SAP Demos
    • DVW Flow Tool >
      • DVW Flow Tool Demos
    • DVW RPA Tools for SAP >
      • DVW RPA Tools for SAP Demos
  • Pricing
    • DVW Connectors for SAP >
      • DVW Alteryx Connector for SAP Pricing
      • DVW KNIME Connector for SAP Pricing
      • DVW Dataiku Connector for SAP Pricing
    • DVW Flow Tool >
      • DVW Flow Tool Pricing
    • DVW RPA Tools for SAP >
      • DVW RPA Tools Pricing
  • Free Trial
  • Resources
    • About Us
    • Customers
    • Partners
    • Resellers
    • Services
    • Help Centre
    • Sample Workflows
    • License
  • Insights
    • Blog
    • Webinars
    • Events
  • Contact Us

Blog

Learn how you can easily extract SAP General Ledger accounting data from SAP ECC & SAP S/4HANA using KNIME & the DVW KNIME Connector for SAP

18/12/2020

 
Picture
​In this blog we will show you how you can easily extract SAP General Ledger Accounting Data from SAP ECC & SAP S/4HANA into KNIME with the DVW KNIME Connector for SAP.
If you would like to follow the steps described in this blog you will need:
  • KNIME Analytics Platform - Download here
  • DVW KCS for KNIME Analytics Platform - Request a trial here
  • Access to an SAP ECC or SAP S/4HANA system

The SAP General Ledger Document

Picture
SAP uses a document concept for business transactions in which there is Header data and Item or Segment data. 

​​In order to get the full picture for an SAP financial transaction in KNIME you will need to extract both Header data and Item or Segment data.​

The “Big Two” SAP Financial Accounting Tables 

​There are thousands of data tables in an SAP system. So how do you identify which tables you need to access? Unless you have developer level access, it can be difficult, but we have already done the heavy lifting for you with our blog on, the SAP Finance and Controlling (FI/CO) tables every KNIME user should know. Barring this, Google is a great source for SAP table data information.

For SAP General Ledger accounting data there are two important tables that hold the Header data and Item or Segment data for all Financial transactions in SAP. By combining data from the two tables we can effectively recreate SAP Financial Accounting documents within KNIME.

​The tables are:
  • Accounting Document Header – BKPF
  • Accounting Document Segment - BSEG
Picture
Both tables share common fields:
  • Company Code - BUKRS
  • Accounting Document Number - BELNR
  • Fiscal Year – GJAHR

​In our workflow we will use these fields in the BKPF table to find the corresponding entries in the BSEG table.

How to extract General Ledger accounting data using KNIME and the DVW KCS for KNIME Analytics Platform

So, we’ve established that we need to extract data from two SAP tables:
  • Accounting Document Header – BKPF
  • Accounting Document Segment - BSEG

We are going to build a KNIME workflow that:
  • Extracts the required data from the BKPF table
  • Dynamically extracts the related entries from the BSEG table
  • Joins the output from both tables to reconstruct the SAP Financial Accounting document

​The DVW KNIME Connector for SAP comprises the KCS SAP Executor Node.

The KCS SAP Executor Node is used to:
  • Identify the SAP system to be used
  • Select the required DVW KNIME Connector for SAP capability e.g. SAP Table Data Read, SAP BW Read etc.
  • Search for and select the specific SAP Table, SAP BW Query, SAP BW InfoProvider etc. to be used in the workflow
  • Configure the extract settings for the selected SAP object e.g. select the fields, apply filters etc.
  • Execute the SAP data extract based on the settings defined in the KCS SAP Designer Node.

The final workflow looks like this. 
Picture
Let's take a look at how the workflow is defined.

Step 1

Picture
On the Basic tab of the KCS SAP Executor Node configuration screen we select the required:
  • SAP system 
  • KCS SAP capability (SAP Tool)

In our example, we are going to extract SAP Table Data from an SAP S/4HANA system, but the process is exactly the same for SAP ECC.
Picture
On the Parameters tab of the KCS SAP Executor Node configuration screen we:
  • Search for and select the required SAP Table
  • Select the fields to be extracted from the SAP Table
  • Apply filters to the SAP Table fields

In our example, we are going to extract data from SAP Table, BKPF where the Fiscal Year is, 2019 and Company Code is, 1710.

Picture
At this point in the workflow design we can execute the KCS SAP Executor Node and verify the output from SAP Table, BKPF.
Picture

Steps 2 and 3

Picture
In Step 2 we are simply connecting the output from the KCS SAP Executor Node which extracts data from SAP Table, BKPF to a KNIME Joiner Node. We will return to the KNIME Joiner Node in Step 5.

In Step 3 we need to prepare the data extracted from SAP Table, BKPF so that it can be used to dynamically extract the related entries from SAP Table, BSEG.

We won't go into a lot of detail here and suspect that a few KNIME experts will be laughing at the number of Nodes we've used to prepare the data!

In summary, the dynamic input into the next KCS SAP Designer Node and KCS SAP Executor Node combination needs to be in the following format:
  • Name
  • Selection
  • Operator
  • LowKey
  • HighKey
  • Split 

The output from the Column Filter Node illustrates this.​
Picture

Step 4

Picture
In this step, the data extracted from SAP Table, BKPF and subsequently prepared for the dynamic selection of related entries in SAP Table, BSEG is passed from the Column Filter Node to the KCS SAP Executor Node.

On the Basic tab of the KCS SAP Executor configuration screen we select the required:
  • SAP system 
  • KCS SAP capability (SAP Tool)
Picture
On the Parameters tab of the KCS SAP Executor configuration screen we:
  • Search for and select the required SAP Table
  • Select the fields to be extracted from the SAP Table
  • Apply filters to the SAP Table fields

In our example, we are now going to extract data from SAP Table, BSEG where the filter criteria are provided dynamically from the previous step in the workflow.
Picture
At this point in the workflow design we can execute the KCS SAP Executor Node and verify the output from SAP Table, BSEG.
Picture

Step 5

​
Picture
We now have the required data from SAP Tables, BKPF and BSEG. The KNIME Joiner Node is used to combine the data from both tables to recreate the SAP Financial Accounting documents.

The KNIME Joiner Node is configured to join the BKPF and BSEG output on the shared keys between both tables, specifically:
  • Company Code - BUKRS
  • Accounting Document Number - BELNR
  • Fiscal Year - GJAHR
Picture
At this point in the workflow design we can execute the KCS SAP Executor Node and verify the output from the KNIME Joiner Node.
Picture
By looking at the Financial Document in SAP (T-Code FB03) we can confirm that the data extracted into KNIME aligns with what is available in SAP.
Picture

Step 6

Picture
In the final step of the workflow, the KNIME Joiner Node output is passed to a KNIME Excel Write Node and the final output written to an Excel file.
GET A FREE TRIAL TODAY

Comments are closed.

    RSS Feed

    Categories

    All
    AI & Machine Learning
    Audit
    Data Migration
    DVW Alteryx Connector For SAP
    DVW Dataiku Connector For SAP
    DVW Flow Tool
    DVW KNIME Connector For SAP
    DVW RPA Tools For SAP
    Process Automation
    Product Updates
    Reporting & Analytics
    SAP Data Extraction
    SAP S/4HANA
    Use Cases
    Webinar Recordings

    Archives

    March 2026
    February 2026
    December 2025
    November 2025
    October 2025
    August 2025
    July 2025
    October 2024
    September 2024
    July 2024
    June 2024
    February 2024
    October 2023
    June 2023
    May 2023
    March 2023
    February 2023
    January 2023
    June 2022
    March 2022
    February 2022
    December 2021
    November 2021
    October 2021
    May 2021
    April 2021
    December 2020
    October 2020
    June 2020
    February 2020
    September 2019
    June 2019
    August 2018
    June 2018

Products

DVW Connectors for SAP
DVW Alteryx Connector for SAP
DVW KNIME Connector for SAP

DVW Dataiku Connector for SAP

DVW Flow Tool
​DVW Flow Tool
​DVW Employee Master Data Migration for SAP Solutions

DVW RPA Tools for SAP
DVW Alteryx RPA Tools for SAP
DVW KNIME RPA Tools for SAP
DVW Flow Tool RPA Tools for SAP

Demos & Recordings

DVW Connectors for SAP
DVW Alteryx Connector for SAP Demos
DVW KNIME Connector for SAP Demos

DVW Dataiku Connector for SAP Demos

DVW Flow Tool
​DVW Flow Tool Demos

DVW RPA Tools for SAP
​DVW RPA Tools for SAP Demos

Pricing

Free Trial

Blog

Webinars

Events

Help Centre

About Us

Contact Us

DVW Analytics integrates SAP with leading analytics and data platforms, enabling users of Alteryx, KNIME, Dataiku, Microsoft, Databricks, Snowflake, and more to work seamlessly with SAP data.

© COPYRIGHT 2003 - 2026 DE VILLIERS WALTON LIMITED. ALL RIGHTS RESERVED.

SAP® Business Suite, SAP® BusinessObjects™, SAP® BW, SAP® SuccessFactors are the trademarks or registered trademarks of SAP SE in Germany and in several other countries.
Privacy Policy
  • Products
    • DVW Connectors for SAP >
      • DVW Alteryx Connector for SAP
      • DVW KNIME Connector for SAP
      • DVW Dataiku Connector for SAP
    • DVW Flow Tool >
      • DVW Flow Tool
      • DVW Employee Master Data Migration for SAP Solutions
    • DVW RPA Tools for SAP >
      • DVW Alteryx RPA Tools for SAP
      • DVW KNIME RPA Tools for SAP
      • DVW Flow Tool RPA Tools for SAP
  • Demos & Recordings
    • DVW Connectors for SAP >
      • DVW Alteryx Connector for SAP Demos
      • DVW KNIME Connector for SAP Demos
      • DVW Dataiku Connector for SAP Demos
    • DVW Flow Tool >
      • DVW Flow Tool Demos
    • DVW RPA Tools for SAP >
      • DVW RPA Tools for SAP Demos
  • Pricing
    • DVW Connectors for SAP >
      • DVW Alteryx Connector for SAP Pricing
      • DVW KNIME Connector for SAP Pricing
      • DVW Dataiku Connector for SAP Pricing
    • DVW Flow Tool >
      • DVW Flow Tool Pricing
    • DVW RPA Tools for SAP >
      • DVW RPA Tools Pricing
  • Free Trial
  • Resources
    • About Us
    • Customers
    • Partners
    • Resellers
    • Services
    • Help Centre
    • Sample Workflows
    • License
  • Insights
    • Blog
    • Webinars
    • Events
  • Contact Us