Skip to Content

Howto define own function keys in ALV Grid control in 4.7

Hi,

I want to use function keys in the ALV coming with SAP 4.7 (Enterprise).

In SAP 4.5 I had defined a new PFKEY STATUS and all available function keys had been visible by a right mouseclick in the grid.

And now I don't know what to do.

Any hints?

Thanks,

Dieter

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 11, 2004 at 04:53 AM

    By function keys if you mean F1, F2... on the keyboard, I am not really aware how to do that but if you need to just put your own buttons in ALV grid , there is a class CL_ALV_EVENT_TOOLBAR_SET available which would allow you to put buttons in toolbar.

    PF-Status as far as I know can be still used with ALV in SAP 4.7 .

    In 4.5 did you use function modules to show ALV grid or did you use classes to show an ALV grid ?

    Let me know if this was helpful.

    Subramanian

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Wolf-Dieter Edinger

      I think it is impossible to bind function keys directly to ALV grid, because there's no fkey-press event within ABAP objects context. If there was some kind of dictonary class with such event, it would be easy to capture it by event method. But to my knowledge, there isn't one.

      You can workaround this by defining a method FKEY_PRESS (possibly in inheried ALV grid) which would be called from "AT PFn" in main prog. From this method you can raise event USER_COMMAND of ALV grid or whatever.

      Kind regards,

      Igor Barbaric

  • avatar image
    Former Member
    Aug 13, 2004 at 09:43 AM

    Hello Dieter,

    Transaction SE83 (Reuse Library) contains some samples, e.g

    * ALV Grid Control      ( BCALV_GRID_05 .. 8 )
    * ALV Tree Context Menu ( BCALV_TREE_03 )
    * ALV Tree Menu Bar     ( BCALV_TREE_04 ) 

    Kind Regards

    Klaus

    PS: for context menus you may use CL_CtMenu to access the definition of a old fashioned Gui-Status.

    Add comment
    10|10000 characters needed characters exceeded