Skip to Content

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

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    Add comment
    10|10000 characters needed characters exceeded