Supported by
Supported by Inetum

Convert class exception to BAPIRET2

images/thumbnail.jpg - Thumbnail

Some time ago I wrote an article explaining a way to automatically convert classic exceptions to exception classes. Today I use this technique in almost all the exception classes that I create (and I’ve even improved it, but I’ll leave that for another post).

This tip explains the exact opposite.

It is less likely but not impossible that you need to convert an exception class into a BAPIRET2 message. To save it to a log table, for example.

And SAP already has a function module that does exactly this:


And that’s it really. A simple tip.

Greetings from Abapinho.