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

Making parameter fields output only dynamically

Former Member
0 Likes
1,118

Hi all!

I have four different radiobuttons in a selection screen and when some of them are chosen I want some parameter fields in the selection screen to be output only. Is that possible or do parameter fields have to be made output only in the at selection-screen output event?

Thanks

Magnus

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
597

Hi,

Check this link.

It gives u details on how to modify the elements.

Cheers

VJ

3 REPLIES 3
Read only

Former Member
0 Likes
598

Hi,

Check this link.

It gives u details on how to modify the elements.

Cheers

VJ

Read only

Laxmana_Appana_
Active Contributor
0 Likes
597

Hi,

check this code :

PARAMETERS: r1 RADIOBUTTON GROUP rad1 DEFAULT 'X',
            r2 RADIOBUTTON GROUP rad1.


PARAMETERS: TXT1(10) type c,
            TXT2(10) type c,
            TXT3(10) type c,
            TXT4(10) type c.

implement below code under AT SELECTION-SCREEN OUTPUT event.

AT SELECTION-SCREEN OUTPUT.

  • When user selects the first radio

IF r1 = 'X' .
LOOP AT SCREEN.
IF screen-name = 'TXT3' OR screen-group1 = 'TXT4'.
screen-input = '0'.
MODIFY SCREEN.
ELSEIF screen-name = 'TXT1' OR screen-group1 = 'TXT2'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

IF r2 = 'X' .
LOOP AT SCREEN.
IF screen-name = 'TXT1' OR screen-group1 = 'TXT2'.
screen-input = '0'.
MODIFY SCREEN.
ELSEIF screen-name = 'TXT3' OR screen-group1 = 'TXT4'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

Regards

Appana

*Reward Points for helpful answers

Read only

Former Member
0 Likes
597

Yes, you would be able to change the parameter to output only in the AT SELECTION-SCREEN event.

Basically you need to set the screen-input parameter to ZERO.

Regards

Anurag