2022 Jun 14 12:45 PM
Hello Community,
I got a requirement as downloading the Internal table data in pdf format. How can i achieve it, I mean for downloading files i can use FM gui_dwonload but before that how can i convert my interna table to PDF file. Which function module i can use and how to transform my internal table gt_warehouse data to pdf.
*My Internal table declaration. This table holds my all data
DATA: gt_warehouse TYPE TABLE OF gty_warehouse, " gt_warehouse is my table
gs_warehouse TYPE gty_warehouse. "gs_warehouse is my work area
2022 Jun 14 1:19 PM
PDF was intended to share some formatted text or picture, if you only want to transfer data use a data format such as XML, or generate a document (e.g. any spool) and convert it to pdf.
Use any tool from WRITE statements to ALV to generate a spool (many threads/questions already answered in the forum)
Check following FM to convert spool to pdf
Hello Community,
I got a requirement as downloading the Internal table data in pdf format. How can i achieve it, I mean for downloading files i can use FM gui_dwonload but before that how can i convert my interna table to PDF file. Which function module i can use and how to transform my internal table gt_warehouse data to pdf.
*My Internal table declaration. This table holds my all data
DATA: gt_warehouse TYPE TABLE OF gty_warehouse, " gt_warehouse is my table
gs_warehouse TYPE gty_warehouse. "gs_warehouse is my work area
2022 Jun 14 12:45 PM
Dedi
2022 Jun 14 12:48 PM
You need a layout to convert it to pdf.
You could do the layout using WRITE or an ALV. and convert the spool to PDF using same logic as program RSTXPDFT4
2022 Jun 14 1:01 PM
In ABAP, there are only 2 converters to PDF, as far as I know:
It's easy to convert any text into ABAP List or OTF format.
Search forum for more information.
2022 Jun 14 1:19 PM
PDF was intended to share some formatted text or picture, if you only want to transfer data use a data format such as XML, or generate a document (e.g. any spool) and convert it to pdf.
Use any tool from WRITE statements to ALV to generate a spool (many threads/questions already answered in the forum)
Check following FM to convert spool to pdf
2022 Jun 14 1:24 PM
There's an external library, too, but I haven't tried it yet: https://github.com/beraadim/zcl_pdf
2022 Jun 16 1:59 PM
Hi Community Members, After reading your comments I understood that I should write the file too and convert it spool. Thank you so much all of you
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |