"! This is demo for FALV with error log
"! done by Lukasz Pegiel for http://abapblog.com
report zdemo_falv12.
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
into corresponding fields of table @sflight
from sflight.
"FALV creation with only table passed
if p_embeed eq abap_true.
data(falv) = zcl_falv=>create( exporting i_applog_embedded = abap_true changing ct_table = sflight ).
else.
falv = zcl_falv=>create( changing ct_table = sflight ).
endif.
"Add title variable
falv->title_v1 = 'ZDEMO_FALV12'.
"set whole grid editable
falv->layout->set_edit( abap_true ).
"Change grid to edit mode
falv->set_editable( iv_modify = abap_true ).
"Display full screen grid
falv->display( ).
ZDEMO_FALV12 - Error log
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.
In standard ALV when you don't pass a container for a log then a popup with errors appears when you enter wrong data to cell. FALV allows you to use built-in split container which will show errors only when they appear and directly when the errors are gone, also container of errors is hidden. Check out the video.
Video with demo result