"
Supported by

Convert class exception to BAPIRET2

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:

RS_EXCEPTION_TO_BAPIRET2

And that’s it really. A simple tip.

Greetings from Abapinho.

Deixe um comentário


About Abapinho
Abapinho runs on WordPress
Articles (RSS) e Comments (RSS).