Using the raise Statement in Function Module
Normally, after returning from a function module, the system automatically sets the value of sy-subrc to zero. Use one of the following two statements to set sy-subrc to a non-zero value: * raise* message … raising Using the raise StatementUse the raise statement to exit the function module and set the value of sy-subrc on … Read more