2020 Mar 04 4:10 PM
Hello,
Does anyone know how to store a custom formatted Excel Template in SAP, and then retrieve and populate it with data using an ABAP program?
thanks,
Martin
Hello,
Does anyone know how to store a custom formatted Excel Template in SAP, and then retrieve and populate it with data using an ABAP program?
thanks,
Martin
2020 Mar 04 7:50 PM
Hi,
You could store the file on a file share which is accessible from the SAP system (e.g. via transaction cg3z or via the OPEN DATASET statement in ABAP).
Afterwards you can read the file with the OPEN DATASET statement and process it using the ABAP2XLSX framework which can be installed using abapGit. You can find ABAP2XLSX here:
https://github.com/sapmentors/abap2xlsx
Best regards,
Geert-Jan Klaps
2020 Mar 05 5:05 AM
Some people published blog posts about that. There are two distinct things to think of:
If you plan to use OLE, don't, prefer abap2xlsx or custom XML parts.
Among many others, there's this post: How to - Add Custom XML Parts to Microsoft Excel using ABAP
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |