A Web Function is a normal BDL function that uses the input and output records that you have defined.
FUNCTION add() LET add_out.r = add_in.a + add_in.b END FUNCTION