LOAD_VIEW_LAYOUT SAP Method Loads Layout of a View
Below is documentation, parameters and attributes of ABAP Method LOAD_VIEW_LAYOUT within SAP class IF_ISH_GUI_APPLICATION. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_ISH_GUI_APPLICATION into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method LOAD_VIEW_LAYOUT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method LOAD_VIEW_LAYOUT
.Name | Type | Data Type | Description | Default Value |
IR_CONTROLLER | Importing | TYPE REF TO IF_ISH_GUI_CONTROLLER | View Controller | |
IR_PARENT_VIEW | Importing | TYPE REF TO IF_ISH_GUI_VIEW | Superordinate View | |
IR_VIEW | Importing | TYPE REF TO IF_ISH_GUI_VIEW | IS-H: GUI - View | |
I_LAYOUT_NAME | Importing | TYPE N1GUI_LAYOUT_NAME | Layout Name | |
I_USERNAME | Importing | TYPE USERNAME | User Name | |
RR_LAYOUT | Returning | TYPE REF TO CL_ISH_GUI_LAYOUT | IS-H: GUI - Settings for an Interface Element |
Exceptions of Method LOAD_VIEW_LAYOUT
CX_ISH_STATIC_HANDLER - IS-H: Superclass for Static ExceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_ISH_GUI_APPLICATION.
DATA: lv_IR_CONTROLLER TYPE IF_ISH_GUI_CONTROLLER,
lv_IR_PARENT_VIEW TYPE IF_ISH_GUI_VIEW,
lv_IR_VIEW TYPE IF_ISH_GUI_VIEW,
lv_I_LAYOUT_NAME TYPE N1GUI_LAYOUT_NAME,
lv_I_USERNAME TYPE USERNAME,
lv_RR_LAYOUT TYPE CL_ISH_GUI_LAYOUT,
lv_other TYPE c.
CALL METHOD lo_class=>LOAD_VIEW_LAYOUT(
EXPORTING
IR_CONTROLLER = lv_IR_CONTROLLER
IR_PARENT_VIEW = lv_IR_PARENT_VIEW
IR_VIEW = lv_IR_VIEW
I_LAYOUT_NAME = lv_I_LAYOUT_NAME
I_USERNAME = lv_I_USERNAME
RECEIVING
RR_LAYOUT = lv_RR_LAYOUT )
"Alternate coding for Method Call with returning parameter
lv_RR_LAYOUT = lo_class=>LOAD_VIEW_LAYOUT(
EXPORTING
IR_CONTROLLER = lv_IR_CONTROLLER
IR_PARENT_VIEW = lv_IR_PARENT_VIEW
IR_VIEW = lv_IR_VIEW
I_LAYOUT_NAME = lv_I_LAYOUT_NAME
I_USERNAME = lv_I_USERNAME ).
Links to Related Class(s)
IF_ISH_G...Full list of available SAP object classes
Search for further information about these or an SAP related objects