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

Regarding At selection-screen on Radiobutton output....

Former Member
0 Kudos
107

Hi...

This is the code I used, to check AT SELECTION-SCREEN ON RADIOBUTTON.

But, after displaying the error message,

all fields are becoming inactive in selection screen.

CODE:

TYPES : BEGIN OF st_employee,

cid TYPE zintelli_emp-cid,

cname TYPE zintelli_emp-cname,

l ocation TYPE zintelli_emp-location,

phno TYPE zintelli_emp-phno ,

gender TYPE zintelli_emp-gender,

END OF st_employee.

DATA : it_employee TYPE STANDARD TABLE OF st_employee,

wa_employee TYPE st_employee,

v_cid TYPE zintelli_emp-cid.

SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title.

PARAMETERS : p_cid TYPE st_employee-cid obligatory.

PARAMETERS : p_cname TYPE st_employee-cname,

p_culoc TYPE st_employeelocation,

p_phno TYPE st_employee-phno.

SELECTION-SCREEN SKIP 2.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(6) rc1.

PARAMETERS : rb_1 RADIOBUTTON GROUP b .

SELECTION-SCREEN COMMENT 15(7) rc2.

PARAMETERS : rb_2 RADIOBUTTON GROUP b.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN SKIP 2.

SELECTION-SCREEN PUSHBUTTON /35(10) pb1 USER-COMMAND pb1.

SELECTION-SCREEN SKIP 5.

SELECTION-SCREEN END OF SCREEN 500.

CALL SELECTION-SCREEN '500'.

INITIALIZATION.

title = 'CUSTOMER INFORMATION'.

pb1 = 'INSERT'.

rc1 = 'MALE'.

rc2 = 'FEMALE'.

AT SELECTION-SCREEN ON RADIOBUTTON GROUP b.

IF rb_1 EQ 'X'.

p_cid = p_cid+0(1).

IF p_cid NE 'M'.

MESSAGE e020(z50871msg) WITH 'The id should start with "M" '.

EXIT.

ENDIF.

ELSE.

p_cid = p_cid+0(1).

IF p_cid NE 'F'.

MESSAGE e020(z50871msg) WITH 'The id should start with "F" '.

EXIT.

ENDIF.

ENDIF.

Regards

sandeep.

3 REPLIES 3
Read only

Former Member
0 Kudos
84

Hi,

Dont give it as an error message.

Give it as 'W'.

After pressing enter they can b edited.

Read only

Former Member
0 Kudos
84

Hi,

change your message type "E". Problem with your message type.

L.Velu

Read only

Former Member
0 Kudos
84

At selection-screen on FIELD

Will give work like: If given input is wrong then it will give the Error message and all other fields will be diasable except the entered wrong on At selection-screen on FIELD.

until you give the right input it won't go for next At Selection-screen On FILED.

If you Don't want to disable other fields Use ONLY AT SELECTION-SCREEN.

Regards,

Umashankar