*"* local class implementation for public class *"* use this source file for the implementation part of *"* local helper classes *"* use this source file for any type declarations (class *"* definitions, interfaces or data types) you need for method *"* implementation or private method's signature *"* use this source file for any macro definitions you need *"* in the implementation part of the class method IF_MESSAGE~GET_LONGTEXT. IF me->error IS NOT INITIAL OR me->syst_at_raise IS NOT INITIAL. *--------------------------------------------------------------------* * If message was supplied explicitly use this as longtext as well *--------------------------------------------------------------------* result = me->get_text( ). ELSE. *--------------------------------------------------------------------* * otherwise use standard method to derive text *--------------------------------------------------------------------* super->if_message~get_longtext( EXPORTING preserve_newlines = preserve_newlines RECEIVING result = result ). ENDIF. endmethod. method IF_MESSAGE~GET_TEXT. IF me->error IS NOT INITIAL. *--------------------------------------------------------------------* * If message was supplied explicitly use this *--------------------------------------------------------------------* result = me->error . ELSEIF me->syst_at_raise IS NOT INITIAL. *--------------------------------------------------------------------* * If message was supplied by syst create messagetext now *--------------------------------------------------------------------* MESSAGE ID syst_at_raise-msgid TYPE syst_at_raise-msgty NUMBER syst_at_raise-msgno WITH syst_at_raise-msgv1 syst_at_raise-msgv2 syst_at_raise-msgv3 syst_at_raise-msgv4 INTO result. ELSE. *--------------------------------------------------------------------* * otherwise use standard method to derive text *--------------------------------------------------------------------* CALL METHOD super->if_message~get_text RECEIVING result = result. ENDIF. endmethod.