10-09-2007 7:36 AM
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
10-09-2007 7:38 AM
Use AT SELECTION-SCREEN ON <fieldname>.
write ur validation code within this event..
10-09-2007 7:38 AM
Use AT SELECTION-SCREEN ON <fieldname>.
write ur validation code within this event..
10-09-2007 7:39 AM
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
10-09-2007 7:39 AM
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
10-09-2007 7:40 AM
10-09-2007 7:43 AM
use at selection screen on field in conjunction with setcursor ...................it will work