Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ALV + PDF display in SAP GUI HTML

martin_svik2
Participant
0 Kudos

hi there,

i have a Z-program which displays an ALV (OO) grid. then i have a button to display an PDF in an internet explorer window for each row in ALV.

this is working perfect in "normal" SAP GUI: i select an row, push the button "Anzeigen/Drucken PDF" ("display PDF" in english language) and seperate window is opened and displaying the PDF:

now i need to implement this report in nwbc via SAP GUI HTML. when starting this report it looks like this: i have the alv grid displayed:

BUT: when i push the "Anzeigen/Drucken PDF" i get the following: the PDF is displayed in seperate browser window correct ! BUT the ALV grid disappears and there is only a white page displayed. i have no idea why this happens in sap gui html.

here is part of the coding which opens the window for displaying the PDF. i have played around with the html controller and the container. But everythime it is working for "normal" SAP GUI, but NOT in SAP GUI HTML.

 

any ideas  ?

br Martin

3 REPLIES 3

former_member182371
Active Contributor
0 Kudos

Hi,

maybe this OSS Note can help you:

314568 - SAP GUI for HTML functionality / Limitations / Sp. Behaviour

This thread seems interesting too:

Preview of PDF not displayed in SAP GUI but in ... | SCN


Best regards,

Pablo

0 Kudos

Hi Pablo,

thank you. i already know this note for years as i do many things with sap gui html. i see NO restriction or limitation in this note which has to do with my issue.

about the other thread: this is something complete different and also has nothing to do with my problem

br martin

0 Kudos

Hi,

have you tried using a statement like?:


CALL METHOD cl_gui_cfw=>flush

    EXCEPTIONS

      OTHERS = 1.


or maybe something like this wiki:

parameters POST method with cl_gui_html_viewer


Best regards,

Pablo