Sorting multiple columns at a time

Hi All,
I have requirement which is web dynpro table loading with the data i need to sort the three columns
at a time. initially this sorted data is coming from Function module, but now the data is coming from BW to Web dynpro java
I have one method in sort class which will sort the table on one column at time. i need help in enhancing this method to work for three columns.
  public void sort(String columnId, IWDNode dataSource) {
       IWDTableColumn column =
            (IWDTableColumn) table.getView().getElement(columnId);
       ReversableComparator reversable =
            (ReversableComparator) comparatorForColumn.get(column);
       if (reversable == null)
            return; // not a sortable column
       // remove icon of previously sorted column
       if (currentlySortedColumn != null
            && currentlySortedColumn.getHeader() != null)
            currentlySortedColumn.getHeader().setImageSource(null);
       // bookkeeping
       if (column == currentlySortedColumn) {
            //               reversable.toggleReversed();
       currentlySortedColumn = column;
       // set icon in currently sorted column
       /*if (currentlySortedColumn.getHeader() != null)
            currentlySortedColumn.getHeader().setImageSource(
                 reversable.isReversed()
                      ? "~sapicons/s_b_srtd.GIF"
                      : "~sapicons/s_b_srtu.GIF");
       // sorting
       dataSource.sortElements(reversable);
Regards,
Lakshmi Kodavati

Hi all,
The solution for EP6.40 Multiple column sorter
Class file:
http://wiki.sdn.sap.com/wiki/display/Snippets/Tablesorterbymultiplecolumns%28WebDynproJava%29
f you does not have WDTableColumnSortDirection try to modify the MultiAttributesNodeComparator and replace WDTableColumnSortDirection with the boolean flag-indicator of the sorting direction. Like this:
boolean sortAsc = true;  // WDTableColumnSortDirection.UP
Call this class from web dynpro view
final MultiAttributesNodeComparator nodeComparator = new MultiAttributesNodeComparator();
                    nodeComparator.sortElements(new String[] {"InvoiceDate","Invoice","Contract"}, true, wdContext.nodeInvoiceListTable());
Thanks for Siarhei_Pisarenka
Edited by: narayana on Mar 25, 2010 10:02 AM
Edited by: narayana on Mar 25, 2010 10:05 AM

Similar Messages

  • How to Sort Multiple Column In ALV_LIST_DISPLAY

    Dear Experts,
                         Recently i've facing a problem to Sort multiple Column in ALV_LIST_DISPLAY.Whenever i need to sort 4 columns at a time , only 3 was sorted not the 4'th one.But i have already clearly mentioned in my sort section .Can anybody help me overcome this problem?
    warm regards,
    sameek mazumder.

    Hi samgpi,
    You should have no prolem with doing such sorting by using the parameter IT_SORT, available when using class or FM...
    Can you paste you sort section here so we can have a closer look?
    Kr,
    Manu.

  • I am unable to sort multiple columns in a table created in Pages.

    I had been using Appleworks up until I installed Lion and have now switched to iWork. I created a table within a Pages document and am able to sort a single column (using the Table Inspector and choosing Sort from  Edit Rows and Columns) but the Sort option is grayed out when I attempt to sort multiple columns.
    In another post, someone talked about this being a problem if you have merged fields. I do not believe I have done this (to be honest I don't know the function of merging fields).
    This is very frustrating as I was easily able to sort these tables in Appleworks.

    Sharon Anderson wrote:
    Thanks for your quick response! I have been trying that but then found that Numbers would only let me print in landscape view so I had to paste the table back into Pages. Is there a way to print in portrat view (from Numbers?)
    Not so. In the lower left corner of the window, there's an icon that looks like a piece of paper. If you see this:
    you are in Sheet View, or normal, mode. If you see this:
    You are in Print View mode. Now you see the icons for portrait and landscape modes. Click your choice. Then arrange your content to fit the pages as you wish.
    Jerry

  • ALV: How to sort multiple columns?

    Hi all,
    Good morning!
    I have a requirement to sort multiple columns in ALV. I did a search and tried with following codes:
    data: lo_config_alv  type ref to cl_salv_wd_config_table.
    lo_config_alv->if_salv_wd_table_settings~set_multi_column_sort( value = abap_true ).
    But I still can not sort for multiple columns.
    Please guide me how to do that.
    Thanks,
    Khanh

    Hello,
    If you want to sort ALV by multiple fields, then you have to create sort rule for each field and set sort position for each field to specify the sequence in which you want to sort multiple columns.
    Here is a sample code:
    * Sort rows by PRICE descending
      DATA: lr_field1 TYPE REF TO cl_salv_wd_field.
      DATA: lr_rule1 TYPE REF TO CL_SALV_WD_SORT_RULE.
      lr_field1 = lv_value->if_salv_wd_field_settings~get_field( 'PRICE' ).
      lr_field1->if_salv_wd_sort~create_sort_rule( EXPORTING sort_order = if_salv_wd_c_sort=>sort_order_descending
                                                   RECEIVING value = lr_rule1 ).
      lr_rule1->set_sort_position(  2 ). "set the sort position to 2
    * Sort rows by seatsmax descending
      DATA: lr_field2 TYPE REF TO cl_salv_wd_field.
      DATA: lr_rule2 TYPE REF TO CL_SALV_WD_SORT_RULE.
      lr_field2 = lv_value->if_salv_wd_field_settings~get_field( 'SEATSMAX' ).
      lr_field2->if_salv_wd_sort~create_sort_rule( EXPORTING sort_order = if_salv_wd_c_sort=>sort_order_descending
                                                              RECEIVING value = lr_rule2 ).
      lr_rule2->set_sort_position( 1 ). "set the sort position to 1
    * Sort rows by seatsocc descending
      DATA: lr_field TYPE REF TO cl_salv_wd_field.
      DATA: lr_rule3 TYPE REF TO CL_SALV_WD_SORT_RULE.
      lr_field = lv_value->if_salv_wd_field_settings~get_field( 'SEATSOCC' ).
      lr_field->if_salv_wd_sort~create_sort_rule( EXPORTING sort_order = if_salv_wd_c_sort=>sort_order_descending
      RECEIVING value = lr_rule3 ).
      lr_rule3->set_sort_position( 3 ). "set the sort position to 3
    In the above code, the sequence of sorting would be seatsmax price seatsocc
    If you dont specify the sort position, then the sequence of sorting would be the order in which the sort rules are created.
    In the above example, if we didnt set sort positions for the fields, then order would be price seatsmax seatsocc.
    Refer to this link for more info: https://cw.sdn.sap.com/cw/docs/DOC-33859
    Hope this helps!
    Regards,
    Srilatha

  • Drill-down to multiple columns at same time

    Hello,
    Is it possible to simultaneously drill down to multiple columns on the same level with one click? I have several attributes that the user will want to see together at all times, so I want to be able to drill from level1 to level2a,2b, and 2c with one click.
    Thanks,
    Elliot

    This drilling down to all the levels may not be available with the OBIEE drill level based hierarchy feature OOTB but as an alternative you can try this at you DB level to create a hierarchy within you data using START WITH and CONNECT BY PRIOR to generate the parent->child levels hierarchy within the view instead of creating multiple hierarchical columns.
    Or may be you can try to create separate columns in a table for each hierarchy level. That table could either be in the database or be a logical one in the repository. For example:
    Level 1 Level 2 Level 3 Description
    1 2A 3A
    1 2A 3B
    1 2B 3A
    1 2B 3B
    etc
    You then create separate reports for each level, so one report has only level1 in it for this dimension, another report has levels 1 an 2 and a third report has levels 1, 2 and 3 etc.
    In each report you put an action link on the levels' cells so that if you click on them you drill up or down by displaying a new report with either less or more level columns.
    Hope this helps. Pls mark if it does.
    Thanks,
    SVS

  • Sorting Multiple columns in Numbers

    I have imported an excel sheet into a numbers sheet.  In excel I can ask date to sort by two columns - for instance (i work for a law practice) sort by court and last name.  Can you do this in Numbers?  In Excel each column has up/down arrow icons so that is it easy to sort without going to the menu.  Is this possible with numbers?  I want to verify that we can shift to Numbers before updating to Lion.  Sandy

    Here are some images to highlighy how to use the Reorganize Panel Jerry was describing:
    clink in the table you want to sort (reorganize) and click the "Reoganize" button in the tool bar OR select the menu item "Table > Show Reorganize Panel"

  • ALV: cannot filter multiple columns at a time

    Hi,
    I'm trying to fix a problem in a report that uses ALV grid: when I try to filter the grid content by choosing a multi-column criteria, I get prompted only to enter the first column selection criteria. That is, I multi-select 2 or more columns, right click, then Set Filter...; I get the selection only for the first selected column. I know this is a built-in feature of ALV grid, is there a parameter I'm missing when I build the grid?
    Thanks a lot,
    Dinu
    Here are some code snippets:
    FORM output_report.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program = 'ZRRRMPROJSTAT'
                is_layout          = gs_layout
                it_fieldcat        = gt_fieldcat
                it_sort            = gt_sort
                i_save             = 'A'
                it_events          = gt_events
           TABLES
                t_outtab           = i_project
           EXCEPTIONS
                program_error      = 1
                OTHERS             = 2.
    ENDFORM.                    " output_report
    FORM build_fieldcat.
      DATA: s_fieldcat TYPE slis_fieldcat_alv.
      DATA: l_col_count like s_fieldcat-col_pos.
      l_col_count = 1.
      CLEAR s_fieldcat.
      s_fieldcat-col_pos       = l_col_count.
      l_col_count = l_col_count + 1.
      s_fieldcat-tabname       = i_project.
      s_fieldcat-fieldname     = 'PSPID'.
      s_fieldcat-datatype      = 'CHAR'.
      s_fieldcat-outputlen     = '10'.
      s_fieldcat-seltext_l     = 'Project Number'.
      s_fieldcat-seltext_m     = 'Project Number'.
      s_fieldcat-seltext_s     = 'Project Number'.
      s_fieldcat-key           = 'X'.
      s_fieldcat-fix_column    = 'X'.
      s_fieldcat-just          = 'C'.
      s_fieldcat-no_zero       = 'X'.
      APPEND s_fieldcat TO gt_fieldcat.
    and so on....
    ENDFORM
    FORM sort_layout.
      DATA: ls_sort TYPE slis_sortinfo_alv.
      REFRESH gt_sort.
      CLEAR ls_sort.
      ls_sort-spos       = '1'.
      ls_sort-tabname    = 'i_project'.
      ls_sort-fieldname  = 'PSPID'.
      APPEND ls_sort TO gt_sort.
      CLEAR ls_sort.
      ls_sort-spos       = '2'.
      ls_sort-tabname    = 'i_project'.
      ls_sort-fieldname  = 'POSID'.
      APPEND ls_sort TO gt_sort.
    ENDFORM.                    " sort_layout
    FORM build_layout.
      CLEAR gs_layout.
    gs_layout-totals_before_items = 'X'.
      gs_layout-zebra = 'X'.
      gs_layout-numc_sum = 'X'.
      gs_layout-get_selinfos = 'X'.
      gs_layout-box_tabname = 'X'.
      gs_layout-info_fieldname = 'COLOR'.
    ENDFORM.                    "

    Hi,
    I think there is no prob with ALV, U follow steps as:
    click on alv Set filter button.
    then transfer column names to filter field list,
    on same screen filter button is there click it,
    now it will ask for both filter criteria.
    I am sure it will do, Award if it helps
    Jogdand M B

  • How do I unhide multiple columns at a time in a response table?

    I feel like I have done this before, but now I cannot seem to figure out how.  Any help would be appreciated.

    but is there any other way? Like changing something in the properties that will make the Divs bump up to the Div aoove that when you remove one out of there
    I'm afraid not.
    I  imported the whole site as divs by splitting the images in photoshop and saving it for web and devices.
    This is approach is OK for quick comps to show a client but definitely NOT suitable for a production site.  As soon as you attempt to edit your layout, the page will explode and fall apart.  This is caused by the rigid/fragile code that graphics apps attempt to generate based on the images sizes.
    Start over.  Use graphics apps to slice and optimize images only.
    Use DW to build your HTML and CSS code.
    Creating  your first web site in DW CS5 -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Adobe Developer's Center - Getting Started tutorials
    http://www.adobe.com/devnet/dreamweaver/?view=gettingstarted
    Using  DW Page Properties to create a basic CSS style sheet
    http://kb2.adobe.com/community/publishing/505/cpsid_50576.html
    APDivs as a primary layout method seldom works well. Here is why:
    http://apptools.com/examples/pagelayout101.php
      Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Multiple column sorting.

    How does one sort multiple columns( date, String, time etc...). I want to sort by date where two dates can be alike as well. I could use HashMap for that reason.
    Please help.
    Thanks in advance.

    Hi,
    A demo of the comparator class is given below. I've tried to put it into the table class.
    import java.util.*;
    import javax.swing.*;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    class MultipleColumnSortTest
         MultipleColumnSortTest()
              JFrame frame = new JFrame("MultipleColumnSortTest");
              frame.setBounds(10,10,750,550);
              Vector fieldNames = new Vector();
              fieldNames.add("Dates");
              fieldNames.add("Strings");
              Vector dataVector = new Vector();
              for(int i = 0; i < 5; ++ i)
                   Vector row = new Vector();
                   row.add(new Date());
                   row.add("abc" + i%2);
                   dataVector.add(row);
              final SortableDataVector tableModel = new SortableDataVector(dataVector,fieldNames);
              int [] sortIndices = new int[2];
              sortIndices [0] = 0 ;
              sortIndices [1] = 1 ;
              tableModel.setSortPriority(sortIndices);
              JTable table = new JTable(tableModel);
              JScrollPane scrollpane = new JScrollPane(table);
              frame.getContentPane().add(scrollpane);
              JButton button = new JButton("Sort Data");
              frame.getContentPane().add(button,BorderLayout.SOUTH);
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent event)
                        tableModel.setAscendingOrder(!tableModel.isAscendingOrder());
                        tableModel.sort();
              frame.setVisible(true);
         public static void main(String [] args)
              MultipleColumnSortTest appln = new MultipleColumnSortTest();
    class SortableDataVector extends DefaultTableModel implements Comparator
         private int [] indices;
         private boolean isAscendingOrder;
         public SortableDataVector(Vector dataVector, Vector fieldNames)
              super(dataVector,fieldNames);
              setAscendingOrder(true);
         public void setAscendingOrder(boolean b)
              isAscendingOrder = b;
         public boolean isAscendingOrder()
              return isAscendingOrder;
         public void setSortPriority(int [] indices)
              this.indices = indices;
         public int compare(Object o1,Object o2)
              int comparisonResult = compareAscending(o1,o2);
              if(!isAscendingOrder)
                   if(comparisonResult < 0)
                        comparisonResult = 1;
                   else if (comparisonResult > 0)
                        comparisonResult = -1;               
              return comparisonResult;
         private int compareAscending(Object o1, Object o2)
              int comparisonResult = 0;
              if((o1 == null)&&(o2 != null))
                   comparisonResult = -1;
              else if((o1 != null)&&(o2 == null))
                   comparisonResult = 1;
              else if((o1 != null)&&(o2 != null))
                   List firstRow = (List)o1;
                   List secondRow = (List)o2;
                   for(int i = 0; ((i < indices.length)&&(comparisonResult == 0)); ++i)
                        if(indices[i] < firstRow.size())
                             comparisonResult =
                                  DatatypeSensitiveComparator.compare(
                                       firstRow.get(indices),
                                       secondRow.get(indices[i]));
              return comparisonResult;
         public boolean equals(Object obj)
              if(obj == null)
                   return false;
              return this.equals(obj);
         public void sort()
              if((indices != null)&&(indices.length > 0))
                   Collections.sort(dataVector,this);
                   fireTableChanged(new TableModelEvent(this));
    class DatatypeSensitiveComparator
         public static int compare(Object firstValue, Object secondValue)
              int comparisonResult = 0;
              if((firstValue != null)&&(secondValue == null))
                   comparisonResult = 1;
              else if((firstValue == null)&&(secondValue != null))
                   comparisonResult = -1;
              else if((firstValue != null)&&(secondValue != null))
                   Class clazz = firstValue.getClass();
                   if(!clazz.equals(secondValue.getClass()))
                        throw new IllegalArgumentException("Class are not the same ->"
                             + clazz.getName() + ":" +
                             secondValue.getClass().getName());
                   if(clazz.equals(String.class))
                        comparisonResult = ((String)firstValue)
                             .compareTo(((String)secondValue));
                   else if(clazz.equals(Date.class))
                        comparisonResult = ((Date)firstValue)
                             .compareTo(((Date)secondValue));
              return comparisonResult;

  • User need to have the ability to sort on Multiple columns

    Hi,
    I have one report on Dashboard, for that report user want to sort all columns at a time. But  i am not find any option to set like this.
    Right now i am able to sort only one column at time, Please let me know is there any option like this.
    Thanks in advance.
    Ramana

    Hi Ramana,
    This we cannot acheive in Analytics,You can do this in RPD BMM
    Below the url for more info,
    http://oraclebizint.wordpress.com/2008/04/28/oracle-bi-ee-101332-handling-sort-order-in-hyperion-essbase-931-evaluate-and-mdx/
    Mark if helps,
    Thanks,

  • How can I sort two columns?

    I've got two columns of text (names of people, actually) in a Numbers spreadsheet. I've selected all the cells and made sure they are "text" format. I cannot figure out how to sort (alphabetically) the two columns independent of one another.
    I just want two columns of names in alphabetical order. How do I do it? Every time I select one column and sort by ascending it affects the column(s) next to it.

    Not sure I totally understand the actual question. But let me give it a shot...
    Column A = Last Name, Column B = First Name. You want to sort this list of names by Last Name, then by First Name so John Smith shows up below Alex Smith on your list. Typically you would have MULTIPLE columns of data to go along with the names; Phone, Address, City, State, Zip, etc. Right? So if you Sort only ONE column (and ONLY that column, you end up with John Smith having the wrong address, etc. etc. SO, most Spreadsheets allow you to sort multiple columns at the same time, but by only one Column Title at a time. This keeps the rest of the data in the Record in the right place. Thus, you sort Column A (Last Name) in Asending order. Now all the LAST Names are alphabetical. Next, you sort Column B (First Name) in Asending order. Now the list should show up with the last Names in the correct order, AND the First Names also - BUT all the other info (address, City, State, etc) is ALSO still attached to the right records. Clear as MUD?!
    P.S. This will ONLY work when your Title Box for each Column has a SINGLE Line of text:
    Like THIS: Last Name
    NOT THIS: Last
    Name
    The Spreadsheet will leave the TOP ROW (Titles) alone, and sort the Rows beneath the Title Boxes.
    Good luck...

  • How to get Select All or select Multiple columns  in OOALV

    HI Experts
    i'm assignig internal table to dynamic internal table(FS_IST_TABLE) for to display the output.
    but i'm not geting the Select ALL Option. and i can't select multiple columns at a time.
    where i can select only one column.
    how can i select multiple columns.
    please any one help me.
    regrads,
    rathan.

    Hi,
      If we want to select the multiple columns in the alv by using ooabap
    so in the class CL_GUI_ALV_GRID  it is having one method SET_TABLE_FOR_FIRST_DISPLAY
    it is having one importing parameter IS_LAYOUT of type lvc_s_layo type
    and this structure contains one field SEL_MODE and set that field value as 'A'.
    then we can select the multiple rows in alv grid

  • Sorting a Collection with dynamic columns using a custom compare function for multiple columns

    I need help and ideas on how to sort a ListCollectionView.  My problem is complicated by 3 requirements-
         1. The column values contain HTML tags that needs to be removed before sorting (use custom compareFunction to strip HTML)
         2. The columns are dynamic, so dataField names are not known at compile time (need a single compareFunction for all columns)
         3. The data is used in an AdvancedDataGrid so multi-column sorting is required
    I have figured out how to solve any 2 of the 3 requirements.  However, I am having difficulties supporting all 3 requirements.
    Any help or ideas would be greatly appreciated.  Thanks.

    After playing with this some more I think I've figured out a solution.  This seems to work in initial testing.  Also, there is not a need to capture the current sort column in the headerRelease event which many offered solutions suggested.  Another benefit to this solution is that keyboard initiated sorting is handled also.  Whereas the headerRelease event is only triggered by a mouse click on the column header and special handling is required if the user uses the keyboard to access the column header.
    One point that I don't understand is how ascending/decending order is determined.  Behavior seems to be different between a single SortField versus multiple SortFields.  Notice how the compareResults are handled for the different situations.  Anyone out there know why???
     private function colSortCompareFunction(obj1:Object, obj2:Object, fields:Array = null):int{
         var compareResults:int = 0; 
         var newObj1:Object = new Object(); 
         var newObj2:Object = new Object();
          // should not be a condition that is met   
         if (_dataProviderDetails.sort.fields == null)     {
              var s:Sort = new Sort(); 
              var f:Function = s.compareFunction; 
              return f.call(null, obj1, obj2, fields);     }
         // when a single column is selected for sorting   
         else if (_dataProviderDetails.sort.fields.length == 1)     {
              var firstFld:SortField = _dataProviderDetails.sort.fields[0];
              newObj1[firstFld.name] = stripHTML(obj1[firstFld.name]as String);          newObj2[firstFld.name] = stripHTML(obj2[firstFld.name]
    as String);
              compareResults = ObjectUtil.compare(newObj1[firstFld.name], newObj2[firstFld.name]);
               return compareResults;     }
         // when multiple columns are selected for sorting   
         else       {
              for each (var fld:SortField in _dataProviderDetails.sort.fields)          {
                   newObj1[fld.name] = stripHTML(obj1[fld.name]
    as String);               newObj2[fld.name] = stripHTML(obj2[fld.name]
    as String);
                   compareResults = ObjectUtil.compare(newObj1[fld.name], newObj2[fld.name]);
                    if (compareResults != 0)               {
                        if (fld.descending)                    {
                             return compareResults * -1;                    }
                        else                      {
                             return compareResults;                    }
               return compareResults;     }
    Does anyone see any problems with this solution?
    NOTE:  stripHTML(String) is a simple function using regular expression to remove HTML tags.
    Thx

  • We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?

    We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?  It doesn't appear anywhere.  Do I now have to sort massive tables by each column one at a time now?  Also there used to be an easier way to merge/unmerge cells without me having to go to the table menu each time.  Am I missing something?

    Multiple column sort is a missing feature in the new version.  Hopefully soon to return. You can do a multicolumn sort by sorting one at a time in reverse order of importance.
    For merging and unmerging cells, I select the cells and right click to bring up the contextual menu. Merge and unmerge are on the menu.  You could also create keyboard shortcuts for Merge Cells and Unmerge Cells in the Table menu.

  • Sort functionality using MULTIPLE columns in a table control

    Hi all,
    I have a custom screen with table control.Now i need to provide SORT functinality in this screen for the columns in the table control.
    My questins:
    1.Is it possible to seelct MULTIPLE columns in a table control for SORTING?If yes,what explicit settings do i need to do while creatng the TABEL CONTROL in the screen?DO I need to select "Column selection " as MULTIPLE??
    2.How do I write the code for SORT functinonality for multiple columns?
    I know how to write the code for SORTING on basis of single column .
    Thanks!

    Hi Rob,
    Thanks for the reply.
    However I was thinking to apply the same logic as for single columns as follows:
    types : begin of ty_fields,
                c_fieldname(20),
               end of ty_fields.
    data  : t_fields type table of ty_fields,
               wa_fields like line of t_fields.
    WHEN 'SORTUP'.(Ascending)
          loop at TABLE tc01-cols INTO wa_tc01  where  selected = 'X'.
          SPLIT wa_tc01-screen-name AT '-' INTO g_help g_fieldname.
          wa_fields-c_fieldname = g_fieldname.
          append wa_fields to t_fields.
          endloop.
          describe table t_fields lines l_index.
          c_count = 1.
          if c_count  <= l_index.
          read table t_fields into wa_fields index c_count.
          case c_count.
          when '1'.
          l_field1 = wa_fields-c_fieldname.
          when '2'.
         l_field2 = wa_fields-c_fieldname.
        and so on depending on the no of columns in the table control...
          endcase.
          endif.
          SORT t_tvbdpl_scr BY  l_fields1 l_fields 2......l_fieldn.
    Let me know if the above method will work!Also for the above method to work will the type of fields(columns on whihc sort function will be applied) matter???
    Thanks again for your time.

Maybe you are looking for

  • Error while creating partition table

    Hi frnds i am getting error while i am trying to create a partition table using range getting error ORA-00906: missing left parenthesis.I used the following statement to create partition table CREATE TABLE SAMPLE_ORDERS (ORDER_NUMBER NUMBER, ORDER_DA

  • Urgent: Issue with the size of an xls file generated from a rtf template

    Hi all, I have a template.rtf In BI, when I get the file in excel format and save it, the size of the report is 32 MB. When I just "save as" the same report, without changing anything, the size of the report is 8 MB. Do you know how to get directly t

  • A MVC datatable with dropdown filtering per column search with pagination example?

    Hello All, Just starting out a big project with MVC 3 and I've been searching for a while for any step by step example of creatintg a dynamic/ajax datatable that has real time filtering of the result set via dropdowns for mvc?  Is there a ready made

  • Invalid format of sysdate in variable

    Hi all, Now i am using "select sysdate from dual" and when i am checking the value in history its giving something like 12-04-2011 AM 10:30:01.0 I dont understand why that .0 (point zero is coming).When i am using sysdate in interface its giving the

  • Help - ORA-03135: connection lost contact

    I was running the scripts for loading the data into my database through the sql*plus. The client (sql*plus) is on the same machine where the database is installed. So there is no network in the picture. After running the script for more than 6 hours,