Let us write a small function module with two input and the output is addition on these two number.
Click on save button this will take you to the function module editor where you have to give input and output. Input is Import parameters and Output is Export Parameters, Changing and Tables are input as well as output. you can take the table values and process and change the values and send them out.
Look at the following screen for input and the output values.
Exception is when you raise a exception this will return a error code to the calling program. the error code can be the value of the raised exception so that you know how to handle. Look at the following screen shot for exception.
Now let us see how to code for this example. Get two numbers and add the number and give output.