Creating a Function 
A function imports context and returns result.
In the Object Manager panel, under the Detail section, choose the Assigned Objects tab.
In the Assigned Objects tab page that appears, choose Function from the Type field and choose Create Object.
In the Object Creation dialog box that appears, enter the following data:
Name
More information: Naming Conventions
Short Text
Text
Choose Create or Create & Navigate To Object.
Note
If you choose Create the newly created function appears under the Assigned Objects tab.
If you choose Create & Navigate To Object, you are directly navigated to the Properties section.