Display PDF inside a container
i have a Z-programm which has a selection screen on the left side. on the right side the result should be displayed as PDF in a HTML container element.
AT SELECTION-SCREEN OUTPUT.
CREATE OBJECT lo_docking_container
repid = sy-repid
dynnr = sy-dynnr
side = lo_docking_container->dock_at_right
extension = 1200.
CREATE OBJECT lo_html
parent = lo_docking_container.
.programm logic for getting the PDF from a spool file.....
type = `application`
subtype = `pdf`
assigned_url = lv_url
data_table = lt_data
dp_invalid_parameter = 1
dp_error_general = 2
cntl_error = 3
OTHERS = 4 ).
lo_html->show_url( url = lv_url in_place = 'X' ).
Now i have the problem that the PDF is NOT displayed inside the container element on the right side. it is empty after the "show_url", as it is at the init in the "AT SELECTION SCREEN OUTPUT". see screenshot:
So HOW can i get the PDF content into the right side container element ? It should be in the same dynpro as the selection screen is (standard dynpro 1000). what i am doing wrong here ?
Martin Svik replied
have solved it on my own: i have created an dynpro and put the selection fields into that dynpro and then called the container. it seems that in "standard dynpro" 1000 with standard selection screen it is not possible to display the pdf in the container