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 Spool Output Data from SAP Purchasing Documents (T-Code ME2N) into Alteryx

23/3/2022

 
Picture
The SAP Spool Read tool is used to extract the spool data generated from running SAP Transaction Codes (T-Codes) and SAP Reports directly into Alteryx. The SAP spool saves the output of a report in a file that can be viewed in SAP or exported out of SAP.

In this blog we will show you how to use the SAP Spool Read tool to extract data from the MM (Material Management ) Purchasing Documents by Document Number (T-code ME2N) into Alteryx.
This blog will be split into 2 parts. 

In the first part, we will take a look at the Purchasing Document Report in SAP and generate a spool.

In the second part, we will look at how the SAP Spool Read tool can be used to extract the spool output  from within Alteryx.

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.
Picture

1. The SAP Purchasing Document by Document Number  (T-Code ME2N)
The SAP Purchasing Document Reports are some of the most commonly used transactions in SAP ECC and SAP S/4HANA. ​The transactions provide a number of ways for users to list Purchasing Document information; ME2N lists Purchasing documents by document number.
Picture
Picture
The Find Variant button retrieves any variants associated with the transaction. The variant is a powerful piece of functionality in SAP. It allows a user to save the selection criteria entered into the transaction selection screen and reuse it when running the transaction.

Picture
The Scope of List  allows you to select various layout options.

Picture
The Program menu  allows you to chose how the report is executed.

Picture
​When the transaction is executed the results are retrieved based upon the selections specified above.
To generate a spool the Execute in Background should be selected.
Picture
Picture
Select the default Printer as the Output Device. This can vary but common options are LP01 and LOCAL.

Picture
 Click on the Green tick Continue button.

Picture
Picture
Schedule the job;  for example Immediate.

Picture
Once the Save button has been clicked this window closes and the following message will appear at the bottom of the selection screen.

Picture
Picture
Select Own Jobs from the Systems Menu.

Picture
Picture
In the Job overview page the following fields are important when we configure the ACS Spool Read Tool.  Job Name, Job Created By, Start Date and  Start Time.

Picture
To view the spool output in SAP . Select the row by clicking on the check box and then select Spool.

Picture
Picture
Select the Spool row and display.

Picture

2. Extract the Purchasing Documents by Document Number (T-Code ME2N) using the SAP Spool Read tool in Alteryx​
So, we now have a run the Purchasing Document by Document Number transaction in SAP ECC or SAP S/4HANA and saved the output to a SAP spool request. 

There are a number of ways in which we can replicate the output of the Purchasing Document by Document Number in Alteryx. 

One option is to use the SAP Report tool to extract data directly from ME2N.


Other options include using  the SAP Table Data tool to extract data from tables EKKO and EKPO or 

another option would be to define an SAP Query (T-Codes SQVI / SQ01 / SQ02 / SQ03) referencing tables EKKO and EKPO and use the SAP Query tool to extract the data into Alteryx.

In this blog we the SAP Spool Read tool will be used.

Let's take a look at the construction of an Alteryx workflow using the SAP Spool Read tool to extract data from the Purchasing Documents by Document Number  (T-Code ME2N) transaction.
Picture
Picture
 The SAP ECC system to be accessed is selected on the Parameters tab of the SAP Logon tool. Details of the selected SAP system along with the credentials of the logged in user are passed to the other tools in the workflow.

Picture
Picture
The SAP Job name and run details that were generate in SAP  (see Section 1 point 8 above ) are entered into the Selection Parameter on the Selection Tab. ​

Picture
Once the Raw Preview Button is clicked the spool is retrieve from SAP .
Picture
The line containing the header fields needs to be identified. Click on the relevant row and then select Add Header Row No  from the  context menu. After the header row has , click the Confirm Layout  button to review the formatted output. ​
Picture
The Header Row number can be seen in the Parameters tab.
The report columns can be seen in the Fields tab, unrequired fields can be deselected here.
Picture
Finally, an Alteryx browse tool is added to the workflow. 
When the workflow is run the data extracted from the MM Purchase Document by Document Number transaction  (T-Code ME2N) is output in a format ready for further analysis.

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