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

Set default focus on pushbutton (dynpro not ALV)

benno_zentriegen
Explorer
0 Likes
1,071

Dear all

I created a popup showing a table control and 2 buttons (confirm / abort).

The user simply wants to push the confirm button to proceed by pressing enter but unfortunatly I see no way to set the focus on that element by default.

Any help is appreciated.

Thank's in advance and best regards

Benno

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
709

Use this in PBO:


* BUT_CONF is the button for the Confirm
SET CURSOR FIELD 'BUT_CONF'

Regards,

Naimesh Patel

Dear all

I created a popup showing a table control and 2 buttons (confirm / abort).

The user simply wants to push the confirm button to proceed by pressing enter but unfortunatly I see no way to set the focus on that element by default.

Any help is appreciated.

Thank's in advance and best regards

Benno

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
710

Use this in PBO:


* BUT_CONF is the button for the Confirm
SET CURSOR FIELD 'BUT_CONF'

Regards,

Naimesh Patel

Read only

benno_zentriegen
Explorer
0 Likes
709

That's it - thank you very much!

Best regards

Benno