cancel
Showing results for 
Search instead for 
Did you mean: 

SAP GUI Java 7.50 on Mac - unable to print

erik_hendrix
Explorer

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).

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member851744
Discoverer
0 Kudos

Hello Erik,

I have strange issue in SAP GUI on MACOS that whenever I try to print directly to printer it only prints Junk characters and single page output get printed as junk on 54 pages. It prints fine with print preview option but not directly.

Also all other application is printing just fine but issue only with SAP. Can you please suggest and help me on the issue. I am not an admin user on the SAP.

Regards,

Ruchika

RMW
Advisor
Advisor
0 Kudos

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

erik_hendrix
Explorer
0 Kudos

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. 🙂

RMW
Advisor
Advisor
0 Kudos

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