Tuesday 6 October 2020

How can we create Code Templates in ABAP Editor SE38/SE80? The Google Way

Introduction

If you are an ABAPer you must be using the TAB key in your keyboard a lot to Auto Fill Keyword Commands. Last year Google have taken this TAB Key concept in writing emails which is awesome. This Blog will help in saving Code Templates that you can use in any ABAP Program.

Code Templates can be used for the following

1. Generate ALV Grid of Report

2. Sending email to External Email

3. Upload File from Presentation Server.

4. Download File to Presentation Server

5. Upload File from Application Server.

6. Download File to Application Server

Above are a few examples. Please note that this concept is not eliminating creation of reusable Function Module and Class as this will also help then in using those Classes. I have saved a lot of time using this concept and it is a Hidden Treasure for ABAPers.

Solution

This solution is available in all SAP Netweaver all Options.

SAP Development, SAP ABAP Connectivity, SAP ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Learning

After the above is Selected now let us check the following option and Click Below.

SAP Development, SAP ABAP Connectivity, SAP ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Learning

Click on Add

SAP Development, SAP ABAP Connectivity, SAP ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Learning

Below I am creating a Code Template for ALV

SAP Development, SAP ABAP Connectivity, SAP ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Learning

After you Paste your favorite ALV Code Sample click on Save

SAP Development, SAP ABAP Connectivity, SAP ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Learning

Now when we type alv we get this Prompt and hit TAB Key in Keyboard. Wala Magic happens.

SAP Development, SAP ABAP Connectivity, SAP ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Learning

SAP Development, SAP ABAP Connectivity, SAP ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Learning

No comments:

Post a Comment