In BAPI all the exceptions or messages are captured in exporting parameter RETURN.
In case if you want to capture multiple messages in your Z*BAPI then create a table for returns and then pass all your messages to the TABLES parameter.
In BAPI all the exceptions or messages are captured in exporting parameter RETURN.
In case if you want to capture multiple messages in your Z*BAPI then create a table for returns and then pass all your messages to the TABLES parameter.