Skip to Content
avatar image
Former Member

SAP GUI Java 7.50 on Mac - unable to print

Using SAPGUI Java 7.50 I am unable to print. For example, in SE16 I have a list. I go to System -> List -> Print.

I select LOCAL for print device (setup with device type PDF access method G). In SAPGUI it shows it will print but then nothing happens. In SAPGUI my print string is:

/usr/bin/lp -d %p -n %n %o

I had also created a small script a few years ago that would open the print in Preview instead of printing. I would then call it as: "<Script> %o".

I added additional logging in this script and when I then have it called as: <Script> -d %p -n %n %o

Then I can see in my log output: -d <queue> -n 1

but nothing else. This tells me that SAPGUI for Java is not passing the file anymore to be printed. And thus also explains why with the default string it does not work (%o should be the filename to print).

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 12, 2017 at 10:47 PM

    Hey Rolf.

    Well, everything's been working pretty good thus I've been quiet. :-)

    Well, now I feel silly. Figured it would not print cause using the default command it would not print and with my custom script (to open the print in Preview instead) it did not work and did not provide a filename or so.

    Just now I opened my print queue on my Mac and noticed that something was queued there. Java queue is providing the output through stdin; but at some point they must have changed the print for local from PS to PDF or so.

    Anyway, false alarm. Operator error. :-)

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 12, 2017 at 12:58 PM

    Hello Erik,

    nice to see you here again.

    It works for me with the default "/usr/bin/lp -d %p -n %n %o"

    Which option did you select in the print time listbox?

    Best regards

    Rolf-Martin

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2017 at 11:57 AM

    Hello Erik,

    Well, I have tried on a macOS version considered outdated in the meantime. Maybe there have been changes in the printing system in the meantime.

    Anyway, glad to read, that it is working now.

    Best regards

    Rolf-Martin

    Add comment
    10|10000 characters needed characters exceeded