cancel
Showing results for 
Search instead for 
Did you mean: 

Help need on ALV Get focus & set Hot Key

satrajit_chatterjee
Participant
0 Kudos

Hi Expert,

In my project, I am working extensively in WDP ALV component. My have some tropical requirement in this project.

1. Get the reference of the particular box of a ALV table. There is some set-focus functionality, but there is nothing called get focus. Do any one have any ides, how can I get the reference of the particular selected box ( cell ) from a ALV table.

2. Is it possible to set Hot key in the WDP component? For a example, if I click that hot key, it will trigger some action.

It will be an great help, if any one can provide any idea on this.

Thanks in advance,

Regards,

Satrajit.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Satrajit,

For hot keys..

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b951297a6d2d65e10000000a42189c/content.htm

You want to do on perticular cell.. this helps.

http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/45/12093591152464e10000000a1553f7/content.htm

http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtotriggertheeventON_CELL_ACTIONin+ALV

OR based on attribute you can do any actions..

for example :..

DATA lt_table_settings  TYPE REF TO if_salv_wd_table_settings.
  DATA lt_column_settings TYPE REF TO if_salv_wd_column_settings.
  DATA lt_columns         TYPE salv_wd_t_column_ref.
  DATA ls_columns         TYPE salv_wd_s_column_ref.
  DATA lv_column          TYPE REF TO cl_salv_wd_column.
  lt_columns = lt_column_settings->get_columns( ).

*** To change and set Column Header Text ***
  LOOP AT lt_columns INTO ls_columns.
    lv_column = ls_columns-r_column.
    CASE ls_columns-id.
      WHEN 'DEALER '. // your attribute name

    // your action...

ENDCASE.
ENDLOOP.

Cheers,

Kris.

ChandraMahajan
Active Contributor
0 Kudos

Hi,

As per SAP docu, The Web Dynpro framework supports the function of hotkeys if the WDLIGHTSPEED parameter is active.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b951297a6d2d65e10000000a42189c/content.htm

for other WD ALV stuff , below link may be helpful.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/500d8720-50f5-2d10-4a93-e675607f1...

Thanks,

Chandra

Edited by: Chandrashekhar Mahajan on Sep 29, 2011 11:22 AM