cancel
Showing results for 
Search instead for 
Did you mean: 

Print SAP Document using Preview.app in MacOs

03-04-2020 12:38 PM
shoyab9135 Participant
791 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

Dear Team,

We want to print the document while using preview.app in mac system we are using SapGui 750rev8

i have followed the Previous Question link https://answers.sap.com/questions/8585372/using-preview-when-printing-from-sap.html

but it is not working in my MacOs Mojave or Catalina can you please guide if i am going wrong in this script.

#!/bin/bash

timestmp=`date +%Y%m%d%H%M%S`
/usr/bin/pstopdf -i -o $TMPDIR/sap_print_$timestmp_$$.pdf
open -a /Applications/Preview.app $TMPDIR/sap_print_$timestmp_$$.pdf
sleep 1
rm $TMPDIR/sap_print_$timestmp_$$.pdf

and also done chmod a+x(script name)

Thanks

Shoyab

0 Likes

Accepted Solutions (0)

Answers (0)