‎2008 Nov 03 10:46 AM
hi,
i have three fields on selection screen.if i enter wrong entry in third field it gives err message and other two fields gets disabled.
my requirement is after the err message displays i want other two fields to get enabled for input.
‎2008 Nov 03 10:53 AM
Use a BLOCK definition.
SELECTION-SCREEN BEGIN OF BLOCK B00.
parameters: field1,
field2,
field3.
SELECTION-SCREEN END OF BLOCK B00.
AT SELECTION-SCREEN ON BLOCK B00.
* Do your validation here and issue message when neededThis will keep all 3 fields open for input when you trigger an error message
‎2008 Nov 03 10:50 AM
Hi Prachi,
In which way you have coded for making the first 2 fields disable make chnage the code within the loop of screen with screen-active = 1.
You are saying like if first2 inputs are wrong error msg is triggered and fields r disabled immediately how it can be able there should be some action in between this process right.
Cheers!!
VEnk@
‎2008 Nov 03 10:50 AM
Hi prachi s
Use the at slection screen output event and validate the each field u can achive ur requirement.
‎2008 Nov 03 10:53 AM
as the error message is getting displayed in event AT SELECTION-SCREEN ON <F> i cannot give AT SELECTION-SCREEN OUTPUT after that
‎2008 Nov 03 11:02 AM
Hi Prachi,
One thing you could do is create a success message instead of error message for that field and then set the cursor position on that (error) field in 'AT SELECTION-SCREEN OUTPUT'.
Regards,
Saba
‎2008 Nov 03 10:51 AM
Try to put another type of message but that appears as if it was of error.
MESSAGE W006 DISPLAY LIKE 'E'.
‎2008 Nov 03 10:53 AM
Use a BLOCK definition.
SELECTION-SCREEN BEGIN OF BLOCK B00.
parameters: field1,
field2,
field3.
SELECTION-SCREEN END OF BLOCK B00.
AT SELECTION-SCREEN ON BLOCK B00.
* Do your validation here and issue message when neededThis will keep all 3 fields open for input when you trigger an error message
‎2008 Nov 03 11:02 AM