How to find the query that generates print preview?

Hello,
How can I find the query that gets executed to generate  print preview? On SAP Business One client if I open a Sales Quotation and click on print preview a report is generated. What queries are run in the background to generate this report?
Thanks for your help.
Regards,
Sheetal

Hi Sheetal,
In such cases i am using a Profiler which is connected to my company's database. If you are using SQL-Server, the start the "Profiler", connect it to your database server and start the trace. When the trace is running, execute the SBO action. After you executed this action you will see in the profiler the excuted SQL-Statements.
Regards,
Christian

Similar Messages

  • How to find the TCODE that is created for the table maintanance generator

    Hi ,
    How to find the TCODE that is created for the table maintanance generator of particular table,if we only know the table name.
    Regards
    Ramakrishna L

    Hello,
    I try it this way
    1. Goto SE16 --> enter table TSTCP.
    2. In the selection-screen displayed, enter
    PARAM = *<ZTABNAME>*
    You will get the t-code for the TMG.
    BR,
    Suhas
    PS: Are you sure a t-code has been created for this TMG ?

  • How to find the sessions which generated maximum redo amount at instance?

    I use below query or Sql*Plus's set autotrace traceonly statistics > redo size statistic to calculate how much redo I generated in my session;
    CREATE OR REPLACE VIEW redo_size AS
    SELECT value
    FROM v$mystat, v$statname
    WHERE v$mystat.statistic# = v$statname.statistic#
    AND v$statname.name = ‘redo size’;
    But how to find the sessions which generated maximum(top 5 for example) redo from the last database startup on 9iR2 or also with new 10gR2 historic views?
    We need this information because from the produced archived log files we observe something new producing almost 2 times more redo for a week. I looked at statspack report but couldnt find as I suspected for a massive update or delete.
    Best regards,
    Tonguc

    I tried v$sysstat but I didnt think about v$sesstat Mr.Gasparotto, thank you very much :)
    SELECT ss.sid,
    sq.sql_text,
    se.status,
    se.username,
    se.osuser,
    se.program,
    se.machine,
    ss.VALUE
    FROM v$sesstat ss, v$statname sn, v$session se, v$sqlarea sq
    WHERE ss.statistic# = sn.statistic#
    AND se.sql_hash_value = sq.hash_value(+)
    AND se.sql_address = sq.address(+)
    AND ss.sid = se.sid
    AND sn.NAME = 'redo size'
    ORDER BY ss.VALUE DESC
    Best regards.

  • How to find the query name using infoset name

    Hi Experts
           Iam new to the sap queries(SQ01,SQ02), some queries already created.
          now i want to do some modification, my problem is i am not able to find the query name.
          I know the infoset name, can you tell me how to find the query name using the infoset name, is ther any table for this.
    i tried in sq01 also, but its confusion, pls advice me on this.
    thanks in advance.
    regards
    rajaram

    Hi
    try like this..
    SQ02 --> go to --> Query Directory..
    from there you can get all the queries belong to a Infoset.

  • How to find the file that delete from time capsule?

    How to find the file that delete from time capsule?

    I mean I saved JPEG file in Time capsule and unfortunately delete the file. Can I get it back
    IF.... .no other backups have occured since you deleted the file, you might be able to retrieve it using an application like Disk Warrior. It's about $100 as I recall, and there are no guarantees that it will work.
    DiskWarrior 4 - The Disk Utility for Mac  Disk Repair, Mac Directory ...
    Any of the free or low priced utilities that you might see or try will not be able to retrieve a deleted file from a Time Capsule.
    If any backups have occured since you deleted the file, the deleted file has almost certainly been overwritten. No way to retrieve it in that case.

  • Could you please tell me how to find the cause that made I/O high

    Could you please tell me how to find the cause that made I/O high
    please let me know

    hi ,
    Without any backgound inforamation it is very difficilate to help u out .
    Please Provide the statpack/Awr report durring that priode. oherwise top 5 wait event. so we can give some suggestion on this.

  • How to find the message that processed a file

    Dear guys,
    I need to find the message that have processed a text file. Using sxmb_moni  I can see this information on DynamicConfiguration log but I don't know how to search this string text in all messages that were processed.
    Thanks,
    Helio Paixao

    Hi Paixao,
    As michal you need to have the EhP1 (enhancement package 1 for PI)  or if you have installed trex then you can see this blog on how to find:
    /people/prasad.illapani/blog/2005/11/14/payload-based-message-search-in-xi30-using-trex-engine
    Else some other nonstandard ways through which you can get are shown in this blogs:
    /people/sravya.talanki2/blog/2006/02/21/abap-based-trex-in-xi-proto
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Regards.
    ---Satish

  • How to find the Program that triggered the outbound idoc

    Hi,
    I need to find the program that triggers a particular Outbound IDoc.
    I have the IDoc number/segment/message type.
    We need to Debug the Outbound IDoc but we do not know from where the IDoc got triggered.
    Is there a way we can find which program triggered it?
    Thanks!

    Hi Suresh,
    Go to tcode WE20, select ur partner profile type, which configured in output type for EDI documents.
    On right side, double click on the Message type in outbound parameters.
    go to message control Tab, double click on process code variable to see FM triggers for the IDOC.
    same as for Inbound also.
    Regards
    Syed A

  • How to find the objects that are used for a particular BEx query

    Hi ,
    I am preparing the inventory for BEx queries. Means for a particular BEx query I want to know the correcsponding
    1. Selection screen variables
    2. Characteristics
    3. Restrcited, Calculated and normal key figures.
    I have checked all the BEx query related tabe but unable to find the proper relation between these tables to get the desired output.
    Can you help for table joins to get the output as mentioned above.
    Thanks in advance.
    Regards,
    Sai

    Hi,
    you want find the total information about query details use the T  CODE - RSRTQ.
    give the proper selection then execute.
    please find the doc.
    RSRTQ – Query Definition – Multipurpose T-Code on BEx Queries
    Thanks,
    Phani.

  • How to find the query name by seeing the program name?

    Hi,
    i have one auto generated program in production AQCSPU==========ZPSPOWHO======
    Now user executing this program by taking help of se38 and sa38 t-code.But now suddenly sa38 and sa38 access blocked for the user so thay are now unable to execute the above program(which was a report).
    They are  asking to craete a t-code for this program.How to do it? because in dev. system this program doesnot exist.
    Please help regarding this issue.

    Hello,
    Sanjoy Ghose suggestion is a good one. It should work.
    However i would advice that you download the query and infoset from your production system and then upload in your development system. Then assign the Tcode and move it across production. The advantage being that tomorrow if authorization for creation/changes in queries is taken our in production then you have a development copy to work on.
    Use program 'RSAQR3TR' to download the query and the infoset.
    Thanks,
    Neeraj

  • How to Find the Query used by the Workbook ?

    Hi ,
    I am currently involved in trouble shooting a work book where some master data values are not being displayed.
    How do i find, which Query the work books is using ? or Let me know as to how should i proceed in solving the same .

    Hi,
    If you have access to BW Admin workbench... then choose the option metadatarepository(left side) of the BW admin workbench, search for the workbook(Technical name) and click on the "Network display dataflow" link.
    If you want to know the relationship between workbook and the queries:
    Check table RSRWORKBOOK which contains the WORKBOOKID and the GENUNIID.
    Table RSRREPDIR contains GENUNIID, query name RNAME, AUTHOR, LASTUSER, INFOCUBE
    Table RSRINDEXT contains the WORKBOOKID and workbook TITLE
    You should join the tables by GENUNIID and select in RSRREPDIR the rows that have COMPTYPE='REP' for queries and object version active/modified.
    With this information an infoset query can be created to list all workbook-query-user relationship (and even the query-infocube relationship).
    Hope this helps u...
    Regards,
    KK.

  • How to find the program that create trace

    Hi,
    my trace directory in the DB has a lot of traces that been generated .
    Mostly they look like as follow:
    erp_ora_26441_ANONYMOUS.trc
    I have run tkprof againt one of them and found :
    SQL ID: 4g2612tvbn0j8 Plan Hash: 0
    begin FND_TRACE.START_TRACE; end;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.03          0          0          0           2
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.03          0          0          0           2
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 57
    ......How can i found the program that creating those traces ?
    Thanks

    Hi,
    plz refer old thread:
    Concurrent program Level trace vs Request Level trace
    Regards
    Haafiz

  • How to find the points that define an edge?

    I'm looking at a very large geometry that's generating an error from VALIDATE_GEOMETRY_WITH_CONTEXT:
    ORA-13349: polygon boundary crosses itself 13349 [Element <5>] [Ring <1>][Edge <7566>][Edge <7591>]
    How can I find the X & Y coordinates of those two edges?
    It's a two-dimensional polygon, with thirty two inner rings, and extracting ring 5 doesn't show any obvious errors: It doesn't have seven thousand edges to it either though - is that supposed to be the edge number counting from the start of the outer ring, or just the start of that element?
    Cheers
    Simon Anderson
    Scisys

    Hi,
    What I'm looking for is a way to report the error back to the end-user. The information is there in the form of:
    [Element <5>] [Ring <1>][Edge <7566>][Edge <7591>]
    But the exact position of the error is often hard to find in a CAD system.
    I want to return edge 7566 and edge 7591 as geometry objects.
    So the question is:
    Given a geometry object and a list of element,ring,edge elements. How to create geometry objects for these edges?
    Rene

  • How to find the value that is in structure???

    hi experts,
                 i am changing standard form QM_INSP_RESULT I have an field MITTELWERT in QGRES
    ie QGRES-MITTELWERT where QGRES is a structure .i need the value that is present in the field.How to find it.

    Hi Manikandan Muruganandham ,  
    To find fields the refined search is through Transaction SE84.
    Go there and find the fields of your choice.
    1> <b>ABAP DICTIONARY</b>
    2> <b>FIELDS</b>
    3> Select <b>Table fields</b> to know where you can find the field of your choice.
    Reward Points if useful.
    Thanks,
    Tej..

  • How to find the urls that are longer than 260 characters

    Hi
    I'm getting an error using Restore-SPSite thats most likely caused by URL's longer than 260 characters. How can I find out which URL's are too long? It's a huge site collection so it's not an option to search manually.
    Regards
    Jakob

    check this blog, allows you to take an inventory of all files in your web application and flag those files where the path (or URL) is longer than 260 characters.
    Locating files and pages with URLs that are too long for SharePoint
    Also check this: http://social.technet.microsoft.com/Forums/en-US/881d62e6-08c3-43b6-a9f1-96161ffa0201/how-to-write-a-powershell-script-to-find-the-url-path-length-of-all-the-files-and-folders-in?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for