SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Create Scalar User Defined Functions

Leveraging SQLScript in Stored Procedures, User Defined Functions, and User Defined Libraries

Overview

🎓 intermediate 15 min. SAP HANAIntermediateSqlExpress Edition

You will learn

  • How to create a scalar UDF for generating a full name from the last, first and middle name of the employee
Rich Heilman R Rich Heilman November 1, 2022
Created on September 5, 2016
Contributors

More from Rich Heilman

See all 20 tutorials by Rich Heilman →

Prerequisites

Prerequisites

  • This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
  • Tutorials: Intermediate Table Variables

Steps

Step 1 Create New Function

Create a new folder called functions under the src folder by right clicking on the src folder and choosing New, then Folder.

New Function
New Function

Right click on the functions folder and choose New, then Function.

New Function
New Function

Enter the name of the file as get_full_name and click Create.

create
create

Step 2 Edit the Function and Save
+
Step 3 Edit Procedure
+
Step 4 Save, Build and Check Results
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Create New Function 2. Edit the Function and Save 3. Edit Procedure 4. Save, Build and Check Results
Next