You primarily use field objects in two situations:
● You want to apply standard ALV functions (ALV services) to the ALV output before it is displayed (see Predefining Standard ALV Functions).
● You want to assign properties to the cells of a field that are defined for another field (see Assigning Properties to Columns and Cells).
You can also make the following settings for field objects:
● Get Field Object
● Get Field Name
You cannot create new fields or delete existing fields.
Getting Field Objects
To make the required settings for a field, you must first get the instance of the field. You can decide whether you address a specific field object by its name or get all field objects simultaneously so you can handle them one after another. In both cases, you use the methods of interface class IF_SALV_WD_FIELD_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).
Methods for Getting Field Objects
Function | Method |
Get single field object | GET_FIELD |
Get all field objects | GET_FIELDS |
Getting Field Names
To get the name of the current field instance, you use class CL_SALV_WD_FIELD.
Method for Getting Field Names
Function | Method |
Get field name | GET_FIELDNAME |
No comments:
Post a Comment