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

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

7/6/2019

 
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 Alteryx with the DVW Alteryx Connector for SAP.
Picture
If you would like to follow the steps described in this blog you will need:
  • Alteryx Designer - Request a trial here.
  • DVW ACS for Alteryx Designer - Request a trial here.
  • Access to an SAP ECC or SAP S/4HANA system
If you have access to Alteryx Gallery and would like to download the workflow presented in the blog, click here.

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 Alteryx 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 most important SAP Finance and Controlling (FI/CO) tables for Alteryx users. 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 Alteryx.
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 Alteryx and the DVW ACS for Alteryx Designer

So, we’ve established that we need to extract data from two SAP tables:
  • Accounting Document Header – BKPF
  • Accounting Document Segment - BSEG
To achieve this, we are going to use 2 workflows, a “Caller” workflow and a “Callee” workflow. 
Picture
The “Caller” workflow will be used to extract data from the Header table, BKPF. 

Key fields from BKPF will be passed to the “Callee” workflow to support the extract of data from the Segment table, BSEG. 

​The “Callee” workflow will pass the data extracted from BSEG back to the “Caller” workflow, where it will be combined with the data extracted from BKPF to provide us with a complete picture of a financial transaction. 

​Let’s take a look at how the two workflows are defined.

Step 1

Picture
The SAP Logon tool passes your SAP system details & user credentials to the ACS for Alteryx Designer tools that connect to it. 
​
In this workflow, the details are passed to the SAP Table Data tool.

Step 2

Picture
​SAP table, BKPF (Accounting Document Header) is selected in the SAP Table Data tool along with the fields that will (a) be used to select BSEG (Accounting Document Segment) data and (b) included in the workflow output
Picture

Step 3

Picture
​This branch of the workflow passes the data extracted from the BKPF table to the Join tool. This step ensures that the data extracted from the BKPF table will be incorporated into the final workflow output.

Step 4

Picture
The Filter tool controls which fields from table BKPF will be used to select data from table BSEG. In this workflow the following BKPF fields are used to select the required data from BSEG: 
  • Company Code - BUKRS
  • Accounting Document Number - BELNR
  • Fiscal Year – GJAHR
The Filter tool also controls the number of BKPF records that will be passed to the “Callee” workflow to select BSEG data, at a time. In our example we will pass records in batches of 8,000 records.
Picture

Step 5

Picture
​The outputs from the Filter tool are passed to a macro which handles the extract of data from table BSEG. The macro calls the “Callee” workflow.

Step 6

Picture
​This workflow uses “GroupId” as the Control Parameter.

Step 7

Picture
The Macro Input tool macro receives data from SAP table BKPF as inputs from the “Caller” workflow.
​
In order to pass the BKPF table data correctly to the SAP Table Data tool a Text Input Template is defined. 
Picture
​BKPF table data is passed as a dynamic input selection into the SAP Table Data tool.

Step 8

Picture
SAP table, BSEG (Accounting Document Segment) is selected in the SAP Table Data tool along with the fields that will be included in the workflow output.
Picture

Step 9

Picture
​The Macro Output tools enables the data output from the SAP Table Data tool to be passed back to the "Caller" workflow.

Step 10

Picture
​The results of the “Callee” workflow can be viewed by clicking the output port of the Macro.
Picture

Step 11

Picture
​The data extracted from table BKPF and BSEG are joined using the Join tool.

​The join is created on common fields:
  • Company Code - BUKRS
  • Accounting Document Number - BELNR
  • Fiscal Year – GJAHR
Picture

Step 12

Picture
​This branch of the workflow displays the combined BKPF/BSEG output using  SAP table Technical Field Names as column headers.
Picture

Step 13

Picture
The branch of the workflow enables the display of SAP table Field Descriptions rather than Technical Names as column headers in the output.
​
The Select tool is used to define which fields will be displayed in the output.

Step 14

Picture
​The Field Info tool provides the Field Descriptions for the selected fields.
Picture

Step 15

Picture
​The Dynamic Rename tool is used to ensure that the Description of the field rather than the Name of the field is used in the column headers.
Picture

Step 16

Picture
​The Browse tools shows the final combined BKPF/BSEG output with the descriptive column headers.
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

    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+ organisations 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