Trace ST05 Explaination needed

Hi All ,
Please help to analyse the below details from ST05 , EXPLAIN option :
This is for KBED table select statement.
SELECT STATEMENT ( Estimated Costs = 1 , Estimated #Rows = 1 )
        3 INLIST ITERATOR
            2 TABLE ACCESS BY INDEX ROWID KBED
              ( Estim. Costs = 1 , Estim. #Rows = 1 )
              Estim. CPU-Costs = 5,563 Estim. IO-Costs = 1
              Filter Predicates
                1 INDEX RANGE SCAN KBED~0
                  Search Columns: 3
                  Estim. CPU-Costs = 1,624 Estim. IO-Costs = 0
                  Access Predicates
Thanks in Advance

Hi Harsh,
Please have a look on below help
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/d1/801ff1454211d189710000e8322d00/content.htm
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/d1/801f7c454211d189710000e8322d00/frameset.htm
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya

Similar Messages

  • SQL Trace(ST05) and Run Time Analysys(SE30)

    Hi ABAP Experts,
    Can any one explain what is the use of
    1) ST05 and
    2) SE30
    ponits will be given for clear cut explanation
    Thanks and Regards
    Vijaya

    Hi,
    The SQL Trace part of the Performance Trace tool allows you to see how the OPEN SQL statements that you use in ABAP programs are converted to standard SQL statements (see Embedded SQL) and the parameters with which the embedded SQL statements are passed to the database system.
    Overview
    From the time you turn on the trace function to the time you turn it off again, all database activity occurring either for a specific user or for an entire system is recorded. The SAP System takes OPEN SQL statements and converts them in to embedded SQL statements that it passes to the database and makes the results available. The embedded SQL statement and its parameters are recorded in the SQL Trace file. The results of the SQL statement, like return code, number of entries retrieved, inserted, or deleted by the database are recorded in the SQL Trace file as well. The log file also contains the runtime of the statement and the place in the application program, respectively transaction, from which it was called which enables additional analyses (supported by the SQL Trace function).
    From the recorded SQL trace you can deduce:
    ·        which SQL statements your application carries out
    ·        which values the system uses for specific database accesses and changes
    ·        how the system translates ABAP OPEN SQL commands (such as SELECT) into standard SQL commands
    ·        where your application positions COMMIT statements
    ·        where your application makes repeated database accesses
    ·        what database accesses or changes occur in the update section of your application
    Create a Trace (SQL Server Profiler)
    To create a trace
    On the File menu, click New Trace, and connect to an instance of SQL Server.
    The Trace Properties dialog box appears.
    Note: 
    The Trace Properties dialog box fails to appear, and the trace begins instead, if Start tracing immediately after making connection is selected. To turn off this setting, on the Tools menu, click Options, and clear the Start tracing immediately after making connection check box.
    In the Trace name box, type a name for the trace.
    In the Use the template list, select a trace template on which to base the trace, or select Blank if you do not want to use a template.
    To save the trace results, do one of the following:
    Click Save to file to capture the trace to a file. Specify a value for Set maximum file size. The default value is 5 megabytes (MB).
    Optionally, select Enable file rollover to automatically create new files when the maximum file size is reached. You can also optionally select Server processes trace data, which causes the service that is running the trace to process trace data instead of the client application. When the server processes trace data, no events are skipped even under stress conditions, but server performance may be affected.
    Click Save to table to capture the trace to a database table.
    Optionally, click Set maximum rows, and specify a value.
    Caution: 
    When you do not save the trace results to a file or table, you can view the trace while SQL Server Profiler is open. However, you lose the trace results after you stop the trace and close SQL Server Profiler. To avoid losing the trace results in this way, click Save on the File menu to save the results before you close SQL Server Profiler.
    Optionally, select the Enable trace stop time check box, and specify a stop date and time.
    To add or remove events, data columns or filters, click the Events Selection tab. For more information, see: How to: Specify Events and Data Columns for a Trace File (SQL Server Profiler)
    Click Run to start the trace.
    Runtime analysis:
    se30 is the tcode for run time analysis, is a tool it
    display report based on lps for abap pragram execution
    time , data base load, system load. these are all will
    display in micro seconds.this tool will use for Transaction
    code, function modules , abap progrmes
    In Transaction SE30, fill in the transaction name or the program name which needs to be analyzed for performance tuning.
    For our case, let this be “ZABAP_PERF_TUNING”
    After giving the required inputs to the program, execute it. After the final output list has been displayed, PRESS the “BACK” button.
    On the original SE30 screen, now click on “ANALYZE” button.
    The percentage across each of the areas ABAP/ Database/System shows the percentage of total time used for those areas and load on these areas while running the program . The lesser the database load faster the program runs.
    SQL trace:
    /people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
    SE30
    /people/siegfried.boes/blog/2007/11/13/the-abap-runtime-trace-se30--quick-and-easy
    regards,
    vasavi.
    kindly reward if helpful.

  • TRACE ST05

    Hi Gurus,
    i have a basic doubt hope you all forgive me.
    what do u mean by trace (st05) like SQL trace and i have read this in a note for performance analysis--can anyone tell me how this is helpful. and do we need ABAP knowledge for this and if yes.
    what area of ABAP do i need to learn ?
    plz help.
    thanks
    harish

    Hi Friend,
    It is SQL Trace , Here you Know performance related things, suppose if you want to know which index is best, How select statement works, how updation is working
    like wise you get lot of information there
    It is not Mandatory, If you Know ABAP it is helpful to you .
    regards
    Ali

  • Diff b/w Run time Analyizer(se30),Sql Trace (st05) and Performance Analyzie

    Can any one tell me the Diff b/w Run time Analyizer(se30),Sql Trace (st05) and Performance Analyzie(al21) ?

    Hi
    these all are doing t he same thing that is checking the program for better performance
    Tools for Performance Analysis
    Run time analysis transaction SE30
    SQL Trace transaction ST05
    Extended Program Check (SLIN)
    Code Inspector ( SCI)
    Run time analysis transaction SE30 :This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing. 
    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.
    Extended Program Check
    This can be called in through transaction SE38 or through transaction SLIN. This indicates possible problems that may cause performance problems.
    Code Inspector (SCI)
    You can call the Code Inspector from the ABAP Editor (SE38), the Function Builder (SE37), the Class Builder (SE24), or as a separate transaction (SCI).
    The Code Inspector indicates possible problems. However, note that, especially with performance issues: There is no rule without exception. If a program passes an inspection, it does not necessarily mean that this program will have no performance problems.
    reward if usefull

  • Sql trace (st05)

    hi friends
    .pls tell in detail how to evaluate  the performance of one select querry by using sql trace.( pls tell all traces )

    Kumar,
      SQL Trace
    SQL trace(ST05) provides the developer with the ability to analyse database select statements. Simply execute ST05
    to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05
    and click on list trace to view the details.
    You can also perform traces on other items such as authorisation objects.
    Authorisation trace analysis 1. Open two sessions
    2. Execute transaction ST01 in one of the sessions
    3. Select the authorisation checkbox, note the other traces
    you can perform (SQL, RFC, Table Buffer etc)
    4. Click the 'Trace On' button
    5. Within your other session execte the transaction/report
    you want to trace or get the user in question to do it
    6. Return to the session where you turned the trace on and
    click on 'Trace Off' otherwise it will continue to record
    all athorisation checks
    7. Click on the 'Analysis' button
    8. Enter appropriate data into selection screen such as
    Username, type of trace records (i.e. Authorization check)
    9. Click on the Execute button.
    10. Report displaying trace results will now be displayed
    http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm
    Some useful transaction related to this are ..
    ST01 SAP system trace
    ST02 Buffer statistics.
    ST03 Workload analysis.
    ST04 Database performance analysis.
    ST05 SQL trace .
    ST06 Operating system monitor ...
    From the recorded SQL trace you can deduce:
    · Which SQL statements your application carries out
    · Which values the system uses for specific database accesses and changes
    · How the system translates ABAP OPEN SQL commands (such as
    SELECT) into standard SQL commands
    · Where your application positions COMMIT statements
    · Where your application makes repeated database accesses
    · What database accesses or changes occur in the update section of your
    application
    Look at the below links, you will get the idea
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm
    http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html
    Don't forget to reward if useful...

  • Statement explaination needed please

    I'm trying to track down a variable bug using traces (AS2.0).  Could someone please explain to me what the statement in red below means and where I should look for it ? there seems to be another addressing concept that I'm missing.
    scrolledMC is a MC container that holds the dynamic text field (auto sized) that is the text that is being scrolled.
    scrollContent1 = _parent.scrolledMC  // this statement does "_parent" refer to the original Lib item or the MC in which
    trace("scrollContent1 ="+ scrollContent1)
    //trace result
    // scrollContent1 = _level0.instance703.instance709.scrolledMC // what does this mean? "instance" of what ? what relevance to the numbers have ?
    1. how do I display the contents of "_level0.instance703.instance709.scrolledMC"  in a text contents form I can read??
    2. Everytime this trace runs the "instance" numbers are different. never the same numbers. so if I try to trace (_level0.instance703.instance709.scrolledMC) it comes back undefined.  these numbers can get vary large the longer the swf runs and i keep coming back to the page with all the traces. Whats up with that ??
    3. How is _level0 different from _root ?
    4 if I trace scrolledMC I get "undefined"
    Thanks
    Joel

    Ned,
    "It could be easier to explain if you explain what you have created that involves scrolledMC."
    I will try to explain but I might make it worse . I'm a noob to flash, and Unfortunately, I'm not the originator of the fla code I'm working with and it is very poorly documented and I'm trying to figure out how somebody else did something so I can make it do what I want it to.
    I am converting from dynamic content loaded from a html text file to dynamic content loaded from an XML file. the reason being I'm adding content that is much easier to deal with in an XML file than &MyVar=myContent&  text file. In order to be able to do this conversion I have to track down all the var assignments to text fields. 80% of this is not a problem and is straight forward. But then there are these scrolling text boxes which are a mystery. There is a single Lib item called Text_scrollerMC that is used for each instance of these scrolling text boxes on different pages. I can't switch this content over to the xml file until I figure out how it is being assigned to the different instances of the Text_scrollerMC.
    So I'm trying to deterime how the content contained in the variables loaded at runtime from the html text file, are being assigned to any given instance of Text_scroller. "scrolledMC" is the part of Text_scroller that contains the actual dynamic text field that is being loaded with the var content. Each time it is filled with unique content used on the page on which it's used. The loaded content var names use the nav button name of the page in the content var name, for example on page1or "Home" page, the content in the scroller box is from var "home_txt5", on page2 it's from var "services_txt3", on page4 it's from var "members_txt7" and so on.  Each var starts with the name of that page followed by "_txt" then a number. Again a direct search of the fla does NOT find ANY use of these vars by name, yet somehow these vars are being assigned to the Text_scroller when it is used on a page. I can only assume that the proper var name to use for any given instance of the scroller box is being dynamicaly "built" some how based on the scrollers location or something.
    So back to "scrolledMC". As mentioned scrolledMC is the text field component of the scrolling text box (Text_ScrollerMC). Inside "scrolledMC" is the dynamic text field named "tola" that the variable content gets assigned to. The var listed in the text box properties for it's content is "home_txt1" (this is NOT a var coming from the loaded text file of vars/content). As I mentioned, Text_scrollerMC is used 6 times on different pages on the site. I'm trying to figure at what point the differnt content variables are being assigned to a particualr instance of Text_scrollerMC. besides seaching with all the actual var names I searched using "home_txt1", and using "tola" and can't find any reference to how the content is finding it's way to the text box "tola" inside scrolledMC. There is no reference to any of the var names or "home_txt1" anywhere in the fla. The only refernece to "tola" is a line telling it to "autosize". Even though "home_txt1" is listed as the var in each instance of the text box "tola" in scrolledMC, nowhere is "home_txt1" listed in the fla. I don't know why it can't be as simple as home_txt1="var for the content I want". that would make too much sense.
    anyway the only way i can figure to try to track this down is to try and follow "scrolledMC" since that is where the content has to end up. soooo...  in the code from the Text_scrollerMC....
    scrollContent1 = _parent.scrolledMC 
    from what i can determined at this point _parent.scrolledMC has the var content in it cause scrollContent1 is use in the computation of the scroller movement as being the "size" of the content so _parent.scrolledMC must have "auto resized" to fit the var content cause that is the size being used in the scroller math. so I placed a trace after that line to look for clues and what i got was....
    _level0.instance703.instance709.scrolledMC
    I was hoping for the holy grail but instead I had no idea of what that ment which is why I was asking.  I know that someplace there has to be a refence to the loaded content var in some way at some point so I'm just trying to track that down. In the above, what is "instance703" in reference to?  instance of what ??
    So other than trying figure out how the hell the vars are being assigned if I can't figure it out i will have to go to plan "B" which is to make each use of the Text_scrollerMC it's own complete unit and just hard code the var in each seperate use. Which will add more weight to the file which I'm trying to avoid.
    Maybe I'm going about this in the wrong way? is there a way to follow the content some way to see how it's being asigned.?
    the only refence to scrolledMC is in the scroller code and in a gotoAndStop statement.
    onClipEvent (load)
        oldY = 1;
        Y = 1;
        vY = 0;
        newY = 0;
        mouseWheelHitTest = true;
        contentHeight = _parent.scrolledMC._height;
        scrollSpeed = _parent.speed_content;
        scrollStep = _parent.step_content;
        viewHeight = _parent.line._height;
        buttonSize = _parent.dragMC._height;
        buttonY = buttonMC._y;
        scrollHeight = _parent.scrolledMC._height;
        scrollContent = _parent.scrolledMC._y;
        scrollContent1 = _parent.scrolledMC;
        newY = _parent.scrolledMC._height;
        var mouseListener = new Object();
        mouseListener.onMouseWheel = function (delta)
            if (!mouseWheelHitTest || scrollContent1.hitTest(_root._xmouse, _root._ymouse, false) || hitTest(_root._xmouse, _root._ymouse, false))
                if (buttonMC._y >= 0 && buttonMC._y <= scrollHeight - buttonSize + 1)
                    buttonMC._y = buttonMC._y - delta * _parent.mouse_speed;
                } // end if
            } // end if
        Mouse.addListener(mouseListener);
        hiScroll = _parent.line._height - _parent.dragMC._height;
        step = (scrollHeight - buttonSize - hiScroll) / hiScroll;
        y = _parent.scrolledMC._y;
    onClipEvent (enterFrame)
        if (_parent.drag_but)
            if (buttonMC._y >= 0)
                buttonMC._y = buttonMC._y - scrollStep;
            } // end if
        } // end if
        if (_parent.down_but)
            if (buttonMC._y <= scrollHeight + buttonSize)
                buttonMC._y = buttonMC._y + scrollStep;
            } // end if
        } // end if
        if (buttonMC._y <= 0)
            buttonMC._y = 0;
        } // end if
        if (buttonMC._y >= viewHeight - buttonSize)
            buttonMC._y = viewHeight - buttonSize;
        } // end if
        level = buttonMC._y - buttonY;
        lev = int(y - level * step);
        newY = oldY + (lev - oldY) / scrollSpeed;
        _parent.scrolledMC._y = newY;
        oldY = newY;
    I didn't see anything here to assign content but it looks like content has been assigned before it gets here. If so I can't fine it.
    Thanks
    Joel
    BTW  Did something change about the forum ?  I can seem to get to the advanced editor, there is no button for it ???

  • Explaination needed

    Hey,
    Just wondered if someone could explain to me why i am getting the following error,
    Java.rmi.UnmarshalException: error unmarshalling return: nested exception is java.lang.ClassNotFoundException access to class loader denied
    thanks in advance ! XD

    That is why system is also showing the nested
    exception ClassNotFoundExceptionThis would throw an InvalidClassException, not a
    ClassNotFoundException. There is nothing that
    indicates the OP's problem is related to
    serialization.Exactly. Enough with the bad guesses already!
    The OP's problem is that the class required is not being found. There's not enough information to decide whether it's the server, the registry, or the client that can't find it but that should be clear from the stack trace: if it comes from exportObject() it's the server, if it comes from bind() or rebind() it's the Registry, if it comes from lookup() or another remote method it's the client.

  • Inittools update explaination needed [SOLVED]

    I did'nt understand the message thouroughly given on this page:
    http://www.archlinux.org/news/initscrip … -required/
    For whom will be the problem and is it safe for normal users to upgrade their system?
    Also, can anyone explain in detail the meassage.
    Last edited by PranavG (2011-10-24 03:39:19)

    Read tha first line
    Please manually delete /etc/profile.d/locale.sh before updating. If . /etc/rc.conf fails in your login shell, please read the full announcement.
    and act accordingly.
    There shouldn't be any problems unless you ignore the announcement.
    Different people use different shells so some folks may need to do some extra steps mentioned in the announcement.

  • More explaination needed about EJB issues published

    when I read the part of "EJB issues" of the page
    http://otn.oracle.com/products/jdev/htdocs/readme_903Preview.html#viadcm
    I have several questions:
    first one:
    Invalid column name when the primary key in one table is different from the foreign key name. (2514361)
    does that mean that the foreign key in table 2 should have the same name as the primary key in the table 1?
    second one:
    Null pointer exception when an EJBSelect() method is called. (2428884)
    does that mean you can not call EJBSelect in your code?
    third:
    Pure MDB cannot run in an embedded OC4J server but can be deployed to a standalone OC4J server.
    "can be deployed" means MDB can run on standalone OC4J, right?
    last one:
    If a CMR exists between two CMP entity beans with the same Primary Key names than the association table generated is incorrect - Workaround is to make sure that primary key names don't match
    All my entity beans use uniqueId as the primary key. In the association table we are using other name as the foreign key. can I use orion-ejb-jar.xml to explicit mapping to overcome this problem?

    Hi Han -
    I had a further look through the bug database for the numbers you specified:
    Invalid column name when the primary key in one table is different from the foreign key name. (2514361) :
    - the base OC4J bug for this has been fixed in the 904 code line and will be in 904. If this is causing you problems with 903, then I recommend you call Oracle support and log a TAR. They may be able to have the base bug for this backported to 903 as a patch.
    You may also want to try deploying this using the non-association table operation mode. You can start OC4J with a system property of "-DassociateUsingThirdTable=false" which will force the container to use pk/fk columns in the direct tables for 1-M relationships rather than the association table. I don't know if this will resolve the specific problem you have, but it is worth trying.
    Null pointer exception when an EJBSelect() method is called. (2428884) : the base OC4J bug for this was fixed in the production release.
    If a CMR exists between two CMP entity beans with the same Primary Key names than the association table generated is incorrect - try using the non association table operation mode.
    Pure MDB cannot run in an embedded OC4J server but can be deployed to a standalone OC4J server. - I pointed out the area of the JDeveloper documentation where this problem and solution is discussed in an earlier post in this thread.
    Hope that helps you somewhat. You mentioned that you were still having a problem - can you post a new thread which has more details of the nature of the problem, stack traces, etc. so we can look at that separately.
    cheers
    -steve-

  • Experts, why there is a Decompiler for java???  explainations needed...

    hi guys,
    I don't understand why the java class files can be decompiled into original source code. What is the benefit of that? This is against intellectual property. Nobody wants their source code to be view by other people, especially if your project is critial and vital to your business!!!!!!!
    I tried the "DJ- Java Decompiler", the source code it produce is almost identical to the original. Sun has always claim java to be a secure language, but the java class file itself is not secure at all in the first place!!!

    Decompilers also help people better understand code in an advanced way to use it better. I know I use the sun Java files for common java.lang and java.util classes to make sure I'm doing it the best way possible.
    If you have the software are want to violate Intellectual Property, you could just copy the executable and sell that. Decompiling and recompiling a program to steal it seems like a long road to no-where.
    Decompilers are about understanding the code.
    IP is what you do with a document when you have it. If your respectful and use it as it was intended to be used, then the more you know about it, the more legal benefit you will gain from it. Violating IP is about wrongfully transferring information, not about understanding things you legally have in your possession.
    However, what courts may consider fair use is always declining. Soon you'll only be able to listen to the first half of the songs on a CD and after that they'll probably declare that you're stealing if you pay some special 'second-half' royalty fee.
    If you understand how to do things, then you can just write it yourself, and better, without resorting to stealing.

  • Shortcut keys explaination needed

    Hi,
    I've read up in Captivate help about shortcut keys, but am
    unclear as to whether they are to help me develop more productively
    or if they are used by the learner who is taking the course to do
    some action.
    Any clarification is appreciated.
    lisa

    Hi Lisa
    Maybe this will help. Let's say you have a project where you
    expect the user to select the File menu. Now in Windows, you may
    certainly click the word "File", but an equally valid action would
    be to use the keyboard and press Alt+F to make the menu appear. So
    using a shortcut, you could assign Alt+F to be considered the same
    action as clicking "File". This way you wouldn't penalize the user
    that prefers the keyboard when using your Captivate movie.
    Make sense? I hope so... Rick

  • Explain option in ST05

    Hi All,
    When I go to ST05->Display Trace->Explain. It gives me output as Image001 which is attached here. I want output as Image002.jpg attached here.
    Please let me know how can I achieve this?
    Thanks,
    Viraj.

    Hi,
    perhaps this is what the
    note 557449 describes, when you have an old 4.0 Release?: 
    copy & paste from note -
    Symptom
    ST05 is not working for join statements. When you try to analyse the
    statement of the listing with 'Explain SQL' , then a pop up is
    displayed with the message "An error in EXPLAIN SQL. Change
    UPDATE/DELETE to SELECT if possible".
    Other terms
    ST05, Explain, SQL
    Reason and Prerequisites
    It is an error in the program. The sql statement constructed for the
    explin is cut off. One program is need to be modified.
    Solution
    These changes are applied for the R3 release 4.0.  For higher releases the changes are already modified in the basis support package systems. Please add one line to the form skip_table in the report RSXPLAIN as mentioned below.
    Änderung für DB2: Falls keine Tabelle erkannt wird (weil z.B.
    Klammern in der FROM-Klausel vorkommen), ist das für DB2 kein
    Problem, da die gesamte Anweisung übergeben wird.
    Hinweis 193752
    if ( tabname = space ) and ( sy-dbsys(3) ne 'DB2' )
                               and ( sy-dbsys(3) ne 'DB4' )    "d021078
                               and ( sy-dbsys(3) ne 'DB6' )    "d021078
                               and ( sy-dbsys(3) ne 'MSS' ) .  "Add this line
    if tabname = space.
      no table name ==> invalid input string
      rc = 1.
      exit.
    endif.
    copy & paste from note -
    Regards,
    Stefan

  • ST05 Trace on a select query on BSEG table

    hi all,
    this is my select query on table BSEG table:
      SELECT bukrs
             belnr
             gjahr
             buzei
             KOART
             mwskz
             kostl
             lifnr
             aufnr
             werks
             ebeln
             txjcd
             projk FROM bseg
                   INTO TABLE i_bseg
                   FOR ALL ENTRIES IN i_ad_tab
                  WHERE bukrs EQ i_ad_tab-bukrs  AND
                        belnr EQ i_ad_tab-belnr  AND
                        gjahr EQ i_ad_tab-gjahr.
    when i m doing SQL trace ST05 on this query and in the detail statement showed the following query
    SELECT
      "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO" , "TIMESTMP" ,
      "PAGELG" , "VARDATA"
    FROM
      "RFBLG"
    WHERE
      "MANDT" = ? AND  "BUKRS" = ? AND  "BELNR" = ? AND  "GJAHR" = ?
    ORDER BY
      "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO"
    what is RFBLG table in SE11, but could not find it.
    what is RFBLG?also, the above select query giving me performance issues.. the "for all entries" clause is used as per norms...
    please suggest a solution..

    hi
    good
    The famous BSEG table is a cluster table.
    It is as was correctly stated part of the Accounting Document Segment. It is part of the Pool cluster RFBLG and lives in the package: FBAS (Financial accounting 'Basis').
    You can't read a cluster table exactly the way you read a database (old speak, transparent table).
    You can use a program to read called RFPPWF05
    Note 435694: Display BSEG item by calling FB09D (modified FB09)
    Other possiblity: Other possibility: CALL DIALOG 'RF_ZEILEN_ANZEIGE', but since this is a dialog I don't think this would work.
    In any event go to FBAS Package (development class) to see your business objects, class library and functions.
    you must use keyfields bukrs , belnr, gjahr
    (so 1st select table bkpf) to select bseg.
    or use secondary index tables:
    bsas, bsis, bsik, bsak, bsid, bsad
    Regards,
    Raj.

  • In SQL Trace how to see which statement getting more time .

    Hi Expart,
    In SQL Trace (T-code ST05) . I am running the standard transaction . how to see which statement
    running more time and less time . suppose one statement running more time so how resolve the
    performance .
    Plz. reply me
    Regards
    Razz

    > The ones in 'RED' color are the statement which are taking a lot of time and you need to
    > optimise the same.
    No, that is incorrect, the red ones show only the ones which need several hundret milliseconds in one execution. This can even be correct for hard tasks. And there are lots of problem, which you will not see
    I have said everything here:
    SQL trace:
    /people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
    Go to 'Tracelist' -> Summarize by SQL statements', this is the view which you want to see!
    I summarizes all executions of the same statement.
    There are even the checks explained, the slow ones are the one which need a lot of time per record!
    See MinTime/Rec > 10.000 microseconds.
    Check all number of records, executions, buffer, identicals.
    The SE30 Tipps and Tricks will not help much.
    Siegfried

  • Need to find table/field behind "Item long text" field in Notes tab in FB70

    Hello,
    To print a custom FI invoice, I need to access the data entered in the "Item long text" field of the Notes tab in FB70. To test, I used 5000 characters in that field to make sure it stood out from the rest of the data. F1 help does nothing on that field, and even running an SQL trace (ST05) doesn't show the text in that field being entered into any table. I tried F1 on a nearby field and got a structure instead of a table, so I investigated the structure through SE11 but found no character field with such a large capacity. How else can I find where that field is stored?

    Thanks! It took a while, but with your help and a few other pages I managed to piece together an answer.
    Vinod helpfully explained that the text name is a concatenation of various fields, but didn't specify how to find the line item ID. If you go to table STXH (as hinted by Brad and confirmed [here|http://fuller.mit.edu/SAPWebDocs/LongComment.html]) and search for texts created today (or whenever you were testing), you'll see the text name ends in '001' after GJAHR, so the line item ID is '001' regardless of how many line items you enter in the invoice.
    Armed with that info, you can call READ_TEXT and loop through the results to concatenate the contents of each TDLINE field. (FB70 automatically breaks the user-entered text into different lines even if the user didn't press Enter, and each line gets its own record in the results.)
    Thanks again,
    Pedro

Maybe you are looking for

  • Error while Apply Patch 8764069:R12.FND.B (Patch 8764069)

    Hii... im upgrading my oracle apps from 12.0.4 to 12.1.1 and following the metalink document Oracle E-Business Suite Release 12.1.1 Maintenance Pack Installation Instructions [ID 752619.1] Now while applying the Patch 8764069:R12.FND.B (Required), it

  • A sql suddenly spent more time than before

    9/28号,业务部门发现一条sql运行时间突然增长,原来只需1秒,现在要10秒左右. database 10.2.0.4 rac 2node server aix 5.3 语句如下: update J_ORGANIZATION c set c.MODIFY_TIME = sysdate, c.MODIFY_EMPL_ID = 1111 where 1 = 1 and c.ORG_ID ='BJ0000270551' and c.DEAL_STATUS = '1' : 检查执行计划,发现没有显著影

  • Not sure if IDoc was created or received in file to idoc scenario

    Hi, I configured a file to idoc scenario in my test client for idoc MATMAS.MATMAS02 , now after going thru all the phases of design and configuration and creating partner profile using we20 , when I m executing the scenario , I am not sure wht happen

  • Error when writing the trace in ST01

    Hi Gurus, Good day! Please advise on how can I resolve this issue in ST01. I'm getting an error "Error when writing the trace No such file or directory". Appreciate your help. Cheers, Virgilio

  • Random Buttons Appearing in Preview and SWF file

    My love/hate relationship with Captivate continues, although it is trending quite a bit towards the latter.  Here's the issue:  I have created a presentation from a powerpoint and when I preview the project, about half of the "slides" have a random g