Wednesday, March 14, 2018

Sorting a Dynamic Internal table


  1.   DATA :otab    TYPE abap_sortorder_tab ,         ls_otab TYPE abap_sortorder.
      ls_otab-name       'FIELDNAME'.   ls_otab-descending 'X'.   ls_otab-astext     ''.
  2.    APPEND ls_otab TO otab.   CLEAR:ls_otab.
      
    SORT <fs_tab> BY (otab).




No comments:

Post a Comment