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: 

Tab Order Control on Custom Screens

Former Member
0 Kudos

Does anyone know how to set the tab stops on a custom screen? I would like to change the order of where the cursor goes when I hit the tab key.

7 REPLIES 7

nablan_umar
Active Contributor
0 Kudos

Jason,

I don't think this is possible. Moving cursor within fields when we hit Tab key is not controlled by Abap.

Former Member
0 Kudos

Hi,

I think you can not control the cursor using TAB key.

But you can position the cursor using SET CURSOR FIELD XXX

Prabhu Rajesh.

0 Kudos

Hi

So it seems a poor solution to code your own function to navigate screen elements utilizing a counter variable and the statement "SET CURSOR FIELD X" told by Prabhu.

e.g.

Our new function code: 'NAVFLD' assigned to some F-key.

*--PAI

*User commands

MODULE user_command_100 .

*...

MODULE user_command_100 INPUT .

CASE gv_okcode_100 .

*...

WHEN 'NAVFLD' .

case gv_navigation_counter .

WHEN gc_tabstop_x . " = 1

SET CURSOR FIELD X .

WHEN gc_tabstop_y . " = 2

SET CURSOR FIELD Y .

*...

ENDCASE .

ENDCASE .

ENDMODULE .

P.S. : Code may be revised for some other issues not in context of this issue.

Hope this works...

*--Serdar

0 Kudos

Be warned! Doing this will add a lot of load to your system, as every event is in fact a dialog step!

I am busy having to implement the same solution for our company. What I will be doing is to define a table with two fields, the field name and an indicator to tell whether the field exists in a table control), so that on every PAI event, when the user presses Enter, it reads the next entry in the table to determine where the cursor should be set. (The indicator will tell whether to try loop to the next entry in the table control, until it has reached the last entry, when it starts at the top again).

I am trying to discourage them, however from doing this due to the load issue, but rather to teach the users to press 'Tab' a couple more times.

brad_bohn
Active Contributor
0 Kudos

The easiest thing is just to order the fields on the screen from left to right, top to bottom in the order that the users want to tab. If the users can't accept that or it doesn't make sense aesthetically, then tell the users they can't tab in the order they want.

Don't implement a custom, system-intensive solution for such a simple requirement.

0 Kudos

Hi

It is obvious that offered solutions are superfluous for this requirement. But sometimes, customers are so pertinacious that you can't persuade them about those.

*--Serdar

Former Member
0 Kudos

Hi Jason,

Just Press Ctrl + right click and select 'Local Tab order:From Element' and then again Press Ctrl + right click on Another filed and select 'Local Tab order:To Element'. Tab Order will get changed, it is machine dependent. Tab order file get stored on  local machine you can see the file path in GUI option > Local data.

Regards,

Avadhut Terde.