cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Command Line Shortcut to Logon to SAP via GUI

joseph_flesche
Discoverer
0 Likes
32,207

I have been using the following command line to log on to SAP for quite some time. Using this functionality saves me a ton of time when logging into different instances of SAP.

C:\Program Files (x86)\SAP\FrontEnd\SAPgui\sapshcut.exe -system=XXX -client=100 -user=UserName -pw=password -language=EN

Up until yesterday, I was using this without any issues. Now when I try to log on, I am getting the following message.

When I click ok, I get the following screens.

I have tried to enter the System Description (-sysname) and GUI Start Parameters (-guiparm) without any success.

Help menu shows the following, but can't seem to figure out what this command is missing.

Any suggestions on how I can get this working again?

I am using SAP Logon GUI 750.

Accepted Solutions (1)

Accepted Solutions (1)

joseph_flesche
Discoverer

I ultimately figured this out. The syntax that I used for SAP Logon version 770 is as follows.

START "" "C:\Program Files (x86)\SAP\FrontEnd\SAPgui\sapshcut.exe" -system=XXX -client=XXX -user=XXXXXXXX -pw=XXXXXXXX
johlee66
Discoverer
0 Likes
perfect solution,thanks Joseph!

Answers (4)

Answers (4)

S_Sriram
Active Contributor

Hi Joseph.

Your string almost is right, you have to add the description which same in your SAP logon pad.

Kindly following the string

sapshcut.exe -desc=(Same in SAPlogon pad) -system=SID -client=xxx -user=user -pw=password -language=EN

Regards

SS

JosephFlesche
Explorer
0 Likes

I tried this with the exact name from the log in pad and got the same message.

I retrieved the description from the logon pad by right clicking and selecting properties, then copying and pasting this field.

0 Likes

Removed 

rainer_schuler5
Explorer
0 Likes

Hi Joseph,

I am using a different syntax when calling SAPGUI (e.g. from my password manager):

sapgui.exe /SHORTCUT="-sid={SAP ID} -clt={SAP Client} -u={USERNAME} -pw={PASSWORD}
-l={Language}"

Full documentation is available in SAP note 103019.
https://launchpad.support.sap.com/#/notes/103019

Best, Rainer

S_Sriram
Active Contributor
0 Likes

Hi Joseph.

1. Open the Windows command prompt and try to open the same string "sapshcut.exe -desc=(Same in SAPlogon pad) -system=SID -client=xxx -user=user -pw=password -language=EN"

2. From Execl try to use the following sting "Start sapshcut.exe -desc=(Same in SAPlogon pad) -system=SID -client=xxx -user=user -pw=password -language=EN"

Regards

Sriram

joseph_flesche
Discoverer
0 Likes

For 1., I get the same error message as stated in my other comments.

For 2., I'm pretty well versed in Excel, but I'm not too sure where to execute this in Excel. I would not expect this to be any different from running in the command line.

S_Sriram
Active Contributor
0 Likes

Hi Joseph.

From the command prompt are you able to open?

Regards

SS

JosephFlesche
Explorer
0 Likes

Open what? Open SAP? No, I get the popup in my previous comment.