Skip to Content
avatar image
Former Member

Sort names by firstname in Team calender!

Dear Experts,

Requirement is to sort the names by firstname instead of surnames in team calender.

Following methods are not getting triggered:



Please suggest.



Capture.JPG (93.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 11, 2016 at 11:07 AM
    Add comment
    10|10000 characters needed characters exceeded

    • HRESS_C_LEA_TEAM_CALENDAR V_TEAM_CALENDAR check the note 1718816 method SORT_BY . DATA lo_nd_dropdown TYPE REF TO if_wd_context_node. DATA lo_el_dropdown TYPE REF TO if_wd_context_element. DATA lv_sortby TYPE wd_this->element_dropdown-sortby. DATA: lt_rowlabel TYPE ptarq_uia_rowlabel_tab, ls_rowlabel TYPE ptarq_uia_rowlabel_struc. lo_nd_dropdown = wd_context->get_child_node( name = wd_this->wdctx_dropdown ). lo_el_dropdown = lo_nd_dropdown->get_element( ). lo_el_dropdown->get_attribute( EXPORTING name = `SORTBY` IMPORTING value = lv_sortby ). CLEAR ls_rowlabel. CLEAR lt_rowlabel. IF lv_sortby EQ '01'. "Reverse the order of gt_rowlabel_filtered * SORT wd_this->gt_rowlabel_filtered BY rowlabel DESCENDING. DATA lt_rowlabel_reversed TYPE ptarq_uia_rowlabel_tab. * Prepare the internal table lt_rowlable_reversed with reversed records.(Sorted Ascending by last name)