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: 

Sapscript to PDF

Former Member
0 Kudos

Hi,

I have a sapscript form I want to transform to a pdf file. How can I do that?

With smartforms I have done something like that. I have exported my form data to otf and converted it to pdf. Is it the same way in sapscript?

Thank you, Michael

8 REPLIES 8

Former Member
0 Kudos

Hi michael,

1. This is one way.

2. While taking the printout,

we get a list of printers.

3. If acrobat (acrobat writer)

is installed on front-end,

then in the printer list,

we will also get 'Acrobat PDF Writer'.

4. After selecting this,

we will get a file-open dialog box

for saving the .PDF file.

5. This file will contain the sapscript form.

6. In fact, any kind of printout,

Word,Excel etc,

will be converted to .PDF if we

have acrobat pdf writer installed.

regards,

amit m.

Former Member
0 Kudos

I am not sure if SAP Script can give you OTF data. But you can use this to convert the spool of the SAP Script into PDF - CONVERT_ABAPSPOOLJOB_2_PDF

Regards,

Ravi

Note - Please mark the helpful answers

0 Kudos

There are two SAP functions to convert SPOOL to PDF.

1 CONVERT_ABAPSPOOLJOB_2_PDF

2 CONVERT_OTFSPOOLJOB_2_PDF.

Former Member
0 Kudos

for converting script into smartform the following links may be helpful to you

http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm

and you can get a pdf on convertion of script to smartform in

www.easymarketplace.de

cheers

ajay

vinod_gunaware2
Active Contributor
0 Kudos

<b>CONVERT_OTF</b> Convert OTF format to various formats (TLINE table) ASCII or PDF

<b>CONVERT_OTF_2_PDF</b> Convert OTF to PDF (TLINE table). OTF can be filled used archivelink. Calls CONVERT_OTF.

<b>CONVERT_OTF_2_PDF_ARCHIVELINK </b> Convert OTF to PDF (TLINE table). Calls CONVERT_OTF. Looks like the function names for these two functions are mixed up J

<b>CONVERT_OTF_AND_FAX

CONVERT_OTF_AND_MAIL </b>

<b>CONVERT_OTFSPOOLJOB_2_PDF</b> Input: spool # (SAPscript: tsp01-rqdoctype='OTF'); Output: PDF as internal table (TLINE) Example

<b>CONVERT_ABAPSPOOLJOB_2_PDF</b> Input: spool # (ABAP listing: tsp01-rqdoctype='LIST'); Output: PDF as internal table (TLINE)

regards

vinod

Former Member
0 Kudos

Hi Michael,

You can do it in this way,

1. Send the output of Script form to the SPOOL.

2. Run the program 'RSTXPDFT4', it will ask you for the spool number, just enter the spool number and execute.

3. Now you can have the Script form output in a PDF file.

Try and get back,

Regards

Azmath S

Former Member
0 Kudos

like u did for smartforms u can do for sapscript...

like OTF conversion...

Former Member
0 Kudos

Hi Michael,

Check out programs in package STXD, Which is mainly for SAPScripts which i think is really usefull for SAPscript.

Regards:-

Santosh.D