cancel
Showing results for 
Search instead for 
Did you mean: 

How to Debug a BAPI from a Web Dynpro application

Former Member
0 Kudos

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.

BR,

Tony.

Accepted Solutions (1)

Accepted Solutions (1)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI Anthony,

look at the Article <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0e9a9d90-0201-0010-478e-991dbea73a30">Debugging ABAP Code from within Web Dynpro Application</a> attached to the tutorial page <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/890aea90-0201-0010-a290-941dbd049a39">debugging Web Dynpro Applications (24)</a>.

Regards, Bertram

Former Member
0 Kudos

Thank you gentleman,

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

- Tony.

Answers (2)

Answers (2)

former_member189631
Active Contributor
0 Kudos

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.

Thankyou,

Ramganesh.

Former Member
0 Kudos

Hi,

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.

Regards,

Satyajit.

Message was edited by:

Satyajit Chakraborty