Application Development and Automation 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: 
Read only

Convert SAPScript to PDF

Former Member
0 Likes
9,716

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.

6 REPLIES 6
Read only

Former Member
0 Likes
3,144

Hi Gopal,

Use this standard program 'RSTXPDFT4'

Regards,

Vijay

Read only

0 Likes
3,144

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.

Read only

0 Likes
3,144

Hi Gopal,

Use this link for more detail on Script to pdf conversion.

http://www.scribd.com/doc/454814/SAPSCRIPT-to-PDF

Regards,

Vijay

Read only

Former Member
0 Likes
3,144

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

Read only

0 Likes
3,144

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

Read only

0 Likes
3,144

Hi Gopal,

check dis link.

[Convert from Script to PDF|;

Regards

Kiran