Skip to Content
Author's profile photo Andre Fischer

Using SEGW and ABAP in Eclipse

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.


  • 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”


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


  • SAPGUI will be opened in a new tab. Here we can start SEGW
  • You can now follow the steps described in my blog OData service development with SAP Gateway – code-based service development – Part I
  • 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
  • This will now start ABAP in Eclipse rather than SE24.

Have fun using ABAP in Eclipse 🙂

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Joachim Rees
      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 know a lot of people like the “everything in one tool”-approach, so it’s great you showed us this way!




      Author's profile photo Thomas Fiedler
      Thomas Fiedler

      Hi Andre,

      one shortcut from my side: You can open every SAP GUI transaction from eclipse via the shortcut ALT+F8:

      14-06-2016 14-22-01.jpg



      Author's profile photo Former Member
      Former Member

      0 benefits 🙂 (no native segw in Eclipse)

      I can do the same using SAPGUI.

      Author's profile photo Joachim Rees
      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!



      Author's profile photo Aleksandar Mijailovic
      Aleksandar Mijailovic

      Hello Joachim,


      first of all, thanks to Andre for going through the details, from an eclipse perspective.

      The only "drawback" or reality is, that one is still using, lets say, an embedded/wrapped Version of SAPGUI in eclipse. If one does not know, how to use the SEGW in the SAPGUI, then, he/she/it also would not be able to use it in eclipse. The only benefit, so far as I can see, is that we don't have to switch between Eclipse and SAPGUI. Especially if you use CDS-Views for OData creation, you can stick to just one tool (though the other one will be embedded).