2020 Jan 03 11:58 AM
Hi experts!
I'm struggling with an obviously elementary thing in Function Modules.
Is it possible to raise a non-class-based exception with a dynamic name?
Something like:
RAISE lv_raise_name. " lv_raise_name -> variable with name of exception
2020 Jan 03 2:07 PM
Hi experts!
I'm struggling with an obviously elementary thing in Function Modules.
Is it possible to raise a non-class-based exception with a dynamic name?
Something like:
RAISE lv_raise_name. " lv_raise_name -> variable with name of exception
2020 Jan 03 1:47 PM
Hi Nikolai, please refer the below link:
http://zevolving.com/2008/10/function-module-exception-handling/
2020 Jan 03 2:00 PM
Hi,
I think this already answer.
Further you can check non-class-based exceptions
TRY.
CALL METHOD lr_instance->(method_name)
PARAMETER-TABLE ptab.
CATCH cx_root into lr_error.
lv_error = lr_error->get_text( ). "--> maybe a usefull error message
ENDTRY.
2020 Jan 03 2:07 PM
2020 Jan 06 4:14 AM
Thank you for your answer.
Of course, first of all, I've checked the documentation. And such the answer is what I was afraid of 🙂
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |