Debugging a report on execution

How do i debug a report a  during execution?
1) I know we can do  this by putting a breakpoint in a Program before execution through se38.
2) Or it can be done by putting a /h before execution.
But what  if i forget to  put break point and also forget  /h. Now during the execution,the program takes a long time in processing , so i want to know at which statement or loop is the processing going on.Is there any transaction or way how i can find this out and then put a break point there .

Hi Dilip
As per my understanding,implementing the Watch Points mechanism is the best solution for your case.
Using the watch points, we can came to know where exactly the problem is occuring if the execution is taking long hours.
For example I have 1- 10000 employee numbers and for each employee,I am handling some mechanism.
In this case suppose let assume EMP# 1024 is giving some problem.
By putting the Watching point as EMPNo = 00001024, directly we can go to that EMP# part and can observe the problematic statements.
Hope you got some idea if not please let me know so that I can provide more stuff with live examples.
Regards,
Sreeram Kumar.Madisetty

Similar Messages

  • How to debug a report

    how to debug a report
    i am new to ABAP

    Hi
    <b>ABAP Debugger</b>
    The ABAP Debugger is an integrated test tool within the ABAP Workbench. You use it to check the program logic and to find errors in the source code of an ABAP program. In the Debugger, you can step through the source code of a program. The running program is interrupted after each step, allowing you to check its processing logic and the results of individual statements.
    As of Release 6.10, you can also run Business Server Pages (BSP) in the debugging mode. You can also display and set breakpoints here. Business Server Pages can be displayed in the Object Navigator when you select an appropriate application under BSP Application.
    <b>Features</b>
    The Debugger provides an efficient means of identifying errors in ABAP programs. It contains the following functions:
    •    Ways of starting the Debugger
    •     Choosing different views
    •     Choosing different execution options in the Debugger
    •     Displaying source code in the Debugger
    •               Setting and deleting breakpoints
    •               Setting and deleting watchpoints
    •               Stopping a program at a particular statement or event
    •     Displaying and changing field contents at runtime
    •     Displaying ABAP Objects and references
    •     Displaying and positioning strings
    •     Setting and deleting database locks
    •     Opening the ABAP Editor, or Object Navigator
    •     System settings and runtime warnings
    <b>Starting the Debugger</b>
    There are two possible strategies for starting the Debugger in the ABAP Workbench:
    •     By setting breakpoints then running the program
    •     By running the program in debugging mode.
    <b>Setting Breakpoints</b>
    A breakpoint is a signal in a line of code that tells the ABAP runtime processor to interrupt the program at that line and start the ABAP Debugger. A distinction is made between static and dynamic breakpoints. For further information about the different types of breakpoints and how to use them, refer to Breakpoints.
    Running a Program in Debugging Mode
    You can start the Debugger without previously having set breakpoints. This is the best procedure to use when you want to test a program right from the beginning. It is also useful if you do not know the program very well and therefore are not sure where best to set breakpoints. You can start the Debugger as follows:
    From the Object Navigator     Select a report or transaction and program and choose Program &#61614;&#61472;Test &#61614;&#61472;Debugging.
    From the ABAP Editor     Choose Program &#61614; Execute &#61614; Debugging (or the Debugging pushbutton).
    From any screen     Choose System &#61614; Utilities &#61614; Debug ABAP.
    From any screen     Enter " /h " in the command field.
    <b>Checking System Programs for Errors</b>
    To check a program or program component that is part of the ABAP Workbench (for example, the Screen Painter), you must use the system Debugger. To start the system Debugger, choose System &#61614; Utilities &#61614; Debug system from any screen. To stop the system Debugger, choose Debugger &#61614; Debugging off.
    <b>
    Displaying Program Attributes</b>
    You can display the attributes Fixed point arithmetic, System program and Unicode checks active of the program that has just been executed by choosing Goto &#61614; Further Information &#61614; Program Attributes.
    <b>
    Display Modes in the Debugger</b>
    When you are debugging a program, there are various display modes that you can use. All of the display modes have the same structure. The top part of the screen displays an extract of the program source code. The bottom part displays the information specifically available in that display mode. There are also pushbuttons on the screen allowing you to switch to the most frequently-used display modes. 
    go to se38->give ur program name-.execute->give /h at command prompt->execute->now debugging will start->
    f5-used for line by line debugging
    f6-used for directly executing function modules or performs i.e. control won't go into that block.
    f7-run to cursor
    f8-direct executing.
    fileds: here we can check fild values.
    click fileds option and double click on the filed or type the filen name beside filed
    tables : here we can check the data in the internal table.
    click tables option and double click on the internal table.
    Break points:
    if you want to debug a particulr part you can use this.
    place the cursor at any perform click breakpoint or double click on that line.it will be set.
    if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.
    Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto->breakpoints->create watch points->give filed itab-lifnr->=->100.
    debugging procedure:
    Use '/H' in the command line and execute the report/program, so that it goes to debugging mode
    2. keep a hard coded break point in the code like BREAK-POINT and it stops there.
    3.From the program Menu, Keep the Soft Break-points and do the debugging.
    see the links
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.sappro.com/downloads/Settings&SystemAreas.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
    https://forums.sdn.sap.com/click.jspa?searchID=2673672&messageID=3187106
    https://forums.sdn.sap.com/click.jspa?searchID=2673672&messageID=850453
    https://forums.sdn.sap.com/click.jspa?searchID=2673672&messageID=1546485
    https://forums.sdn.sap.com/click.jspa?searchID=2673628&messageID=2048883
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
    Reward points if useful

  • How to debug a report in production server

    hello all,
    how to debug a report in production ...
    do i need to BREAK statement of that particular user.....
    thanks in advance....

    Vinay,
    Process of Debugging in Production will be same as in Development or Quality.
    But,it is not advisable to debug in Production because it may lead to inconsistency in data that's get saved to Database.So,based on the acitvity that you intend to debug you have to take some precautionary steps.Usually Debugging access will not be given in Production,even if they give debugging access you will not be having authorisation to change the values in runtime while debugging.You will not be able to put hardcoded BREAK-POINT because the Production client is meant only for display and not modifiable.
    If you can provide more details of what you intend to Debug,you will be getting more info here.
    K.Kiran

  • How to debug the report which isrunning in Background?

    Hi all,
    1.How to debug the report which is running in Background?
    thanks & regards
    vishnuvardhan

    Hello,
    Do like this.
    Create an infinite loop before the line u want debug.
    data: lf_flag.
    do.
    if lf_flag = 'X'.
    exit.
    endif.
    enddo.
    Now execute the report in background. In Tcode SM37 select ur job and in menu job--> Capture Active Job
    IT will stop at the point of infinite loop.
    Regards,
    Vasanth

  • Report script execution is getting failed

    Hi ,
    We are facing one strange issue while executing the Essbase report script. I am new to the report script and I am not getting how to resolve the issue.
    When we are changing the year in code from FY13 to FY14 the script is getting failed however the same script is successfully generating the report if we keep year as FY13 in code.
    Could you please let me know where would be the problem , below is the part of the code form Report script.
    {MISSINGTEXT "0"}  // replace #Missing with 0
    <Link ((<LEV("Customer", "Lev0,Customer")) AND ( <IDESC("All Customers")))
    <Link ((<LEV("Product", "Lev0,Product")) AND ( <IDESC("All Products")))
    <Link ((<LEV("Period", "Lev0,Period")) AND ( <IDESC("YearTotal")))
    FY14

    Hi ,
    I am getting below error message.
    "Report Script execution Failed. Please see message panel for details " and in message panel It is not showing any details , just displaying Execute Report script Failed with date and time details.
    I also checked that FY14 do exist in the application and no duplicate FY14 member exist in the outline.
    Could you please suggest where would be the problem.

  • Debugging  a report (sap-abap)

    Hi ,
        I m poor in debugging , i have many books still i m not able to get thing.
        Could u sent me easiest way to debugging (Advance debugging) a report in my
        mail  id '[email protected]' . So that i can fix the error without consuming
       time.i m waiting for ur reply......
    Thx and Rgds,
    Bapi

    Hi ,
    Go thru this links.
    <b>ABAP DEBUGGING</b>
    http://help.sap.com/saphelp_webas620/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0
    <b>Debug Program scheduled Background</b>
    Re: Debugging Report which is scheduled in background
    Reward points if this helps.
    Manish

  • Does un-checking "Allow Debuging" in VI properties- execution improves overall application performance?

    Does un-checking "Allow Debuging" in VI properties->execution improves overall application performance?

    > Does un-checking "Allow Debuging" in VI properties->execution improves
    > overall application performance?
    Yes, though it is hard to predict by how much. When debugging is
    enabled, after each node on the diagram there will be a small amount of
    compiled code to test if the VI has a probe, a breakpoint, execution
    hiliting, or the pause button is pressed. The code is quite small,
    about two or three instructions, but if you have twenty nodes in a loop
    and the nodes are doing simple math, these instructions could be 25%
    overhead. For more complex nodes or datatypes, these instructions turn
    into a fraction of a percent.
    Turn it off and measure. If you have other performance problems, read
    the documentation on the profiler and use it to help you find yo
    ur
    bottlenecks.
    Greg McKaskle

  • Help needed for building report with execution method Java Concurrent prog

    Hi,
    I have saw a report like this:
    The report has executable "XML Publisher Data Template Executable", short name as "XDODTEXE", application "XML Publisher",execution method "Java Concurrent program". Also the report has a XML publisher Data Template and Data definition and in the data definition a .xml file is attached.
    I could not understand what is the data source?
    Could anyone help me on how to build or update this type of report?
    Is there any link or help docs which has proper step by step procedure to build this type of xml publisher report?
    Please help.
    Thanks.

    The xml file which is attached to the data definition is the data source and it has sql queries and structure of xml file.
    Check this out for step-by-step guidance.
    http://www.oracle.com/technetwork/middleware/bi-publisher/overview/xmlebsrep-132947.pdf
    http://apps2fusion.com/at/ps/51-prabhakar/262-xml-publisher-and-data-template-sql-query-to-develop-bi-publisher-reports
    For more on data templates refer user guide
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T434255.htm

  • How to disable report's execution requests from the browser

    Hello gurus,
    We are implementing several security measures in our application, some of them are related to reports execution/visualization, we need to avoid users accessing reports that they don't have privilege to see. The reports were execute by Forms via RUN_REPORT_OBJECT, destination type CACHE and destination format PDF, then we displayed the output using the jobId provided to Forms by the Reports Server. Because these jobIds are sequential numbers any person was able to change the jobId in the URL and get the output of another report. This violated the Confidentiality of information.
    Now we generate all reports output to file, the file name is a random value, to avoid guessing. The problem is that even though the official way to execute a report is via the application, the report servlet is accepting request as URLs, and this violates the access controls we have implemented in the application.
    Is there a way to stop the reports servlet without affecting the valid requests (from RUN_REPORT_OBJET in Forms) or is there another possible way to disable URL requests?
    TIA
    Victor.

    If you are using Portal and SSO, you can assign privileges on Reports and Reports Servers to groups and/or users. For more info, see Chapter 10 of the "Publishing Reports to the Web" documentation: http://download.oracle.com/docs/cd/B14099_19/bi.1012/b14048/pbr_sec_arch.htm#i1006221

  • Reports/campaign execution

    Hi
    I am new to this CRM ,Could some body give me idea about which all the reports we use in CRM and campaign execution configuration steps.
    Thanks in advance
    Padma

    Hi Murali,
    In order to replicate conditions, condition tables, etc from R/3, just carry out an initial load of DNL_CUST_CNDALL.
    Or
    U can even make use of requests which are created in R3AR2, and downloaded using R3AR4.
    If u wish to maintain the condition record in CRM, fot the condition types downloaded from R/3, maintain an entry in table MNTCNT of R/3.
    In R/3
    SPRO: Integration with Other SAP Components->Customer Relationship Management->Basic Functions->Data Exchange Conditions
    Usage           :  A         
    Table            :(condition table name)       
    Application    : V         
    Condition type  :(Condition type
    Logical system  Logical System of CRM)
    Wish the information is useful.
    Regards,
    Shalini Chauhan

  • How to define a specific report variant execution in Area Menu

    For report REP01, for exemple, with a selection screen, I defined a variant with specific options, named VAR_SPEC1, to be used by a certain group of persons.
    Now I created the Area Menu ZMSPEC1, and I need to associate to it an entry to execute program REP01 via variant VAR_SPEC01. How can I do it?
    I saw that the program REP01 already has already defined a report transaction (ZEXREP01, for ex.), but if I use this transaction in the Area Menu, I will not use my variant...
    I was looking to the different types of transactions that can be defined, but I am a bit lost.
    Thanks in advance.
    Davide

    Hello,
    I am still a bit lost about the easier (or better) way to associate to the new Area Menu the execution of a non-local program with selection-screen, using some predefined options (hidding some fields, predefining others...).
    Can someone be more specific?
    I guess the necessary elements are:
    1) non-local program REP01;
    2) core report variant VAR_DEFAULT, for program above.
    3) new local variant VAR_SPEC1, for program in 1)
    4) ...
    5) ... some solution to link both parts...
    6) ...
    7) Area Menu ZMSPEC1, with a new item to call the execution of REP01 with variant VAR_SPEC1.
    Any ideas? many thanks!

  • How Do You Debug Oracle Report Calls From Forms On The App Server?

    I am working on a system which uses oracle forms and reports 10g.
    In our system we call, we are calling oracle reports from oracle forms. How do we debug the form code when the form and report both are running on the application server in production.
    To my knowledge, this can not be done when the form is running locally since there is only OC4J forms services locally.
    I understand one views error messages through the jinitiator console but how does one turn on this facility? How do you determine what line the error occurred?
    I am looking for step by step instructions as answer to this issue.
    Please be specific. Please write in good English.

    Good afternoon,
    If you have the developer suite installed on your PC, run the report from your form and then follow this tree from the start button on your PC:
    Developer Suite Home =>
    Reports Developer =>
    Oracle Application Server Report Services =>
    Reports Queue Manager
    Select View => Past Jobs and then find your report in the list, double-click the report entry and you'll see the error message that was generated by the Report Server when you tried to run the report.
    Good luck,
    Don.

  • How to debug standard report that starts with a transaction?

    I want to run a report in debug mode.   The report name is RFFMEPGAX,  which
    is normally run using transaction FMRP_RFFMEP1AX.
    I want to start the transaction, fill in the form with the values I need, then
    hopefully the report code pops up in a debug window......
    Is there a way to do this?    I know how to open the debugger, but have not
    yet figured out a way to get the initial transaction to open in debug mode.

    If the transaction starts with a pop-up message, you can create a text file with this...
    [System]
    Name=R/3
    Client=
    Description=
    [User]
    Name=
    Language=
    Password=
    [Function]
    Command=/H
    Title=Title
    Type=SystemCommand
    Name it <b>Debug</b> and just drag it to the pop-up window...The debugger is going to start after a single Enter button...
    Greetings,
    Blag.

  • Before report trigger execution sequence

    Hi,
    What is the execution sequence of the before report trigger ?
    In the report builder help, the definition says "The Before Report trigger fires before the report is executed *but after queries are parsed and data is fetched*."
    But the oracle document "Oracle iDS Reports: Build Internet Reports: Volume 2: Student Guide" says
    "Before a report executes; *after queries are parsed, but before records are fetched*
    I have built a report where, i am populating a table A with some data in the before report trigger. The data model query is a "select * from A ". But the report o/p is blank since the before report trigger was fired after the query was parsed and fetched. My understanding is that the queries should only be parsed but not fetched before the "before report trigger"
    Regards,
    Suresh

    Hi,
    this is an important question.
    In fact the online help is right: Before its execution the query is parsed and data fetching is strarted.
    Thus any plsql operation that may influence the query and the data accessed is too late in the BEFOREREPORT trigger.
    THe issue is that there is no error message or warning. THe problem scenario bandwidth is wide: From "no problem at all" to constant or intermittent error scenarios or worst case unrecognized problems like missing records or any strange behavior in the layout.
    So very carefull while using BEFOREREPORT trigger
    Ciao
    Markus

  • Report painter execution error - GR657 - set does not contain any entries

    Hello,
    During our execution of report we are getting the below error:
    Set 0102PCBT1IPROVDIV in set 0002$ZA13#######ROW0236 does not contain any entries
    Message no. GR657
    Diagnosis
    You cannot use empty sets to define reports.  The single-dimension set contains a basic set that does not contain any values.
    Procedure
    Use a set that contains at least one value, or enter values for the set defined.
    This has been discussed in a similar Thread in May 2010 by puri & Praveen Jagdeesan,
    However I am unable to trace the set & how to delete the blank values.
    0002$ZA13#######ROW0236 or ROW0236 in the system.
    Set 1IPROVDIV is exisitng in system.
    Also when we go to KAH3 - Cost element hierarchy & see in the where used list we are not able to see the set being used in the report whereas the system from where we have exported the report we can see that this set is being used in the report.
    Please could you help in resolving the same.

    Hello Murali,
    Thanks for the reponse. But set 0002$ZA13#######ROW0236 is not available in system.
    Please could you guide me on the same.
    Thanks & Regards
    Shreenath

Maybe you are looking for