‎2007 May 11 11:25 AM
Hi,
I have one issue like I have 2 readio buttons one is select all radio button and another is individual select radio button.
If i select select all radio button then all the check boxes has to check which will belongs to that box frame.
if I select individual select button then all selected check boxes has to uncheck.
Can any one explain me how i can achive this.
‎2007 May 11 11:32 AM
hi..
Try this code
if radio1 = 'x'.
loop at t_spfli into fs_spfli.
fs_spfli-box = 'x'.
modify t_spfli from fs_spfli transporting box.
endloop.
else.
loop at t_spfli into fs_spfli.
fs_spfli-box = ' '.
modify t_spfli from fs_spfli transporting box.
endloop.
endif.
regards,
veeresh
‎2007 May 11 11:30 AM
Use
AT SELECTOIN-SCREEN OUPUT
LOOP AT SCREEN
set attributes of SCREEN here as you wish
MODIFY SCREEN.
ENDLOOP.
‎2007 May 11 11:32 AM
Hi kanth,
You need to group all check boxes in a group.
You need to handle this group in AT SELECTION-SCREEN OUTPUT wherein you need to check condition:
loop at screen.
if screen-group1 = <groupname>
if firstradio = 'x'.
.
Logic
.
else if secondradio = 'x'.
.
Logic
.
endif.
endif.
endloop.
Reward points.
Younus
‎2007 May 11 11:32 AM
hi..
Try this code
if radio1 = 'x'.
loop at t_spfli into fs_spfli.
fs_spfli-box = 'x'.
modify t_spfli from fs_spfli transporting box.
endloop.
else.
loop at t_spfli into fs_spfli.
fs_spfli-box = ' '.
modify t_spfli from fs_spfli transporting box.
endloop.
endif.
regards,
veeresh
‎2007 May 11 11:35 AM
Hi,
Put all checkboxes in
LOOP AT SCREEN.
SCREEN-INPUT = OFF.
MODIFY SCREEN.
ENDLOOP.
And do it check and uncheck checkboxes.
Regards,
Nandha
‎2007 May 11 12:02 PM
Go through these ttwo programs
Selection Screen Events - 'demo_selection_screen_events'
PBO of selection Screen - 'demo_at_selection_screen_pbo'
<u><b>Award if useful</b></u>
Sudheer
‎2007 May 14 11:19 AM
Hi Kan
You use this following code for your requirement in your report.
LOOP AT itab_final.
CASE RAD1.
WHEN RAD1 = 'X'.
chk1 = ' X '.
WHEN RAD2 = 'X'.
chk1 = ' '.
ENDCASE.
APPEND itab_final.
REWARD IT....!!
‎2007 May 14 1:12 PM
Hi,
U need to <b>award points to all the useful replies</b> and also u need to mark it as aswered if ur problem is solved.
Sudheer