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 ...
... (‘X’) value to the field catalog, but this will only change the style of the field (content of the field is underlined) and it will fire the HOTSPOT_CLICK event.
Figure 114 Setting column as hotspot ...
... 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 ...
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 ...
... then although I’ve entered the value of ‘12’ into the column, system didn’t allowed me to save it.
Figure 94 Error in edit mode caused by wrong value of field INTLEN (ZDEMO_AIN_CL38) ...
... XML from bank site into internal table, which can be then used inside your code to populate values of BAPI_EXCHANGERATE_CREATE FM.
There are few ways to download the XML to your ABAP code, I ...
... If encrypted, then on the Passwords view and in the Secure Storage preferences, you'll not be able to see the stored value.
If you decide to store it with the plain text, you will see it always.
...
... the value from TOOLTIP will be used as description used to describe the column in the change layout screen.
Figure 82 ZDEMO_AIN_CL34 ABAP Code for Tooltip
Figure 83 ZDEMO_AIN_CL34 ...
...
Figure 79 ZDEMO_AIN_CL33 Column description in the layout popup
In case the TOOLTIP field is empty, the value from SELTEXT will be also used as tooltip and will appear when ...
... no more and no less than a function modules that helps to represent the internal values into understandable or more readable values. An basic example is field MATNR which is 18 characters long in ECC and ...
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 ...
... you need to set its value to ‘X’.
Figure 70 ZDEMO_AIN_CL30 Setting of Field as Technical
Such setting is very helpful when you have to store some additional values ...
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’. ...
... into the value of this field in the field catalog.
One remark, if you’re adding this setting to value or quantity field, make sure that you also fill the QFIELDNAME or CFIELDNAME to have the sum of ...
... document number. When you setup the value of this field to ‘X’, then the column(s) will be always visible. While scrolling the fields after the last field which has this flag will be moving left or right. ...
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 ...
... field
‘LL’ on the beginning of the mask means that the underscore characters of the mask (“_”) will be replaced starting from left side, for example mask ‘LL__:__’ for value 123 will be ...
... layouts, so then the grid looks always the same for them. Personally I leave this almost always empty, but if needed just simply use INTEGER values to setup correct sorting. The demo program that can be ...
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 ...
... in SE16
Now to see the differences, please run program ZDEMO_AIN_CL10 using following units: PMR, DEG, M & empty.
Figure 22 displays the values with three decimal places as PMR is setup to ...
... changed.
Figure 29 ZDEMO_AIN_CL12 Results using 0 as P_ROUND value
Now the same program is run with 3 that is inserted into ROUND. You can notice that instead of 2 571,25 ...
... with P_EXP parameter value set to 2
On next picture the results of the ALV output when EXPONENT field was set to 3.
Figure 33 ZDEMO_AIN_CL13 Results with P_EXP parameter ...
If you want to display an icon inside the cell, then you need to setup a value of this field to ‘X’ and additionally you need to put an icon from type-pool ICON into the corresponding field of your internal ...
... fieldcatalog value for field SYMBOL to ‘X’ and in the corresponding field of your internal table, you have put the value of the symbol. The corresponding field should be CHAR1 field.
...
... or any other CHAR(1) type.
If you use editable grid then once the checkbox is checked, the cell of the table behind it will be filled with value ‘X’.
Figure 41 ZDEMO_AIN_CL18 ...