Skip to Content
0
Former Member
Jul 22, 2005 at 11:22 AM

How to Edit the CheckBox in Classic ALV GRID Display

127 Views

Hi,

I want to Edit the checkbox in Grid Display.

I have one checkbox field in my internal Table,

Code Of the Program,

Data :

Begin of itab occurs 0,

CHK type C,

MATNR like MARA-MATNR,

end of itab.

Iam building the fieldcatelog using Merge Funcion module.

After that I am chaning the properties of the field

catelog like below,

loop at I_FCAT assigning <FCAT>.

Case <FCAT>-Fieldname

When 'CHK'.

<FCAT>-Checkbox = 'X'.

<FCAT>-INPUT = 'X'.

  • I dont have edit option in fieldcatelog.

modify I_FCAT from <FCAT>.

endcase.

endloop.

In the Layout,

I_LAYOUT-box_fieldname = 'CHK'.

I_LAYOUT-box_tabname = 'ITAB'.

It is displaying the Checkbox field.but I couldnt edit the checkBox.

I can able to edit in REUSE_ALV_LIST_DISPLAY.

But I have to use REUSE_ALV_GRID_DISPLAY.How to edit the checkbox.

Thanks in Advance,

Sumithra