cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Printer Script (l_rc = 1)

0 Kudos

Hello everybody,

I try to exceute a script when a user wants to print a document.

In RZ10 I added the following parameter:

rspo/host_spool/print                       /usr/local/bin/do_sap_print.sh &P &C &F &J &m &o &L &T

In SPAD I added a printer .

When I print a test the script exceuted successfully with "return code 0" ( + exit 0) .

But the SAP spool protocol printed  "(l_rc = 1)" .

Does anybody has some hints or tricks to execute the script an retrun the code 0 to the SAP System ?

Best regards

A. Moore

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello,

I solved the problem.

The script repoted some infomation text to stdout and than the SAP spooler reacts with RC1 and a red message. Without any information to stdout, the script and the SAP spooler works fine.

best regards

Alex Moore

Answers (1)

Answers (1)

Laszlo_B
Active Contributor
0 Kudos

Hello Alexander,

I guess you see the l_rc = 1 in the spool log.

Does the spool log show any other information? E.g. what exactly the host reported as the problem?

Also: where exactly was the "return code 0" logged?

Best regards,

Laszlo