Process documentationGenerating the Field Catalog Automatically Locate this document in the navigation structure

 

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:

  1. Reference the structure with LIKE, or include the structure in a separate structure with INCLUDE STRUCTURE.

    Note Note

    If you use INCLUDE STRUCTURE, you can have the ALV generate part of your output table automatically, and then add more fields. For a description of the procedure, see Generating the Field Catalog Semi-Automatically.

    End of the note.
  2. 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).

This graphic is explained in the accompanying text.