Skip to Content

In one of my last blogs about code based OData service development using the SAP Gateway Service Builder (SEGW) I got the (valid) question from Joachim Rees whether I would commend using SE24 to get the ABAP-Code in the generated classes or whether the developers shouldn’t use eclipse for that?

I have to admit that I might have been a little bit old fashioned working mostly with SAPGUI and SEGW/SE24. But ABAP in Eclipse has definitely several advantages when you are developing ABAP code.

However the Service Builder is a SAPGUI transaction and like DDIC structures you have to create your SEGW project using SAPGUI. Fortunately there is a nice integration between ABAP in Eclipse and SAPGUI if you start SAPGUI from within ABAP in Eclipse.

So I thought it would be a good idea to show how to start SEGW from within ABAP in Eclipse.

  • Since there has to be at least one ABAP project in your workspace you first have to open the ‘ABAP Project Creation Wizard’ in order to create a new ABAP project.

02_Create_ABAP_Project.png

  • You then have to select your system and connect to the same
  • Once you have connected to the system an new folder has been created. Choose the “Open SAPGUI button”

    05_ABAP_PROJECT_CREATED.png

  • You will be prompted on which project the SAPGUI should be launched. Select the newly created project.

/wp-content/uploads/2016/06/06_start_sapgui_in_project_974313.png

  • SAPGUI will be opened in a new tab. Here we can start SEGW
    /wp-content/uploads/2016/06/07_start_segw_974314.png
  • You can now follow the steps described in my blog OData service development with SAP Gateway – code-based service development – Part I
    /wp-content/uploads/2016/06/08_develop_service_974321.png
  • After you have generated your runtime objects you can edit your classes using ABAP in Eclipse by choosing “Go to ABAP Workbench” when right clicking on the DPC_EXT classe in the Runtime Artifacts folder
    /wp-content/uploads/2016/06/09_goto_abap_workbench_974322.png
  • This will now start ABAP in Eclipse rather than SE24.
    10_edit_in_ADT.png

Have fun using ABAP in Eclipse ๐Ÿ™‚

To report this post you need to login first.

4 Comments

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

  1. Joachim Rees

    Very nice, thank’s lot, André!

    I hadn’t thought about doing everything (inkl. SEGW) in Eclipse, I just opend SEGW in Business Client and once I generated the classes switched over to Eclipse.

    -> I don’t mind having two tools for two tasks.

    But I now a lot of people like the “everything in one tool”-approach, so it’s great you showed us this way!

    best

    Joachim

    (0) 
    1. Joachim Rees

      Hey Carmelo,

      thanks for your opinion!
      I’m sure you can appreciate, though, ย that for some, NOT having to Use SAPGui/SE80 any more is a benefit by itself!

      best
      Joachim

       

      (1) 

Leave a Reply