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

Looping at Screen logic pls...

Former Member
0 Likes
451

Hi All,

I have 3 radio buttons like: Radio 1, Radio 2, Radio 3 And Path1 is parameter. All the 3 Radio buttons are in one block and path1 is in different block, now the requirement is when I select radio1 or radio2 path1 should disable and when I select radio3 path1 should enable.

Let me know the logic pls…

Akshitha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
431

Hi,

Use this logic.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.

PARAMETERS: rad1 RADIOBUTTON GROUP radi USER-COMMAND ch,

rad2 RADIOBUTTON GROUP radi,

rad3 RADIOBUTTON GROUP radi.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.

PARAMETERS: path(150) MODIF ID id1.

SELECTION-SCREEN END OF BLOCK b3.

AT SELECTION-SCREEN OUTPUT.

IF rad3 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'ID1' .

screen-active = '1'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ELSE.

LOOP AT SCREEN.

IF screen-group1 = 'ID1' .

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

I hope it will be useful to u...

Regards,

Aparna.

Hi All,

I have 3 radio buttons like: Radio 1, Radio 2, Radio 3 And Path1 is parameter. All the 3 Radio buttons are in one block and path1 is in different block, now the requirement is when I select radio1 or radio2 path1 should disable and when I select radio3 path1 should enable.

Let me know the logic pls…

Akshitha.

2 REPLIES 2
Read only

Former Member
0 Likes
432

Hi,

Use this logic.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.

PARAMETERS: rad1 RADIOBUTTON GROUP radi USER-COMMAND ch,

rad2 RADIOBUTTON GROUP radi,

rad3 RADIOBUTTON GROUP radi.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.

PARAMETERS: path(150) MODIF ID id1.

SELECTION-SCREEN END OF BLOCK b3.

AT SELECTION-SCREEN OUTPUT.

IF rad3 = 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'ID1' .

screen-active = '1'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ELSE.

LOOP AT SCREEN.

IF screen-group1 = 'ID1' .

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

I hope it will be useful to u...

Regards,

Aparna.

Read only

Former Member
0 Likes
431

Hi,

in the AT SELECTION SCREEN OUTPUT write like this


at selection screen output.

if radio3 eq 'X'.

   w_flag = 'x'.

else.

  clear w_flag.

endif.

if w_flag is not initial.

  loop at screen.

   if screen-name cp 'path'.

     screen-invisible = '1'.
  modifyscreen.

endif.


adn inthe at selection screen write like this.

 at selection screen.
  
if radio3 is initial.
 clear w_flag.
endif.

hope i am clear to u..

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:31 PM