If you follow my blog, then you probably noticed that I'm not keen of SALV class, as it's not editable and you cannot handle all events that you can in cl_gui_alv_grid class. With a small trick ...
... CL_GUI_ALV_GRID, which is normally not possible. When you look into the class definition you'll notice that there is only one global friend - interface IF_ALV_RM_GRID_FRIEND which has no attributes ...
Column ID is not really a special field in ALV. It is always filled automatically by ALV and your manual entries are overwritten and set to the same value as COL_POS (Column position).
I’ve prepared ...
... OF CL_GUI_ALV_GRID with importing parameters E_ROW_ID, E_COLUMN_ID and ES_ROW_NO
Figure 115 Hotspot_Click event handler definition
After definition, of course you need to prepare ...
Group key is not widely used but it has nice feature. Once you group the field catalog fields and you pass the group name into parameter IT_SPECIAL_GROUPS of method SET_TABLE_FOR_FIRST_DISPLAY, then in ...
You may suspect that setting up a domain name in the field catalog will make some effect on the display, for example in data type, length, lowercase sign, but it seems that it has no effect in ALV grid. ...
Before writing this part, I was never using Report-Report Interface, so probably it is not common scenario to do so, or it is not used with the systems I had possibility to use. But anyway I’ve made a ...
This field allows us to set (or change) the header text of the column. It can consist up to 55 characters in lowercase mode. When you use data dictionary reference ( REF_FIELD, REF_TABLE ) it is populated ...
The changes of this parameter are only visible in edit mode and makes sense only for character or string fields. If it is set to ABAP_TRUE (‘X’), then the ALV grid stores in internal table the value in ...
As the description says, the meaning of that field is to set the internal length of the field in Bytes. During my whole career as ABAP Developer, I had never filled that field manually. Usually you’ll ...
As you can imagine, INTTYPE is just a presentation of DATATYPE in internal SAP format in most of cases. I wrote most of cases because it can also say if the field in internal table is a reference to other ...
DATATYPE field has small influence on the way the column is displayed. You can omit this field and then ALV grid will automatically fill this field and additionally JUST, OUTPUTLEN, INTTYPE, INTLEN and ...
The main functionality of the ROLLNAME is to provide a data element that will be responsible for showing F1 help on the grid cell. If in data element the documentation is available, then it will be shown. ...
TOOLTIP, as in any other places in on your PC, is responsible to show short info about the column when you hover your mouse over the column header. It’s very useful when you have a lots of fields in you ...
SELTEXT is one of the fields that are linked to the texts of the grid columns. This particular one is responsible for displaying the name of the column in the change/display of layout popup. ...
Conversion Exit was already mentioned while describing the EDIT_MASK field, but here it is called in a bit different way. Before saying how, it is important to understand the conversion exits. They are ...
OUTPUTLEN can be used to setup the width of the column (if you don’t use automatic column width optimization). When automatically created, usually it have the value of the maximum field width, but when ...
Technical field allows you to do similar thing as NO_OUT, you can hide the field on the output, the difference is that, users are not able to unhide this field. As NO_OUT, in order that TECH field work, ...
NO_OUT is useful when you want to hide the field on the output, but still allow users to unhide it on demand. As lots of fields from field catalog, it can be filled with ‘X’ or space (default).
If ...
As you can imagine from the name, NO_SUM does mostly opposite what DO_SUM, but in more secure way. If you don’t want that the field is allowed to be summarized, then set the value of this field to ‘X’. ...
DO_SUM is very helpful when you want to assure that some of the numeric fields are summarized directly after the output, without interaction from the user side. In order to do so, just put the ‘X’ or ABAP_TRUE ...
FIX_COLUMN can be useful when you have a lots of fields in the field catalog and you want to make sure that some of the key fields are always visible, for example sales order number and position or posting ...
EMPHASIZE allows you to change the colour of the whole column if there is such need.
This field can be filled with following values:
Space - this means you use the standard behaviour of ALV ...
If you are familiar with the WRITE statement, then probably you know the EDIT_MASK addition which allows us to do formatting of the output in two different ways, you can apply the same to the EDIT_MASK ...
This field is responsible for setting up columns in proper order while displaying the grid without using of saved layout. It may be useful if you don’t allow your users to save their own or global grid ...
This field is one of the basic ones in field catalog. It contains the fieldname of internal table that will be used in our grid. Although LVC_T_FCAT is standard table, then this field should be treated ...
The name of this field suggest to put here an internal table name, but it seems that it has no function at all. When SAP fills field catalog automatically, then value of this field is set to ‘1’. You can ...
When you have a field that contains an amount, for example net value of an sales order, then in order to show it correctly in the grid you should fill or this field with an value of currency key (one of ...
CFIELDNAME can be read as currency field name. When you have in your internal table a field that represents the currency for the amount stored in a field kept under FIELDNAME in field catalog, then you ...