{"id":17085,"date":"2022-05-16T18:18:18","date_gmt":"2022-05-16T12:48:18","guid":{"rendered":"https:\/\/coforge.site\/cigniti\/blog\/?p=17085"},"modified":"2023-09-15T16:23:00","modified_gmt":"2023-09-15T10:53:00","slug":"sap-performance-testing-gui-response-time","status":"publish","type":"post","link":"https:\/\/coforge.site\/cigniti\/blog\/sap-performance-testing-gui-response-time\/","title":{"rendered":"SAP Performance Testing \u2013 Breaking Down the Longer SAP GUI Response Times"},"content":{"rendered":"<p>SAP offers one of the best ERP solutions for enterprise business-critical operations. The success of these business operations depends on the reliability of the SAP deployment. Though the SAP solutions are perhaps thoroughly tested, rigorous performance testing is needed to understand the operations behavior of SAP under heavy loads. The number of tests required might depend on the scale of deployment, business modules deployed, integrations, data volumes, customizations, expected workloads, and so on.<\/p>\n<p>You might have come across a situation where E2E performance, especially response times measured at the SAP GUI client end, is quite longer or slower, but processing time on the SAP application end is not that long and not comparable to the response time measured at the SAP GUI side.<\/p>\n<p>Immediately, one might possibly think the network is the bottleneck. Is it correct to say so without gathering sufficient evidence from the SAP application and, for that matter, the network? What is the delta here, and how do we understand what is contributing to that delta? It could be an SAP resource issue like work process, CPU, Extended Memory, Heap Memory, Database SQL performance issues, Network, etc. As a <a href=\"https:\/\/coforge.site\/cigniti\/blog\/what-and-why-of-moving-from-performance-testing-to-performance-engineering\/\">performance engineer<\/a> or architect, one should be able to gather sufficient evidence of the performance bottlenecks before calling them out. In this blog, we will discuss the approach adopted in troubleshooting the longer response times of the SAP GUI client.<\/p>\n<p>The SAP response time is a critical metric that measures the speed at which the system processes user requests, directly impacting overall performance and user satisfaction.<\/p>\n<p>Before diving into the debugging approach, let us understand what E2E response time constitutes from an SAP standpoint, which is essential for better interpreting what is being reported and measured (the following diagram is only for illustrative purposes).<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-17093 size-full\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/illustration.png\" alt=\"illustration\" width=\"973\" height=\"478\" srcset=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/illustration.png 973w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/illustration-555x273.png 555w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/illustration-768x377.png 768w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/illustration-833x409.png 833w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/illustration-600x295.png 600w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/p>\n<p>The response time in SAP has been consistently monitored and optimized to ensure seamless performance and efficient business operations.<\/p>\n<p>Response Time: Response time starts when a user request arrives at the dispatcher, and the next screen is loaded for the user.<\/p>\n<p>Wait Time: This is when a request waits at the dispatcher before it is picked up by the work process for processing.<\/p>\n<p>Roll-in Time: It is the time taken to roll user context info from the shared pool to the local working memory of the work process.<\/p>\n<p>Network Time: The network time is the time used in the network during the first data transfer from the front end to the application server and during the last data transfer from the application server to the front end.<\/p>\n<p>Load Time: Time taken to load from the Database and generate ABAP code screen information.<\/p>\n<p>Processing Time: Time taken by the work process to execute ABAP code.<\/p>\n<p>DB Time: Time taken to process user requests from a database standpoint.<\/p>\n<p>GUI Time: It is the time taken between the sap server and the sap client application.<\/p>\n<h2>Approach for troubleshooting Longer SAPGUI Response Times<\/h2>\n<p>Execute the <a href=\"https:\/\/coforge.site\/cigniti\/blog\/single-user-load-testing-kpis\/\">load test<\/a> and use ST03 to understand the dialog response times and data transfer rates. Below is a sample capture for SAP standard t code ME51N. It clearly shows the longer GUI Time.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-17088 size-full\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAP-standard-t-code-ME51N.png\" alt=\"SAP standard t code ME51N\" width=\"935\" height=\"341\" srcset=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAP-standard-t-code-ME51N.png 935w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAP-standard-t-code-ME51N-555x202.png 555w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAP-standard-t-code-ME51N-768x280.png 768w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAP-standard-t-code-ME51N-833x304.png 833w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAP-standard-t-code-ME51N-600x219.png 600w\" sizes=\"(max-width: 935px) 100vw, 935px\" \/><\/p>\n<p>Next, capture the transaction trace for the transaction in scope with or without load to understand which part of ME51N is taking longer. The following trace was taken, which is about 2 seconds longer, and shows that 40% of the time is spent on DELETE WHERE LT_AGR_HIERT. And 35% of the time is spent on RFC OLE_FLUSH_CALL.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-17089 size-full\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/transaction-trace-for-the-transaction-in-scope-with-or-without-load.png\" alt=\"transaction trace for the transaction in scope with or without load\" width=\"931\" height=\"248\" srcset=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/transaction-trace-for-the-transaction-in-scope-with-or-without-load.png 931w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/transaction-trace-for-the-transaction-in-scope-with-or-without-load-555x148.png 555w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/transaction-trace-for-the-transaction-in-scope-with-or-without-load-768x205.png 768w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/transaction-trace-for-the-transaction-in-scope-with-or-without-load-833x222.png 833w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/transaction-trace-for-the-transaction-in-scope-with-or-without-load-600x160.png 600w\" sizes=\"(max-width: 931px) 100vw, 931px\" \/><\/p>\n<p>According to STAD\/ST03 statistics, the database is not a concern, so investigated into RFC OLE_FLUSH_CALL.<\/p>\n<p>OLE_FLUSH_CALL is related to GUI time, which is our concern.<\/p>\n<p>GUI time is the result of calls to OLE_FLUSH_CALL. GUI time is the time that the work process spends Exchanging data with SAPGUI (Network time) and waiting for SAPGUI to execute the methods in each OLE_FLUSH_CALL (Front End (FE) Interpretation time).<\/p>\n<p>[GUI time (OLE_FLUSH_CALL)] = [Network time] + [FE interpretation time]<\/p>\n<p>Please see SAP Note 2880032-OLE_FLUSH_CALL and GUI time in NetWeaver AS ABAP for more details.<\/p>\n<p>Interpretation time is the time taken to update the SAP GUI after receiving a response from SAP.<\/p>\n<p>Executed the first dialog step of the transaction in question manually three times and validated the interpretation times. As can be seen in the following interpretation, time was only about half a second. So, interpretation time is not a concern\u2014possibly indicating a potential issue at the network.<img decoding=\"async\" class=\"wp-image-17090 size-full aligncenter\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAPGUI.png\" alt=\"SAPGUI\" width=\"937\" height=\"162\" srcset=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAPGUI.png 937w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAPGUI-555x96.png 555w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAPGUI-768x133.png 768w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAPGUI-833x144.png 833w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/SAPGUI-600x104.png 600w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/p>\n<h2>How can we check if the network is slower or has any bandwidth constraints?<\/h2>\n<p>Checking the network\u2026<\/p>\n<p>Typical response times for a ping with 4 KB packet sizes are as below.<\/p>\n<p>In a local network (LAN) and in a fast LAN within a continent &lt; 20 milliseconds<\/p>\n<p>In a fast-intercontinental connection &lt; 200 milliseconds<\/p>\n<p>In a slow intercontinental connection &lt; 400 milliseconds<\/p>\n<p>There should not be any pocket\/data loss<\/p>\n<p>SAP recommends running NIPING. NIPING is a tool provided by SAP for troubleshooting network latency and bandwidth issues. One would need to run the following three commands and check if the average latency is in an acceptable range.<\/p>\n<p>Start the niping server on a host using<\/p>\n<p>niping -s -I 0<\/p>\n<p>The following should be printed on the terminal after a successful start.<\/p>\n<p style=\"background: #d3d3d3; text-align: left; padding-left: 10px;\">Tue Mar 08 14:36:23 2022<br \/>\nready for connect from client &#8230;<br \/>\nstart the niping client on host using<br \/>\n[2] niping -c -H -B 10 -L 100<br \/>\nBelow is the expected sample output<br \/>\nTue Mar 08 14:38:23 2022<br \/>\nconnect to server o.k.<br \/>\nTue Mar 08 14:38:25 2022<br \/>\nsend and receive 100 messages (len 10)<br \/>\n&#8212;&#8212;- times &#8212;&#8211;<br \/>\navg\u00a0\u00a0\u00a0 26.516 ms<br \/>\nmax\u00a0\u00a0\u00a0 29.215 ms<br \/>\nmin\u00a0\u00a0\u00a0 26.127 ms<br \/>\ntr\u00a0\u00a0\u00a0\u00a0\u00a0 0.737 kB\/s<br \/>\nexcluding max and min:<br \/>\nav2\u00a0\u00a0\u00a0 26.493 ms<br \/>\ntr2\u00a0\u00a0\u00a0\u00a0 0.737 kB\/s<br \/>\n[3] niping -c -H -B 100000<br \/>\nBelow is the expected sample output<br \/>\nTue Mar 08 14:39:32 2022<br \/>\nconnect to server o.k.<br \/>\nTue Mar 08 14:39:33 2022<br \/>\nsend and receive 10 messages (len 100000)<br \/>\n&#8212;&#8212;- times &#8212;&#8211;<br \/>\navg\u00a0\u00a0\u00a0 85.861 ms<br \/>\nmax\u00a0\u00a0 195.038 ms<br \/>\nmin\u00a0\u00a0\u00a0 54.491 ms<br \/>\ntr\u00a0\u00a0 2274.750 kB\/s<br \/>\nexcluding max and min:<br \/>\nav2\u00a0\u00a0\u00a0 76.135 ms<br \/>\ntr2\u00a0 2565.336 kB\/s<\/p>\n<p>Analyze the niping bandwidth and latency commands output between the hosts where SAP GUI client is installed and SAP Application servers. Need to look for ways to reduce the roundtrip latency on the network if the latency is well beyond the typical latency expected on the various networks mentioned above.<\/p>\n<p>Performance Assurance is one of the critical nonfunctional testing types that cannot be ignored for even certified products like SAP ECC or <a href=\"https:\/\/coforge.site\/cigniti\/blog\/sap-hana-implementation-challenges-best-practices\/\">SAP HANA because every implementation<\/a> could be different in terms of customizations, integrations, data volumes, hardware sizing, and network topology.<\/p>\n<p>Performance assurance would add value to business operations in the effort spent and dollars burnt towards performance testing. Performance <a href=\"https:\/\/coforge.site\/cigniti\/blog\/adopt-performance-engineering-stay-ahead-curve\/\">engineers<\/a> build the right strategy, design the right workloads, and utilize the right tools and techniques to isolate where the performance bottleneck is and certify the SAP solution from a performance standpoint before promoting it to production. SAP itself provides various T Codes to monitor SAP Dialog step response times and follow various notes on breaking down performance issues and providing recommendations. There could also be cases when SAP GUI times appear to be longer, and there are no issues associated with a network or SAP-the application itself. Then, the next thing to check is the servers being used to simulate SAP GUI load. Typically, 25 Vusers could run well per Windows server.<\/p>\n<h2>Conclusion:<\/h2>\n<p>Cigniti\u2019s <a href=\"https:\/\/coforge.site\/cigniti\/blog\/seven-success-factors-cigniti-tricentis-sap-testing-excellence\/\">SAP testing<\/a> practice provides cost-effective solutions that address all types of SAP projects\u2019 needs like Implementations, Upgrades, Rollouts, Migration, and Enhancements.<\/p>\n<ul>\n<li>Custom SAP testing solutions<\/li>\n<li>SAP test accelerators in the form of a pre-built test suite for standard SAP business processes and out-of-the-box SAP functionalities<\/li>\n<li>Ready-to-use test automation frameworks<\/li>\n<li>1700+ pre-built Test Cases\/Scripts for SAP ECC, S4hana, Success factors etc.<\/li>\n<li>Pool of highly skilled &amp; certified functional SMEs, Manual and automation testing professionals having in-depth experience in testing all SAP Products and Modules<\/li>\n<li>Expertise in:\n<ul>\n<li>Digital services related to SAP transformation engagements like Mobile, IoT, Cloud, etc.<\/li>\n<li>Robot Process Automation (RPA), <a href=\"https:\/\/coforge.site\/cigniti\/blog\/software-quality-engineering-improve-api-testing\/\">API Testing<\/a> in SAP space<\/li>\n<li>Automating SAP applications using multiple automation tools like UFT, Tosca, Selenium, Ranorex, Worksoft Certify, TAO and CBTA, etc.<\/li>\n<\/ul>\n<\/li>\n<li>Expertise in testing:\n<ul>\n<li>SAP test accelerators in the form of a pre-built test suite for standard SAP business processes and out-of-the-box SAP functionalities<\/li>\n<li>Traditional ECC, latest S\/4 HANA On-premise, S\/4 HANA On-cloud and Hybrid models<\/li>\n<li>Migration from ECC to S\/4 HANA (On-premise, Cloud and Hybrid approaches)<\/li>\n<li>Latest SAP Cloud products like Ariba, SuccessFactors, Fieldglass, Concur, etc.<\/li>\n<\/ul>\n<\/li>\n<li>Strong capabilities in testing Artificial Intelligence (AI) and machine learning (e.g., SAP Leonardo, etc.)<\/li>\n<li>In-house IP (Proprietary) tools like SAP impact analyzer ongoing development.<\/li>\n<\/ul>\n<p>Schedule a discussion with our <a href=\"https:\/\/www.cigniti.com\/services\/erp-testing\/\" target=\"_blank\" rel=\"noopener\">ERP Testing<\/a> and <a href=\"https:\/\/www.cigniti.com\/services\/performance-testing\/\" target=\"_blank\" rel=\"noopener\">Performance Testing<\/a> experts to learn more about breaking down longer SAP GUI response times through SAP Performance Testing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SAP offers one of the best ERP solutions for enterprise business-critical operations. The success of these business operations depends on the reliability of the SAP deployment. Though the SAP solutions are perhaps thoroughly tested, rigorous performance testing is needed to understand the operations behavior of SAP under heavy loads. The number of tests required might [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":17086,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[194,2],"tags":[4109],"ppma_author":[4108],"class_list":["post-17085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-erp-testing","category-performance-testing","tag-erptesting-performancetesting-performanceassurance-saptesting-sap"],"authors":[{"term_id":4108,"user_id":0,"is_guest":1,"slug":"prasad-paduchuru","display_name":"Prasad Paduchuru","avatar_url":{"url":"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/Prasad-Paduchuru.jpg","url2x":"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/Prasad-Paduchuru.jpg"},"author_category":"","user_url":"","last_name":"","first_name":"","job_title":"","description":"Prasad Paduchuru is working as  a Senior Manager at Cigniti Technologies. Have 16 years of IT experience predominantly in to Performance testing, engineering. Had rigorously worked on developing and implementing  enterprise level Performance assurance strategies for organizations  that are into Telecom , Retail, BFSI domains. Experienced  in strategizing for Holiday peak readiness.  "}],"_links":{"self":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts\/17085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/comments?post=17085"}],"version-history":[{"count":0,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts\/17085\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/media\/17086"}],"wp:attachment":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/media?parent=17085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/categories?post=17085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/tags?post=17085"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/ppma_author?post=17085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}