Skip to main content

Automatic Document Export in SAP (ABAP)

Updated over a week ago

Tacto provides a sample implementation in ABAP that enables drawing documents to be automatically exported from SAP into Tacto. The report supports three operating modes and can be used for regular synchronizations (delta) or an initial full export (batch).


The Three Operating Modes of the Document Exporter

The report supports three operating modes, which can be selected via radio buttons on the selection screen:

  1. Count Only

Determines the total number of all released drawing documents (status FR), without exporting any files. Use case: Pre-check of data volume.

2. Delta Export

Exports only documents whose last modification date (DRAP) falls within the last X days (parameter p_days). Use case: Daily or weekly sync of new or changed drawings to Tacto.

3. Batch Export

Exports a defined subset of all released documents, controlled via offset and limit. Use case: Initial full export in multiple runs (e.g. 500 documents each) to stay within memory and runtime limits.

You can also choose whether documents should be saved to a path on the application server or locally on the computer of the user triggering the export.


Steps for Automated Data Export

  1. Create sample classes (SE24)

    1. ZCL_TACTO_CSV_UTIL

  2. Create sample report (SE38)

    1. ZR_TACTO_DOC_EXPORTER

  3. Schedule periodic export execution (SM36)

  4. Set up periodic file transfer

Note

If you are interested in the ABAP code of our sample implementation, please contact your Solution Engineer.

Did this answer your question?