Creating a Function 
Create a Function
In the Object Manager panel, under the Detail section, choose the Assigned Objects tab.
The Assigned Objects tab page opens.
Choose Function from the Type field and choose Create Object.
In the Object Creation dialog box that appears, enter Exec_PriceFac_And_Prem in the Name field and choose Create & Navigate To Object.
The function is created and the edit function page appears.
Assign Expression to the Function
Under the Detail section, under Properties, choose
(Graphical Access) next to the Top
Expression field.
In the context menu, choose PRICEFAC_AND_PREMIUM_DT.
The selected decision table is assigned as top expression to the function.
Assign Context to the Function
Under the Detail section, choose the Signature tab.
Under Context, choose Add existing Data Object.
In the Object Creation dialog box that appears, select LEVEL_OF_COVER and choose Select.
Similarly, choose AGE.
The data objects are added as the context.
Assign Result to the Function
Under the Detail section, choose the Signature tab.
Under Result Data Object, choose
(Graphical Access) next to Result Data Object.
In the context menu, choose .
The data object is added as the result.