SET_FIRST_FIELDCATALOG SAP Method Creates the Field Catalog for the First Time
Below is documentation, parameters and attributes of ABAP Method SET_FIRST_FIELDCATALOG within SAP class CL_ALV_TREE_BASE. 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_ALV_TREE_BASE 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_FIRST_FIELDCATALOG can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SET_FIRST_FIELDCATALOG
.| Name | Type | Data Type | Description | Default Value |
| IS_LAYOUT | Importing | TYPE LVC_S_LAYO | Layout | |
| IS_VARIANT | Importing | TYPE DISVARIANT | Variant | |
| IT_FILTER | Importing | TYPE LVC_T_FILT | Filter Criteria | |
| IT_SORT | Importing | TYPE LVC_T_SORT | Sort Criteria | |
| IT_SPECIFIC_GROUPS | Importing | TYPE LVC_T_SGRP | ALV Control: Table of Field Groups | |
| I_DEFAULT | Importing | TYPE CHAR01 | Default Variant | |
| I_SAVE | Importing | TYPE CHAR01 | Save Variant | |
| I_STRUCTURE_NAME | Importing | TYPE DD02L-TABNAME | Structure Name of Internal Table | |
| IT_FIELDCATALOG | Changing | TYPE LVC_T_FCAT | Field Catalog |
Exceptions of Method SET_FIRST_FIELDCATALOG
PROGRAM_ERROR - program_errorExample ABAP coding
DATA: lo_class TYPE REF TO CL_ALV_TREE_BASE.
DATA: lv_IS_LAYOUT TYPE LVC_S_LAYO,
lv_IS_VARIANT TYPE DISVARIANT,
lv_IT_FIELDCATALOG TYPE LVC_T_FCAT,
lv_IT_FILTER TYPE LVC_T_FILT,
lv_IT_SORT TYPE LVC_T_SORT,
lv_IT_SPECIFIC_GROUPS TYPE LVC_T_SGRP,
lv_I_DEFAULT TYPE CHAR01,
lv_I_SAVE TYPE CHAR01,
lv_I_STRUCTURE_NAME TYPE DD02L-TABNAME,
lv_other TYPE c.
CALL METHOD lo_class=>SET_FIRST_FIELDCATALOG(
EXPORTING
IS_LAYOUT = lv_IS_LAYOUT
IS_VARIANT = lv_IS_VARIANT
IT_FILTER = lv_IT_FILTER
IT_SORT = lv_IT_SORT
IT_SPECIFIC_GROUPS = lv_IT_SPECIFIC_GROUPS
I_DEFAULT = lv_I_DEFAULT
I_SAVE = lv_I_SAVE
I_STRUCTURE_NAME = lv_I_STRUCTURE_NAME
CHANGING
IT_FIELDCATALOG = lv_IT_FIELDCATALOG ).
Links to Related Class(s)
CL_ALV_T...Full list of available SAP object classes
Search for further information about these or an SAP related objects