SAVE_VIEW_LAYOUT SAP Method Saves Layout of a View
Below is documentation, parameters and attributes of ABAP Method SAVE_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 SAVE_VIEW_LAYOUT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SAVE_VIEW_LAYOUT
.Name | Type | Data Type | Description | Default Value |
IR_VIEW | Importing | TYPE REF TO IF_ISH_GUI_VIEW | IS-H: GUI - View | |
I_ERDAT | Importing | TYPE RI_ERDAT | IS-H: Date when Record Created | |
I_ERTIM | Importing | TYPE RI_ERTIM | IS-H: Time when Record Created | |
I_ERUSR | Importing | TYPE RI_ERNAM | IS-H: Name of Employee who Created Record | |
I_EXPLICIT | Importing | TYPE ABAP_BOOL | abap_true: Explicit Save | |
I_USERNAME | Importing | TYPE USERNAME | User Name | |
R_SAVED | Returning | TYPE ABAP_BOOL | abap_true: Layout was Saved |
Exceptions of Method SAVE_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_VIEW TYPE IF_ISH_GUI_VIEW,
lv_I_ERDAT TYPE RI_ERDAT,
lv_I_ERTIM TYPE RI_ERTIM,
lv_I_ERUSR TYPE RI_ERNAM,
lv_I_EXPLICIT TYPE ABAP_BOOL,
lv_I_USERNAME TYPE USERNAME,
lv_R_SAVED TYPE ABAP_BOOL,
lv_other TYPE c.
CALL METHOD lo_class=>SAVE_VIEW_LAYOUT(
EXPORTING
IR_VIEW = lv_IR_VIEW
I_ERDAT = lv_I_ERDAT
I_ERTIM = lv_I_ERTIM
I_ERUSR = lv_I_ERUSR
I_EXPLICIT = lv_I_EXPLICIT
I_USERNAME = lv_I_USERNAME
RECEIVING
R_SAVED = lv_R_SAVED )
"Alternate coding for Method Call with returning parameter
lv_R_SAVED = lo_class=>SAVE_VIEW_LAYOUT(
EXPORTING
IR_VIEW = lv_IR_VIEW
I_ERDAT = lv_I_ERDAT
I_ERTIM = lv_I_ERTIM
I_ERUSR = lv_I_ERUSR
I_EXPLICIT = lv_I_EXPLICIT
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