2007 Mar 29 9:53 AM
Hi All,
In my internal table i have check box fileld when i display the report should display by default all the check boxes should be selected. how to do this.
Thanks.
Ramu.
in the list he deselect some records. how to delete the check box value for deseleted records.
Thanks.
Ramu.
2007 Mar 29 9:54 AM
Hi...,
while declaration itself u give them initial values.. as 'X'.
like
<b>data
begin of itab occurs 0,
field1 type c value 'X',
field2 type i,
field3 type i,
end of itab.
and when u populate the table also , u can pass this value..</b>
Check this sample code..
******************************************
data :
begin of itab occurs 0,
field1 type c value 'X',
field2 type i,
field3 type i,
end of itab.
do 5 times.
<i>(** u can add this also itab-field1 = 'X'.**)</i>
itab-field2 = sy-index.
itab-field3 = sy-index ** 2.
append itab.
enddo.
loop at itab.
write : / itab-field1 as checkbox,
itab-field2, itab-field3.
endloop.
************************************
reward all helpful answers,,
sai ramesh
2007 Mar 29 9:55 AM
hi,
modify the check box field value in the internal table to 'X' before displaying.
2007 Mar 29 10:08 AM
Hi ,
am getting all selected check boxes. in that list user can deselect some checkboxes how to capture this un selected and selected ones.
Please help.
Thanks&Regards.
Ramu
2007 Mar 29 9:57 AM
THE SYNTAX FOR THIS IS
LOOP AT ITAB.
ITAB-CHKBOX ='X'.
MODIFY ITAB.
ENDLOOP.
REGARDS
NAVJOT
REWARD POINTS
2007 Mar 29 10:13 AM
hi,
u can read the check box value on the list by using the <b>read line</b> statement.
READ LINE LW_LINENO
FIELD VALUE W_CHECKBOX INTO W_CHECKBOX
2007 Mar 29 10:21 AM
in the list he deselect some records. how to delete the check box value for deseleted records.
Thanks.
Ramu.
2007 Mar 29 10:24 AM
at user-command.
case sy-ucomm.
when 'DESL'.
loop at itab.
itab-chk = ''.
modify itab.
endloop.
endcase.
regards
shiba dutta
2007 Mar 29 10:25 AM
Value of the deselected check boxes will be ' ' and for selected boxes it will be 'X',
so, no need to delete the value, just u have to read the check box value from the list for further processing
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |