cancel
Showing results for 
Search instead for 
Did you mean: 

Get SID from GuiSession

Former Member
0 Kudos

Hi Expert,

i've written an SAP GUI Script, which loops over current existing SAP connections and evaluates the connection.

now i want to compare the SID from each connection, to verify that i'm running my script on the right system.

How can I get the SID from the SAP Gui connection Object. The property connectionString won't help, because it doesn't contain the SID.

Any suggestions where to look for the SID or how to identify the SAP system belonging to the current connection?

thanks and best regards

daniel

Accepted Solutions (1)

Accepted Solutions (1)

script_man
Active Contributor
0 Kudos

Hi Daniel,

my suggestion is:

session.info.systemsessionid and session.info.sessionnumber

Using these two parameters can one reliably identify an SAP system.

There are also other parameters that you can evaluate.  See too other members of GuiSessionInfo - Object.

Regards,

ScriptMan

Answers (1)

Answers (1)

Former Member
0 Kudos

anyone?