From 12f972d9ac617df9e30ec682c27a999cffcc35b9 Mon Sep 17 00:00:00 2001 From: fidley Date: Mon, 27 Feb 2017 21:13:10 +0100 Subject: [PATCH] Mass replace Issue #38 --- CODE/zcl_falv.clas.abap | 2 +- CODE/zfalv.fugr.z_falv_mass_replace.abap | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CODE/zcl_falv.clas.abap b/CODE/zcl_falv.clas.abap index 92255dc..c590396 100644 --- a/CODE/zcl_falv.clas.abap +++ b/CODE/zcl_falv.clas.abap @@ -28,7 +28,7 @@ class zcl_falv definition end of t_email . types: tt_email type table of t_email . - constants version type string value '740.1.0.13' ##NO_TEXT. + constants version type string value '740.1.0.14' ##NO_TEXT. constants cc_name type char30 value 'CC_GRID' ##NO_TEXT. constants c_screen_popup type sy-dynnr value '0200' ##NO_TEXT. constants c_screen_full type sy-dynnr value '0100' ##NO_TEXT. diff --git a/CODE/zfalv.fugr.z_falv_mass_replace.abap b/CODE/zfalv.fugr.z_falv_mass_replace.abap index 1eff931..0acffcf 100644 --- a/CODE/zfalv.fugr.z_falv_mass_replace.abap +++ b/CODE/zfalv.fugr.z_falv_mass_replace.abap @@ -1,13 +1,11 @@ FUNCTION Z_FALV_MASS_REPLACE. -*"-------------------------------------------------------------------- +*"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING -*" REFERENCE(IO_GRID) TYPE REF TO CL_GUI_ALV_GRID +*" REFERENCE(IO_GRID) TYPE REF TO CL_GUI_ALV_GRID *" CHANGING *" REFERENCE(CT_OUTTAB) TYPE STANDARD TABLE -*"-------------------------------------------------------------------- -. - +*"---------------------------------------------------------------------- data: ft_rsparams type rsparams_tt. data: f_lines type i. data: f_num(2) type n. @@ -16,6 +14,7 @@ FUNCTION Z_FALV_MASS_REPLACE. data: f_changed type flag. data: f_tabix type i. data: f_space like line of ft_rsparams. + field-symbols: like line of ft_rsparams. field-symbols: like line of ft_rsparams. field-symbols: like line of ft_rsparams. @@ -185,7 +184,8 @@ FUNCTION Z_FALV_MASS_REPLACE. endif. endif. - = -low. + " = -low. "direct assignment not needed and may be dangerous if some + "rules are set in the events like data_change clear fs_delta. fs_delta-fieldname = -fieldname. fs_delta-row_id = f_row.