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

loop at screen

Former Member
0 Likes
798

hi genius

i have a following requirement in report

parameter - input

1)radiobutton 1

2)radiobutton 2

3)radiobutton 3

if i am not giving any input to the parameter and excecute

the progrm the following radiobutton gets disabled but my requirement is if i am not giving any input and excute the program the following radiobutton should be enabled.

how to do that using loop at screen or any other ways are there

please give a soloutin

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
764
7 REPLIES 7
Read only

former_member189629
Active Contributor
0 Likes
764

Hi Thangaraj,

Try giving default 'X' to the radiobutton you want enabled.

Pl Reward if it helps

K

Read only

Former Member
0 Likes
764

Hello,

First declare all the radio buttons under the group and by default make any one of the radio button as selected.

Here is the code for enabling the controls,

LOOP AT SCREEN.

SCREEN-INPUT = 1.

MODIFY SCREEN.

ENDLOOP.

Read only

Former Member
0 Likes
764

Here you go.

LOOP AT SCREEN.

if ...

radiobutton1-active = ''.

elseif...

radiobutton2-active = ''.

else..

radiobutton3-active = ''.

endif.

MODIFY screen.

ENDLOOP .

Message was edited by: ong rukawaw

Read only

Former Member
0 Likes
765
Read only

Former Member
0 Likes
764
Parameters: kishan1(15) ,
            rd1 RADIOBUTTON group g1 default 'X' MODIF ID ID1 ,
            rd2 RADIOBUTTON group g1 MODIF ID ID2 ,
            rd3 RADIOBUTTON group g1 MODIF ID ID3.



AT SELECTION-SCREEN output.
IF kishan1 = ''.

LOOP AT SCREEN.
IF screen-group1 = 'ID1' OR screen-group1 = 'ID2' OR screen-group1 = 'ID3' .
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.

ENDIF.
Read only

Former Member
0 Likes
764

hello,

parameters p1 radiobutton group gr1 default 'X',

p2 radiobutton group gr1,

p3 radiobutton group gr1.

at selection-screen output.

loop at screen.

if screen-group1 = 'GR1'.

if screen-name1 ne 'P1' or screen-name1 ne 'P2' or

screen-name1 ne 'P3'.

screen-input = 0.

modify screen.

endif.

endloop.

Read only

shishupalreddy
Active Contributor
0 Likes
764

Use User-command ucomm

for ex:

PARAMETERS : R1 RADIOBUTTON GROUP G1 USER-COMMAND UCOMM MODIF ID ID1,

R2 RADIOBUTTON GROUP G1 MODIF ID ID2,

R3 RADIOBUTTON GROUP G1 MODIF ID ID3.

nOW give the respective conditions accrding to your requirement in AT SELECTION-SCREEN OUTPUT

LOOP AT SCREEN.

-


NODIFY SCREEN.

ENDLOOP.

HOPE IT WILL HELP YOU