Hi all,
I am creating a web application using SAP UI5 (for SAP SRM). I need to open the pdf document containing the Shopping cart data in a web browser when the user clicks a specific button.
I am able to retrieve the pdf data from the backend in the form of XSTRING ( Byte stream). I am in search of a way to use this data to open the browser in the client machine with byte stream converted in pdf format.
Since SAP UI5 uses javascript to render webpages, I tried using javascript to convert this byte stream into pdf in the browser, but there is no provision in the native javascript or SAPUI5 to achieve this. (Any help to use javascript to convert bytestream into pdf is also welcome)
So I am trying to use ABAP itself to create the pdf file and open and display it in the browser. I tried using:
CL_GUI_CUSTOM_CONTAINER,
CL_GUI_HTML_VIEWER , but in vain.
But this I guess is not the right approach.
The similar functionality was already implemented using ABAP webdynpro. But since I am in the process of removing Webdynpro and using SAPUI5, I am unable to use it.
Any help or directions to proceed will be really helpful.
Thanks & Regards,
Riswan