SAP CRM – WebUI Sessions Restarting

Applies to:
SAP CRM WebUI. For more information, visit the Customer Relationship Management homepage.

Summary
Detailed explanation or How-to if users are working on WebUI and their sessions are restarting. Author: Hasan Zubairi

Company: SAP Created on: 27 January 2011

Author Bio
I have been with SAP for a little over 5 years working as a Senior Support Consultant I in Primary Support, AGS Business Suite and Technology. I was working with SAP Retail POS and moved to CRM approximately 2 years ago. I mainly focus on FRW, IC and Sales components.

SAP COMMUNITY NETWORK © 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 1

com | UAC .SAP CRM – WebUI Sessions Restarting WebUI Sessions & Memory Let’s say that you have users who are complaining that their WebUI sessions are restarting while they are in the middle of a transaction.sap. Remember empty means no restart.com 2 . you can see that the Memory Threshold for Restart is set to 100 MB.sap.com | BOC . first we can check the customizing and second we can debug. SAP COMMUNITY NETWORK © 2011 SAP AG SDN .com | BPX .boc.sap.uac.sdn. There are two way to approach this issue. Customizing Step 1: Logon to SAPGUI and execute transaction spro Step 2: SAP Reference IMG -> Customer Relationship Management -> UI Framework -> Technical Role Definition -> Define Technical Profile -> select the Technical Profile in question (we will use DEFAULT in this example using Business Role SALESPRO) and click on the magnifying glass Step 3: From the screenshot below.sap.bpx.

com | BOC .SAP CRM – WebUI Sessions Restarting Step 4: Now launch WebUI using SALESPRO Business Role Step 5: Check the memory consumption by using transaction SM04 and you can see that the WebUI session is using 18MB Step 6: Run a few transactions or reports on the WebUI and you will see it increase… Step 7: As soon as the Memory Threshold reaches 100MB the session will restart.com | BPX .sap.bpx. you might want to increase the threshold.sdn.com | UAC . To overcome this issue.uac. SAP COMMUNITY NETWORK © 2011 SAP AG SDN .boc.sap.sap.com 3 .sap.

sap.com 4 .uac.bpx.sap.com | BPX .sdn. You should put another breakpoint there SAP COMMUNITY NETWORK © 2011 SAP AG SDN .SAP CRM – WebUI Sessions Restarting Debugging Step 1: Put a breakpoint in Method GET_MEMORY_THRESHOLD of Class CL_CRM_UI_TP_SRV Step 2: Session restarts are handled by Method HANDLE_RESTART of Class CL_CRM_UI_SESSION_RESTART.sap.boc.com | BOC .sap.com | UAC .

boc.sap.sdn. You can change this to a smaller number during debugging as reaching 100MB might take a lot of time. You can then hit F8 on your keyboard to exit the debugger and you will be back in WebUI st Step 4: As soon as it reaches its maximum. it will hit the 2 restart_requested has the value X which is true nd breakpoint.sap.com 5 . SAP COMMUNITY NETWORK © 2011 SAP AG SDN .sap.bpx.sap.com | BPX . the 1 breakpoint will be hit. You can see from the screenshot below that the value for GS_TECH_DETAILS-MEMORY_THRESHOLD is 100. it will be different.com | UAC . As you can see that Step 5: You will still see only one session in SM04 but if you compare the Time.com | BOC .SAP CRM – WebUI Sessions Restarting Step 3: Now launch WebUI and after you have selected the Business Role (if you have an option).uac.

com | BPX .com 6 .sap.sap.bpx. visit the Customer Relationship Management homepage SAP COMMUNITY NETWORK © 2011 SAP AG SDN .com | BOC .sdn.SAP CRM – WebUI Sessions Restarting Related Content For more information.boc.sap.sap.uac.com | UAC .

UNIX. and MultiWin are trademarks or registered trademarks of Citrix Systems. VideoFrame.sap. System x. RETAIN. Citrix. z/VM. R/3. All rights reserved. PostScript. Data contained in this document serves informational purposes only. DB2.bpx. Program Neighborhood. OSF/1. Crystal Decisions. System Storage. SAP Business ByDesign. z/OS. xSeries. Netfinity. S/390. Inc. OS/2. System i5. Xcelsius. MVS/ESA. and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Linux is the registered trademark of Linus Torvalds in the U. Windows. and other countries. and SAP Group shall not be liable for errors or omissions with respect to the materials. SAP.sdn. Redbooks. System i.. Java is a registered trademark of Sun Microsystems. HTML.SAP CRM – WebUI Sessions Restarting Copyright © Copyright 2011 SAP AG. the Adobe logo. RACF. PowerVM. OS/400. in the United States and in other countries. Parallel Sysplex. Oracle is a registered trademark of Oracle Corporation. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Duet. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only.com | BPX . World Wide Web Consortium. Inc. MetaFrame. Business Objects is an SAP company. System p5. Inc. POWER5. z10. BatchPipes. Massachusetts Institute of Technology.boc.uac. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. and Motif are registered trademarks of the Open Group. used under license for technology invented and implemented by Netscape. The information contained herein may be changed without prior notice.sap. z9.A. and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. ByDesign.sap. Microsoft. XML.com 7 . AS/400. Web Intelligence. PartnerEdge. OpenPower. DB2 Connect. PowerPC.com | BOC . iSeries. WinFrame. AIX. BusinessObjects. Excel. These materials are subject to change without notice. System p. Acrobat. zSeries.sap. GPFS. BladeCenter. Business Objects and the Business Objects logo. eServer. SAP NetWeaver. if any. POWER. XHTML and W3C are trademarks or registered trademarks of W3C®. WebSphere. Power Architecture. Crystal Reports.com | UAC . All other product and service names mentioned are the trademarks of their respective companies. ICA. OS/390. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services. i5/OS. and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S. Intelligent Miner. Nothing herein should be construed as constituting an additional warranty. SAP COMMUNITY NETWORK © 2011 SAP AG SDN . POWER6. pSeries. System z9. National product specifications may vary. System z. POWER5+. JavaScript is a registered trademark of Sun Microsystems. S/390 Parallel Enterprise Server. DB2 Universal Database. Adobe. System z10. Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. IBM. and PowerPoint are registered trademarks of Microsoft Corporation. HACMP. POWER6+. X/Open. Outlook. without representation or warranty of any kind.S.

Sign up to vote on this title
UsefulNot useful