Professional Documents
Culture Documents
Handling Exceptions in Function Modules (With Message Class)
Handling Exceptions in Function Modules (With Message Class)
----------------------------------------------------------------------------------------------------------------------------Step1. So here we have the message class with two message texts 000 and 001.
[http://2.bp.blogspot.com/-QGzlaFeLhho/VJZJHqlqGRI/AAAAAAAAN_g/3cA-QMxC6kw/s1600/1.png]
[http://2.bp.blogspot.com/-UHU4_YL3NwM/VJY_wXVLOzI/AAAAAAAAN-M/_feE5VY2-iY/s1600/1.png]
[http://3.bp.blogspot.com/-Ixi-mfpHW5g/VJY_wHjUMgI/AAAAAAAAN-I/toIeoRxa08s/s1600/2.png]
Step4. FM exceptions.
[http://1.bp.blogspot.com/-zqNs6rfeDYY/VJZJHhthUgI/AAAAAAAAN_o/_9tGz34ahMc/s1600/2.png]
Step5. Fm source code, When as exception is aligned with a message class text, it should be raised in the
RAISING clause not RAISE.
[http://2.bp.blogspot.com/-P4pMbF_JLaQ/VJZJHrfSGVI/AAAAAAAAN_k/DbJaf01Har8/s1600/3.png]
Step6. Here we have the program and the FM mapping when an exception is raised with a message class .
Step7. Execute the program and here in the debugger we have the certain values of the sy-subrc and message
details.
[http://1.bp.blogspot.com/-XAD8jlNwfhI/VJZJIjSxOeI/AAAAAAAAN_w/8PtiLlD8yXE/s1600/4.png]
[http://4.bp.blogspot.com/-gy78lnQA8qc/VJZJIwbKMkI/AAAAAAAAN_8/4LgXckwKd3c/s1600/5.png]
Step8. Though we raised a warning message type , on the UI it appears as error type.
---------------------------------------------------------------------------------------------------------------------------------------
[http://3.bp.blogspot.com/-UvgP5ecyTz4/VJZJIxcWZzI/AAAAAAAAN_0/dAg3BFvDokA/s1600/6.png]
No comments yet
Add a comment
View comments