Skip to Content
Author's profile photo Former Member

UML to ABAP Code Generation

We have recently used the SDK for the ABAP Development Tools to develop UML2ABAP, the prototype of a generator to automatically produce ABAP source code. This generator allows you to describe ABAP classes and interfaces in UML and to generate source code directly into the SAP repository.

UML2ABAP is a plug-in which integrates in the ABAP Development Tools for Eclipse. Users can create UML models from their familiar IDE and use a menu to generate the code into the SAP repository.

An UML class produces an ABAP class with its attributes, operations and inheritance declarations. The implementation section is partially generated: the body of each method is left to the developer who can place its hand-written code between tags. These tags are used by the generator to protect this code during the next generation. The generator also supports UML interfaces.

This video shows UML2ABAP in action :

With this approach, you can leverage UML models which visually describe your application in an language-neutral format. It brings many benefits :

  • facilitate the communication with other persons who are not familiar with ABAP
  • improve your productivity by automating the production of code from a more concise and high level definition
  • avoid coding errors on parts that are automatically generated

In order to simplify the ramp-up of users, we provide a tool-chain as integrated as possible with the classical UI of ABAP Development Tools for Eclipse.

First of all, the generator engine has been developped with Acceleo templates, a technology provided by the Eclipse Foundation ( It allows you to easily extend the generation strategy to support specific coding rules or new ABAP files.

For modeling, UML2ABAP integrates UML Designer (, which provides all the UML2.4 diagrams in Eclipse, with facilities to import existing UML files from other tools.

UML2ABAP is a first step of a tight integration of UML within the ABAP Development Tools for Eclipse.

We are also considering a reverse tool which could create UML models from existing ABAP applications.

Stay tuned for the next steps! 

Meanwhile, I would be very interested by any feedback about this approach.

You can contact me : frederic.madiot at

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo gaaloul lotfi
      gaaloul lotfi


      I congratulates you on your presentation. I have a question concerning the part of generation of the code ABAP, I do not manage to generate the code because I do not see the function " ABAP tools " when I make a right click on my model. Knowing that I use eclipse Juno with the plugins ABAP and UML DESIGN.

      Thank you.



      Author's profile photo Former Member
      Former Member

      Hey, did you find any solutions?

      thx, bye Michi

      Author's profile photo Gregor Wolf
      Gregor Wolf

      Hello Frédéric,

      are you aware of the project?

      Best regards


      Author's profile photo Paul Hardy
      Paul Hardy


      I take it UML2ABAP and UMAP are two different things to acheive the same result?

      I could not get the UMPAT one to work.

      Have you ever tried to get this working?

      Has anyone ever got his working?

      Cheersy Cheers


      Author's profile photo Former Member
      Former Member

      Hello Frédéric,

      Good to see that there is progress in that field.

      About two years ago we were scanning the market for tools which support UML to ABAP and the other way around (ABAP to UML) for documentation. As we could not find any software that fit our needs we developed our own for internal usage. On request of our customers we then started to offer it also as a product.*

      It would be great if we could get in touch to exchange ideas and maybe enter into a cooperation.

      Looking forward to hearing from you.


      * iBS DesignTime, - note: the website is German only but the product and documentation is in English

      Author's profile photo Former Member
      Former Member

      Hello gaaloul lotfi and all,

      did you find a solution for your problem? Why isn't there the selection "Abap Tools" > "Generate abap code" in the menue of eclipse? (I installed eclipse luna with abap development tools and the uml designer)

      How can I extend my eclipse to support this?

      It would be pleasure if anybody could help me.



      Author's profile photo Paul Hardy
      Paul Hardy

      I found what appears to be an Eclipse plug in at the site

      but as to how to install that in an Eclipse system appears to be beyond me.

      I do the help->install news software and choose "add" and then "archive" but when I choose the file I just downloaded to my local drive I just get an Eclipse error syaing it cannot find the file.

      The SAPLINK nugget does not seem to work too well either, there are multiple occurence of two ENDMETHOD statements, one after the other, and lots of inhertied methods with no implementation.

      Cheersy Cheers


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

      This module is still a prototype and has not been released to public yet.

      For information, it has the same name than project, but it is a different initiative.

      If you want to install it for evaluation, you can contact me (frederic.madiot at


      Author's profile photo Former Member
      Former Member

      Hi Frédéric,

      are there any plans to release the module to the public in the near future?