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

validations

Former Member
0 Likes
741

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.

1 ACCEPTED SOLUTION
Read only

former_member673464
Active Contributor
0 Likes
719

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

7 REPLIES 7
Read only

Former Member
0 Likes
719

Use

AT SELECTOIN-SCREEN OUPUT

LOOP AT SCREEN

set attributes of SCREEN here as you wish

MODIFY SCREEN.

ENDLOOP.

Read only

Former Member
0 Likes
719

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

Read only

former_member673464
Active Contributor
0 Likes
720

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

Read only

Former Member
0 Likes
719

Hi,

Put all checkboxes in


LOOP AT SCREEN.
  SCREEN-INPUT = OFF.
  MODIFY SCREEN.
ENDLOOP.

And do it check and uncheck checkboxes.

Regards,

Nandha

Read only

0 Likes
719

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

Read only

Former Member
0 Likes
719

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....!!

Read only

0 Likes
719

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