KEMBAR78
Debugging ABAP Code From Within Web Dynpro Application | PDF | Computer Programming | Software Development
0% found this document useful (0 votes)
710 views3 pages

Debugging ABAP Code From Within Web Dynpro Application

This document describes how to debug ABAP code from within a Web Dynpro application by setting breakpoints in the ABAP code and activating external debugging in the ABAP Workbench. Key steps include configuring the JCO destination to use a single server connection, logging into the ABAP system with the SAP GUI, activating external debugging in the ABAP Workbench for the relevant user, setting an external breakpoint in the ABAP code, deploying the Web Dynpro application, and starting the application to trigger the breakpoint.

Uploaded by

lixocan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
710 views3 pages

Debugging ABAP Code From Within Web Dynpro Application

This document describes how to debug ABAP code from within a Web Dynpro application by setting breakpoints in the ABAP code and activating external debugging in the ABAP Workbench. Key steps include configuring the JCO destination to use a single server connection, logging into the ABAP system with the SAP GUI, activating external debugging in the ABAP Workbench for the relevant user, setting an external breakpoint in the ABAP code, deploying the Web Dynpro application, and starting the application to trigger the breakpoint.

Uploaded by

lixocan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Debugging ABAP Code from within Web Dynpro Application

Let us assume you have a Web Dynpro application that calls function modules using Adaptive RFC, and you want to debug the corresponding ABAP code from within the Developer Studio. You can do this quite simply, provided that the SAP GUI is installed on your local machine and the ABAP system is connected to via a dedicated server (no load balancing). You then only have to activate the relevant setting for external debugging in the ABAP Workbench and set the breakpoint in the ABAP code before starting the Web Dynpro application on the J2EE Engine. Prerequisites You have debugging authorization in the ABAP Workbench in the relevant system. Since debugging in the ABAP system via load balancing is not supported, you must reconfigure your JCO destinations so that the calls take place on a dedicated ABAP application server. For Web Dynpro, this is done in the Web Dynpro Content Administrator. In the destination maintenance, specify Single Server Connection as the Destination Type.

Step-by-Step Procedure 1. Use the SAP GUI to log on to the system or server to which the RFC call is to take place.

You should log on with the same user with which the call will take place. Due to the large amount of parallel calls, using a collective user is not recommended. You should try to execute the application with a dedicated user throughout the duration of the debugging session. 2. Activate external debugging in the ABAP Workbench. a. To do this, call the ABAP Workbench using one of the transactions SE37, SE38, or SE80. b. Choose Utilities Settings and then the ABAP Editor tab followed by Debugging. c. Enter the user for which the debugging session is to take place. Select the Active checkbox and deactivate IP-Matching. d. Save your settings. 3. Set an HTTP (external) breakpoint in the ABAP code. a. Display the source code of the relevant function module. b. Position the cursor at the place in the source code where execution is to be stopped. c. Choose the external breakpoint icon The relevant line is highlighted. from the toolbar.

Note that the validity period for the external breakpoint is limited to 2 hours. If you require more time to debug, you must set the breakpoint again. 4. Start the J2EE Engine and if you have not already done so deploy your application. 5. Start your test application on the J2EE Engine. The following example of a Web Dynpro application is used to display flight data from the R/3 system in a table.

The J2EE Engine establishes a connection to the SAP GUI and starts the ABAP Debugger in a GUI session. The Debugger is stopped at the line in the ABAP code at which the breakpoint is set.

You might also like