25
1 Best Practices for Implementing SAP GUI 7.10 for Windows Using Citrix Presentation Server 4.5 Contents SAP GUI 7.10 for Windows Installation on Citrix Presentation Server 4.5 ..........................................2 Upgrading to SAP GUI 7.10 on Presentation Server 4 .....................................................................3 SAP GUI for Windows Ini Files ......................................................................................................3 Citrix Memory Optimization ...........................................................................................................4 SAP GUI 7.10 for Windows Configuration and Tuning .......................................................................5 Important SAP GUI 7.10 for Windows Registry Settings.................................................................5 SAPWorkdir ...................................................................................................................................6 Tuning ............................................................................................................................................7 SAP GUI 7.10 for Windows Printing ..................................................................................................8 SAPLPD .........................................................................................................................................8 Front-end Printing with Control Technology ...................................................................................9 Front-end Printing with Citrix Universal Printer Driver ................................................................. 10 SAPGUI 7.10 as a Published Application .......................................................................................... 11 Citrix Application Streaming with Citrix Streaming Technology ....................................................... 12 Preparation....................................................................................................................................12 Profiling........................................................................................................................................12 Streaming Troubleshooting ........................................................................................................... 23 Basic Troubleshooting ......................................................................................................................25 Additional Information .....................................................................................................................25

Best Practices SAP_CPS

Embed Size (px)

Citation preview

Page 1: Best Practices SAP_CPS

1

Best Practices for Implementing SAP GUI 7.10 forWindows Using Citrix Presentation Server 4.5

ContentsSAP GUI 7.10 for Windows Installation on Citrix Presentation Server 4.5 ..........................................2

Upgrading to SAP GUI 7.10 on Presentation Server 4 .....................................................................3

SAP GUI for Windows Ini Files......................................................................................................3

Citrix Memory Optimization ...........................................................................................................4

SAP GUI 7.10 for Windows Configuration and Tuning.......................................................................5

Important SAP GUI 7.10 for Windows Registry Settings.................................................................5

SAPWorkdir ...................................................................................................................................6

Tuning ............................................................................................................................................7

SAP GUI 7.10 for Windows Printing ..................................................................................................8

SAPLPD.........................................................................................................................................8

Front-end Printing with Control Technology ...................................................................................9

Front-end Printing with Citrix Universal Printer Driver .................................................................10

SAPGUI 7.10 as a Published Application..........................................................................................11

Citrix Application Streaming with Citrix Streaming Technology.......................................................12

Preparation....................................................................................................................................12

Profiling........................................................................................................................................12

Streaming Troubleshooting ...........................................................................................................23

Basic Troubleshooting ......................................................................................................................25

Additional Information .....................................................................................................................25

Page 2: Best Practices SAP_CPS

SAP GUI 7.10 for Windows Installation on Citrix Presentation Server 4.5

The installation of SAP GUI for Windows on Citrix Presentation Server 4 is similar to a local SAPGUI for Windows installation.

There are different ways to install the application:

• SAP Installation Server

• Installation CD / Network Setup

And there are different methods to deploy the application to the Presentation Server environment:

• Manual Installation

• Repackaging with Citrix Installation Manager

• Profile with Citrix Profiler and deploy via Citrix streaming technology

• Third-Party Tools

We recommend installing an SAP Installation Server first. But you don’t need to install the InstallServer services; you only need the Install Server File share. The benefit here is that all necessary SAPGUI for Windows and SAP Setup patches can be integrated into the Installation Server.

When you install from an SAP Installation Server, please disable the following registry key on yourCitrix server after the installation:

"HKLM\SOFTWARE\SAP\SAPSetup\SAPstart\AutoUpdate"

If this key is present, SAPGUI will try to connect to the update server each time it is started. And ifupdates are available, they will be automatically installed on the environment. Citrix does notrecommend allowing auto-update functionalities. All updates should be tested and validated prior tofinal installation in the Citrix environment, and this task should be performed by an administrator, nota user. Also if the user doesn’t have administrative rights, this still could have performance impacts.

Page 3: Best Practices SAP_CPS

3

Upgrading to SAP GUI 7.10 on Presentation Server 4

