Products

Solutions

Pricing

Free Trial

Blog

Demos & Recordings

Webinars

Events

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
  • Solutions
    • SAP Analytics
    • SAP Data Migration
    • SAP Process Automation
    • SAP Data for AI and Machine Learning
  • 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
    • SAP Data Models >
      • SAP FI/CO Table Relationships - Interactive Data Model Diagram
      • SAP SD Table Relationships - Interactive Data Model Diagram
      • SAP Inventory Management Table Relationships - Interactive Data Model Diagram
      • SAP Purchasing Table Relationships - Interactive Data Model Diagram
      • SAP PP Table Relationships - Interactive Data Model Diagram
      • SAP QM Table Relationships - Interactive Data Model Diagram
      • SAP PM Table Relationships - Interactive Data Model Diagram
      • SAP WM Table Relationships - Interactive Data Model Diagram
      • SAP HCM Table Relationships - Interactive Data Model Diagram
      • SAP PS Table Relationships - Interactive Data Model Diagram
    • 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
    • Webinars
    • Events
  • Contact Us

Blog

Extract Sales & Purchasing Tax Data from SAP ECC & SAP S/4HANA using KNIME & the DVW KNIME Connector for SAP

22/12/2020

 
Picture
In this blog we will demonstrate how you can easily extract Sales and Purchasing Tax data (Output Tax and Input Tax) from an SAP ECC or SAP S/4HANA system directly into KNIME.
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
Picture
​If you are more interested in using your SAP G/L accounting data in KNIME, take a look at, "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"

Identifying the required SAP Tables

For our purposes there are two tables that hold the data we need:
  • Accounting Document Header – BKPF
  • Tax Data Document Segment - BSET

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 BSET table.

You may also find our blog, the most important SAP Finance and Controlling (FI/CO) tables for KNIME users, helpful. 

How to extract Sales and Purchasing Tax data using KNIME and the DVW KCS for KNIME Analytics Platform

We’ve established that we need to extract data from two SAP tables:
  • Accounting Document Header - BKPF
  • Tax Data Document Segment - BSET

We are going to build a KNIME workflow that:
  • Extracts the required data from the BKPF table
  • Dynamically extracts the related entries from the BSET table
  • Joins the output from both tables to reconstruct the Sales and Purchasing Tax Line Items

​The DVW KNIME Connector for SAP comprises two nodes which work together to enable the extract of SAP data:
  • KCS SAP Designer Node
  • KCS SAP Executor Node

The KCS SAP Designer 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.

The KCS SAP Executor Node is used to 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 Designer 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 ECC system, but the process is exactly the same for SAP S/4HANA.
Picture
On the Parameters tab of the KCS SAP Designer 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, 2002,  Company Code is, 1000 and the Posting Date in the Document is between 01 January 2002 and 31 December 2002.
Picture
The KCS SAP Designer Node is connected to the KCS SAP Executor Node. 

Once connected, we just need to verify that XCS Transmission Object is selected in the KCS SAP Executor configuration.
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, BSET.

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, BSET is passed from the Column Filter Node to both the KCS SAP Designer Node AND the KCS SAP Executor Node.

On the Basic tab of the KCS SAP Designer configuration screen we select the required:
  • SAP system 
  • KCS SAP capability (SAP Tool)
Picture
On the Parameters tab of the KCS SAP Designer 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, BSET where the filter criteria are provided dynamically from the previous step in the workflow.
Picture
The KCS SAP Designer Node is connected to the KCS SAP Executor Node. 

Once again, we need to verify that XCS Transmission Object is selected in the KCS SAP Executor configuration.
Picture
At this point in the workflow design we can execute the KCS SAP Executor Node and verify the output from SAP Table, BSET.
Picture

Step 5

Picture
We now have the required data from SAP Tables, BKPF and BSET. 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 BSET 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

Step 6

Picture
The data is passed from the KNIME Joiner Node to a pair of KNIME Rule-based Row Filter Nodes which are used to prepare the final output:
  • Input Tax Line Items have a Transaction Key (KTOSL)  value of "VST"
  • Output Tax Lines Items have a Transaction Key (KTOSL) value of "MWS"

The first KNIME Rule-based Row Filter Node filters all the output records where the Transaction Key is "VST". ​
Picture
The output from the first KNIME Rule-based Row Filter Node can be verified to confirm that only Input Tax Line Items are included.
Picture
The second KNIME Rule-based Row Filter Node filters all the output records where the Transaction Key is "MWS". ​​
Picture
The output from the second KNIME Rule-based Row Filter Node can be verified to confirm that only Output Tax Line Items are included.
Picture
GET A FREE TRIAL TODAY

Comments are closed.

    RSS Feed

    Categories

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

    Archives

    May 2026
    April 2026
    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​
​SAP Connectors
DVW Alteryx Connector for SAP
DVW KNIME Connector for SAP
​DVW Dataiku Connector for SAP

DVW Flow Tool
DVW Flow Tool

RPA Tools for SAP
DVW Alteryx RPA Tools for SAP
DVW KNIME RPA Tools for SAP
DVW Flow Tool RPA Tools for SAP
Resources & Insights
Blog
Webinars
Watch Demos
Events
Solutions
SAP Analytics
SAP Data Migration
SAP Process Automation
SAP Data for AI and ML
Company
About Us
Contact Us
Pricing
Free Trial

[email protected]
Get started
​Start Free Trial
View Pricing
Book a Demo
DVW Analytics gives business users and technical teams direct read and write access to SAP data from Alteryx, KNIME, Dataiku, Power BI, Databricks, Snowflake, and more. Trusted by 500+ organizations worldwide.
© COPYRIGHT 2003 - 2026 DE VILLIERS WALTON LIMITED. ALL RIGHTS RESERVED.
Privacy Policy
Cookie Policy
De Villiers Walton Limited. Registered in England and Wales. Company No. 04638006. VAT No. GB 807714429. Registered Office:  Ground Floor Marlborough House, 298 Regents Park Road, London, N3 2SZ, United Kingdom

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.
  • 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
  • Solutions
    • SAP Analytics
    • SAP Data Migration
    • SAP Process Automation
    • SAP Data for AI and Machine Learning
  • 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
    • SAP Data Models >
      • SAP FI/CO Table Relationships - Interactive Data Model Diagram
      • SAP SD Table Relationships - Interactive Data Model Diagram
      • SAP Inventory Management Table Relationships - Interactive Data Model Diagram
      • SAP Purchasing Table Relationships - Interactive Data Model Diagram
      • SAP PP Table Relationships - Interactive Data Model Diagram
      • SAP QM Table Relationships - Interactive Data Model Diagram
      • SAP PM Table Relationships - Interactive Data Model Diagram
      • SAP WM Table Relationships - Interactive Data Model Diagram
      • SAP HCM Table Relationships - Interactive Data Model Diagram
      • SAP PS Table Relationships - Interactive Data Model Diagram
    • 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
    • Webinars
    • Events
  • Contact Us