You are on page 1of 2

SAP Note

    844095 - Delegation from sapgui.exe to SAP Logon/SAP Logon Pad  


Version   7     Validity: 10.10.2011 - active   Language   English (Master)

Header Data
Released On 10.10.2011 14:01:32
Release Status Released for Customer
Component BC-FES-GUI Graphical User Interface
Priority Correction with low priority
Category Advance development

Symptom
When the sapgui.exe delegates, it always starts SAP Logon, no matter wether SAP Logon Pad is already
running or not.

Other Terms
SAP GUI, SAPGUI, sapgui.exe, delegation, RFC with GUI, SAP Shortcut

Reason and Prerequisites


1. One of the following registry keys is set for the SAP GUI for Windows 6.20:
[HKEY_CURRENT_USER\SOFTWARE\SAP\SAPGUI]
"LaunchSaplogon"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPGUI]
"LaunchSaplogon"=dword:00000001

The key in HKEY_CURRENT_USER takes precedence over the one in HKEY_LOCAL_MACHINE.

2. Neither of the following registry keys is set for SAP GUI 6.40 (or higher):
[HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPGUI]
"StartSaplogon"=dword:00000000

[HKEY_CURRENT_USER\SOFTWARE\SAP\SAPGUI]
"StartSaplogon"=dword:00000000

or these keys are set to a value of 1.

The key in HKEY_LOCAL_MACHINE takes precedence over the one in HKEY_CURRENT_USER.

Solution
Starting with patch 56 for SAP GUI for Windows 6.20 (and higher releases) sapgui.exe will not
automatically start SAP Logon. Instead the behaviour can be customized with the following registry
key:
[HKEY_CURRENT_USER\SOFTWARE\SAP\SAPGUI]
"DelegationMode"=dword:0000000?

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPGUI]
"DelegationMode"=dword:0000000?

Replace the '?' by one of the following values:

l 0:
This is the default behavior used if no registry key is set. In this case it is checked wether a
SAP Logon or a SAP Logon Pad is already being used. If only a SAP Logon Pad is currrently
running, sapgui.exe will delegate to SAP Logon Pad. If none of the above is running or SAP Logon
has been started, sapgui.exe will delegate to SAP Logon.

l 1:
If the DelegationMode is set to '1', sapgui.exe will always delegate to SAP Logon, i.e. even if
only SAP Logon Pad is running SAP Logon will be started and sapgui.exe will delegate to it.

l 2:
In this case SAP Logon Pad will always be used. This is the inverse to setting the mode to '1'.

l 3:
This is the inverse default behavior, i.e. if only SAP Logon is currently running, sapgui.exe
will delegate to SAP Logon. In all other cases SAP Logon Pad will be used.
Any other values will be ignored and the default behavior will be used.
The key in HKEY_CURRENT_USER takes precedence over the one in HKEY_LOCAL_MACHINE.

Note that on 64bit operating systems keys under HKEY_LOCAL_MACHINE have to be created in
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI.
Delegation can be disabled via the command line using the command line option "/NoDelegate". When
this command line option is used, delegation will be disabled even when it is switched on via the
registry.
When using RfcOpenEx add the following registry entry to make use of the NoDelegate option:
[HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPGUI]
"NoDelegate"=dword:00000001

Validity
Software Component From Rel. To Rel. And Subsequent
BC-FES-GUI 640 640  

Support Packages & Patches

Support Package Patches

Software Component Support Package Patch Level


SAP GUI FOR WINDOWS 7.40 CORE SP001 000001

References
This document refers to:
SAP Notes
1156829   Important SAP notes for the SAP PLM interface

This document is referenced by:


SAP Notes (1)
1156829   Important SAP notes for the SAP PLM interface

You might also like