cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript ---> PDF format in the Spool

Former Member
0 Kudos

Hi @ll,

ist it possible, that sapscript generate a PDF format in the Spool ?

Accepted Solutions (1)

Accepted Solutions (1)

aidan_black
Active Contributor
0 Kudos

Hi Heidi,

Yes this is possible if you create the spool via device type PDF1. if you want to save the created PDF to your Frontend PC, then you need to create a printer with port FILE on your PC.(see SAP Note #576973):

Regards,

Aidan

Former Member
0 Kudos

Hello Aidan,

thanks you for your help , I run program in the background. it generates a binary document in the spool, but i need a PDF-Format in the spool.

here is my Coding:

CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = t_tsp01-rqident

dst_device = 'PDF1'

no_dialog = 'X'

pdf_destination = 'S'

  • no_background = 'X'

IMPORTING

pdf_bytecount = bin_size

bin_file = pdf_xstring

pdf_spoolid = pdf_spoolid.

  • TABLES

  • pdf = it_pdf.

Best regards

Heidi

Edited by: Heidi Heinzberger on Jun 27, 2011 11:42 AM

Former Member
0 Kudos

Hi,

check this out:This document tells in detail how to do it.

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556?quicklink=index&overridelayout=true].

I am not sure if its possible inbackground.

Try giving a default filenale instead of the popup.

aidan_black
Active Contributor
0 Kudos

Hi Heidi,

When PDF conversion runs in background, the spool is first converted to a new spool with binary format.

You can need to download this new binary format spool to the Frontend via report RSTXPDFT5. Try using RSTXPDFT5 download this new binary format spool to your Frontend. it should come in PDF format.

Regards,

Aidan

Former Member
0 Kudos

Hi guys,

Thanks for your Replay. it works with report RSTXPDFT5.

best regards

Heidi

Answers (0)