Skip to Content

Keyboard Shortcuts

Hi,

is there any methods to create/handle own keyboard shortcuts (for example 'F7') in my ABAP code for an ALV Grid? I would like NOT use the PF-STATUS.

Thanks in advance!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Oct 18, 2019 at 09:53 AM

    Because I want to use the shortcuts dynamic.

    For example for ALV1 should the F7 mean method1, and for ALV2 should the F7 mean method2. And sometimes it should not be active.

    That's why this should be ALV/object dependent and not program dependent.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2019 at 11:04 AM

    I have on my screen 4 ALVs.

    I have to handle the F7 function other way in every 4 ALVs.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2019 at 11:14 AM

    So you only need to perform an event to the selected ALV when somebody press F7

    if you link your F7 in the pf-status to a command, and if the code you manage the command you will be able to do it

    no ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2019 at 11:41 AM

    Yes. But how can I raise the method onuser_command of the ALV after pressing the F7?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2019 at 12:05 PM

    Thank you all! :)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.