To update an older SAP GUI for Windows version to 7.10, it is important to avoid installingthe new version on top of an older version. The preferred method in a Citrix environment isto begin with a clean drive.

A setup scenario with unattended setup routines is very helpful to deploy updates andmaintain the whole environment. A lot of problems and issues have occurred in the pastbecause of uninstalling and reinstalling applications.

SAP GUI for Windows Ini Files

The configuration of SAP GUI for Windows is stored within four Ini Files:

• SAPlogon.ini

• SAPshortcut.ini

• SAProute.ini

• SAPmsg.ini

SAPlogon.ini and SAPshortcut.ini are the most important Ini Files on a Citrix environment because allconnection configurations are stored within them. The challenge here is to deploy the rightconfiguration file to your users.

The search order for the Ini Files is:

• Command line Parameter /INI_FILE=

• Environment Variable SAPLOGON_INI_FILE

• SAPlogon.ini File stored in the SAP GUI for Windows Installation Directory

• SAPlogon.ini File stored in the Windows Directory

To deploy the right Ini Files to your users, there are different scenarios available. If you only need oneSAPlogon.ini File, the most frequently used scenario is to place it on a central file server that all userscan access, and set the environment variable on all your Presentation Servers to point to the centralfile.

If you need different Ini Files for users or user groups, you can deploy the right Ini Files to the users’home directory with a login script, and set the environment variable to point to the userhomedrive (forexample: h:\sapini\saplogon.ini)

SAPlogon.ini and SAPshortcut.ini must be in the same directory. After deploying your Ini FileScenario, please be sure, for example, that SAPlogon.ini is not stored in another location on yourserver; so it is recommended to search all server hard drives.

Page 4: Best Practices SAP_CPS

If you store the SAPlogon.ini File in the Windows directory, which is not recommended by Citrix,please be aware that Terminal Server copies Ini Files from the system’s Windows directory to a user-specific Windows directory (%userprofile%\windows). This is another function of the Terminal ServerInstall Mode (Shadow Key). But this Ini File is only deployed once, so changing the Ini on the systemdrive does not automatically update the user’s Ini File.

Citrix Memory OptimizationThe memory optimizer changes the starting addresses to avoid paging. Some applications cannothandle optimization in a dynamic way and fail if function calls point to a fixed memory address. Thismight include applications with digitally signed components, applications whose DLLs are protectedby Windows Rights Management, and any application that programmatically checks the DLL after ithas been loaded.

The SAP Graphical User Interface (GUI) is not working properly with the Memory OptimizationTechnology build into the Citrix Presentation Server. Some DLLs of the SAP GUI for Windows donot work after being optimized.

For this reason, Citrix Presentation Server Memory Optimization is not supported with SAP GUI forWindows.

Consequence:

Disable Memory Optimization completely

- or -

Exclude the SAP GUI for Windows installation directory with all subfolders

If you have already used Memory Optimization in combination with SAPGUI, the DLL startingaddresses might be changed already. This can be solved by using the ADSCleaning tool.

For further details, refer to the following resource.

http://support.citrix.comCTX115148 (SAPGUI & Memory Optimization)CTX108542 (usage of ADSCleaner tool )

Page 5: Best Practices SAP_CPS

5

SAP GUI 7.10 for Windows Configuration and TuningIn this chapter we talk about possible SAP configurations on the Citrix server. This doesn’t mean thatall of them are right for your environment and the list does not include everything you can configurewith SAP GUI for Windows. However, these configurations and settings are based on Citrix’sexperiences in implementing numerous projects and reflect questions that customers often ask.

Important SAP GUI 7.10 for Windows Registry Settings

Turning off the SAP GUI for Windows splash screen:

HKLM\SOFTWARE\SAP\General\Appearance

Key: SplashOff

Value: 1

Switching off the waiting time animation in Enjoy mode:

HKLM\SOFTWARE\SAP\General\Appearance

Key: Animation

Type: REG_SZ

Value: Off

As of Patch 2 for SAP GUI 7.10 for Windows, you can display the additional windows title by settingthe 'ShowAdditionalTitleInFo' registry key. This is necessary to allow Citrix Password Manager™ todistinguish between different SAP back ends.

