cancel
Showing results for 
Search instead for 
Did you mean: 

How to get id of selected Tab in WebDynpro abap

Former Member
0 Kudos

HI,

How to get id of selected Tab in WebDynpro for abap? THANKS!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the action method for onSelect try using,


  DATA:
    lv_select_tab type string.          "Selected tab value

  DATA:
    lt_events type WDR_EVENT_PARAMETER_LIST,
    ls_events type WDR_EVENT_PARAMETER.
 
  field-symbols: <fs_value> type any.   "Attribute value in events table

  lt_events = wdevent->parameters.
  read table  lt_events into ls_events with key name = 'TABSTRIPID'.
  if sy-subrc eq 0.
    assign ls_events-value->* to <fs_value>.         
    if sy-subrc eq 0.
      lv_select_tab = <fs_value>.                    "Tab selected
    endif.                
  endif.                

Hope it helps!

Regards,

Radhika,

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,Radhika Vadher

Thanks for your help !