Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Errors in Update Function Modules

Former Member
0 Kudos
80

Hi Gurus,

Please provide me the ways to handle Errors in Update Function Modules.

(I.e. I should export errors from Update Function Module)

Warm Regards,

2 REPLIES 2

Sultanuddin
Explorer
0 Kudos
51

Hi!

Handle Exceptions as you do in a normal Function Module. In that way you would be able to catch errors. Try to find out what would be the exceptions that could raise in your source code. Then, catch those exceptions.

Reward Points if useful

---

Sultan

Former Member
0 Kudos
51

Use Raise statement ...


FUNCTION-POOL CSTR.
FUNCTION STRING_SPLIT.
  ...
  IF STRING NA DELIMITER.
    RAISE NOT_FOUND.
  ENDIF.
  ...
ENDFUNCTION.

Regards,

Santosh