METHOD class_constructor. a1 = 'c2'. ENDMETHOD. ENDCLASS. DATA v1 TYPE string. START-OF-SELECTION. v1 = c2=>m1( ). This example shows how a subclass is used to change a static attribute of a superclass, and how
Since in theory the static attribute belongs to class instead of any dedicated object instance, so question comes: is there approach to monitor the static attribute value in ABAP debugger directly from class instead? Yes it is possible. (1) type text “{C:ZCL_POINT} in debugger and press e...
Static Next Screen In the Screen Painter tool, a screen attributeNext Screenis defined for every screen. This attribute gives the number of the screen that is to follow the current screen statically. However, the static attribute is always bypassed if you specify a next screendynamicallywhile the...
SAP Managed Tags: ABAP Development Hi Chaudhury, Interface are like methods, for example scn is an interface where we post our doubts and we get back our result. So when to create static methods if you feel like the methods can be called even when object is not created then go for it...
ABAP static analysis tool SQF is a static code analysis tool developed in package SUPPORT_QUERY_FRAMEWORK in software component SAP_BASIS. It contains lots of handy tool or short cut to other system utility tools. The most attractive function which is worthy to put it into my toolset is the...
1-) Static classes are implicitly loaded first time they are used, and the corresponding static constructor -of available- is executed. They remain in the memory as long as the current internal session exists. Therefore, if you use static classes, you cannot actually control the time of initia...
CLASS-METHODS: class_constructor, fire_event_raiser. CLASS-EVENTS: fire EXPORTING value(iv_text) TYPE string. ENDCLASS. "lcl_event_raiser DEFINITION --- CLASS lcl_event_handler DEFINITION --- * --- CLASS lcl_event_handler DEFINITION. PUBLIC SECTION. CLASS-METHODS: class_constructor, handle_...