Application Development 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: 

script to pdf

Former Member
0 Kudos

i needed a help in converting a script to pdf file , i know there is one standard programto do so. but im unable toget the program name.

please let me know if any body knows.

thanx.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I know one method to convert the sapscript to pdf file :

first generate a Spool Request for the required Sapscript

then goto transaction SP01 and copy the generated Spool Request number

now execute the SAP report RSTXPDFT4

here enter the copied Spool request number and the target directory into the parameters

execute the report

required pdf file will be generated into the target directory

i hope it will help you out

Please refer this simple program:

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

Reward points if found helpful....

Cheers,

Venkoji Babu.

2 REPLIES 2

Former Member
0 Kudos

Hi,

I know one method to convert the sapscript to pdf file :

first generate a Spool Request for the required Sapscript

then goto transaction SP01 and copy the generated Spool Request number

now execute the SAP report RSTXPDFT4

here enter the copied Spool request number and the target directory into the parameters

execute the report

required pdf file will be generated into the target directory

i hope it will help you out

Please refer this simple program:

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

Reward points if found helpful....

Cheers,

Venkoji Babu.

RoySayak
Active Participant
0 Kudos

use these declarations

DATA: i_otf LIKE itcoo OCCURS 100 WITH HEADER LINE,

i_pdf LIKE tline OCCURS 100 WITH HEADER LINE,

i_opt like itcpo occurs 0 with header line.

i_opt-TDGETOTF = 'X'.

append i_opt.

add this in OPEN_FORM exporting

OPTIONS = i_opt

do it in CLOSE_FORM

TABLES

otf = i_otf

lines = i_pdf .

use GUI_DOWNLOAD to download it.

pass i_pdf in DATA_TAB table

FILETYPE must be BIN

put the filename as .pdf

Reward if useful

Thanks

Sayak