Skip to Content
0

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

Feb 21 at 08:51 AM

55

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.

Thanks!

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
0

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 - https://blogs.sap.com/2017/09/25/exception-handling-in-gateway-projects/

Share
10 |10000 characters needed characters left characters exceeded