Skip to Content
Author's profile photo Former Member

Tool to migrate ABAP templates from SAPGUI Editor to Eclipse

Introduction

Many of us have improved development speed by using several custom code templates in SAPGUI Editor. And me too, of course.

/wp-content/uploads/2015/10/img01_820793.png

So, when I started working in Eclipse, I was strongly missing my usual templates.

Of course, I could copy all the templates from SAPGUI to Eclipse manually, one by one. But manual uniform repeating action offends real programers 🙂

So I have created ABAP program, which display a list of all custom SAPGUI templates, and allows you to copy selected (or all of it) to Eclipse.

Installation

To install program you need to import SAPLink nugget in attachment (you should change extention from .xml to .nugg).

(The program have been created in system with SAP_BASIS 702 SP11)


User’s manual

1) Run program ZUTIL_TEMPLATE_SAPGUI_2_ADT.

2) The list of all custom templates from file abap_user.xml will be displayed.

/wp-content/uploads/2015/10/img02_820794.png

3) You can select individual lines to copy only selected templates or copy all templates. To copy all templates you don’t need to make any selection. (The program will ask you to confirm)

4) Press “Copy to Eclipse”.

If you haven’t selected any line, you’ll see the confirmation

/wp-content/uploads/2015/10/img03_820797.png

5) Next, the dialog for choosing Eclipse workspace folder will appear.

Choose workspace folder of required Eclipse installation.

(It can’t be defined programmatically because you can have several Eclipse installations)

/wp-content/uploads/2015/10/img04_820809.png

6) That’s all

/wp-content/uploads/2015/10/img05_820813.png

7) Now let’s check the results.

Start Eclipse (or restart, if it is already running) and check Templates

/wp-content/uploads/2015/10/img06_820814.png

Exactly what we need!

That’s all.

I hope this small tool will be helpful

Best regards,

Vitaliy

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hey,

      I've installed the Programm in our System and there is a Syntax Error, and we can't use Table  zutil_s_template_gui2adt.

      Do you know why this doesn't work or do you have some hints?

      Greetz

      Erik

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi,

      please, show a screenshot of the syntax error

      Author's profile photo Former Member
      Former Member

      I know it is a bit huge, hope you can help me 🙂

      In the red box stands:
      1 Syntaxerror for the programm ZUTIL_TEMPLATE_SAPGUI_2_ADT

      Row 57: Type ZUTIL_S_TEMPLATE_GUI2ADT is unkown

      Unbenannt.PNG

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi, Erik,

      I've installed the tool in dev system. And it works fine.

      May be you don't activate this type?

      The nugget contain 4 objects (type, program and two transformations).

      You must activate all the objects.

      Nugget.PNG

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      NUGG-file has been updated.

      I've fixed the program bug in case ADT have no any templates yet

      Author's profile photo Tim Andernach
      Tim Andernach

      Hi, does anyone still have the source code?