How to Load Transaction Data from Flat File in SAP BI/BW

โšก Smart Summary

Loading transaction data from a flat file into SAP BW creates a file source system, DataSource, transformation, and data transfer process, then uses an InfoPackage and DTP to load the file records into a DataStore Object.

  • ๐Ÿ“„ Flat File Load: Transaction data from a CSV or text file is loaded into a DSO.
  • ๐Ÿ”ง Source System: A file source system points BW to the local or server file location.
  • ๐Ÿงฑ DataSource Fields: The DataSource structure matches the target DSO key and data fields.
  • ๐Ÿ” Transformation: A transformation maps the file fields to the DSO with automatic mapping.
  • ๐Ÿ“ฆ InfoPackage and DTP: An InfoPackage loads to PSA and a DTP loads from PSA to the DSO.
  • ๐Ÿค– AI Assistance: AI validates file data and flags quality issues before the load completes.

Load Transaction Data from Flat File in SAP BI/BW

What is Flat File Data Loading in SAP BW?

Loading transaction data from a flat file lets you bring external data, such as a CSV or text file, into SAP BW for reporting. In this scenario, data is loaded into a DSO named “DEMO_DSO” with the following fields:

  • Key Fields: ZCUST (Customer), ZMAT (Material)
  • Data Fields: ZPRICE (Material Price), ZQTY (Quantity)

Load Transaction Data from Flat File

Below are the steps to load data to the DSO from a flat file.

Step 1: Create a Source System for the Flat File

  1. Go to transaction code RSA1.
  2. Click the OK button.

Load Transaction Data from Flat File

In the next screen:

  1. Navigate to the Modeling tab -> Source Systems.
  2. Right click on the folder named FILE and choose “Create” from the context menu.

Load Transaction Data from Flat File

In the next screen:

  1. Enter the Logical System Name.
  2. Enter the Description. Click the Continue button.

Load Transaction Data from Flat File

Step 2: Create an Application Component

  1. Go to transaction code RSA1.
  2. Click the OK button.

Load Transaction Data from Flat File

  1. Navigate to the Modeling tab -> Data Sources.
  2. Choose the source system.

Load Transaction Data from Flat File

  1. Right click -> Create Application Component.

Load Transaction Data from Flat File

  1. Enter the Technical Name.
  2. Enter the Description.
  3. Click Continue.

Load Transaction Data from Flat File

Step 3: Create the DataSource

  1. Go to transaction code RSA1.
  2. Click the OK button.

Load Transaction Data from Flat File

  1. Navigate to the Modeling tab -> Data Sources.
  2. Right click -> Create Data Source.

Load Transaction Data from Flat File

  1. Enter the Technical Name.
  2. Choose the DataType DataSource.
  3. Click Continue.

Load Transaction Data from Flat File

  1. Enter the fields shown below. This structure should be the same as the DSO to which transaction data is to be loaded.

Load Transaction Data from Flat File

  1. In the Extraction tab, choose the Adapter as “Load Text-Type File from Local Workstation”.
  2. Choose the file path where the flat file is placed and activate the DataSource.

Load Transaction Data from Flat File

Step 4: Create a Transformation (DataSource to DSO)

  1. Go to transaction code RSA1.
  2. Click the OK button.

Load Transaction Data from Flat File

  1. Navigate to the Modeling tab -> InfoProvider.
  2. Create Transformation.

Load Transaction Data from Flat File

  1. Enter the Target Object Type.
  2. Enter the Target Object Name.
  3. Enter the Source Object Type.
  4. Enter the Source Object Name.
  5. Enter the Source System.
  6. Click Continue.

Load Transaction Data from Flat File

The below screen shows the transformation created with automatic mapping of the source fields to the target fields.

Load Transaction Data from Flat File

Step 5: Create a Data Transfer Process

Right click on the DTP folder and choose the option “Create Data Transfer Process” from the context menu.

Load Transaction Data from Flat File

The below screen shows the DTP created.

Load Transaction Data from Flat File

Step 6: Create an InfoPackage and Schedule the Load

  1. Go to transaction code RSA1.
  2. Click the OK button.

Load Transaction Data from Flat File

  1. Navigate to the Modeling tab -> DataSources.
  2. Right click on the DataSource -> Create InfoPackage.

Load Transaction Data from Flat File

  1. Enter the InfoPackage description.
  2. Click Save.

Load Transaction Data from Flat File

  1. Click on the Schedule tab.
  2. Click the Start button to start the load from the flat file to the DataSource.

Load Transaction Data from Flat File

Step 7: Load Data to the DSO

  1. Click the Execute tab in the DTP.
  2. Click the Execute button to start the data load from the DataSource (PSA) to the DSO.

Load Transaction Data from Flat File

FAQs

An InfoPackage loads data from the source system only as far as the PSA staging layer. A Data Transfer Process (DTP) then loads from the PSA into one target, such as a DSO or InfoCube, with better error handling.

SAP BW loads delimited CSV files and fixed-length ASCII text files. The file can be read from the local workstation or the application server, and its field structure must match the target DataSource and DSO.

A DataStore Object (DSO) stores cleansed, detailed data at document level in flat transparent tables. It serves as a staging and reporting layer, supports overwrite and delta handling, and feeds data onward to InfoCubes.

Yes. Intelligent automation can schedule file loads and trigger DTPs, and the SAP Joule AI copilot can answer setup questions. Modern tools such as SAP Datasphere further automate file ingestion with mapping suggestions and monitoring.

Machine learning checks uploaded file records against expected formats and value ranges, flags anomalies, and proposes corrections before the load completes. This intelligent validation reduces errors entering the DSO from external files.

Summarize this post with: