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: 

How to make an checkbox editable and uneditable within a single alv output.

Former Member
0 Kudos

Hi,

How to make an checkbox editable and uneditable within a single alv output depending on condition.

I have used Reuse_alv_grid_display.

In my output every checkbox is editable. i have used edit = 'X'.

I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv

4 REPLIES 4

Former Member
0 Kudos

well you need two fields in your output table then. in PBO set value of field 2 = value of field 1.

then you got two fields and can make one editable and one not.

Former Member
0 Kudos

loop the final output table

if record is correct,, set edit = 'X'

and modify the internal table

endloop

Former Member
0 Kudos

>

> I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv

Use alv styles to achieve this, set the style for each record before displaying the ALV. Structure LVC_S_STYL.

Take a look at the example BCALV_EDIT_02, it is OOPS based, but check how the style table is filled.

regards,

Advait

Former Member
0 Kudos

Hi Lakshmi,

will u be able to explain briefly?