SET_TABLE_FOR_FIRST_DISPLAY SAP Method Formatted Output Table is Sent to Control









Below is documentation, parameters and attributes of ABAP Method SET_TABLE_FOR_FIRST_DISPLAY within SAP class CL_GUI_ALV_GRID. 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 CL_GUI_ALV_GRID 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 SET_TABLE_FOR_FIRST_DISPLAY can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method SET_TABLE_FOR_FIRST_DISPLAY

.

NameTypeData TypeDescriptionDefault Value
IR_SALV_ADAPTERImportingTYPE REF TO
IF_SALV_ADAPTER
Interface ALV Adapter
IS_LAYOUTImportingTYPE
LVC_S_LAYO
Layout
IS_PRINTImportingTYPE
LVC_S_PRNT
Print Control
IS_VARIANTImportingTYPE
DISVARIANT
Layout
IT_ALV_GRAPHICSImportingTYPE
DTC_T_TC
Table of Structure DTC_S_TC
IT_EXCEPT_QINFOImportingTYPE
LVC_T_QINF
Table for Exception Quickinfo
IT_HYPERLINKImportingTYPE
LVC_T_HYPE
Hyperlinks
IT_SPECIAL_GROUPSImportingTYPE
LVC_T_SGRP
Field Groups
IT_TOOLBAR_EXCLUDINGImportingTYPE
UI_FUNCTIONS
Excluded Toolbar Standard Functions
I_BUFFER_ACTIVEImportingTYPE
ANY
Buffering Active
I_BYPASSING_BUFFERImportingTYPE
CHAR01
Switch Off Buffer
I_CONSISTENCY_CHECKImportingTYPE
CHAR1
Starting Consistency Check for Interface Error Recognition
I_DEFAULTImportingTYPE
CHAR01
Default Display Variant
I_SAVEImportingTYPE
CHAR01
Save Layout
I_STRUCTURE_NAMEImportingTYPE
DD02L-TABNAME
Internal Output Table Structure Name
IR_SALV_ADAPTERImportingTYPE REF TO
IF_SALV_ADAPTER
Internal Usage only !!! - obsolete
IT_FIELDCATALOGChangingTYPE
LVC_T_FCAT
Field Catalog
IT_FILTERChangingTYPE
LVC_T_FILT
Filter Criteria
IT_OUTTABChangingTYPE
STANDARD TABLE
Output Table
IT_SORTChangingTYPE
LVC_T_SORT
Sort Criteria



Exceptions of Method SET_TABLE_FOR_FIRST_DISPLAY

TOO_MANY_LINES - Too many Rows in Ready for Input Grid

Example ABAP coding


DATA: lo_class TYPE REF TO CL_GUI_ALV_GRID.
DATA: lv_IR_SALV_ADAPTER TYPE IF_SALV_ADAPTER,
lv_IS_LAYOUT TYPE LVC_S_LAYO,
lv_IS_PRINT TYPE LVC_S_PRNT,
lv_IS_VARIANT TYPE DISVARIANT,
lv_IT_ALV_GRAPHICS TYPE DTC_T_TC,
lv_IT_EXCEPT_QINFO TYPE LVC_T_QINF,
lv_IT_FIELDCATALOG TYPE LVC_T_FCAT,
lv_IT_FILTER TYPE LVC_T_FILT,
lv_IT_HYPERLINK TYPE LVC_T_HYPE,
lv_IT_OUTTAB TYPE STANDARD TABLE,
lv_IT_SORT TYPE LVC_T_SORT,
lv_IT_SPECIAL_GROUPS TYPE LVC_T_SGRP,
lv_IT_TOOLBAR_EXCLUDING TYPE UI_FUNCTIONS,
lv_I_BUFFER_ACTIVE TYPE ANY,
lv_I_BYPASSING_BUFFER TYPE CHAR01,
lv_I_CONSISTENCY_CHECK TYPE CHAR1,
lv_I_DEFAULT TYPE CHAR01,
lv_I_SAVE TYPE CHAR01,
lv_I_STRUCTURE_NAME TYPE DD02L-TABNAME,
lv_IR_SALV_ADAPTER TYPE IF_SALV_ADAPTER,
lv_other TYPE c.

CALL METHOD lo_class=>SET_TABLE_FOR_FIRST_DISPLAY(
EXPORTING
IR_SALV_ADAPTER = lv_IR_SALV_ADAPTER
IS_LAYOUT = lv_IS_LAYOUT
IS_PRINT = lv_IS_PRINT
IS_VARIANT = lv_IS_VARIANT
IT_ALV_GRAPHICS = lv_IT_ALV_GRAPHICS
IT_EXCEPT_QINFO = lv_IT_EXCEPT_QINFO
IT_HYPERLINK = lv_IT_HYPERLINK
IT_SPECIAL_GROUPS = lv_IT_SPECIAL_GROUPS
IT_TOOLBAR_EXCLUDING = lv_IT_TOOLBAR_EXCLUDING
I_BUFFER_ACTIVE = lv_I_BUFFER_ACTIVE
I_BYPASSING_BUFFER = lv_I_BYPASSING_BUFFER
I_CONSISTENCY_CHECK = lv_I_CONSISTENCY_CHECK
I_DEFAULT = lv_I_DEFAULT
I_SAVE = lv_I_SAVE
I_STRUCTURE_NAME = lv_I_STRUCTURE_NAME
IR_SALV_ADAPTER = lv_IR_SALV_ADAPTER
CHANGING
IT_FIELDCATALOG = lv_IT_FIELDCATALOG
IT_FILTER = lv_IT_FILTER
IT_OUTTAB = lv_IT_OUTTAB
IT_SORT = lv_IT_SORT ).

Links to Related Class(s)

CL_GUI_A...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!