Application Development and Automation 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: 
Read only

Editable ALV GRID

Former Member
0 Likes
865

Hi Experts,

I want code of an editable ALV GRID.

Please help.

Regards,

Jeetu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
590

Hello jeetu,

use this code:

  • Set field editable

***

method set_alv_fieldedit.

data: l_field type fieldname,

l_edit type c,

ls_fcat type slis_fieldcat_alv.

l_field = in_field.

if in_edit is supplied.

l_edit = in_edit.

else.

l_edit = 'X'.

endif.

loop at me->gt_fcat into ls_fcat

where fieldname = l_field.

ls_fcat-edit = l_edit.

modify gt_fcat from ls_fcat transporting edit.

endloop.

endmethod. "set_alv_fieldedit

egards,

keerthi.

Hi Experts,

I want code of an editable ALV GRID.

Please help.

Regards,

Jeetu

4 REPLIES 4
Read only

Former Member
0 Likes
590

HI

check the demo programs BCALV_FULLSCREEN_GRID_EDIT

BCALV_GRID_EDIT

BCALV_TEST_GRID_EDIT_01

BCALV_TEST_GRID_EDITABLE

hope this helps,

do reward if it helps,

priya.

Read only

Former Member
0 Likes
590

Check the following example they may help u

BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.

BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.

Regards

Read only

hymavathi_oruganti
Active Contributor
0 Likes
590

in the layout,

there is a property called <b>edit</b>, make it 'X' for the particular field.

Read only

Former Member
0 Likes
591

Hello jeetu,

use this code:

  • Set field editable

***

method set_alv_fieldedit.

data: l_field type fieldname,

l_edit type c,

ls_fcat type slis_fieldcat_alv.

l_field = in_field.

if in_edit is supplied.

l_edit = in_edit.

else.

l_edit = 'X'.

endif.

loop at me->gt_fcat into ls_fcat

where fieldname = l_field.

ls_fcat-edit = l_edit.

modify gt_fcat from ls_fcat transporting edit.

endloop.

endmethod. "set_alv_fieldedit

egards,

keerthi.