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.
Showing results for 
Search instead for 
Did you mean: 

Set focus to an item of the application toolbar

Former Member
0 Kudos


In a standard Dynpro app, I have a custom GUI status.

On its application toolbar, I have some buttons/functions.

In my PAI module, is there a way for me to set the focus to a particular button/function?

What I am trying to is have a simple screen with say 2 input fields and 2 application functions on the toolbar.

I want the user to be able to

1) Type data in the 1st field

2) Press Enter to set the focus on the 2nd field

3) Type data in the 2nd field

4) Press Enter to set the focus on the 1st application toobar button/function

5) Press Enter to execute the button/function (or Tab to go to the 2nd function).

My issue is with step #4. I don't know how to get a handle on the GUI status/Application Toolbar, and how to access the inidivual functions to set them as focused.

Thanking you in advance,



Active Contributor
0 Kudos

I'm not sure if you can focus on any particular button on the GUI toolbar. but you can create a Button on the screen next to your fields and control the same way you control the Fields. Specify the User command for button and use them to handle your event in PAI.

Naimesh Patel