Aim of this document


We want to make it as easy as possible to get started building plug-ins using the ABAP in Eclipse SDK. This document tries to collect all available information on one page. It features links to the official documentation, tutorials, existing community projects and a lot more. If you think something is missing make sure to notify us via the comments so we can add it.

Happy coding

Official documentation

Consists of two parts:

1) How To Guide – Walks you through a simple example. Shows you how to build your own RESTful resources on the server and invoke it from the client side

2) Javadoc for the released APIs

Both the How-To-Guide + Javadoc and be downloaded here: http://scn.sap.com/docs/DOC-40894


Adding Javadoc to the IDE

After downloading the Javadoc its a good idea to add it to your IDE. This way it gets displayed directly in your IDE.

Without the Javadoc no documentation is available in the IDE.

/wp-content/uploads/2014/11/javadoc1_593770.png

You have to configure the Javadoc location for each .jar your plug-in references:

1) In the project explorer tree expand the tree node “Plug-in Dependencies”

2) Right click on the .jar which needs the Javadoc reference

3) Select the menu item “Properties” in the right click menu

4) The following pop up should be shown. Configure the Javadoc location

/wp-content/uploads/2014/11/javadoc2_593777.png

Now, the Javadoc should be displayed.

/wp-content/uploads/2014/11/javadoc3_593778.png


Tutorials

“Starting with ADT SDK is easy” by Martin Steinberg

Shows you how to build a simple transaction launcher.


Part 1: http://scn.sap.com/docs/DOC-54728

Part 2: http://scn.sap.com/community/abap/eclipse/blog/2014/06/11/starting-with-adt-sdk-is-easy–create-your-own-transaction-launcher-pt2


“Creating a ABAP in Eclipse plug-in using the ADT SDK” by Christian Drumm

Shows you how to extend the existing transport organizer view. Adds the possibility to create a transport of copies with just one click.


Part 1: http://scn.sap.com/community/abap/eclipse/blog/2014/08/27/creating-a-abap-in-eclipse-plug-in-using-the-adt-sdk

Part 2: http://scn.sap.com/community/abap/eclipse/blog/2014/08/31/creating-a-abap-in-eclipse-plug-in-using-the-adt-sdk–part-2

Source code: https://github.com/ceedee666/adt_transport_utils_plugin/


Community Examples

Several community members have created plug-ins with the SDK. You can learn a lot by studying the source code of these plug-ins.


SAPlink

The ABAP in Eclipse team worked closely together with the core SAPlink team on the plug-ins for Eclipse. The plug-in shows you how to:

– add an object type specific menu entry to the project explorer right click menu

– create a wizard which incorporates the ABAP in Eclipse transport page

– use the transport API

– read and write files to an Eclipse project

– create a new program from Eclipse

– call backend RESTful resources from the client side

Source code: https://www.assembla.com/spaces/saplink-for-abap-in-eclipse


UMAP

Allows you to design ABAP classes and interfaces by using a UML modeling tool. After the design step it is possible to create the modeled entities in the ABAP server. The plug-in shows you how to:

Create new ABAP classes and interfaces in the server repository via the client APIs. Be aware that the plug-in uses unreleased APIs to achieve this.

Plug-in introduction: http://scn.sap.com/community/abap/eclipse/blog/2014/02/05/teched-2013-aftermath-umap-goes-adt

Source code: https://github.com/michelluther/umap


Project Templates


When creating a new Eclipse plug-in project the tooling give the possibility to start with a simple example. These example are great to get started with basic concepts such as: adding new views, menu items, …

/wp-content/uploads/2014/11/pde_examples_601136.png
Tools for plug-in development

Eclipse contains tools which assist you while building plug-ins:

Plug-in spy

Allows you to learn more about the technical implementation of a feature. Simply position the mouse cursor on an element (menu item, view, etc.) you want to learn more about and press the shortcut ALT+SHIFT+F1.

/wp-content/uploads/2014/11/plugin_spy_593494.png

Menu items can be inspected by pressing ALT+SHIFT+F2 before executing the mouse click which opens the menu.

Learn more about it here: http://www.eclipse.org/pde/incubator/spy

Communication Log

Use it to track the communication between the client and the server. Open the view via menu “Window -> Show View -> Other…”. Click on the green play button to start tracking the communication.

/wp-content/uploads/2014/11/comm_log_593591.png

Where can I ask questions?

The SDK is part of the ABAP in Eclipse product so simply ask SDK questions in the ABAP in Eclipse forum:http://scn.sap.com/community/abap/eclipse/content?filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bthread%5D


Find SDK relevant content via a single tag

Always use the tag SDK to tag content related to the ABAP in Eclipse SDK. See all content tagged with SDK via the following link:

http://scn.sap.com/community/abap/eclipse/blog/tags#/?tags=sdk

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply