19
SAP Global Delivery Integration Services ABAP Tracing using SAT Dinesh Kaushal, SAP GD 30.12.2010

ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

SAP Global Delivery

Integration Services

ABAP Tracing using SAT

Dinesh Kaushal, SAP GD30.12.2010

Page 2: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Abstract : a Technical View

A new ABAP Trace Tool (transaction SAT) has been developed,

addressing major limitation in the SE30: For example

• Trace Storage

• User Interface

• Analysis Functionality

• Trace Comparison and more …

The Transaction SE30 is currently being phased-out.

Page 3: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Traditional Trace Storage in SE30

Trace Recording:

With tracing switched on, the ABAP VM and its accompanying

services (DBI, Dynpro, …) store trace entries in a file on the

application server.

Trace Storage:

Transaction SE30 directly reads these trace files. As a result, only

traces on the current server are visible within SE30. To conserve

file system space, traces older than one week are deleted

automatically.

Page 4: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Trace Storage in SAT

New Trace Storage within SAT:

Trace file content is processed and stored on the database. In

most cases, this is done automatically after the trace is finished.

The trace file is deleted after the data has been stored on the

database.

Trace data from all application servers in the system isaccessible via SAT.

Traces can be kept for a longer time, as trace data on thedatabase is not deleted automatically

Page 5: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

User Interface: Trace Overview

On tab „Evaluate“, a list of all traces in the system is displayed

(only your own traces are shown by default).

You can:

• Display a trace

• Delete traces

• Compare traces

• Distribute a trace

• Upload / download traces

By default the traces of the current user are shown. This can be changed byright click on the row “Trace user” and choosing “Set filter…”.

Page 6: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

User Interface: Trace Display

SAT uses the same multi-tool manager as the new ABAP debugger:User can choose between different views on the trace dataNavigation between the different tools is supported Data is displayedusing ALV-Grids or Column Trees

In SAT, a multi tool user interface is used. This screen can be customized accordingto your needs

Page 7: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Trace Comparison

Traces can be compared (to allow checking for scalability, forexample)

Page 8: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Trace Comparison

With the new SAT transaction, different traces can be compared. Thisis helpful for instance to check the scalability. For instance, aprogram can be executed two times with a different amount ofdata supplied. Each run can be traced and afterwards the tracescan be compared to find out whether the program scales.

As all traces are stored in the database, different application serverscan be compared. If this is even not enough, completely differentsystems can be compared as shown next.

Page 9: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Traces can be distributed to other systems viaRFC

We can compare our traces in different systems, the traces can be send toanother system via RFC call. To do so, select the trace to be transmitted to theother system and click the download button as shown below in the figure. Apopup will appear for entering the RFC Destination.

Page 10: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Traces can be distributed to other systems viafrontend up/download

We can compare our traces in different systems, the traces can be send toanother system via RFC call. To do so, select the trace to be transmitted to theother system and click the download button as shown below in the figure. Apopup will appear for entering the RFC Destination.

Page 11: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Analysis Functionality

In SAT there is a different approach. In the profile tool a tree shows the traceentries ordered by type, e.g. Database-Operations, Dynpro-Events, Processingblocks, To obtain detailed information on any entry of this tree, the entry can beselected and narrowed using the desired tool. This allows to view any kind of hitlist. as shown below in the figure

Page 12: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Analysis Functionality: Confine to Subarea

We can Display can be confined to subarea. Times are rescaled as shownbelow in the figure.

Page 13: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

© SAP 2008 / Page 13

Variant

Page 14: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Variant for Restricting Measurement

We can create the different variants as per our requirement as shown below inthe figure and can restrict the runtime analysis of our program.

Page 15: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Variant : Restricting Runtime Analysis ofProgram parts only

We can further sub divide our criteria for evaluation of our code. With thisoption, RFC calls and updates are also measured. The results are stored inseparate performance data files. You can evaluate these files on the relevantapplication server using SE30. If you select Particular units Definition option, thesystem measures only specific parts of the application given below:

Page 16: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

Variants :Restricting Runtime Analysis ofStatements Only

