Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

To exit from BAPI when a standard error encounters

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

Former Member
Former Member replied

just put 'RETURN.' or 'EXIT.' statment after filling up return parameter to stop processing furthur & exit.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question