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

Checkboxes in ALV

Former Member
0 Likes
550

Hi Experts,

     I need some help in below mentioned issue.

1. I have to add 3 columns  of check boxes in my ALV Report

2. on bases of sy-uname ckeckboxes of this columns should be enabled or disabled

3. on bases of the data in a particular field in a row, check boxes of that row should be enabled or disabled.

now,

To make columns enabled or disabled i can use field catalog.

If there is only one column of check boxes and I have to make enable or disable checkbox of a row I can use IS_LAYOUT-BOX_FIELDNAME

But, my confusion is with 3 columns how can I make enable or disable checkboxes of a row????

Please help me with this...

Thanks.

Moderator message : Not enough re-search before posting, discussion locked

Message was edited by: Vinod Kumar

Hi Experts,

     I need some help in below mentioned issue.

1. I have to add 3 columns  of check boxes in my ALV Report

2. on bases of sy-uname ckeckboxes of this columns should be enabled or disabled

3. on bases of the data in a particular field in a row, check boxes of that row should be enabled or disabled.

now,

To make columns enabled or disabled i can use field catalog.

If there is only one column of check boxes and I have to make enable or disable checkbox of a row I can use IS_LAYOUT-BOX_FIELDNAME

But, my confusion is with 3 columns how can I make enable or disable checkboxes of a row????

Please help me with this...

Thanks.

Moderator message : Not enough re-search before posting, discussion locked

Message was edited by: Vinod Kumar

2 REPLIES 2
Read only

Former Member
0 Likes
449
Read only

Former Member
0 Likes
449

hi

box fieldname will display like boxes on the left side of ALV grid. with which u can select rows of alv grid.

i guess it is not possible to disable them.

Instead use: in field catalogue:

wa_fcat-fieldname = 'MATNR'.

wa_fcat-checkbox = 'X'.

if alpha eq 1.   <-- your condition to make the records editable conditionally.

wa_fcat-edit = 'X'.

endif

append wa_fcat to it_fcat.

clear wa_fcat.

this logic will make the entire column editable or non editable.

revert back if feel some problem