HKCU\Software\SAP\SAPGUI Front\SAP Frontend Server\\Administration

Key: ShowAdditionalTitleInFo

Type: REG_DWORD

Value:1

Page 6: Best Practices SAP_CPS

Close SAPLogon when the last SAP connection is closed:

HKCU\SOFTWARE\SAP\SAPLogon

Key: Autoclose

Type: REG_DWORD

Value:1

By default SAPGUI.exe starts SAPlogon.exe. This can be changed:

HKCU(HKLM)\SOFTWARE\SAP\SAPGUI

Key: StartSAPlogon

Type: REG_DWORD

Value:0

The most critical part of the SAP GUI for Windows installation process on Citrix Presentation Server4 is the multi-user configuration. This means that all configurations are user-specific. So each user hasto have his or her own configuration.

How to deploy the necessary configurations to your users depends on your environment and how youuse user profiles, login scripts and policies.

Please take a look at the Citrix documentation and also the Advanced Concepts Guide. You will find alot of information about user profiles, policies, the shadow key, etc.

SAPWorkdir

The SAPWorkdir is the SAP GUI for Windows Temp Directory. All temp files and history files arestored within the SAPWorkdir. It is not possible to separate the content of the SAPWorkdir. Forexample, you cannot save the SAP GUI for Windows History at one location and the Temp files atanother.

We recommend using a centralized SAPWorkdir for each user. It should be located on the user’s homedrive on a centralized fileshare. This prevents uploading and downloading during logon and logoff.Also, having only one SAPWorkdir per user is a great benefit in a Citrix farm with more than oneserver.

You can configure the SAPWorkdir in the Registry:

HKLM\Software\SAP\SAP Shared

Key: SAPworkdir

Type: REG_EXPAND_SZ

This key must be user-independent (For example, %userhome%\sapworkdir or h:\sapworkdirdependent on your infrastructure).

Page 7: Best Practices SAP_CPS

7

Tuning

When we discuss application tuning in a Citrix / Terminal Server environment we are talking aboutperformance enhancements. This means better usage of CPU and memory, and lower bandwidthconsumption.

Currently there are no special configurations known to change the memory and CPU consumption ofSAP GUI for Windows.

The new CPU and DLL management functions of Presentation Server 4 are able to enhance theperformance and scalability of Citrix Presentation Server.

But results also depend on the number of users and their work behavior in your environment.

Another tuning area is the network traffic traveling between users running the ICA® client and CitrixPresentation Server. Here you must decide which graphic depth and resolution you need. Less colordepth and lower resolution reduce the traffic sent between the ICA client and the Citrix server.

The new visual design of SAP GUI 7.10 for Windows has more memory overhead than the classicdesign. But normally only the Enjoy mode has a good user acceptance.

ICA Virtual Channels also consume network bandwidth, so we recommend disabling all virtualchannels you don’t need. We also recommend restricting the printing virtual channel to a definedvalue. This prevents the printing process from using up all available bandwidth for the user’s ICAconnection.

Page 8: Best Practices SAP_CPS

SAP GUI 7.10 for Windows Printing

SAP GUI for Windows printing within a Presentation Server 4 environment usually means SAP front-end printing. There are other SAP printing possibilities like host / back-end printing. But the SAP GUIfor Windows front-end printing is the only print scenario in which printer traffic is sent to the Citrixserver and has to be processed by the server. This chapter discusses SAP GUI for Windows front-endprinting.

SAPLPD

SAPLPD is the SAP front-end printing tool that is frequently used in Terminal Server environments.For a long time it was the only front-end printing solution available from SAP. The problem withSAPLPD is that it was not designed for a multi-user environment like Presentation Server. It wasdesigned as a standalone print service, but was used because of customer requests for a front-endprinting solution.

If you must use SAPLPD because your environment is not at the necessary patch level to use therecommended control printing, please heed the following recommendations.

The printer name has a limitation of 40 characters. This is an SAP back-end database limitation. So ifyou use Citrix client printer mapping and SAP GUI for Windows, your printer name might be toolong, and you will have SAPLPD errors. Also, the new printer names used with the PresentationServer 4 Universal Printer Driver (UPD) could raise issues here.

In addition to the normal SAP GUI for Windows patches, there are SAPLPD patches available fromSAP. Please take a look at the http://service.sap.com for information.

The following tasks must be done to configure SAPLPD on your Presentation Server. Please take alook at SAPNote 150533 for updates.

- If it exists, delete the entry LPRINT_DEST in Table TSPOPTIONS.

- On the Presentation Server, set the system-wide environment variable LP_CMD to the value<GUI_path>\saplpd\saplpd -f&F -c&C -p&P (-P&P as of SAPLPD 4.24).IMPORTANT: The word "saplpd" must not appear in uppercase letters in the above-mentioned command. Also, if the GUI path contains blanks, set the entire expression -excluding the arguments in quotes - for example: "c:\programfiles\sappc\sapgui\salpd\saplpd" -f&F -c&C -P&P.

- SAPLPD must not be entered as a service on the server, since the SAPLPD print programmust be restarted for every user for every print output.

Page 9: Best Practices SAP_CPS

9

Front-end Printing with Control Technology

We highly recommend using the new SAP front-end printing technology for your Citrix environment.

(SAPNote 821519)

From a technical point of view, the new front-end printing is based on the controls that havebeen used in SAPGUI for a long time. Controls are DLLs that run in the process context ofSAPGUI. The new print control receives the print data and transfers it to the underlyingprinting system of the operating system. When you work with SAPGUI for Windows, you cancontinue to use the SAPWIN device type that allows you to use any printer with a Windowsdriver. SAPLPD no longer exists as a separate process. This eliminates the Terminal Serverenvironment problems mentioned at the start.

Differences from the old front-end printing:

SAPLPD is no longer required as a separate process.

There is no longer a printer selection box in the SAP system. Instead, a Windows printerselection box is called directly from the control. The length restriction for printer namestherefore no longer applies.

The environment variable LP_CMD is no longer required in Terminal Server environments.

Import the support package or implement the correction instructions. Import the relevantkernel patch. Import the relevant GUI patch.

Kernel patch for Release 6.20: dw Patch 1942 (see Note 854044)

for Release 7.10: dw Patch 63

SAPGUI 6.20 Patch 56

SAPGUI 7.10 Patch 10

In your Citrix environment you don t need to do configurations. After installing the necessaryback-end and front-end patches, you can directly use the new printing subsystem.

Page 10: Best Practices SAP_CPS

Front-end Printing with Citrix Universal Printer Driver

Because of the new design of the Citrix® Universal Printer Driver, only the EMF format is supported.Normally the SAPGUI sends all print data as RAW. This results in a printer issue, with the print jobstuck in the print spooler on your server. To change the data format of the SAPGUI you mustimplement the registry key noted below.

(SAPNote 858883)

The same issue occurs with SAPLPD used for front-end printing services as well as with the newcontrol printing technology.

Before you implement the registry key below, please make sure that you can print to a printer usingthe native driver instead of the UPD driver, and that the problem only occurs while printing to aprinter using the Universal Printer Driver in Presentation Server 4.

Don’t be confused: the SAPLPD Registry Key is right for SAPLPD printing as well as for controltechnology printing. The new control printing uses the “old” SAPLPD registry keys for compatibilityreasons.

To force the SAPGUI to send the data as EMF data, please add the following registry key:

HKEY_CURRENT_USER\Software\SAP\SAPlpd\SAPLPD

Type: String

Name: SwinDataType

Value: EMF

Page 11: Best Practices SAP_CPS

11

SAPGUI 7.10 as a Published Application

To run SAPGUI as a published application, you have several options. You can deploy a full serverdesktop, but your users will have to start SAPGUI manually. A better approach is to deployapplications in seamless mode. This is a very good way to integrate published applications running onCitrix Presentation Server into the user’s desktop environment.

You can publish the following SAP executables:

• SAPlogon.exe (This is the executable for the SAP Logon Launchpad)

• SAPlgpad.exe (This is the best choice for a published application)

• SAPshcut.exe (This is the executable for Sap Shortcuts. If you want to access transactionsdirectly)

