Generating the Field Catalog Automatically
Use
If the structure of your output table corresponds to a structure stored in the Data Dictionary (DDIC), the ALV Grid Control can use this information to generate the field catalog automatically. In this case, all fields of this DDIC structure are displayed in the list.
Process
To pass the structure to the ALV Grid Control:
-
Reference the structure with LIKE, or include the structure in a separate structure with INCLUDE STRUCTURE.
-
Pass the structure in method set_table_for_first_display with parameter I_STRUCTURE_NAME to the control created.
If you do not want to add more fields to the structure or if you want to hide specific fields, you do not need to pass the field catalog (see graphic).