Skip to main content

Automated Data export in SAP (ABAP)

💡 Article Overview:

  • This article explains how data can be automatically exported to SAP using a sample implementation provided by Tacto

❗Note:

  • If you are interested in the ABAP code for our example implementation, please contact your Solution Engineer

🎬 Demo Video

⬇️ Steps for automated data export

  1. Create example classes (SE24)

    1. ZCL_CSV_UTIL

    2. ZCL_TACTO_EXPORTER (Adjust standard fields/filters if necessary)

  2. Create example report (SE38)

    1. ZR_TACTO_REPORT (Adjust standard parameters if necessary)

  3. Create a recurring export job (SM36)

  4. Set up periodic data transfer of the files

  5. Alternatively: Run the report manually (SE38) and download the files (CG3Y)

⚙️ Standard Configuration

The export is divided into three sections, each using different filter logic:

  • Full Load: Master and Customising data (e.g. suppliers) are exported in full without any date filters.

  • Delta Load: Tables with a unique change date (e.g. exchange rates) are filtered based on the change date. By default, the last 7 days are exported.

  • Overlap Load: Tables without a unique change date (e.g. purchase orders) are filtered based on creation or validity dates. By default, data from the last 2 years is exported.

All date parameters can be customised individually via the report selection screen. Similarly, tables, fields and filters (WHERE clauses) can be added or adjusted individually in the code.

Furthermore, there is a separate logic (triggered by “TEXT”) that is independent of the rest of the exporter, which exports the long texts for purchase orders and items. These long texts are also exported using the Delta Load.

Did this answer your question?