Create PDF from Internal Table


This code sample explains how to create a PDF xstring from internal table.


  SELECT * FROM but000 INTO TABLE @DATA(lt_tab) UP TO 100 rows.

DATA(lo_pdf) = NEW cl_apoc_pdf_generator( ).
lo_pdf->create_pdf(
EXPORTING
input = lt_tab
RECEIVING
pdf_binary_output = DATA(rv_bin)
).

Comments

Popular posts from this blog

Transporting SAP standard text

ABAP DYNAMIC CELL COLORING