What is the outcome of laziness? For lazy and smart ABAPers, laziness doesn’t mean doing less work—it often means finding more efficient ways to accomplish tasks. By automating repetitive processes, optimizing code, and leveraging tools, these ABAPers turn laziness into an advantage, creating smarter solutions with less effort.
What is the after effect of Automation?
More Lethargy, More Benefit.
If there somehow managed to be a competition for short articles, my friend’s article would most certainly feature in the top list. As lazy and smart ABAPers, we often end up doing repetitive work daily. For instance, in every program, we need to create blossom boxes, declare the events of the programs, and design the selection screen. Copy-paste is one of the best tools ever invented by computer scientists. Most PC users, regardless of the software platform, use the Ctrl + C and Ctrl + V function.
The ABAP environment has evolved significantly over the years, moving from the boring blue screen to customizable backgrounds of any color we prefer. From the GUI to the Eclipse editor, both ABAP and ABAPers have made huge strides. Nowadays, ABAPers are also working with JavaScript, SQL, and UI programming. However, lazy and smart ABAPers, like myself and those who haven’t had the chance to explore new areas, still do about 90% of their work in the traditional ABAP Workbench/Editor.
Let us explore the common shortcuts and tools that lazy and smart ABAPers of this era use within the standard, traditional ABAP editor. These techniques help efficient developers streamline their work and enhance productivity.
1. Copy the same line below the existing line i.e duplicate the statement.
Use Ctrl + D to copy duplicate lines just below it.
2. Copying multiple rows of one column and paste them. Recall just a single segment not all sections (it is not difficult to (duplicate every one of the sections).
You can duplicate numerous lines of one section utilizing Alt + drag your cursor.
Might you at any point duplicate only one segment in ABAP proofreader? Indeed, we can.
Really look at the picture underneath. Just consistent lc_tab is chosen and different sections of different columns are not.
Press Alt + drag your cursor to left work the section end and afterward haul down.
Then press Ctrl+C and afterward go to the columns where you need to glue it.
You want to apply a similar stunt where you need to glue it. Actually look at this picture. You really want to hold Alt and drag the cursor in an upward direction down and right side to make space for the duplicated lines of one section.
Check the copied rows of one column are pasted (Ctrl + V) in your selected area.
This is very helpful when you have dull words to be written in numerous columns. In the above model, it is Tab separator consistent. For another situation, it very well may be key work TYPE to be composed while Start OF TYPE statement. Likewise, you can duplicate field name and information component from SE11 structure/table and glue it into your manager and afterward use Alt + drag to add TYPE.
At first, you could discover some trouble choosing segments utilizing the stunt. Continue on and utilizing and in a matter of seconds you would begin feeling a debt of gratitude to an ever increasing extent.
3. Line Separators or Code Separators
In the event that you want a ran line in your code, it very well may be for detachment of code or modularization or only for making your code pretty. Do you type ‘‘ or ‘”‘ and afterward press ‘- ‘ till as far as it goes? At times you should utilize marks to do likewise. Do you press ‘*’ till the end?
You ought to be exploiting the code consummation component of SAP. Simply type ‘-‘ and you get ideas. Correspondingly type ‘**’ and you get ideas. Hit ‘TAB’ key and it composes the full code for you.
You may be utilizing IF-ELSE, DO-ENDO, Circle ENDLOOP, CASE ENDCASE auto fulfillment. Yet, have you at any point utilized IF ELSE ENDIF? Simply type ife, and you get the idea. As a matter of fact, you can cause SAP auto to propose you for every conceivable thing you code. It is totally in your control.
Where could we at any point find the rundown of all Code Fulfillment short codes?
Click the little Choices symbol on the right-hand side base corner in your proofreader. You have some control over the timing and properties of Code Finishing. Code Layout would really have the code which would be composed when you hit TAB when code finish idea creeps in.
You can make your own custom Code Culmination rundown and add them to the storehouse.
4. Program Templates
At the point when an ABAPer makes another program, they have a few codes which are required in every single program they made. Blossom box, modification log, Choice Screen, Program Occasions and so forth. For the most part, we allude to another program and duplicate the layout.
Check, I’m making a new program and begin composing ZZ_TEMPLATE. As I complete the word the auto-consummation is noticeable and when I hit ‘TAB‘ key, the entire program skeleton is composed for me.
The thought is to have the layout for every one of the required regions. Blossom box, amendment log, choice screen, occasions. Presently, when I have the layout, I simply give the right program name, depiction, logs and change the choice screen fields. In the event that I needn’t bother with checkbox or radio buttons announcement, I erase them.
I recollect in certain undertakings we had the custom Example saved and utilized for a similar reason.
Yet, later I understood, SAP has given a savvy method for staying away from production of that custom Example (since Example is likewise an advancement which we want to save in transport or neighborhood). Click similar little Choices symbol again on the right-hand side base corner in your supervisor. Hit Code Layouts – >Add – > Give the name and portrayal – > alright.
Glue your format code and Save it. Presently everybody utilizing this improvement box can utilize your format to take care of business quicker.
Note : You can make one layout for any work which you really want regularly, for instance, determination screen piece or record approval code or F4 Assist code or MODIF id with coding and so on. In the event that you don’t recollect a few language structure, simply save a layout for itself and you don’t have to recall it forever.
However, most activities will have their own bloom box and layouts, so utilize your task explicit ones and save in the format.
5. Save the code in PDF format
Now and then you need to take a reinforcement of your code. Normally, we reorder it to a notebook or we go through Utilities – > More Utilities – > Download. However, holding your code back up in PDF design has its own magnificence.
Simply click a similar symbol at the base right of your supervisor, go to Console choice and search for File.ExportPDF easy route. For my case it is Shift + P. You can change this keys and allot your #1 keys to save as PDF. I have kept Shift + P unaltered.
Go to the ideal program which you need to save in PDF. Hit Crap + P or some other keys assuming you have transformed it. Save at the ideal way you need.
The code in PDF document generally is more appealing. Isn’t it?
6. Have fascinate in the manager where you invest greatest energy at work.
There ought to continuously be zest in your life. Assuming you are exhausted of taking a gander at the blue screen of your editors or simply need to tweak the text styles and varieties for better clarity or need various varieties for the sake of entertainment or need something which mitigates your eyes, check the beneath picture.
This the ongoing arrangement of my work environment.
You can arrange it for yourself utilizing a similar little symbol on the right base corner of your manager. Pick Textual styles and Varieties. The following is the setting for my manager. Attempt and have some good times!!
We have attempted to uncover that little Choices symbol on your screen in this article. Trust subsequent to going through this post, that symbol can never again stow away from your sharp eyes.
If you have any additional shortcuts, tricks, or other interesting tips, please share them with us. If you have something that can help us be lazy and smart ABAPers, that would be particularly welcome. We are always looking for ways to work more efficiently and intelligently.
Much thanks for your time!!
YOU MAY BE INTERESTED IN
A Comprehensive Guide to SAP ABAP Training Online
Best Practices for SAP ABAP Development: A Comprehensive Guide
Core Data Services in ABAP for HANA