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

To report this post you need to login first.

5 Comments

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

  1. Erik Halm

    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

    (0) 
      1. Erik Halm

        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

        (0) 
        1. Vitaliy Tarusin 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

          (0) 

Leave a Reply