Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert

Hi all,

have you noticed that there is the new functionality available that allows you create your own scripting templates that will be available also in Content Assistant?

Here is an example how to create your first simple template.

Initially SAP delivers an "if block" and an "if-else-block with compare".

Let's assume you often need an "if-else-block without compare" and want to have that available in the Content Assistant.

These are the steps to follow.

1. Go to Tools > Preferences open the Scripting Section on the left side of the screen and click on Templates

2. Select the line with the if-else-Block with compare in... select the coding shown in the Preview and copy it to the clipboard.

3. Select New

4. Fill in the fields as shown in the screen. Of course you can choose Name and Description as you like.

    But make sure to select the Context as "Statement".

The code I used is:

if (${expression1} == ${value1}) {


} else {




That's all... From now on this new entry will be available in the Content Assistant in the Scripting Editor.

If you want you can export that to an .XML file and send it to others. They then can import the new entry.