Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index



Similar documents
Understanding HR Schema and PCR with an Example

SAP Master Data Governance- Hiding fields in the change request User Interface

Enterprise Software - Applications, Technologies and Programming

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Process Archiving using NetWeaver Business Process Management

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

HR400 SAP ERP HCM Payroll Configuration

Integrating Easy Document Management System in SAP DMS

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

Budget Control by Cost Center

Data Archiving in CRM: a Brief Overview

Third Party Digital Asset Management Integration

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

K in Identify the differences between the universe design tool and the information design tool

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

How to Create a Support Message in SAP Service Marketplace

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

Integration of SAP Netweaver User Management with LDAP

User Experience in Custom Apps

Data Source Enhancement Using User Exit

USDL XG WP3 SAP use case. Kay Kadner

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

Integration of Universal Worklist into Microsoft Office SharePoint

How To Use the BPC Mass User Management Tool in BPC 10.0 NW

SAP NetWeaver BRM 7.3

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

Configuring Single Sign-on for SAP HANA

SAP Sustainability Solutions: Achieving Customer Strategies

Sending Additional Files from SAP Netweaver PI to third Party System

BW Workspaces Use Cases

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

How-to-Guide: Middleware Settings for Download of IPC Configuration (KB) Data from R/3 to CRM System

Application Lifecycle Management

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

Log Analysis Tool for SAP NetWeaver AS Java

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

Accounts Receivable. SAP Best Practices

ERP Quotation and Sales Order in CRM WebClient UI Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

Consume an External Web Service in a Nutshell with good old ABAP

Query, Read, Create and Update CLOUD FOR CUSTOMER ODATA SERVICE QUERY, READ, CREATE AND UPDATE

Variable Exit in Sap BI How to Start

How to Schedule Report Execution and Mailing

SAP DSM/BRFPlus System Architecture Considerations

SAP Portfolio and Project Management

Sample Universe on Microsoft OLAP Cube

SAP Service Tools for Performance Analysis

Fixed Asset in SAP Business One 9.0

Intelligent Business Operations Chapter 1: Overview & Strategy

Project Governance The Role Of The Business Process Owner

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

Single Sign-On between SAP Portal and SuccessFactors

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

Using User Exit for Variables in BEx Reporting

SAP Cloud Strategy - Timeless Software. Frank Stienhans on behalf of Kaj van de Loo SAP

Mass Maintenance of Procurement Data in SAP

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

OData in a Nutshell. August 2011 INTERNAL

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

SAP How-To Guide: Develop a Custom Master Data Object in SAP MDG (Master Data Governance)

Sales Planning Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

AP Integration with BRFplus VERSION V APRIL SAP AG

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

Finding the Leak Access Logging for Sensitive Data. SAP Product Management Security

Run SAP like a Factory

Duet Enterprise Add SAP ERP Reports and SAP BI Queries/Workbooks to Duet Enterprise Configuration

If you have additional questions regarding these name changes, please contact your SAP Account Executive.

Configuring Distribution List in Compliant User Provisioning

Next Generation Digital Banking with SAP

SAP HANA Cloud Integration Document Version: Template Guide for SAP Sales and Operations Planning

BICS Connectivity for Web Intelligence in SAP BI 4.0. John Mrozek / AGS December 01, 2011

Learning Series: SAP NetWeaver Process Orchestration, secure connectivity add-on 1c SFTP Adapter

LO Extraction Part 1: SD Application Short Overview

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

Ariba Network Integration to SAP ECC

Implementing SSO between the Enterprise Portal and the EPM Add-In

SAP Best Practices for Subsidiary Integration in One Client Production with Intercompany Replenishment

Certificate SAP INTEGRATION CERTIFICATION

Introducing the SAP Business One starter package. A Great Start to help you to Streamline Your Small Business

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

SAP Central Process Scheduling (CPS) 8.0 by Redwood

Delta Queue Demystification

BUSINESS STRUCTURE: FUNCTIONS AND PROCESSES

Learning Series: SAP NetWeaver Process Orchestration, business to business add-on EDI Separator Adapter

Supporting SAP POS Best Practices Setting Log File Sizes and Retention

Business Process Change Analyzer in SAP Solution Manager 7.1

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

How To Configure MDM to Work with Oracle ASM-Based Products

Migration Guide Remote Support Component 1.0 to SAP Solution Manager 7.1. Target Audience System Administrators Technology Consultants

