09-08-2014 11:15 AM
Hi,
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.
Thanks
PP
09-08-2014 11:36 AM
Regards,
Philip.
09-08-2014 11:36 AM
Regards,
Philip.
09-08-2014 11:39 AM
Hi
Thanks for the reply..
I have used return parameter. Moreover I need to exit from the BAPI at the same time.
So how to exit from it is my question.
09-08-2014 7:51 PM
just put 'RETURN.' or 'EXIT.' statment after filling up return parameter to stop processing furthur & exit.
09-09-2014 6:39 AM
09-09-2014 2:42 AM
Hi,
The 'EXIT' command does not cause a dump - it will just exit your function module cleanly.
By the way - just to be clear - you are not building a 'BAPI' (a SAP-standard API module with a published interface), you are building a custom function module.
Unless you're a developer working at SAP?
cheers
Paul
09-09-2014 6:40 AM