Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Radio Buttons + Required Input/Output Fields in Dialog Programming

Hi All,

Please find the below issue.

I have 2 Radio buttons

RB1 and RB2 defined in group RG.

And by default RB1 is selected.

I also have 3 Input.Output Fields.

F1 , F2 & F3.

Now before displaying the Screen for the end user,

I need to display as follows:

A)

RB1 = X -


> Selected.

RB2 = Space -


>Not Selected.

F1 -


> Visible.

F2 & F3 -


>Invisible.

***********************************************

B)

RB1 = space -


> Not Selected.

RB2 = X -


>Selected.

F1 -


>Invisible.

F2 -


>Visible.

F3 -


>Visible.

When i am debugging, the value of RB1 is not X though it is selected on the screen (by default due to Radio Button Group) & hence the below code is not working.

*_PBO:_*
LOOP AT SCREEN.
IF RB1 = 'X' AND ( SCREEN-NAME = 'TXT2' OR SCREEN-NAME = 'TXT3' ). 
         SCREEN-INVISIBLE = 1.
ELSEIF RB1 = 'X' AND ( SCREEN-NAME = 'F2' OR SCREEN-NAME = 'F3 ). 
         SCREEN-ACTIVE = 0.
ENDIF.
Modify Screen.
ENDLOOP.

But when i select RB2 = X on the screen.

Value is getting populated .

.

Waiting for your hints/ideas/suggestions

Thanks

Sri.

Former Member
Not what you were looking for? View more on this topic or Ask a question