05-31-2007 4:48 AM
Hi Friends,
I want to enable one filed as input field in ALV and i want to catch that modified value into internal table also.
Thanks in advance.
Murali Krishna K
05-31-2007 4:53 AM
Hi Murali ,
To make the feild editable , you need to modify the corresponding entty in the feild cataog , there is a feild called EDIT , which needs to be set.
Regarding reading the value it depends on how you are implementing the ALV , using FM or Abap Objects.
Regadrs
Arun
05-31-2007 4:50 AM
chk my blog and
checkbox is made editable here
/people/community.user/blog/2007/01/10/displaychange-mode-of-editable-fields-in-alv-using-function-modules-but-not-custom-containers
also read the comments
05-31-2007 4:53 AM
Hi Murali ,
To make the feild editable , you need to modify the corresponding entty in the feild cataog , there is a feild called EDIT , which needs to be set.
Regarding reading the value it depends on how you are implementing the ALV , using FM or Abap Objects.
Regadrs
Arun
05-31-2007 4:54 AM
Hi,
In the field catalog for that column have INPUT = 'X' and EDIT ='X'..
To get the data from the ALV grid to the internal table..use the following code ..
FORM ..
Data ref type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref.
call method ref1->check_changed_data.
ENDFORM.
Thanks,
Naren
05-31-2007 5:02 AM
Hi Narendran,
Thanks for you response.
Can you pls explan..
what the following functions will do exactly.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref.
call method ref1->check_changed_data.
will update internal table without specifying internal table.
05-31-2007 5:06 AM
you have to write that in USER_COMMAND subroutine
call function 'REUSE_ALV_GRID.....'
EXPORTING
I_CALLBACK_USERCOMMAND = <b>'USER_COMMAND'</b>
FORM <b>USER_COMMAND</b> using p_ucomm like sy-ucomm.........
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data.
CASE p_UCOMM.
WHEN 'SAVE'.
ENDCASE.
ENDFORM.
05-31-2007 5:08 AM
Hi,
yes..I believe it will update the internal table..
Thanks,
Naren