ABAP OO Class Methods

IF_ISH_GUI_APPLICATION SAP Interface - IS-H: GUI - Application







IF_ISH_GUI_APPLICATION is a standard SAP interface, see below for any documentation including details of methods, attributes, events etc. Interfaces are defined much the same as a class using the same transactions but act a bit like a template (in none OO terms). For example, a class would implement the interface and then inherit all of the methods etc from it. This provides a mechanism for unrelated objects to use a set of common behaviours and functionality.


You may have seen this already without knowing what it was, within SAP have you ever seen the method name prefixed by the name of an interface such as IF_ISH_GUI_APPLICATION~METHOD_NAME . This means that the class has implemented an interface and that this method has been inherited from it.


For further relevant information about this interface enter IF_ISH_GUI_APPLICATION into the relevant SAP transactions such as SE24, SE80. Also see the Resource section below to view other useful tips, screenshots, links and general information related to this SAP interface and its methods. Or even add your own for future reference



Methods of IF_ISH_GUI_APPLICATION





A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.

Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD CL_ABAP_CHAR_UTILITIES=>methodname EXPORTING/IMPORTING...



BUILD_ALV_VARIANT_REPORT - Creates Program Name for an ALV Variant
CANCEL_NEXT_MDYEVT_PROC - Prevents Processing of Next Subscreen Container Query
CLEAR_CRSPOS_MESSAGE - Deletes the Cursor Positioning Message
IF_ISH_DESTROYABLE~DESTROY - Destroy
GET_ALV_VARIANT_REPORT_PREFIX - Returns Prefix for Program Name for an ALV Variant
GET_CRSPOS_MESSAGE - Returns the Cursor Positioning Message
IF_ISH_GUI_ELEMENT~GET_ELEMENT_ID - Get Element Id
IF_ISH_GUI_ELEMENT~GET_ELEMENT_NAME - Get Element Name
GET_FOCUSSED_VIEW - Returns the Focused View
GET_LAYOUT - Returns the Application Settings
GET_MAIN_CONTROLLER - Returns the Main Controller
GET_STARTUP_SETTINGS - Returns the Start Settings
GET_VCODE - Returns the Processing Mode
IF_ISH_DESTROYABLE~IS_DESTROYED - Is Destroyed
IS_EMBEDDED - Returns Whether Application Is Included
IS_INITIALIZED - Returns Whether the Object Is Initialized
IF_ISH_DESTROYABLE~IS_IN_DESTROY_MODE - Is In Destroy Mode
IS_IN_INITIALIZATION_MODE - Returns Whethre the Object Is Being Initialized
IS_ISH_SCRM_SUPPORTED - Returns if IS-H Screen Modifications Are Supported
IS_NEXT_MDYEVT_PROC_CANCELLED - Returns if Next Subscreen Container Query Will be Processed
IS_PAI_IN_PROCESS - Returns if PAI Processing is Occurring
IS_PBO_IN_PROCESS - Returns if PBO Processing is Occurring
IS_RUNNING - Returns Whether the Application Is Being Executed
LOAD_LAYOUT - Loads a Layout
LOAD_VIEW_LAYOUT - Loads Layout of a View
IF_ISH_GUI_REQUEST_PROCESSOR~PROCESS_REQUEST - Process Request
RUN - Executes the Application
SAVE_LAYOUT - Saves a Layout
SAVE_VIEW_LAYOUT - Saves Layout of a View
SET_FOCUSSED_VIEW - Sets the Focused View
SET_VCODE - Sets the Processing Mode


IF_ISH_GUI_APPLICATION Attributes

List of attributes within class IF_ISH_GUI_APPLICATION. These can be referenced using the following syntax IF_ISH_GUI_APPLICATION=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.


NameDescriptionInitial Value
CO_UCOMM_BACK Back 'BACK'
CO_UCOMM_CANCEL Cancel 'CANCEL'
CO_UCOMM_CHECK Check 'CHECK'
CO_UCOMM_CONFIG_LAYOUT Edit Layout 'CONFIG_LAYOUT'
CO_UCOMM_DELETE Delete 'DELETE'
CO_UCOMM_END Exit 'END'
CO_UCOMM_ENTER ENTER 'ENTER'
CO_UCOMM_SAVE Save 'SAVE'



CO_UCOMM_SWI2DIS Switch to Display Mode 'SWI2DIS'
CO_UCOMM_SWI2UPD Switch to Change Mode 'SWI2UPD'
CO_UCOMM_TRANSPORT Transport 'TRANSPORT'




Events of the Class IF_ISH_GUI_APPLICATION

Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING...

EV_AFTER_DESTROY - Ev After Destroy
EV_BEFORE_DESTROY - Ev Before Destroy