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: 

selection screen

Former Member
0 Kudos

Hi Experts,

I am doing validation for selection screen fields.if any wrong entry made to any filed i will display error message.Up to this it is working fine.But after displaying error message i want to place the cursor in the same field.How can we do that?

Regards

1 ACCEPTED SOLUTION

abdulazeez12
Active Contributor
0 Kudos

Use AT SELECTION-SCREEN ON <fieldname>.

write ur validation code within this event..

5 REPLIES 5

abdulazeez12
Active Contributor
0 Kudos

Use AT SELECTION-SCREEN ON <fieldname>.

write ur validation code within this event..

Former Member
0 Kudos

hi,

If it is an error message then that will not go back to the transaction which will be reset convert it to the information message.

Regards,

Himanshu Verma

raymond_giuseppi
Active Contributor
0 Kudos

Two ways:

You can use AT SELECTION-SCREEN ON <field> or <block>, if you issue an error message the cursor will be on the field, or first field of block.

If generic AT SELECTION-SCREEN. is used, use instruction SET CURSOR <field>.

Regards

Former Member
0 Kudos

Hi,

You can use the SET CURSOR fieldname statement.

Thanks,

Muthu.

Former Member
0 Kudos

use at selection screen on field in conjunction with setcursor ...................it will work