Documente Academic
Documente Profesional
Documente Cultură
Summary
A tutorial on how to print to text file at OS Level from SAP. The tutorial provides detailed step-by-step
configuration details to create a printer which prints to text file at OS level in designated File System.
Example configuration is done for SAP products installed on HP-UX 11i.
Author(s): Harpreet Singh
Company: Accenture (Bangalore India)
Created on: 29 September 2006
Author Bio
I am working as SAP-BASIS Team Lead at Accenture. I have around 6Yrs in SAP-BASIS
experience which include two implementation projects.
Certifications:
Table of Contents
Applies to: ........................................................................................................................................ 1
Summary.......................................................................................................................................... 1
Author Bio ........................................................................................................................................ 1
Business Requirement..................................................................................................................... 2
Procedure ........................................................................................................................................ 2
Example ........................................................................................................................................... 5
Disclaimer and Liability Notice......................................................................................................... 7
Business Requirement
You want to redirect the spool output to a text file at OS Level rather than the Real Printer.
Procedure
Click Create
Short Name
Spool Server provide name of the app server running spool work process and whose file
system you would like to use for print files.
Host printer any name you would like to have this is just a dummy name.
You will get one more box in Access tab named Command Set ID as show below
Provide one character name and double click on that. Following screen will popup
Its done
Example
For example if you would like to create the file to /intf/rq1/outb/mm/pending and rename the file to
<CREATOR>-<TITLE>-<SPOOL ID>_<YYYYMMDDHHMMSS>.done
Create the following script (say name spool_output_to_os.sh and placed at /var/adm/scripts/BASIS/general )
J=$1
N=$2
O=$3
T=$4
E=".done"
d=`date '+20%y%m%d%H%M%S'`
FN=`echo $J | awk -F/ '{printf("%s",$7)}'`
FN1=${O}-${T}-${N}_${d}${E}
mv /intf/rq1/outb/mm/pending/${FN} /intf/rq1/outb/mm/pending/${FN1}