Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 

If you want to debug into what is happening in the ABAP application server when you access an HTTP URL on it with your browser, there are several places to set an external breakpoint which will bring up the ABAP debugger for this web request.

Function module HTTP_DISPATCH_REQUEST line 982 seems to be the first point from where a breakpoint will bring you into the debugger.

At this point, the http handler list is already populated. This is done by call function module HTTP_GET_HANDLER_LIST from line 606 and gives you all the handlers into question for the URL.

For this example, there exist 2 handlers for /sab/bc/ui5_ui5.

If you look at the nested handlertbl, you can see the handler implementation classes and the order in which they will be executed to handle the http request.


The next point of interest is where the actual call of the http handler is done. This is in class method CL_HTTP_SERVER=>EXECUTE_REQUEST line 627.

A bit up in the code, an object instance was created from the http handler class and now the interface method if_http_extension->handle_request is called. From here it is up to the http handler object to proceed with the processing. This may be completely different from one handler to the next, and you can of course implement and register your own http handler class as well.

Note that the handle_request method has to set the flow_rc attribute of the if_http_extension interface with a value that determines if more handlers will be executed or not (if there are multiple handlers registered).

As an alternative, you can figure out the handler class for your URL from the transaction SICF and just set a breakpoint in its implementation of method if_http_extension->handle_request or some other place of interest.

This is coding for the SAP_BASIS 7.31 SP 7, it may be different on other SPs or releases.

Labels in this area