cancel
Showing results for 
Search instead for 
Did you mean: 

Print to file

Former Member
0 Kudos

Hi All,

We have a unique requirement but I am unable to find a solution. I checked some documents posted on sdn also checked OSS note but nothing worked. Seems like I am missing something important.

Is it possible to print to some directory in our application server.

For e.g.

User executes a report and prints the report. He then chooses outout device (ZFILE) the report output then gets directed to /tmp directory in our server.

rspo/host_spool/print profile parameter has value cd &p; /usr/bin/lpr -P&P -J&f -r -h -#&C &f 2>&&1

I configured ZFILE in SPAD and with command id 'L' , I entered command to transfer print data as

cd &p; /usr/bin/lpr -P&P -J&f -r -h -#&C &f 2>&&1 &F /tmp/zfile.txt

I thought my report output will be saved in /tmp directory with name ZFILE.txt but I don't see it in /tmp

Has anyone configured output device to print to file instead of printer.

Please advice.

Thanks and Have a great day.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182034
Active Contributor
0 Kudos

hi Dear,

You can get SAP print with this program.

first you will get your spool request from

System --> Own Spool Requests

then execute

SE38 --> RSTXPDFT4

Execute (F8)

put the Spool Request number in Spool request

Execute (F8)

you can get your print in PDF.

Regards,

markus_doehr2
Active Contributor
0 Kudos

> Is it possible to print to some directory in our application server.

check

Note 161516 - Printing into a file or anywhere else in NT

Markus

former_member182034
Active Contributor
0 Kudos

hi vl180404,

Are you using command for SAP print or trying to print via SAP tcode?

Regards,