we can further limit the Runtime Analysis by selecting the particular statementswe want to review as shown below in the figure. In duration/ type tab we cangive the Maximum execution time ,Maximum size of file & select the use oflogging memory.

Page 17: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

© SAP 2008 / Page 19

Page 18: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

© SAP 2008 / Page 20

Thank you!

Page 19: ABAP Tracing using SAT - All Questions - SAP Q&A · 2019. 11. 12. · User Interface: Trace Display SAT uses the same multi-tool manager as the new ABAP debugger: User can choose

© SAP 2010 / Page 21

Copyright 2010 SAP AGAll 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 changedwithout prior notice.Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, Duet, Business ByDesign, ByDesign, PartnerEdge and other SAP products and services mentioned herein as well as theirrespective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned andassociated logos displayed are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

The information in this document is proprietary to SAP. This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This documentcontains only intended strategies, developments, and functionalities of the SAP® product and is not intended to be binding upon SAP to any particular course of business, product strategy,and/or development. SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, orother items contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties ofmerchantability, fitness for a particular purpose, or non-infringement.SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitationshall not apply in cases of intent or gross negligence.The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in thesematerials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages

Weitergabe und Vervielfältigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrückliche schriftliche Genehmigung durchSAP AG nicht gestattet. In dieser Publikation enthaltene Informationen können ohne vorherige Ankündigung geändert werden.Einige von der SAP AG und deren Vertriebspartnern vertriebene Softwareprodukte können Softwarekomponenten umfassen, die Eigentum anderer Softwarehersteller sind.SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, Duet, Business ByDesign, ByDesign, PartnerEdge und andere in diesem Dokument erwähnte SAP-Produkte und Servicessowie die dazugehörigen Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und in mehreren anderen Ländern weltweit. Alle anderen in diesem Dokument erwähntenNamen von Produkten und Services sowie die damit verbundenen Firmenlogos sind Marken der jeweiligen Unternehmen. Die Angaben im Text sind unverbindlich und dienen lediglich zuInformationszwecken. Produkte können länderspezifische Unterschiede aufweisen.

Die in diesem Dokument enthaltenen Informationen sind Eigentum von SAP. Dieses Dokument ist eine Vorabversion und unterliegt nicht Ihrer Lizenzvereinbarung oder einer anderenVereinbarung mit SAP. Dieses Dokument enthält nur vorgesehene Strategien, Entwicklungen und Funktionen des SAP®-Produkts und ist für SAP nicht bindend, einen bestimmtenGeschäftsweg, eine Produktstrategie bzw. -entwicklung einzuschlagen. SAP übernimmt keine Verantwortung für Fehler oder Auslassungen in diesen Materialien. SAP garantiert nicht dieRichtigkeit oder Vollständigkeit der Informationen, Texte, Grafiken, Links oder anderer in diesen Materialien enthaltenen Elemente. Diese Publikation wird ohne jegliche Gewähr, wederausdrücklich noch stillschweigend, bereitgestellt. Dies gilt u. a., aber nicht ausschließlich, hinsichtlich der Gewährleistung der Marktgängigkeit und der Eignung für einen bestimmten Zwecksowie für die Gewährleistung der Nichtverletzung geltenden Rechts.SAP übernimmt keine Haftung für Schäden jeglicher Art, einschließlich und ohne Einschränkung für direkte, spezielle, indirekte oder Folgeschäden im Zusammenhang mit der Verwendungdieser Unterlagen. Diese Einschränkung gilt nicht bei Vorsatz oder grober Fahrlässigkeit.Die gesetzliche Haftung bei Personenschäden oder die Produkthaftung bleibt unberührt. Die Informationen, auf die Sie möglicherweise über die in diesem Material enthaltenen Hotlinkszugreifen, unterliegen nicht dem Einfluss von SAP, und SAP unterstützt nicht die Nutzung von Internetseiten Dritter durch Sie und gibt keinerlei Gewährleistungen oder Zusagen überInternetseiten Dritter ab.Alle Rechte vorbehalten.