ABAP – Spool to PDF in Web Dynpro

Home / Blog / ABAP – Spool to PDF in Web Dynpro

Like so often happens, I solve an issue once, only to have things change on me, so I need to go back and revisit. Well, in my Renovation application, one of the cool things I do is allow the user to look at any printouts that happened for the document with a simple click, and then it should popup on the browser. Well, recently when I started testing, I found that the PDF wasn’t displaying properly anymore. Just goes to show, things change, so keep testing 🙂
Well, originally, my design used a FileDownload element to kick off the display. AFter some digging, I found that now I need to use Interactive_Form element. While I’m not sure if FileDownload no longer can do it, or if I just needed to do some extra steps, but using the interactive form element, it is working. It required a little more work, since you can’t launch an interactive form from a table, but doing this gets it to popup and download on the computer instantly. It’s pretty slick.
Anyway, if you have a similar requirement, let me know and I can give you more details. But the general idea is using the spool to pdf (you can find this all over the internet). The less obvious part was getting it to render again on the screen.
Thanks for reading,

As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,
Mike

Leave a Reply

Your email address will not be published. Required fields are marked *