Beruflich Dokumente
Kultur Dokumente
HANA Optimizations
EhP7 SP02
November 2013
Objectives
Customer
Agenda
1. HANA-specific Optimization Introduction
2. Materials Management Inventory Management
a) Optimizations with HANA specific features
b) Optimizations with Open SQL
c) Optimizations with Open SQL and ALV Grid
Customer
General Remarks
In many cases porting on HANA DB has improved the performance of reports and
transactions.
For top ranked reports and transactions additional optimizations have been carried out.
The functionality of the reports has not been changed.
All coding changes have been made in one codeline that runs on both HANA DB and
AnyDB.
The maximum performance optimization achievement can differ substantially from report to
report depending on:
Data volume in DB-Tables selected by report
Selection criteria on the selection screen
Selected features of the report
Kind of output
Hierarchical list vs. flat list
ALV Grid vs. ALV List
Customer
Aggregation
Reduced
Customer
Created/Maintained
Called
Integrated
Customer
Customer
1
2
2. Detail information
Customer
1.
2.
3.
Customer
Customer
10
Customer
11
2.
3.
Special Stocks
4.
1
2
3
Customer
12
MM_IM_MB5B_MAIN
This procedure contains the main logic of the report.
MM_IM_MB5B_INVENTORY
Here the current inventory is read from the relevant inventory tables of the Database.
Customer
13
1.
6.
2.
3.
7.
4.
8.
5.
Customer
14
Customer
15
The following slides show some examples how the optimization has been carried
out with ABAP Open SQL and/or ALV Grid Control (instead of ALV List Variant).
Customer
16
Customer
17
4. Form BERECHTIGUNG_PRUEFEN
The authority check for the plant has been done for each storage location. The authority check for the plants has been
reduced to single check for each plant.
5. Form LISTAUSGABE
The hierarchical list is created based on the internal tables HEADER and BESTAND. These two tables are combined in table
LT_BESTAND_GRID which is used to create the grid list. The grid list is displayed by using function
REUSE_ALV_GRID_DISPLAY.
The grid display offers the same additional functions (display material, display batch) as the list display.
Customer
18
SELECT * into new internal tables, seized by FOR ALL ENTRIES, are used now beforehand; then, inside the loop, specified
READ TABLE access the internal tables.
Customer
19
Customer
20
Reports of Purchasing
Customer
21
Appendix
The following slides have the technical details regarding the changes and the
performance improvement factors for some key transactions
Customer
22
4.2 times
19 times
Transaction Code
MB51 (Material Document List)
19.1 times
2.3 times
Customer
23
Summary
Customer
24
Additional Information
SAP notes for details on the SAP HANA Optimizations and other information
Customer
25
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.
National product specifications may vary.
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.
SAP 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.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.
Customer
26