Skip to Content
0
Jun 03, 2020 at 09:45 PM

How to use class CL_GUI_PDFVIEWER to show a pdf

839 Views

Hello i'm triying to show a pdf from al11 so i get my pdf like this:

form visualizar_pdf .
  data: gt_pdfout type solix_tab,
        gs_pdfout type solix.
  constants p_file type string value '/funcional/recepcion_contingencia/peru/proc_correctamente/20100057523_1_f010_12209.pdf'.
  open dataset p_file for input in binary mode.

  do.
    read dataset p_file into gs_pdfout-line.
    if sy-subrc ne 0.
      exit.
    endif.
    append gs_pdfout to gt_pdfout.
  enddo.

  close dataset p_file.
" after this i need to show my pdf
endform

But i don't know how to use this class to create a html container to show my pdf, and this html container how can i clean it ?