Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Input enabling one field in ALV

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

Hi,

yes..I believe it will update the internal table..

Thanks,

Naren