For all published applications you need a configured SAPlogon.ini file for your users.

For the SAPshcut.exe you also need to have the SAPshortcut.ini.

Page 12: Best Practices SAP_CPS

Citrix Application Streaming with Citrix Streaming Technology

Preparation

1. Windows Server 2003 Profiling System (clean installation with latest service pack andupdates)

2. Citrix Streaming Profiler Software version 1.1 (or later)

3. SAP GUI 7.10 configured as an Installation Server with all SAP patches

4. Microsoft Redistribution Package (vcredist_x86.msi) installed on profiling Server anddestination Systems. Latest Version is available on Microsoft homepage. It’s also part of theSAP GUI installation CD.

Profiling

1. Configure and prepare a windows server 2003 system with the latest service pack and allMicrosoft patches.

2. Reboot the system.

3. Install Citrix Streaming Profiler Version 1.1 (Citrix Streaming Profiler.msi).

4. Reboot the system.

5. Copy the SAP GUI 7.10 Installation server folder to the local hard drive of your profilingsystem.

Page 13: Best Practices SAP_CPS

13

6. Install the Microsoft redistribution package from within the SAP GUI installation serverfolder: 710_Install_Server\system\vcredist_x86.msi.It’s very important that the redistribution package is installed outside the virtual environment.

7. Reboot the system.

8. Start the Citrix Streaming Profiler.

Page 14: Best Practices SAP_CPS
Page 15: Best Practices SAP_CPS

15

Page 16: Best Practices SAP_CPS
Page 17: Best Practices SAP_CPS

17

Page 18: Best Practices SAP_CPS
Page 19: Best Practices SAP_CPS

19

Please start NwSapSetup.exe instead of the executables in the main directory (SapGuiSetup.exe).

Page 20: Best Practices SAP_CPS
Page 21: Best Practices SAP_CPS

21

Select the components you need in your environment.

Page 22: Best Practices SAP_CPS

When complete, you should see:

Save the profile and publish it through the Citrix Presentation Server for your users. Please also take alook at our SAP GUI installation guide. As with a native install of SAP GUI on Citrix PresentationServer, with streaming you have to configure SAP specific settings like SapWorkDir, printing andperformance optimization.

Page 23: Best Practices SAP_CPS

23

Streaming TroubleshootingThere are currently two known error messages that might appear during the install procedure:

During profiling, the SAP installer runs into an application exception. That’s related to the fact thatsometimes profiling slows down some threads. Just try again and the error should be gone.

We have seen this very often on a Windows XP profiling system. With Windows 2003 it’s workingfine.

Sometimes this error is also related to a slow profiling system that has inadequate cpu / memory orwhen using the profiler within a virtual environment that adds additional overhead. Our profilingsystem was a dual core 3.2 GHZ system with 2GB of Ram.

After the profiling you could see:

Page 24: Best Practices SAP_CPS

This error is related to a missing redistribution DLL. Please follow the guide exactly and install theMicrosoft redistribution package (vcredist_x86.msi) outside the profiler before you start profiling aswell as on the destination system where you install the streaming client.

If the profiled application will not start on your client system, please check that the redistributionpackage is installed there as well.

Page 25: Best Practices SAP_CPS

25

Basic Troubleshooting

To identify a SAP GUI for Windows issue on a Citrix Presentation Server, we recommend first tryingto reproduce the problem with the following scenarios:

• Published desktop instead of seamless mode

• Win32 ICA client instead of other ICA clients

• SAP GUI for Windows Classic Mode instead of Enjoy Mode

• Console Logon using RDP (desktop and initial program using SAP GUI for Windows)

• Logon at the server console

If you can reproduce the problem at the server console or over RDP, please open a support case withSAP. If the problem only occurs with ICA, please open a support case with Citrix Technical Support.

When you open a call at SAP or Citrix, we also recommend that you provide the data requested inSAPNote 431163. (Troubleshooting Citrix)

Additional Information

SAPNotes are available from the SAP Service Marketplace, which is only accessible to SAPcustomers and partners.

Link: http://service.sap.com/notes

Link: http://support.citrix.com