How To Improve Your Business Process With Sap

An Up-to-Date Guide to SAP Business Workflow and Its Role Within Your SAP Infrastructure

Companies with roads, rails, pipelines, electricity transmission

BUSINESS PROCESS MANAGEMENT

Transcription:

How to Find Database Index usage per ABAP Report and Creating an Index Applies to: SAP NETWEAVER WEB AS ABAP. For more information, visit the ABAP homepage Summary The aim of this article is to show how to find which table and index is being used by a long running ABAP report. This document can be used to improve the server performance by identifying the used index and if usage is not upto required standards leading to long running times, then create a new index to increase performance. This is more useful for lower releases of SAP R/3 servers and ADD In installations. Author: Hemanth Kumar Company: SAP Created on: 18 July 2011 Author Bio Hemanth is a senior SAP netweaver consultant working with SAP Active Global Support. 2011 SAP AG 1

Table of Contents Introduction... 3 Step 1- Identifying the long running report... 3 Step 2- ST04 Database performance analysis... 3 Step 3 SQL requests... 4 Step 4 Run the resource consuming report... 5 Step 5 Identifying the table being used... 5 Step 6 SQL statements accessing PCL4 table... 5 Step 7 Index and fields analysis... 6 Step 8 Adding new index to optimize more... 7 Step 9 Indexes currently created and adding new one if necessary.... 7 Step 10 Creating an Index... 8 Related Content... 9 Copyright... 10 2011 SAP AG 2

Introduction There are cases when server administrators notice that the performance of the server goes down tremendously when certain reports are run on the system irrespective of whether they are configured as background jobs or not. This article takes an example report and shows how to identify such a performance bottlenecks and improve the same by identifying the table being accessed and creating a new index to suit just the need of this high load /system resources consuming report. This will lead to swift processing of the report as the fields to be searched will be less leading to faster access and updation. Step 1- Identifying the long running report Login to the R/3 server and check the background jobs to identify the long running report. Or by usual system monitoring, such long running reports can be isolated. In this case for example purposes, we have taken the audit report RPUAUD000 which is used to display all changes that were made using infotype change documents. Step 2- ST04 Database performance analysis Navigate to TCode /n ST04 and click on detailed analysis menu for more options. 2011 SAP AG 3

Step 3 SQL requests Click on SQL request to get a list of DB statements/access running on the server presently. Now sort as per buffer gets and click on execute. 2011 SAP AG 4

Step 4 Run the resource consuming report Now open another SAP session and navigate to TCode /n SE38 to manually run the audit report RPUAUD000 after entering the required data. Step 5 Identifying the table being used There are several ways to identify the database table being accessed, but the easiest will be to navigate to TCode /n SM50 and check the tables being accessed. Narrow down with user name and client details to identify the table for the report being run. In this case it is PCL4 table. Step 6 SQL statements accessing PCL4 table Now that the table being accessed is identified, navigate back to /n ST04 and search for PCL4 table. Click on GOTO-> Find table. Enter the table name and click on execute. 2011 SAP AG 5

Step 7 Index and fields analysis Select the table and click to access more details. More details about the index being used, fields and estimated costs/estimated rows are depicted. 2011 SAP AG 6

Step 8 Adding new index to optimize more If the amount of access is on the higher end, adding an index with only the fields that is being accessed by the report will be useful as it will ensure that the database access is overall less leading to more faster data retrieval. Navigate to /n SE12 to check more details of the database table PCL4. Step 9 Indexes currently created and adding new one if necessary. The TCode shows the fields that are present for the table and to find the list of indexes currently configured on the server, click on the tab as below: As of now, 3 indexes are created on the server. If choose is clicked, then more details about the fields being used are shown. 2011 SAP AG 7

Step 10 Creating an Index If the server administrator feels that a new index can be created with less fields to be accessed so that the report runs faster then click on create and enter the below details. Once the index has been created, do not forget to activate it. Note: It is always recommended to first create the index in the development server, check the performance and then if deemed necessary, to be transported to the test and the production server. However this should be done only after careful testing. The index details can also be passed to the developers concerned so that they can write custom programs with index data included so that they can run faster. 2011 SAP AG 8

Related Content Transaction Code ST04 DATABASE MONITOR DATABASE PERFORMANCE For more information, visit the ABAP homepage 2011 SAP AG 9

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