cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script to PDF

Former Member
0 Kudos

Hi ,

I don't want to display dialog while showing output in SAP Script.How to do it?

How to create PDF output of SAP Script.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi ,

I am facing one problem while converting to PDF through RSTXPDFT4.

There are few Japanese fonts which are coming as Junk characters in PDF.

I have installed the Japanese font for the adobe reader but still the issue is there.

Any insight as to how this can be resolved?

Regards,

Rohini

Former Member
0 Kudos

Hi,

have you tried using the convert otf to pdf function module?

regards

Martin

aidan_black
Active Contributor
0 Kudos

Hi,

If you want to convert a spool with Japanese characters to PDF, there are some pre-requisites.

The spool must be created by a Japansese device type like JPSAWIN, JPSPOST or JPHPLJ4. The language key of the sapscript form or smartform must be Japanese. Finally the Japanese texts must use a Japanese font like JPMINCHO or DBMINCHO.

Alternatively if the spool is created by Unicode device type SWINCF, then the form language and the font settings are not important. In this case the PDF conversion should work regardless of form language and fonts.

Regards,

Aidan

Former Member
0 Kudos

Hi Ramesh,

1. To convert SAP script output to PDF, in the transaction give external send as the medium instead of print output.

2. Choose comm.strategy as CS01

3. In SCOT transaction, make sure there is an active node to convert OTF to PDF.

If you are not sure of how to use SCOT , pls get in touch with your basis consultant .

Thanks

Seema.

Former Member
0 Kudos

Hi Aidan,

Can you please let me know, how and where can I check the settings for Japanese Device type or Unicode device type?

Thanks,

Rohini

aidan_black
Active Contributor
0 Kudos

Hi Rohini,

You said you convert a spool to PDF via report RSTXPDFT4.

The spool that is converted must have previously been created with a device type, form language and using fonts as I described above.

For the device type this is defined in the output device that is used to create the spool. The output devices are defined via transaction SPAD.

Regards,

Aidan

kesavadas_thekkillath
Active Contributor
0 Kudos

I don't want to display dialog while showing output in SAP Script

What dialog ???

To convert to PDF

get the OTF from CLOSE_FORM then use fm CONVERT_OTF to get pdf

Former Member
0 Kudos

Hi there,

I am just having a similar problem. I would like to output the sapscript form to PDF additionally to printing it. Using the otf conversion functions and writing the pdf to disc will only create the pdf but not print the sapscript form on my printer.

Do you have any idea how to solve this?

Thanks.

Best regards

Martin

Former Member
0 Kudos

Hi,

For Convert script to PDF use the below FM

==========================

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

max_linewidth = 255

IMPORTING

bin_filesize = w_bin_filesize

TABLES

otf = t_otfdata

lines = t_pdf

EXCEPTIONS

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

OTHERS = 4.

========================

For suppress display dialog

g_flag = 'X'.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = 'PRINTER'

dialog = g_flag

  • form = ' '

language = sy-langu

options = itcpo

IMPORTING

result = itcpp

EXCEPTIONS

canceled = 1

device = 2

form = 3

options = 4

unclosed = 5

mail_options = 6

OTHERS = 7.

============================

Regards

Nehruu

atul_pande
Explorer
0 Kudos

Hi,

u need to find the code in standard program used for Script,there u will find for example : OPTIONS internal table or work area and its parameters those are passed to FM OPEN_FORM - OPTIONS .u can comment it to hide dialog.

atul_pande
Explorer
0 Kudos

Hi,

u need to find the code in standard program used for Script,there u will find for example : OPTIONS internal table or work area and its parameters those are passed to FM OPEN_FORM - OPTIONS .u can comment it to hide dialog.

Former Member
0 Kudos

Hi,

capture the spool request number and use the belom program in se38 RSTXPDFT4

Regards,

V.Balaji

Reward if Usefull...