Skip to Content

oData Service: Best Approach Error Handling in the RFC Function Module

Feb 21 at 08:51 AM


avatar image

I have a question about the oData service on the gateway.

We must use existing RFC function modules in our service (module mapping etc.). I know how to handle error messages in the DPC class. How can I generate / influence error messages in the function module? Can I somehow access the oData service interfaces or do I have to create my own error entity and fill it? Throwing non-class-based exceptions doesn't help much.


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ankit Maskara
Feb 21 at 05:11 PM

What do you mean by influencing error message in FM. From the FM you can return messages in bapiret2_tab and then handle accordingly in DPC_EXT.

Sample approach with class based exception -

10 |10000 characters needed characters left characters exceeded