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

selection screen

Former Member
0 Likes
634

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
610

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 needed

This will keep all 3 fields open for input when you trigger an error message

7 REPLIES 7
Read only

Former Member
0 Likes
610

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@

Read only

Former Member
0 Likes
610

Hi prachi s

Use the at slection screen output event and validate the each field u can achive ur requirement.

Read only

0 Likes
610

as the error message is getting displayed in event AT SELECTION-SCREEN ON <F> i cannot give AT SELECTION-SCREEN OUTPUT after that

Read only

0 Likes
610

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

Read only

Former Member
0 Likes
610

Try to put another type of message but that appears as if it was of error.

MESSAGE W006 DISPLAY LIKE 'E'.

Read only

Former Member
0 Likes
611

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 needed

This will keep all 3 fields open for input when you trigger an error message

Read only

0 Likes
610

thanks a lot......it solved the problem