2012 May 18 5:10 AM
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
2012 May 18 5:24 AM
2012 May 18 5:42 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |