Skip to Content
Author's profile photo Thomas Fiedler

Duplicate a codeline in ABAP editor in eclipse

Duplicating a codeline in ABAP is done via CTRL+D.

Upps, I did that in ABAP in Eclipse: Where is my code? The editor just deleted my code and did not duplicate it. Grggghhhh….

Don’t worry. We can help:

Unfortunately the eclipse folks have defined CTRL-D as the delete operation of a code line.Years ago they forgot to ask SAP when they did that fatal decision 😯

In Eclipse you can duplicate a codeline via the shortcut CTRL+ALT+Up/Down.


Another step successfully done on your way from ABAP workbench towards ABAP in Eclipse.

Have fun.


Assigned Tags

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

      Hi Thomas,

      A nice idea. Good to know knowledge.



      Author's profile photo Naimesh Patel
      Naimesh Patel

      Hello Thomas,

      Definitely Eclipse is more flexible than ABAP GUI based editor. In Eclipse, you can change the keyboard shortcuts for more commands than GUI based. So, you can set the Copy Line to Ctrl+D, in Windows > Preference > General > Keys. Find the command Delete Lines and remove the binding. Find the command Copy Lines and assign Ctrl+D as new binding.

      Naimesh Patel

      Author's profile photo Thomas Fiedler
      Thomas Fiedler
      Blog Post Author

      Thanks a lot for the information. This I never tried before.

      Very good addition to the blog. I will try.



      Author's profile photo flavio ciotola
      flavio ciotola

      Thank you all, Thomas and Naimesh.

      Really good to know, I will also try.