Thursday 15 April 2021

How To Switch Between ABAP Editor’s Insert (INS) And Overwrite (OVR) Modes.

Personally, I am not a fan of the overwrite mode in text editors and believe it is a relic from the past that has found its way into modern editors. In command line text editors (big time vim fan here), OVR mode can be very useful and efficient but It is hard for me to fathom the use of OVR mode in modern text editors. I believe most of my readers will also share the same sentiment.

There are very easy methods of switching between the two modes (INS and OVR) to match your preference but some users will face an uphill battle in changing between these modes due to hardware and software constraints. In this tutorial I will walk you through a method that will reliably afford you the ability to make this switch in a no frills style.

Process:

On the ABAP text editor page, confirm that you are currently in the Source-Code Based Editor Mode as opposed to the Text-Based Editor Mode. To find this out, you can select Utilities > Settings > ABAP Editor Tab (as shown in the image below) and you will be able to confirm if you are in the Source-Code Based Editor Mode.

SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Tutorial and Material, SAP ABAP Guides

SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Tutorial and Material, SAP ABAP Guides
Confirm that you are in Source-Code based editor mode

After confirming that you are in the Source-Code Based editor mode, on the extreme bottom-right corner of your ABAP editor, click the document icon, with the red rectangle in the image below.

SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Tutorial and Material, SAP ABAP Guides
Click the document icon enclosed in the red rectangle

Once you click the icon, you will be presented the dialog shown below:

SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Tutorial and Material, SAP ABAP Guides
Dialog displayed

Select the Keyboard item in the menu on the left hand side and then type ovr in Commands textbox. Select the Edit.SwitchOvrMode search item. Click on the New Shortcut text box and press the keys you would like to assign to switch between INS and OVR modes. In my case I used the key combination CTRL + SHIFT + ENTER. Finally you can click the save button to store your new config.

SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Tutorial and Material, SAP ABAP Guides
Follow the steps to assign a new key binding

If you followed the steps above, when you press your key combination you assigned earlier, the text cursor in your editor should change between a black block and a blinking I as shown in the images below.

SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Tutorial and Material, SAP ABAP Guides
OVR text edit mode

SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Career, SAP ABAP Tutorial and Material, SAP ABAP Guides
iNS text edit mode

You now have the freedom to choose between the INSERT and OVERWRITE text edit modes at will.

Source: sap.com

No comments:

Post a Comment