cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Login via SAPGUI

Former Member
0 Kudos

I am trying to automatically logon to my sap system using a script but I am not sure what is the best approach. Has anybody done this or am I cutting new ground here.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi!

I use sapshcut.

To see the parameters:

1. Windows-key+R

2. type sapshcut <space> /? <cr>

I've created a .cmd for each system I log into. Example: d.cmd (development system).

I then key Windows-key, type the letter 'd' and am then prompted for my password.

Best!

Former Member
0 Kudos

Hello Rich

Pl try the following:

In the cmd line pl type the following:

sapshcut -sysname=<aaaa> -client=900 -user=<username>

-pw=<user pwd> -command=<initial screen tcode>

sysname =description in the saplogonpad ie development or production etc.

client= client number like 100/200/900/000 etc.

username= user name in that client.

user pwd= password of the user .

initial screen tcode= the tcode where u want to be on logging on.

This works.

Pl dont forget to award a point

Let me know if this solves yr purpose.

NB: Pl remove the command fron the cache otherwise there is a chance of others knowing your password.

Former Member
0 Kudos

I believe you need to run sapshcut without any parameters first to get the registry keys properly set up.

-John

oliver
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rich,

actually I don't know how to do a script based automatic logon, but there is a trick to create a (Windows) shortcut, that contains all the necessary logon informations for one system so you don't need to call SAP Logon and select one in the first place.

At least in my SAP Logon version it is supported in a separat tab (probably called Shortcuts), that creates a shortcut on the Desktop. You can even specify a transaction to call there.

Hope that helps,

ok