I have standard class, in this class there is a bapi used . In this bapi a error messaged is raised.
How can i capture this error message in my z FM.
Please note that there is no expection in the standard class and error message is raised by the bapi.
ZFM ---> standard class ----> Bapi.