From 312757528f3cc1b1e7cfb34e54ffe62b19221f9b Mon Sep 17 00:00:00 2001 From: danrega <16720986+danrega@users.noreply.github.com> Date: Mon, 3 Apr 2023 15:28:37 +0200 Subject: [PATCH] Update content --- src/zcl_demo_abap_prog_flow_logic.clas.abap | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/zcl_demo_abap_prog_flow_logic.clas.abap b/src/zcl_demo_abap_prog_flow_logic.clas.abap index 3282f15..010957d 100644 --- a/src/zcl_demo_abap_prog_flow_logic.clas.abap +++ b/src/zcl_demo_abap_prog_flow_logic.clas.abap @@ -1161,15 +1161,11 @@ CLASS zcl_demo_abap_prog_flow_logic IMPLEMENTATION. "Here, it is COMPUTE_SQRT_DOMAIN. output->display( input = exception->previous name = `exception->previous`). - "For demo purposes, RTTI is used here to retrieve the absolute name of the type, - "i. e. the exception class that was raised. The replace function is only used - "to clear the section 'sub' (which includes '\CLASS=') in 'val'. - DATA(absolute_name) = replace( - val = cl_abap_typedescr=>describe_by_object_ref( exception->previous )->absolute_name - sub = `\CLASS=` - with = `` ). + "For demo purposes, RTTI is used here to retrieve the relative name of the type, + "i. e. the exception class that was raised. + DATA(relative_name) = cl_abap_typedescr=>describe_by_object_ref( exception->previous )->get_relative_name( ). - output->display( input = absolute_name name = `absolute_name`). + output->display( input = relative_name name = `relative_name`). ENDTRY.