•Table settings
The data for the Table UI element includes the structure of the application data as well as the technical fields that determine the appearance or function of the ALV output. You can define, for example, whether the ALV output is to be displayed with a simple, two-dimensional table or as a hierarchy with a leading hierarchy column.
•Field settings
The fields describe the data that is used in the ALV output. The name of a field corresponds to the name of an attribute in the context node: All field objects are automatically generated from the specifications that you made in the context node. As a result, every attribute in the context node has a representative with the same name in the ALV configuration model.
By connecting the internal data table to the context node you fulfill all the prerequisites to start your application with ALV. You can sort the data with statements from your application, filter it, or perform applications. All these functions (ALV services) are essentially field object methods. You cannot, however, display the data yet. To do this, you need columns.
•Column settings
The column objects are visible elements that define the ALV output. The columns have the same names as the corresponding field objects and attributes in the context node. The column object contains settings as to whether and how the data for the field of the same name is displayed in the ALV output. If you do not want to display the values of the field, you can delete the corresponding column object.
You use the column settings to manage a list of all the column objects (the columns for the Table UI elements).
•Standard function settings
ALV provides a number of functions. The following list shows the most important of these standard ALV functions:
- ALV services: Sorting, filtering, aggregating (calculations), as well as the option to make all the necessary settings for these services.
- Settings you can provide for editable ALV output, such as inserting and deleting rows.
- Exporting the ALV output to Microsoft Excel or generating a print version in PDF format.
All these standard functions are accessible using the relevant UI elements. You can hide or show these UI elements by using the standard function settings.
•Application-specific function settings
You can define as many functions as you want in your application and provide suitable UI elements to the user with which he or she can then run these functions.
As an application developer, you can configure all these areas. You can use a complete object model for object-oriented ABAP programming to do this. You can use it to change the ALV output, if necessary. There is an interface class for each of the areas listed here. They are implemented by the central class CL_SALV_WD_CONFIG_TABLE (see Class Diagram).
All the classes that are required for the configuration of the ALV output can be found in the system in the package SALV_WD_CONFIG.
No comments:
Post a Comment