Application Development 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: 

Radio button on selection screen event issue.

former_member297642
Participant
0 Kudos

Hi all,

I have two radio buttons and two input mandatory fields on selection screen.

- If first radio button selected then some value 'ABC' should fill in second input field.(because it is a mandatory field)

- If second radio button selected then some value 'XYZ' should fill in first input field..(because it is a mandatory field)

If suppose, user deletes first input value (ABC) and selects second Radio then, ABC to automatically display on first input field as this is mandatory. Same like,If he deletes second input field value and selects first radio, it should display XYZ in second input field. (As these fields are mandatory and requires some value).

I tried with below code, but not working. Appreciate your quick response.

PARAMETER ppart RADIOBUTTON GROUP src DEFAULT 'X'.

SELECT-OPTIONS p_sndprn FOR edoc_stat-sndprn OBLIGATORY DEFAULT 'ABC'.

PARAMETER psndr RADIOBUTTON GROUP src.

SELECT-OPTIONS p_sendid FOR zabc-sndlad OBLIGATORY DEFAULT 'XYZ'.

AT SELECTION-SCREEN ON RADIOBUTTON GROUP src.

IF SSCRFIELDS-UCOMM = 'PRGP'.

IF ppart EQ 'X'.

P_SENDID-LOW = 'XYZ'.

ELSE.

P_SNDPRN-LOW = 'ABC'.

ENDIF.

ENDIF.

Thanks,

Ranjith.

1 REPLY 1

Former Member
0 Kudos

Search the forum... don't make fields obligatory and use event AT SELECTION-SCREEN OUTPUT.