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

Module pool

Former Member
0 Likes
579

Hi,

I have 3 text boxes and 2 text areas.When the screen opens as soon as when we give t.code it will point the cursor in the first text box.When i press the tab means it will go to the next text box.

But after it reaching the 3rd text box.It is pointing to the text area.But i need a short cut key which will take the cursor to the next text area.

How to do this.Please help me to solve this

4 REPLIES 4
Read only

Former Member
0 Likes
538

use SET CURSOR FIELD 'T001W-WERKS'

Read only

Former Member
0 Likes
538

Hi,

To set the cursor position dynamically, use the following statement in an ABAP dialog module in

the PBO event:

SET CURSOR FIELD <f> [OFFSET <off>].

<f> can be a literal or a variable containing the name of a screen element. You can use the

OFFSET addition to place the cursor at a particular point within an input/output field.

Regards

Abhinab Mishra.

Read only

Former Member
0 Likes
538

Hi Ramya,

Check the code in this thread. it might be useful.

Sachin

Read only

Former Member
0 Likes
538

Hi Ramya,

This is a frequently encountered problem and SAP has given various events ex for setting the cursor position dynamically, we have

SET CURSOR FIELD <screen_element> [OFFSET <offset>].

in the PBO field since it gets triggered before any user interaction.

<screen_element> is either a literal or a variable having the name of a screen element.

For ex: if you want to place the cursor at a point w r t an i/p or o/p field

we use <offset> .

Thanks and Regards

Srikanth.P.