Skip to Content
avatar image
Former Member

How to Debug a BAPI from a Web Dynpro application

I have a Web Dynpro application calling a BAPI, and I would very much like to see what data the Web Dynpro application is passing into the BAPI, and then debug the BAPI.

Is there a way to do this? I'm wondering if it is possible to somehow set up the ABAP stack so that on receipt of the BAPI call, it appears on the tRFC queue waiting for execution.

However it is done, I need a way to step through the BAPI on the ABAP stack.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 14, 2006 at 10:26 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you gentleman,

      I now have the exact answer to my question! All efforts appreciated.

      - Tony.

  • Dec 14, 2006 at 10:37 AM

    Hi Anthony,

    The ABAP runtime environment contains various tools that you can use for analysis purposes, such as for debugging source code. All source code written for Web Dynpro applications in ABAP can normally be tested using the debugger.

    To allow it to test other Web Dynpro-specific program entities too, the debugger has been equipped with a special enhancement. In the phase model in the active application, you can typically see the following information at various points in time:

    -The structure of the content of the current controller,

    -The properties of the UI elements in the layout of the current view

    -The currently instantiated component usages

    Starting the Debugger

    The functions for debugging Web Dynpro entities are embedded in the new debugger. You therefore need to have selected the new debugger in your Workbench settings.

    Selecting the New Debugger

    1. In the menu, choose Utilities -> Settings.

    2. A dialog box now appears that contains two nested tab page areas. Choose the “parent” tab page ABAP Editor.

    3. The settings for ABAP Editor always open with the content of the child tab page Editor. Here, select Front End Editor (New).

    4. Now switch to the Debugging tab page in the ABAP Editor settings and select New Debugger.

    5. Save your changes and close the dialog.

    Starting the Debugging Process

    To run an application in debugging mode, you first need to set an external breakpoint in display mode in one of the methods in the component.

    Now start a test run of the application from ABAP Workbench as usual.

    The method in which you set the breakpoint depends on the purpose of the test run. To debug a view, for example, it is best to set the breakpoint in method WDDOMODIFYVIEW. Provided that the context of the view controller is not filled using a supply method, the view is fully instantiated in the phase model at this point in time.

    Selecting the Web Dynpro Tool in the New Debugger

    When you start the application, another session opens automatically for the debugger. If you have not yet saved any personal settings with regard to the layout of the debugger, the Editor tool will now appear on the left, with the Display Variables tool on the right.

    1. Select one of the three desktops in order to reconfigure it for debugging the Web Dynpro application (see Designing Work Areas).

    2. The right-hand edge of the debugger window has a bar of function icons. Choose the Replace Tools icon:

    3. In the next dialog box (New Tool) open the lowest node (Special Tools) and choose Web Dynpro.

    4. Confirm the dialog box.

    On the right of the debugger desktop, you will see that the previous tool has now been replaced by the Web Dynpro debugger. You can save this setting for future debugging activities. To do this, choose Save Layout In the debugger’s general toolbar.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 14, 2006 at 10:23 AM


    You can do this through external debugging by setting external http breakpoints. But for that you will need access to the R/3 system, which I think you do.

    Go through <a href="/people/achim.hauck/blog/2004/10/27/how-to-debug-bapirfc-calls-in-web-dynpro">this</a> blog.



    Message was edited by:

    Satyajit Chakraborty

    Add comment
    10|10000 characters needed characters exceeded