abap program terminations

Download ABAP Program Terminations

If you can't read please download the document

Upload: nhillier1

Post on 14-Apr-2018

234 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 ABAP Program Terminations

    1/21

    1

    Analyse Problem - SAP Tools

    ABAP Program Terminations

    Active Global Support

    March 2009

  • 7/27/2019 ABAP Program Terminations

    2/21

    2

    Analyzing ABAP Program Terminations

    Analyzing

    Database Access

    Analyzing

    ABAP Program Terminations

    Introduction AnalyzingABAP Messages

    Basic ToolsAnalyzing

    Authorization Errors

    Screens & Interfaces

    Data Objects

    Program Modularization New ABAP Debugger

  • 7/27/2019 ABAP Program Terminations

    3/21

    3

    Contents

    ABAP Short dumps

    System Log

    Update Manager

    Developer Traces

    Objectives

    At the end of this unit, you will be able to:

    Analyze ABAP Short dumps Analyze the System Log

    Analyze Update Errors

    Find Developer Traces

    ABAP Program Terminations:

    Contents/Objectives

  • 7/27/2019 ABAP Program Terminations

    4/21

    4

    Analysis of Program Terminations

    ABAP Short dumpsABAP Short dumps

    System LogSystem Log

    Update ManagerUpdate Manager

    Developer TracesDeveloper Traces

  • 7/27/2019 ABAP Program Terminations

    5/21

    5

    Dump Analysis (ST22)

    Selection

    Select the relevant Dump

    Save it for later analysis

    Double-Click for

    immediate analysis

    F8

  • 7/27/2019 ABAP Program Terminations

    6/21

    6

    Systematical Dump Analysis

    11

    22

    Get the Dump header:(e.g. SAPSQL_ARRAY_INSERT_DUPREC)

    Get the system environment (Release, OS..)

    User, transaction ...

    Read the error analysis / How to correct the error

    Check the frequency of the dump and search for common

    things. (server, transaction...)

    Determine the effected program and the line of the source code

    Compare the code with a reference system.

    Search for notes and calls.

    Further analysis

    (code analysis, field checks, call stack, reproduce problem ...)

    33

    44

    55

    66

    00

    Some remarks to point 3. The other points are described in detail afterwards.

    If you start transaction st22 and select all e.g. CALL_FUNCTION_CONFLICT_LEN Dumpsof the last days then you get a list like this

    Date Time Machine User Clt X Error ID

    12.07.1999 11:47:01 pawdf025 FRANKM 000 C CALL_FUNCTI ...

    12.07.1999 11:48:11 pawdf025 FRANKM 000 C CALL_FUNCTI ...

    12.07.1999 11:51:17 pawdf025 FRANKM 000 C CALL_FUNCTI ....

    Please check if all Dumps occur on one machine or only one user is involved ...

  • 7/27/2019 ABAP Program Terminations

    7/21

    7

    Contents & Navigation

    F6

    1. steps

    2. steps

  • 7/27/2019 ABAP Program Terminations

    8/21

    8

    Dump Analysis (I)

    1. Check the detailed description of

    the error !

  • 7/27/2019 ABAP Program Terminations

    9/21

    9

    Dump Analysis (II)

    3. Check affected User, Transaction,

    Server, ...

    2. Check System Environment

  • 7/27/2019 ABAP Program Terminations

    10/21

    10

    Dump Analysis (III)

    ...

    4. If the termination occurs in

    Application programs:

    - Get name of current Event

    (Function Module, Form, ...)

    - Get name of current

    program

    5. Try to understand the

    Source Code Extract

    6. Search for known problems

    7. Reproduce the problem

  • 7/27/2019 ABAP Program Terminations

    11/21

    11

    Dump Analysis (IV)

    8. Sometimes the Call Stack ...

    ... or the stored contents of selected fields

    may be valuable help for deciding on the next analysis steps

    9. Other sections in the Dump are usually only helpful to Experts

  • 7/27/2019 ABAP Program Terminations

    12/21

    12

    Analysis of Program Terminations

    ABAP Short dumpsABAP Short dumps

    System LogSystem Log

    Update ManagerUpdate Manager

    Developer TracesDeveloper Traces

  • 7/27/2019 ABAP Program Terminations

    13/21

    13

    System log (SM21)

    F8

    On most platforms only

    a local System log is available

    Use SM51 to logon

    to the right server

  • 7/27/2019 ABAP Program Terminations

    14/21

    14

    Analysis of ABAP Program Terminations

    ABAP Short dumps (ST22)ABAP Short dumps (ST22)

    System Log (SM21)System Log (SM21)

    Update Manager (SM13)Update Manager (SM13)

    Developer Traces (ST11)Developer Traces (ST11)

  • 7/27/2019 ABAP Program Terminations

    15/21

    15

    Update Manager (SM13)

    1. Select the relevant Update Record

    2. Get Details on single Update Records

    3. Check Information on Reprocessing

    Synchronous / Asynchronous Update

    Restart of possible / impossible

    Enqueues (Locks) released

  • 7/27/2019 ABAP Program Terminations

    16/21

    16

    Details on Update Modules

    4. Identify the Update Module where the termination occurred

    5. Forward Navigation allows to display the contents of the Interface Parameters

  • 7/27/2019 ABAP Program Terminations

    17/21

    17

    Test Update

    6. Use the test function

    - to reproduce the problem, e.g. for doing traces

    - to verify that the problem is solved

  • 7/27/2019 ABAP Program Terminations

    18/21

    18

    Analysis of ABAP Program Terminations

    ABAP Short dumps (ST22)ABAP Short dumps (ST22)

    System Log (SM21)System Log (SM21)

    Update Manager (SM13)Update Manager (SM13)

    Developer Traces (ST11)Developer Traces (ST11)

  • 7/27/2019 ABAP Program Terminations

    19/21

    19

    Developer Traces (ST11)

  • 7/27/2019 ABAP Program Terminations

    20/21

    20

    ABAP Program Terminations: Summary

    Now you are able to:

    Collect relevant information on program terminations, e.g.

    terminated Updates.

    Analyze

    ABAP Short dumps

    Terminated Updates

    The system Log

    Find known solutions in SAP Notes

  • 7/27/2019 ABAP Program Terminations

    21/21

    Copyright 2009 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 hereinmay 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 othercountries.

    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 Sun Microsystems, Inc.

    JavaScript is a registered trademark of Sun Microsystems, Inc., 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 construedas constituting an additional warrant.