07-13-2015 10:58 AM
Hi,
we are working on a custom plugin for Eclipse based on the ADT SDK. We would need a possibility to edit multiple ABAP development objects (classes, reports etc.) in background without opening them in the Eclipse editor, i.e. load the objects, update them and post them back to the application server.
Are there some services in the ADT API that we could use in order to solve this issue?
Thanks
Victor
07-13-2015 8:35 PM
Hi Victor,
one option could be that you use the REST API that is provided by SAP for AiE. Check out the communication when opening and changing a class in the ABAP Communication Log. There is an Java API in the SDK providing access to it. It was used in the SAPlink plug-in for ABAP in Eclipse project. We've used it to install the SAPlink installation reports to automate the installation. Please check out the code there.
Best regards
Gregor
07-13-2015 8:35 PM
Hi Victor,
one option could be that you use the REST API that is provided by SAP for AiE. Check out the communication when opening and changing a class in the ABAP Communication Log. There is an Java API in the SDK providing access to it. It was used in the SAPlink plug-in for ABAP in Eclipse project. We've used it to install the SAPlink installation reports to automate the installation. Please check out the code there.
Best regards
Gregor
07-15-2015 8:33 AM
Hi Gregor,
We had looked at the traces in the communication log to determine if there is an Java API we can reuse, but these seemed to be very low-level, in the sense that we would have to handle the triggering of each individual backend call by ourselves.
Thanks a lot for the hint regarding SAPLink, we'll have a look at the way the installer is implemented there and hopefully find a more suitable approach
Best regards
Victor
07-15-2015 9:09 PM
Hi Victor,
another idea would use the API that SAPlink for AiE provides. Check the communication log when you have SAPlink for AiE installed. I've just updated the SAPlink for AiE Update Site, so you should be able to install it now also without the namespace /CEX/ as described in the Installation Guide.
Best regards
Gregor
02-18-2016 2:29 PM
Hi Gregor,
If I could pick you brain for a minute - I have been looking into downloading the source code for Web Dynpro components via the ADT services.
The url I access looks like this:
http://sap-server.net/sap/bc/adt/wdy/componentcontrollers/my_wda_comp/componentcontroller/source
That's the URL that Eclipse uses according to ABAP Communication Log, and for Eclipse this works just fine. However, when I try a GET to same URL via browser our a tool such as Postman, I always get a 404 and "No suitable resource found". From debugging, it seems that the ADS services register themselves without the "wdy" in the URL, so if I remove this in debugging it actually works. However, if I simply GET the URL without "wdy" from Postman, the ADT BADI won't resolve and it does not work.
So the question is, how the heck can this work from Eclipse and not when I do it from Postman?
(BTW, other ADT services work just fine, for instance for reports. )
Hope this made some sense and that you can help out, thanks!
Best regards.
Frank