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
647

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
Read only

abdulazeez12
Active Contributor
0 Likes
616

Use AT SELECTION-SCREEN ON <fieldname>.

write ur validation code within this event..

5 REPLIES 5
Read only

abdulazeez12
Active Contributor
0 Likes
617

Use AT SELECTION-SCREEN ON <fieldname>.

write ur validation code within this event..

Read only

Former Member
0 Likes
616

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
616

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

Read only

Former Member
0 Likes
616

Hi,

You can use the SET CURSOR fieldname statement.

Thanks,

Muthu.

Read only

Former Member
0 Likes
616

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