To exit from BAPI when a standard error encounters
I am creating a BAPI function module where a number of standard errors are encountered. If the input parameter is missing then a standard error is thrown and moreover the BAPI should stop and it should exit from the BAPI.
So plz can u help me how to exit from the BAPI instantly. I cannot use the statement 'EXIT' as it may get dump during production.
just put 'RETURN.' or 'EXIT.' statment after filling up return parameter to stop processing furthur & exit.