Application Development and Automation 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: 
Read only

Errors in Update Function Modules

Former Member
0 Likes
454

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
Read only

Sultanuddin
Explorer
0 Likes
425

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

Read only

Former Member
0 Likes
425

Use Raise statement ...


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

Regards,

Santosh