Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
Showing results for 
Search instead for 
Did you mean: 
Active Contributor
The trigger for this blog was a tweet from enno.wulff which actually sent me in a direction to discover how our ADT(ABAP Development Tools) tools interact with the backend. I don’t know whether the problem is resolved or not, but I actually end up learning quite a few things which i wanted to share via this blog.

Where to Start?

First thing which was needed was a test case in order to dig further how eclipse interact with ABAP. As I could not replicate the error as faced by enno.wulff ,thought of creating a report which is already existing. It will show me the error. So at least i have got an error might be a different one, but good enough to drill down. Lets now dig more.

First Try

First try was to check if we can get something in SM50, while we were creating the report  via ADT but sadly no good luck, its too quick.

Second Try

So what next? I thought the most basic thing for a developer to use eclipse is to have the authorization. So without thinking any further i opened the ADT configuration document, a developer must have authorization for S_ADT_RES.  So i did a where used list in SU21 . Set the external breakpoints. Tried again bingo at least it is stopping in debugger is stopping when I am creating something.

This breakpoint led to the discovery of a very important function module SADT_REST_RFC_ENDPOINT in the call stack. This function module was getting called to handle all eclipse request. Next part for me was to find out from where this message was coming from. Most probably we will have some standard function module being called for the same. So I placed a breakpoint at call function statement. 

Bingo found the place from where this message was coming from after few F8's

Now since i have searched earlier also for any existing help on this but did not get any fruitful result. All we got was how to perform debugging in ADT not something like how to debug ADT to ABAP interaction. I thought of searching now with the function module which we have found.

Verifying my findings

Since our earlier search have not returned anything , this time searching with the FM SADT_REST_RFC_ENDPOINT found this awesome blog from where he has also debugged and found out something similar. So at least the direction in which we were going was correct. Apart from this he has also mentioned about very important eclipse views one is error log and another is ABAP communication log which shows the details of the REST calls being made by the ADT. I was still thinking there must be a simple way to check what all was run in the background in this interaction, this led to the next step.

A General Approach to troubleshoot such issues.

So moving on we were looking for something which can give us call stack of what is being called in the background.  While debugging i could see loads of calls about trace and then it struck me how come i have missed ST12, it should have been the first step:)  Anyway  I switched on the trace, performed some actions and switched it off. The trace clearly shows me what all ABAP code was executed and what SQL’s were triggered in the background.

So  I then wanted to cross check this trace solution for package creation also.All i need to do was switch on the trace,perform actions and read the trace.

So another way we found out to understand how ADT interact with ABAP is via ST12. Since now we know what all code is being triggered we can put strategic breakpoints to debug further. Looking forward to hear from you what other ways you have used to handle this problem.
Labels in this area