Tag Archives: screen

Sizing conflicts exist on the screen error in SAP

Getting an annoying dialog box about “Sizing conflicts exist on the screen; For more information see SAP Note 570861″ in SAPGUI all the time?

Get rid of the warning at Customize Local Layout (Alt-F12), Options. Then, in SAP Internal, uncheck ‘Enable dialog box for screen size check‘.

I’m running on Frontend 720.


Python Log Stdout to File

Python has the ability to alter its sys.stdout as to redirect its print commands to pretty much anything.

If, for instance, you want to print to both standard output and to a log file, you can create a class to handle the stdout like such:

class MyOutput():
    def __init__(self, logfile):
        self.stdout = sys.stdout
        self.log = open(logfile, 'w')
 
    def write(self, text):
        self.stdout.write(text)
        self.log.write(text)
        self.log.flush()
 
    def close(self):
        self.stdout.close()
        self.log.close()
 
sys.stdout = MyOutput("log.txt")
print "blah blah blah"

Continue reading