How do I login through SAP using command line

sap
rusty009 picture rusty009 · May 29, 2013 · Viewed 30.3k times · Source

I am trying to login through SAP through the command line using the sapgui command, is this possible? Is there a way to view all the arguments/parameters for the sapgui command?

Answer

Philipp picture Philipp · May 29, 2013

You can use the sapshcut.exe to connect to a SAP system via command line. Here is an example:

sapshcut.exe -system=SID -client=100 -user=YOURUNAME -pw=Y0urP4$$

Further command line options are described in SAPNote 103019 (link requires a SAP service marketplace account) or can be obtained with the command

sapshcut.exe -help