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 ...
... filled
As data in this table didn’t contained a line with JPY, I’ve changed in SE16 the currency key for one of the rows in order to show you the difference in output.
Figure 20 Changed ...
... situation you can see if you use meters. No decimal places are visible in the rows for which the value doesn’t have any decimals, but if it’s the case then the full value is displayed.
Figure ...
... table. The corresponding field should be an CHAR4 field. You can use of course the domain ICON_D as well. In my example I’ve filled all rows with the same icon (ICON_ABAP) during the selection of data ...
... needs a custom container as a parent in order to work. It is used to divide the screen area into several containers. To simplify, you decide how many rows and columns the splitter will have. So it’s like ...
...
data: handler_added type abap_bool.
endclass.
class lcl_grid_trick implementation.
method create_salv.
select * up to 100 rows into corresponding fields of table @spfli
from spfli. ...
...
If you pass 'X' here then grid will be displayed in split container with two rows, bottom row will be used to show error log if error will appear
I_POPUP
If you want FALV to show ...
...
report zdemo_falv14.
data: sflight type standard table of sflight.
parameters: p_defau radiobutton group gr1 default 'X',
p_set radiobutton group gr1,
p_rowst type i, ...
...
report zdemo_falv13.
types: begin of t_sflight.
include type sflight.
types: style type lvc_t_styl,
end of t_sflight.
data: sflight type standard table of t_sflight.
select * up to 100 rows into corresponding fields of table @sflight ...
...
data: sflight type standard table of sflight.
parameters: p_embeed radiobutton group gr1 default 'X',
p_notemb radiobutton group gr1.
start-of-selection.
select * up to 100 rows ...
...
start-of-selection.
select * up to 100 rows
into corresponding fields of table @sflight
from sflight.
"FALV creation with only table passed
data(falv) = zcl_falv=>create( changing ct_table = sflight ). ...
... set colors for cells, rows and columns using FALV
"! This is demo for FALV full screen with color settings
"! done by Lukasz Pegiel for http://abapblog.com
report zdemo_falv10.
types: begin of t_sflight. ...
...
select * up to 100 rows
into corresponding fields of table @sflight
from sflight.
"creation of falv with local redefinition
data falv type ref to lcl_test.
falv ?= lcl_test=>create( exporting i_subclass = cl_abap_classdescr=>describe_by_name( p_name = 'LCL_TEST' ) ...
...
report zdemo_falv08.
data: sflight type standard table of sflight.
start-of-selection.
select * up to 100 rows
into corresponding fields of table @sflight
from sflight. ...
...
report zdemo_falv07.
data: sflight type standard table of sflight.
start-of-selection.
select * up to 100 rows
into corresponding fields of table @sflight
from sflight. ...
...
include type sflight.
types: end of t_sflight.
data: sflight type standard table of t_sflight.
parameter: p_usemar as checkbox.
start-of-selection.
select * up to 100 rows ...
...
report zdemo_falv01.
data: sflight type standard table of sflight.
start-of-selection.
select * up to 100 rows
into corresponding fields of table @sflight
from sflight. ...
... a program which selects 100 materials from MARA and displays them using CL_GUI_ALV_GRID. Then when it's done ask to change some columns to editable. Then to change some colors for the rows and columns. ...
...
p_show radiobutton group gr1 default 'X'.
start-of-selection.
select * up to 50000 rows
into corresponding fields of table gt_sbook
from sbook.
if p_supp eq abap_true. ...
...
data: f_num(2) type n.
data: f_index type i.
data: f_field type string.
data: f_changed type flag.
data: f_tabix type i.
data: ft_filtered type lvc_t_fidx.
data: ft_selected_rows type lvc_t_roid. ...
...
parameters: p_path type localfile lower case modif id exc.
parameters: p_rows type i modif id exc.
selection-screen end of block exc.
selection-screen begin of block oth with frame title text-oth. ...
...
rows type epsssrows,
vendor_name type mepo_vendor,
grtxt like t157e-grtxt,
xabln like mkpf-xabln,
bldat type mkpf-bldat,
end of t_alv. Selection-options ...
It may happen that you'll need to do select or loop on a base of the field which is kept in lower case, but you don't know exactly what's the value o field. In such case you may want to build ...
... values in given characteristic and then throws an update screen. After exiting from the screen it's saving data to database. program zab_classifications_popup.
*--------------------------------------------------------------------* ...