01-26-2008 1:48 PM
Hi,
Can SAP display a PDF 'in place' like it can display an Excel spreadsheet 'in place?'
Thanks,
Malini.
01-27-2008 9:49 AM
Hi,
Create an SAP Smartform. When you call the Smartfrom you can return OTF data. There is a function module that converts OTF data to PDF format - 'CONVERT_OTF'.
Then you can create a screen that has a container on it. Using the following methods, you can display the PDF:
1. Create a container
2. Create a control that is reference type cl_gui_html_viewer
3. Call method control->load_data
4. Call method control->show data
You can probably do this without the Smartform if you need to. You would just need to figure out how to load the PDF data into SAP.
Reward points if found helpfull...
Cheers,
Siva.
01-27-2008 9:49 AM
Hi,
Create an SAP Smartform. When you call the Smartfrom you can return OTF data. There is a function module that converts OTF data to PDF format - 'CONVERT_OTF'.
Then you can create a screen that has a container on it. Using the following methods, you can display the PDF:
1. Create a container
2. Create a control that is reference type cl_gui_html_viewer
3. Call method control->load_data
4. Call method control->show data
You can probably do this without the Smartform if you need to. You would just need to figure out how to load the PDF data into SAP.
Reward points if found helpfull...
Cheers,
Siva.
01-28-2008 7:31 AM
Hi,
You can use the class CL_GUI_PDFVIEWER to view the pdf.
Regards,
Renjith Michael.