Give some idea about sql tracer

hi ,
guru.
please give some idea about exactly what is the use of sql tracer.
thank u.
subha

Hi,
Worth to click below links,
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm
Re: Runtime Analysis vs SQL Trace
http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html
Urgent : How to do the SQL trace analysis
http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm
Regards,
Suresh

Similar Messages

  • Pls give some info about userexit

    hi everyone,
    i never did work on userexit before. Could you give some info about how to create userexit and some knowledge related to that. Any suggestion is appreciated.
    Best Regards,
    Julian

    User exits (Function module exits) are exits developed by SAP.
    The exit is implementerd as a call to a functionmodule.
    The code for the function module is writeen by the developer.
    You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    CUSTOMER EXITS-> t-code CMOD.
    As of Release 4.6A SAP provides a new enhancement technique, the Business Add-Ins.
    Among others, this enhancement technique has the advantage of
    being based on a multi-level system landscape (SAP, country versions, IS solutions, partner,
    customer, and so on)
    instead of a two-level landscape (SAP, customer) as with the customer exits.
    You can create definitions and implementations of business add-ins at any level of the system landscape.
    You can use below code to find out user exits associated with particular transaction.
    *& Report  ZUSEREXIT                                                   *
    *& Finding the user-exits of a SAP transaction code                    *
    *& Enter the transaction code in which you are looking for the         *
    *& user-exit and it will list you the list of user-exits in the        *
    *& transaction code. Also a drill down is possible which will help you *
    *& to branch to SMOD.                                                  *
    REPORT zuserexit NO STANDARD PAGE HEADING.
    TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    TABLES : tstct.
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
    IF sy-subrc EQ 0.
      SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                       AND object = 'PROG'
                       AND obj_name = tstc-pgmna.
      MOVE : tadir-devclass TO v_devclass.
      IF sy-subrc NE 0.
        SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
        IF trdir-subc EQ 'F'.
          SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
          SELECT SINGLE * FROM enlfdir WHERE funcname = tfdir-funcname.
          SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                                      AND object = 'FUGR'
                                    AND obj_name EQ enlfdir-area.
          MOVE : tadir-devclass TO v_devclass.
        ENDIF.
      ENDIF.
      SELECT * FROM tadir INTO TABLE jtab
                    WHERE pgmid = 'R3TR'
                     AND object = 'SMOD'
                   AND devclass = v_devclass.
      SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu
                                  AND  tcode EQ p_tcode.
      FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
      WRITE:/(19) 'Transaction Code - ',
           20(20) p_tcode,
           45(50) tstct-ttext.
      SKIP.
      IF NOT jtab[] IS INITIAL.
        WRITE:/(95) sy-uline.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 sy-vline,
               2 'Exit Name',
              21 sy-vline ,
              22 'Description',
              95 sy-vline.
        WRITE:/(95) sy-uline.
        LOOP AT jtab.
          SELECT SINGLE * FROM modsapt
                 WHERE sprsl = sy-langu AND
                        name = jtab-obj_name.
          FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          WRITE:/1 sy-vline,
                 2 jtab-obj_name HOTSPOT ON,
                21 sy-vline ,
                22 modsapt-modtext,
                95 sy-vline.
        ENDLOOP.
        WRITE:/(95) sy-uline.
        DESCRIBE TABLE jtab.
        SKIP.
        FORMAT COLOR COL_TOTAL INTENSIFIED ON.
        WRITE:/ 'No of Exits:' , sy-tfill.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'No User Exit exists'.
      ENDIF.
    ELSE.
      FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
      WRITE:/(95) 'Transaction Code Does Not Exist'.
    ENDIF.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST   SCREEN.
    *---End of Program.
    I hope it gives some basic idea.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • About SQL tracer

    Hi, I want to know about SQL tracer i.e. how can we perform SQL tracer on our program specifically.
    Please do this needful
    Thanks
    Suren

    Hi
    SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
    The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
    The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
    To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use.
    Starting the Trace:
    To analyze a trace file, do the following:
    Choose the menu path Test &#61614; Performance Trace in the ABAP Workbench or go to Transaction ST05. The initial screen of the test tool appears. In the lower part of the screen, the status of the
    Performance Trace is displayed. This provides you with information as to whether any of the Performance Traces are switched on and the users for which they are enabled. It also tells you which user has switched the trace on.
    Using the selection buttons provided, set which trace functions you wish to have switched on (SWL trace, enqueue trace, RFC trace, table buffer trace).
    If you want to switch on the trace under your user name, choose Trace on.  If you want to pass on values for one or several filter criteria, choose Trace with Filter.  Typical filter criteria are: the name of the user, transaction name, process name, and program name.
    Now run the program to be analyzed.
    Stopping the Trace:
    To deactivate the trace:
    Choose Test &#61614;Performance Trace in the ABAP Workbench. The initial screen of the test tool appears. It contains a status line displaying the traces that are active, the users for whom they are active, and the user who activated them.
    Select the trace functions that you want to switch off.
    Choose Deactivate Trace. If you started the trace yourself, you can now switch it off immediately. If the performance trace was started by a different user, a confirmation prompt appears before deactivation-
    Analyzing a Sample trace data:
    PREPARE: Prepares the OPEN statement for use and determines the access method.
    OPEN: Opens the cursor and specifies the selection result by filling the selection fields with concrete values.
    FETCH: Moves the cursor through the dataset created by the OPEN operation. The array size displayed beside the fetch data means that the system can transfer a maximum package size of 392 records at one time into the buffered area.

  • To get some idea about central instance, dialog instance, load balancer etc

    Hi,
    I want to get some idea about central instance, dialog instance, load balancer, cluster nodes etc.
    can any one help with some links or blogs or docs.
    Thanks
    Jhansi

    Hi jhansi
    Follow this pdf this will answer all your questions
    http://help.sap.com/search/highlightContent.jsp
    also this is a very good book on ABAP which contains answer of your all questions
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
    Thanks
    Sandeep
    PS: if helpful kindly reward points

  • Please give some idea friends.

    I have a text file with 10 lines. Eas line is containing 3 words separated by colon. I have a bean to get those 3 words. What i want to do is to create 10 bean object, initialize them with the data available in the text file. and finally store those beans in a array list. I have written the following code to read a line and bread the line in tokens. After that how i should proceed. Please give me some idea.
                            for(String line = null; (line = br.readLine()) != null; lineCount++) {
                                    StringTokenizer tokenizer = new StringTokenizer(line, ":");
                                    while(tokenizer.hasMoreTokens()) {
                                            String strTemp = tokenizer.nextToken();
                                            System.out.println(strTemp);
                                    }Thanks.

    you should have an array of strings to store the information and then call your object constructor, passing it the various elements in the array. I couldn't tell from looking at your code, but if you don't include a space in the tokenizer constructor, then it will return a word including a space. I'm not sure if that matters to you or not.

  • Some question about sql code

    for example:
    select
    from testtable
    outputs below results:
    item_desc
    950gapple(z)110ml*40
    650gbanana(z)215ml 1x18
    make above example outputs below result:
    item_desc
    a950gapplez110ml40
    a650gbananaz215ml1x18
    how to write above sql code?
    who can help me?
    thanks

    Jameel Provided solution to one of your other thread
    a question about sql code
    Try the below query. You can modify the TRANSLATE function to add the characters you want to remove from the string.
    select 'a'||replace(translate(str,'()* ','`'),'`') from testtable

  • Give some idea

    Hai
    guys give me solution about how to access the j2ee application in WAN network in tomcat server.
    bye,
    venkat

    A web browser.:-) I typed exactly this response but did not 'post'
    it because I thought maybe I was missing something.
    If I was missing something it seems I am not alone!The only one who is missing something is the OP. He is missing a lot of information he ought to give us to expect a useful reply.

  • Could you give me some ideas about striping html tags?

    Hi everyone:
    I am wondered where to get this component in J2se api or another projects(like commons)?
    If you know where to find it? Please tell me directly...
    Thanks a lot!!

    Thank you hiwa, I will google it named HtmlEditorKit.Search the Swing forum: http://forum.java.sun.com/forum.jspa?forumID=57
    >
    >
    I can not do this with simply regex as you said "it
    is dirty", because it maybe filter some useful
    information like "<NotHtmlTag>".No. Use a proper regex. Read the java.util.regex.Pattern class documentation.

  • Can any body give me idea about my final project

    Hello Friends!
    I am doing BCS (Hons) at UET Lahore Pakistan.
    Can any body give me any idea what project should I do for my final year I am specially interested in AI and Distributed Systems ,clustering etc
    bye

    Hello there...
    My name is Ghulam Muhammad and i m also a final year student at Karachi Institute of Information doing B.Sc in Software Development...
    I have an idea for u.... u may like it....
    look all these wirless devices like mobile phones, PDAs and pagers are true models of Distributed Processing.... and u also have interest in AI... so why dont u go for an AI based games which is built for these devices... say for example it can be "Chess"... or any game like that.....
    my point is that currently.... PC-PC multiplayer games exist... mobile-mobile multiplayer games also exist.... but nothing like PC-mobile multiplayer games exist... think abt doing something like that....
    If u need any clarification then my email is [email protected] .... or we can discuss it here in this forum....
    hope this will help....

  • Can anybody give me idea about the OnLine PC maintenance & desktop Sharing

    I have a project on OnLine PC Maintenance
    How can I detect Spyware & Virus from remote machine. Is it possible with desktop sharing? if Yes, then how can i share desktop remotely?

    Hi Satya,
    CRM is the need on the hour and shall have good future.Infact SAP is aggressively expanding its CRM front and is quite successfully expanding its customer base.
    So any abapper has a bright future in it as it gives u a technical edge.I would suggest you should start with middle ware as it is more technical and shall provide with benifits of ABAP also.There is  no fixed limit as of how many days it will take for u to complete the course and all.What I suggest is you can start working and simultaneously learn CRM .
    Thanks,
    ashish.

  • Pls give some ideas? how to create a function.

    Make an MS-Access form to accomplish:
    Use a list box to display part-time employees and their assignments (SSN, Hours, FullName). Include only those who currently work a total of less than 40 hours/week.
    SSN , Hours and FullName are stored in 2 different table.
    I have no idea how to implement this function. How to create this function to get SSN, Hours and LastName and FirstName (RecordSet which will be used in application)?
    Thanks alot!

    I'm afraid this is an Oracle forum, not an MS-Access forum.
    ;)

  • Anybody can give some example about XA programming?

     

    Yu Li,
    This is not the correct forum for XA questions, however, search on 'XA' across the otn site and you will find some examples.
    regards,
    David

  • System Connection Test was not fully tested but all web dynpro java app and Transaction iviews working fine.Any problem for this Kind of activity Lets give some idea.

    System Connection Tests
    You can test the connectivity to the backend application represented by the current system object. Choose the relevant tests.
    Note: The test is based on the properties currently defined in the system object. It does not check if the system properties are correct.
    System Connection Tests
    Test Name
    Description
    Status
    SAP Web AS Connection
    Tests the connection to an SAP Web Application Server
    ITS Connection
    Tests the connection to an SAP ITS server
    Connection Test for Connectors
    Tests the connection to a backend system using an associated connector
    Test
    Clear Results
    Results
    SAP Web AS Connection
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Checks if the host name of the server can be resolved.
    6. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
    7. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name 
    5. The host name ssprdxi.stylespasapnet.com was resolved successfully.
    6. The Web AS ping service was pinged successfully.
    7. An HTTP/S connection to was obtained successfully.
    ITS Connection
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether the system object has a valid system alias
    4. Check whether a SAP system is defined in the system object
    5. Validate the following parameters: ITS protocol; ITS host name
    6. Checks if the host name of the server can be resolved.
    7. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. Retrieval of the default alias was successful
    4. The system object represents an SAP system
    5. The following parameters are valid: ITS Protocol (http) ITS Host Name ()
    6. The host name ssprdxi.stylespasapnet.com was resolved successfully.
    7. An HTTP/S connection to was obtained successfully.
    Test Connection with Connector
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    regards
    Antony

    Hi Stefan,
    This correct see SAP Note [947081|https://service.sap.com/sap/support/notes/947081]
    If the locale for the Web Dynpro iView is changed in the portal (through portal personalization), this is not reflected in the running login session. The user needs to logoff and login again, in order to see the locale change in the Web Dynpro iView.
    Regards,
    Leo

  • Need some idea about evnt handler

    Hi
    I am developing an application, the GUI part is like yahoo messenger.
    So while execution,first the mainwindow appears, from that window1 appears, from window1 window2 appears.window2 has a textfield, that takes userinput(string) by textfield.getText() method.
    My requirement is: how can I use the inputted textfield string to be used as label of a button in mainwindow.
    I know the technique of returning the string from window2 to mainwindow,
    but don't know how to use eventhandler, sothat during runtime only the mainwindow will be updated with that button getting the string from textfield of window2

    Are you willing to pay for unemployed engineer to help you with this?

  • SQL Trace and TKprof

    Hello,
    Can someone tell me what is SQL trance and TKprof?
    when we will apply and what need of this?
    why i should give alter session set sql trace = true?
    if someone could give me an idea of what is a TKprof do, would be apprecaited.

    if someone could give me an idea of what is a TKprof doThe doc has an idea : http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#PFGRF01010
    Nicolas.

Maybe you are looking for

  • How to disable framebreaker in the html of a page?

    I am using APEX 4.1, Oracle 10g, and IE7. I would like to run my APEX pages in one frame of an existing PL/SQL web application. Unfortunately the APEX page breaks out of the frame and takes over the whole window. How do I disable this? This is an inw

  • Recently I have not been able to post comments and other related issues.

    On some websites like Reddit.com I am usually no longer able to post in comment boxes. I can type my comment in the box, but hitting save clears the box and no comment is posted (oddly, i noticed that the comment ends up at the end of the url). Or us

  • Improvements for Adobe Reader for Android

    Please add the following features: - rubber tool so you don't have to delete everything every time you want to correct a mistake after exiting freehand mode - ability to copy/paste an annotation made in freehand mode - tool for drawing straight lines

  • Strange form behavior with enabled = false

    Hi all, I'm working on an interactive form in ABAP webdynpro where after the user creates and saves the form, it is displayed, and they have to click Edit if they want to change again. So after Save, I dynamically set the 'enabled' property of the fo

  • BAPI_PO_CREATE1 wrong positions

    Hi: I have a problem wit bapi BAPI_PO_CREATE1 in 4.6c, I need help and I hope ypu could help me. This bapi returns error messages in table i_return , but I would like to know if it is possible to link this error with the wrong position of Purchase Or