2008 Jan 16 6:17 AM
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.
2008 Jan 16 6:25 AM
Hi,
Dont give it as an error message.
Give it as 'W'.
After pressing enter they can b edited.
2008 Jan 16 6:25 AM
Hi,
change your message type "E". Problem with your message type.
L.Velu
2008 Mar 12 10:10 AM
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