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 ...
... to show the details of the clicked object, or to move to a transaction in which the object can be modified.
As you can imagine, setting column as a HOTSPOT is very easy, you need to pass only the ABAP_TRUE ...
... the function to change of the layout, on the right side of column selection tab, you’ll notice group (or column set) filter. When you expand it, you’ll see all group names from the program.
...
... for column CITYFROM. According to OSS notes I had to also fill ROLLNAME (Data element) or DOMNAME (Domain), as they are the criteria to assign the sender value into receiver select-option (names of the ...
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 ...
... mode, you’ll not notice probably any change
When you’ll setup this incorrectly, you may have problems when you allow grid to be editable, for example:
When I’ve set the INTLEN to ‘2’ for column FLTIME, ...
... table field. But if you’ll have unstoppable need of filling it, then the behaviour of the column will be exactly the same like you would use DATATYPE field, means JUST, OUTPUTLEN, INTTYPE, INTLEN and DD_OUTLEN ...
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 ...
... use ROLLNAME, then the column description, tooltip and column short and long texts are taken from the data element.
Figure 86 ZDEMO_AIN_CL35 Results with ROLLNAME
Figure 87 ...
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. ...
... of Conversion Exits
In the example program ZDEMO_AIN_CL32 I’ve setup column CONNID to use conversion exit NUMCV. As you see you don’t put the full name of the FM into the CONVEXIT field, it only assumes ...
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 ...
... be used with the AUTHORITY-CHECK, just assume that you want to display one or two columns only to specific users that have the authorization for it ( like simple sales margin). After checking the authorization, ...
...
Figure 68 ZDEMO_AIN_CL29 hiding of columns
In this case I’ve also filled the REPTEXT column, in order to show you that it is possible to move the columns to display. If I wouldn’t do that, ...
... the values of this column, he will get the message “Desired operation cannot be performed for column”.
Figure 67 ZDEMO_AIN_CL28 Message at try of making sum of DISTANCE field
...
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 ...
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 ...
... you can see that I passed to the filed catalog CFIELDNAME as ‘CURRENCY’ which is one of the columns of table SFLIGHT, that keeps currency key for field PRICE.
Figure 19 ZDEMO_AIN_CL09 ...
QFIELDNAME has the same meaning for quantity fields, like CFIELDNAME for amount fields. This means that we can setup in which column of internal table the information about unit of measure is kept. On ...
If you want to setup current field as a key one, you need to fill KEY with ‘X’. When you’ll do this then the field will have blue background and during horizontal scrolling the column will be fixed.
...
The name of this field says almost everything about it. If you put an ‘X’ in it, then the column will be displayed as checkbox. The type of the field which is used as checkbox should be set to ABAP_BOOL ...
With this field, you can setup alignment of the column. You can use one of the following values:
R - Right,
L - Left,
C - Centre,
space – default setting for field type
...
Field catalog is one of most important tables that is used in ALV Grid. In most cases you’ll create it manually or at least after automatic creation, you’ll update its content, as most of the columns settings ...
... you decide how many rows and columns the splitter will have. So it’s like a table or even DIV in HTML where you can put your content. You can create multilevel splitters, so if you want you can split the ...