QUANTITY field is very similar to CURRENCY. The difference here is that you don’t keep currency key here, but unit of measure, for example M for meters or KG for kilograms. Again to show you the difference ...
Although the SAP name of this field says: “Field name of internal table field”, then I haven’t found any usage of this field. It’s also not filled by SAP when you use SALV for creating field-catalogs. ...
Round can be used for decimal fields that have no assigned QFIELDNAME or CFIELDNAME fields. Its purpose is to move decimal places left or right. If you want to move decimal places left, then you have to ...
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 ...
... how the field is displayed in ALVgrid.
For example, the picture below, shows the results of the ALV output when EXPONENT field was set to 2.
Figure 32 ZDEMON_AIN_CL13 Results with ...
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 description of this fields claims that if you put ‘X’ inside then current field will became a key field that can be hidden, but in fact it has no effect here, as standard key field can always be hidden. ...
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 ...
... 39 ZDEMO_AIN_CL17 ALV with symbols
You can check the available symbols on your system, but I doubt they vary between old and new releases.
Figure 40 Possible symbols in ALV Grid
...
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
...
This field allows manipulation of visibility of leading zeros. One of the most common example is the material number (MATNR), when there is no letter inside the name of material, it is stored in database ...
NO_SIGN can be used to hide the sign of the number. For example you have negative values but you want to display it as positive.
In order to show you the behaviour of this settings, I’ve manipulated ...
Field catalog is one of most important tables that is used in ALVGrid. 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 ...
I wrote in previous post, you can’t use this class directly without any effort. First of all, the class itself will not display anything if you’ll not create a container for it. The following containers ...
I was thinking about writing a book about ALVGrid for a long time, but there was always an excuse to not to do it. One of the biggest was that SAP is now strongly advertising Fiori and UI5 as the next ...
The ALVGrid hides inside itself possibility to use ASCII symbols. All you need to do is to mark the one of fields in field-catalog as symbol and then use constants defined in TYPE-POOL SYM in order to ...
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 ...
The latest version of each part of FALV can be found on github repository https://github.com/fidley/falv which you can use in abapGit for easier up to date handling.
There are 3 ways to make ...
The latest version of each part of FALV can be found on github repository https://github.com/fidley/falv which you can use in abapGit for easier up to date handling.
When you want to change ...
The latest version of each part of FALV can be found on github repository https://github.com/fidley/falv which you can use in abapGit for easier up to date handling.
This demos shows how to ...