‎2009 Sep 22 11:00 AM
Hello Everyone,
I recently posted the following question on Webdynpro ABAP forum regarding displaying SAPScript in Enterprise Portal using ABAP WD. But, they refered me to post the question in this forum to get help.
Could anyone help me in finding out the way to display a SAPScript in Portal. I would greatly appreciate your help.
Regards,
Gopal.
‎2009 Sep 22 11:07 AM
Hi Gopal,
Use this standard program 'RSTXPDFT4'
Regards,
Vijay
‎2009 Sep 22 11:43 AM
Hi Vijay,
Thanks for your reply. I need a Function module which expects a Purchase order Number and returns a Spool number. Is a FM available for this requirement. If not, could you please give me code to build this requirement into a FM. I greatly appreciate your help.
Regards,
Gopal.
‎2009 Sep 22 1:23 PM
Hi Gopal,
Use this link for more detail on Script to pdf conversion.
http://www.scribd.com/doc/454814/SAPSCRIPT-to-PDF
Regards,
Vijay
‎2009 Sep 22 12:00 PM
Hi,
Try the following steps.
1. FM "CLOSE_FORM" will return you SAP Script in OTF format.
2. Call FM "CONVERT_OTF" to convert OTF into PDF format. Call the FM as below.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = cf_filesize
TABLES
otf = it_otf
lines = lt_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
You will get the PDF file in table LT_LINES. This can be downloaded in PDF format by using FM GUI_DOWNLOAD.
Thanks,
Punit
‎2009 Sep 22 12:04 PM
Thanks for your reply. I don't need this FM because, I need something that takes the PurchaseOrder Number and return the Spool number!!
Do you understand what I mean? Please let me know if you need more clarification. Thanks a lot.
Regards,
Gopal.
Edited by: Gopal on Sep 22, 2009 1:15 PM
‎2009 Sep 22 12:17 PM