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

NON-function keys linked to a command in a Dynpro

Former Member
0 Likes
704

Hallo everybody.

I need to link two non-function-keys of the keyboard:

- "Y" as "Yes" button --> it continues the elaboration

- "N" as "No" button --> it comes back to the previous screen

for trigger two command buttons in a dynpro.

Is it possible to do it?

How can I do it?

I hope that you can help me.

Thanks in advance.

Regards

Alfonso Gentile

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

I don't think you are going to be able to do that with SAPGui and buttons... you could use a listbox with "Y" and "N" options and link a command to the listbox on change of value, but typically the SAPGui does not respond to "keypress" events directly unless there is a front-end control of some sort watching for this.

Jonathan

I don't think you are going to be able to do that with SAPGui and buttons... you could use a listbox with "Y" and "N" options and link a command to the listbox on change of value, but typically the SAPGui does not respond to "keypress" events directly unless there is a front-end control of some sort watching for this.

Jonathan

2 REPLIES 2
Read only

Former Member
0 Likes
570

I don't think you are going to be able to do that with SAPGui and buttons... you could use a listbox with "Y" and "N" options and link a command to the listbox on change of value, but typically the SAPGui does not respond to "keypress" events directly unless there is a front-end control of some sort watching for this.

Jonathan

Read only

0 Likes
569

Thank you for your reply, Jonathan.

The listbox on the dynpro is a good idea, but my application is studied for work with radio-frequency terminals. So I think that the listbox could not be supported.

Anyway I'll propose my solution inserting a controlled I/O field (type CHAR1) where the user will choose the 2 answers (Y/N only) and confirm with Enter.

Regards

Alfonso Gentile