cancel
Showing results for 
Search instead for 
Did you mean: 

error l_rc = 1 when printing with CUPS-PDF as an XOM

samirakis
Explorer
0 Kudos

Dear all,

I am fast new to SAP and I am trying to learn how can I define a Output device for SAP via BC-XOM interface.

the main problem is I can not find what is the problem. please excuse me if it is some how general or easy. I could not find any good answer or examples to check the problem is in my undrestanding or something esle. with help of BC-XOM specification I defined a output device as follows:

1.Output Device

Gerät-typ = PDF1

Aufbereitungsserver = my SAP server an SUSE

Koppelart = E

host Drucker= CUPS--PDF

LOMS= my LOMS as Follows

2.ROMS

job status = Abfrage, polling

Gerät-Status = queue_abfrage

oms-Konfiguration= &E4

3.LOMS

SAP Config: queue-abfrage, status-popups,polling

oms-config:-

4. Linux Commands

submit

mycommand submit "&EG" "&P" "&F" "&Es" "&ES" "&T"

polling

mycommand polling "&P" "&EG"

Queabfrage:

mycommand queue_query "&P"

Job-cancel:

mycommand job_cancel "&EL"

Job-query

mycommand job_query "&EL"

5. and I wrote a python file as command to only test and learn how it works:

#!/usr/bin/env python

import os

import sys

f=open('submit.txt',w)

for arg in sys.argv:

f.write(arg)

cmd = 'sudo lp -d CUPS-PDF /home/sap/bin/submit.txt'

os.system(cmd)

my command works when I write it in Terminal but if I try to print with SAP error occurs:

Save printer errror:

No Error

Printing error: status: fehler

Host Spooler:

Keine Ausgabe des OMS-Submit-Kommandos

Fehler bei der Ausgabe des Druckauftrags l_rc = 1

Es Erfolgte möglicherweise keine Ausgabe auf papier

----

I made the same procedure and named the outputdevice my command file instead of printer but the result was the same. could you please help me what is missed?

I know the script does not include the real commands but as far as I undrestood, SAP sould think that is command and the command should print SAP parameters in file and then in PDF.

Accepted Solutions (0)

Answers (0)