Sorting Dynamic VO

Hi,
Jdeveloper Version : 11.1.1.4.0
Sorting for dynamic VO that has been created based on the programmatic ViewObject is not working.
I tried a sample in Hr Schema with Non-Programmatic VO. if I do table sorting for the dynamic ViewObject, it worked.
I tried a sample in Hr Schema with Programmatic VO. If I do table sorting for the dynamic ViewObject, it is not working.
Iam getting oracle.jbo.NoDefException: JBO-25058
Kindly provide me the solutions
reg,
bakkia
Edited by: Bakkia on May 9, 2011 1:34 AM

Check this blog post:
http://jobinesh.blogspot.com/2010/12/sorting-transient-viewobject.html
Thanks,
Navaneeth

Similar Messages

  • Sorting dynamic listing by element definition field.

    Hi,
    Does any one know how to sort a dynamic listing by one of the regional definition field?
    My situation is currently sorting is done by dDocTitle (<!--$SortField = "dDocTitle"-->). The title that is displayed in website(h1) has a different title from dDocTitle. So although it is sorting by dDocTitle, it looks random in the live website.
    So I was wondering if there is a way to sort dynamic listing by one of the element definition field.
    I was hoping that something like this will work but it didn't
    <!--$SortField = ssIncludeXml(dDocName,"ContentPage/Title/node()")-->
    Thanks.
    Edited by: K0907163 on 23-Nov-2011 03:00

    Wish there was a way, but unfortunately I don't think there is without building your own custom sort. SortField only takes metadata fields.
    My suggestion is to have your users actually use dDocTitle (or a different metadata field), as opposed to ContentPage/Title/node().

  • Sorting Dynamic Table by specific field

    Hi guys,
    I need to sort a dynamic table (without header line) by a certain field in order to achieve the client requierment. I really don't have any clue about how can i do this, because, it appears that is not possible to declarate a field symbol type standar table with a headerline...
    Regards,
    Eric

    Try this:
    TABLES T001.
    DATA: T_T001 LIKE STANDARD TABLE OF T001.
    FIELD-SYMBOLS: <TABLE> TYPE TABLE.
    DATA: FIELD1(30),
          FIELD2(30),
          FIELD3(30).
    SELECT * FROM T001 INTO TABLE T_T001.
    ASSIGN T_T001[] TO <TABLE>.
    FIELD1 = 'BUTXT'.
    SORT <TABLE> BY (FIELD1) (FIELD2) (FIELD3).
    LOOP AT <TABLE> INTO T001.
      WRITE: / T001-BUTXT, T001-BUKRS.
    ENDLOOP.
    U have to decide how many fields can be used to sort the table: in my example I suppose the user can use max 3 fields in the same time.
    The ALV use this way to sort the table.
    Max

  • Sorting dynamic table

    All,
      Anybody know how to sort a dynamically created internal table ?
      I've got this dynamic table with 3 fields
      VBELN POSNR MATNR
      and would like to sort this ?
      normally it's sort int_table by vbeln posnr matnr but that's not working with a dynamic table
      Any idea's ?
    Regards

    I tried it with a table as "sort by" but that didn't work
    done it like this now
          g_sort_field1 = 'VBELN'.
          g_sort_field2 = 'POSNR'.
          g_sort_field2 = 'MATNR'.
    sort <dynamic_table>
           by (g_sort_field1) (g_sort_field2) (g_sort_field3)
    and that seems to work, also for the delete adjacent duplicates

  • Rdl file Tablix sorting. dynamical data columns.

    Hi ,
    we are having Tablix with 5 columns of data. in that first 3 column data is a static and remaining two columns data will be calculated and populated dynamically on the 4,5 column. it is working fine but when i sort the any of the first 3 columns it is showing
    the wrong data in the 4,5 th columns.
    can any one help how to over come this.
    Advance thanks.
    Vijay

    Hi Vijay,
    If I understand correctly, the values in the fourth and fifth column change dynamically based on the static values in the first three columns in your report. And then you set the sort expression for the data region or for each group, including the details group
    in a tablix data region.
    I tested the issue in my test environment in the basis of my understanding. I have set the expression in the fourth and fifth column and set the sorting of tablix based on the fifth static column. When running the report, there is no issue.
    To resolve your matter, please post the report design and the expression in sorting option’s screenshot to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Sort dynamic table

    I have a table that I want users to be able to sort by
    clicking on the table headers. It's a basic hockey stats sheet, ie
    goals, assists, points, etc. I have figured out how to do it with
    spry using an xml file, however I'd like to be able to do it with a
    dynamic table, so that if the database is updated, I don't have to
    go in and create a new xml file.
    Any suggestions?

    Duker10 wrote:
    > Here is the code for my table. I am working off of
    localhost right now until I
    > can get it figured out.
    http://teamwhite.us/php/sortTable.php
    <table border="1" align="center" cellpadding="5"
    id="league">
    <thead><tr class="style2">
    <td><a href="#" onclick=
    "sortTable('league',this.parentNode.cellIndex,sortByLastNames);">Player</a></td>
    <td><a href="#" onclick=
    "sortTable('league',this.parentNode.cellIndex,sortAlpha);">Team</a></td>
    <td><a href="#" onclick=
    "sortTable('league',this.parentNode.cellIndex,sortNumerical);"
    >GP</a></td>
    <td><a href="#" onclick=
    "sortTable('league',this.parentNode.cellIndex,sortNumerical);">G</a></td>
    <td><a href="#" onclick=
    "sortTable('league',this.parentNode.cellIndex,sortNumerical);">A</a></td>
    <td><a href="#" onclick=
    "sortTable('league',this.parentNode.cellIndex,sortNumerical);">Pts</a></td>
    <td><a href="#" onclick=
    "sortTable('league',this.parentNode.cellIndex,sortNumerical);">PIM</a></td>
    </tr>
    </thead>
    <tbody>
    <?php do { ?>
    <tr>
    <td><?php echo
    $row_rsPlayoffStats['FirstName']."
    ".$row_rsPlayoffStats['LastName']; ?>
    <td><?php echo $row_rsPlayoffStats['TeamName'];
    ?></td>
    <td><?php echo
    $row_rsPlayoffStats['GamesPlayed'];?></td>
    <td><?php echo
    $row_rsPlayoffStats['Goals'];?></td>
    <td><?php echo $row_rsPlayoffStats['Assists'];
    ?></td>
    <td><?php echo
    $row_rsPlayoffStats['Points'];?></td>
    <td><?php echo
    $row_rsPlayoffStats['PIM'];?></td>
    <?php } while ($row_rsPlayoffStats =
    mysql_fetch_assoc($rsPlayoffStats)); ?>
    </tbody></table>
    Mick
    >
    > <table border="1" align="center" cellpadding="5">
    > <tr class="style2">
    > <td nowrap><div
    align="left">Player</div></td>
    > <td nowrap><div
    align="left">Team</div></td>
    > <td><div
    align="left">GP</div></td>
    > <td><div
    align="left">G</div></td>
    > <td><div
    align="left">A</div></td>
    > <td><div
    align="left">Pts</div></td>
    > <td><div
    align="left">PIM</div></td>
    > </tr>
    > <?php do { ?>
    > <tr class="style4">
    > <td nowrap><?php echo
    > $row_rsPlayoffStats['LastName']; ?>, <?php echo
    > $row_rsPlayoffStats['FirstName']; ?></td>
    > <td nowrap><?php echo
    > $row_rsPlayoffStats['TeamName']; ?></td>
    > <td><?php echo
    $row_rsPlayoffStats['GamesPlayed'];
    > ?></td>
    > <td><?php echo $row_rsPlayoffStats['Goals'];
    ?></td>
    > <td><?php echo $row_rsPlayoffStats['Assists'];
    > ?></td>
    > <td><?php echo $row_rsPlayoffStats['Points'];
    ?></td>
    > <td><?php echo $row_rsPlayoffStats['PIM'];
    ?></td>
    > </tr>
    > <?php } while ($row_rsPlayoffStats =
    > mysql_fetch_assoc($rsPlayoffStats)); ?>
    > </table>
    >

  • SORT DYNAMIC INTERNAL TABLE

    Hello everybody.
    How can I sort a dynamic internal table ???
    The sentence sort <gt_table> by matnr werks doesn' t work... How can I do it ??
    Thanks a lot.
    Regards

    Here is an example:
    PARAMETERS dbtab TYPE c LENGTH 30.
    SELECT-OPTIONS columns FOR dbtab NO INTERVALS.
    DATA: otab TYPE abap_sortorder_tab,
    oline TYPE abap_sortorder,
    dref TYPE REF TO data.
    FIELD-SYMBOLS: <column> LIKE LINE OF columns,
    <itab> TYPE STANDARD TABLE.
    TRY.
    CREATE DATA dref TYPE STANDARD TABLE OF (dbtab).
    ***I have assigned the value dref to internal table as follows***
    ASSIGN dref->* TO <itab>.
    CATCH cx_sy_create_data_error.
    MESSAGE 'Wrong data type!' TYPE 'I' DISPLAY LIKE 'E'.
    LEAVE PROGRAM.
    ENDTRY.
    TRY.
    SELECT *
    FROM (dbtab)
    INTO TABLE <itab>.
    CATCH cx_sy_dynamic_osql_semantics.
    MESSAGE 'Wrong database table!' TYPE 'I' DISPLAY LIKE 'E'.
    LEAVE PROGRAM.
    ENDTRY.
    LOOP AT columns ASSIGNING <column>.
    oline-name = <column>-low.
    APPEND oline TO otab.
    ENDLOOP.
    TRY.
    SORT <itab> BY (otab).
    CATCH cx_sy_dyn_table_ill_comp_val.
    MESSAGE 'Wrong column name!' TYPE 'I' DISPLAY LIKE 'E'.
    LEAVE PROGRAM.
    ENDTRY.

  • Sorted dynamic list problem - Azure Search Index

    Hello Everyone,
    Let's consider following problem: Vote app - we have 1000 NBA players and we want to create an app which first: let user vote for a player he wants to see in the All Star Game, second: user gets current rank list (example: Michael Jordan 1st - 1M votes,
    Derrick Rose 2nd - 0,9M votes, .. , Freddy Kruger - 999th - 0 votes and so on).
    Question: what is the best structure that can be implemented here to keep this data sorted? I would like to query this data source already sorted - it is not allowed to get the list of 1000 and sort locally in app. For example: 800 players can have 0 votes
    and I do not want to download their names just to display '0 votes' next to their names. I would like to get only 50 with highest score at the moment. Index should be refreshed-rebuild after each new POST-vote request.
    Can Azure Search service and its Index help me to solve this problem? The perfect .NET SortedList synchronized structure would look like this [votes][name]:
    SortedList[99982]['Michael Jordan']
    SortedList[89921]['Derrick Rose']
    SortedList[0]['Freddy Kruger']
    SortedList[0]['Ace Ventura'] -> but SortedList does not allow the 0 KEY to appear twice.
    Regards,

    Hi pr0t,
    It should be straightforward to get the data you want using the $orderby, $filter, and $top options. For example, if you have a field named vote, you could include this in your search request:
    /indexes/players/docs?$orderby=vote desc&$filter=vote gt 0&$top=50
    This will give the top 50 players by vote in descending order by vote. You can then put the data in whatever data structure you like on the client.
    One thing to be aware of though is the way you update votes in the index. We highly recommend batching index updates as much as possible rather than updating one document at a time. You can have up to 1000 documents in a single batch when indexing. This
    reduces overhead and indexing pressure on your search service.
    Hope this helps,
    -Bruce

  • Sorting dynamic data to display on specific web table rows.

    I am building a simple appt booking application. On one page I have a table, with the first column being appt time blocks of every 15 minutes.
    8:00
    8:15
    8:30
              and so on. I have each time as a link to book an appt passing the time as a url parameter to the booking page( that works fine).
    I'm strugging with sorting appointments that exist in the database with the matching time slot on the web page table, making it visually appealing to the end user.
    8:00
    8:15    some existing appointment
    8:30
    I would be nice if a repeat region would work, matching to a hidden field with the static time value to the record returned by the SELECT,  but i'm not sure how to coorelate the two. Leaving the open appointments slots blank, making it a single view of their day.
    Thanks in advance for any help!

    The concept seems right but I think my grasp of implementation is off.
    The appts table has the follow columns
    appt_hr | clientname | type | appt_day | appt_month | appt_year
    I created a table appt_tm where each column is a different 15 min time increment
    tm800 | tm815 | tm830  .....and so on up till tm2100
    I put in the first row for each column its time,  col (0800) , value 0800, so there would be a data pattern to match on the join. Wrote the Select statement using a LEFT JOIN, joining all time columns 0800 and so on to the one appt_hr in the appts table. The sql is fine, and the web page returns some time data only. I'm not sure how to pull over the clientnames, or if my usage of the join is off track.
    Part of my join
    SELECT *
    FROM appt_tm LEFT JOIN (appts) ON appt_tm.tm800=appts.appt_hr AND appt_tm.tm815=appts.appt_hr AND appt_tm.tm830=appts.appt_hr AND appt_tm.tm845=appts.appt_hr AND appt_tm.tm900=appts.appt_hr AND appt_tm.tm915=appts.appt_hr AND appt_tm.tm930=appts.appt_hr AND ......
    Thanks again!

  • Dynamic sort in ALV

    hi all,
    HOw can we write the dynamic sort in ALV.
    regards,
    AJ

    Hi,
    Please find the sample code for dynamic sort in OO ALV
      perform built_sort_table.
    form built_sort_table.
      data ls_sort_wa type lvc_s_sort.
      ls_sort_wa-spos = 1.
      ls_sort_wa-fieldname = 'MATNR'.    "<< here your pass fieldname to sort dynamically
      ls_sort_wa-up = selected.
      ls_sort_wa-subtot = ''.
      append ls_sort_wa to gt_sort.
      ls_sort_wa-spos = 2.
      ls_sort_wa-fieldname = 'STATUS'.  "<< here your pass fieldname to sort dynamically
      ls_sort_wa-up = selected.
      ls_sort_wa-subtot = ''.
      append ls_sort_wa to gt_sort.
    endform.                               " BUILT_SORT_TABLE
        call method grid1->set_table_for_first_display
          exporting
            is_layout                     = gs_layout
            is_variant                    = gs_variant
            i_save                        = 'A'
            it_toolbar_excluding          = i_exclude[]
          changing
            it_outtab                     = i_output[]
            it_fieldcatalog               = i_fieldcat[]
            it_sort                       = gt_sort[]
          exceptions
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            others                        = 4.
    aRs

  • 2010 Dynamically Sorting Dates

    I am trying to dynamically sort Change Order Effective Dates.  The Change Orders are issued in sequence (CO1, CO2, CO3, etc), however their effective dates are (may) not be sequential by date.  I am trying to sort the effective dates and associated
    CO costs and other information) dynamically to show the historical sequence of the COs as they become valid change orders.  I'm hoping to do this without any user interface - i.e., automatically.  Any suggestions? 

    Two points to answer your question
    Writing a macro for Sorting - There are multiple VBA Code I found which will help
    http://database.ittoolbox.com/groups/technical-functional/excel-l/macro-for-sorting-with-dynamic-range-2922598
    http://social.msdn.microsoft.com/Forums/en-US/3081ad82-1e88-4bf1-829e-5e0bdbac8aae/excel-2010-vba-sort-dynamic-range-name?forum=isvvba
    How do you want to activate this macro ?
    There are inbuilt functions which gets called automatically (Selection change, Value change, Sheet activation etc.) You can call the above written macro here 
    Although the automatic solution is good I'd recommend not to go for it since the macro gets called more frequently than not ... Assign the Macro written in 1st step to a Simple Form control Button which does the job

  • Sort one step behind help

    Merry <insert faith here> to all tonight.
    I'm doing a sort by dropdown which is bound to a string object in the session bean.
    In page1 I do a faultsRowSet.setCommand(getSessionBean1().getChoice())
    On change with the dropdown. The trouble is there is a lag between the dropdown variable and when it goes into the method so there seems to be always a lag between variables. Both the variable and the method is in the session bean.
    Any ideas would be gratefully accepted.
    Cheers Phil.

    Hi John,
    Unless there's something I missed but when sorting dynamically the table display has a bug (?) for editable fields on current page only other pages are correct (I think editable fields are not refreshed they keep old values, non editable fields are refreshed).
    For ex: I have editable textfields on data table, when I resort by choosing field to resort from dropdown box the editable textfields keep old value but non editable fields display new values correctly, I paginate to other pages all fields display correctly when I return to the page where I changed the sort order it still displays wrong date for editable fields.
    Now I change these textfields to readonly fields then they displays correct data.
    So somehow editable fields are not refreshed with data from rowset.
    Futher than this issue, I got an anomaly from UPDATE5, I don't know if other people reported.
    I created a new project with UPADTE5.
    I created a page PAGE1 with a rowset and data table, it works perfectly,
    I create another page PAGE2, I have an error in java code so now I can not bypass as before. So I have to correct the code before go to other pages.
    When I go back to PAGE1, all my components on PAGES turned RED on visual designer but when I run it, it worked well. On visual designer my data table now I have on header column, I even lost navigation buttons..when I try to edit the rowset it says I have to choose a table and displayed a list of tables from data source. When I tried to relink data table to the rowset the data table shrinks to a red square...
    In one word I have to add again the components...
    All components turned red except dropdown box..
    Any clues ?
    Best regards,
    Hung

  • Dynamic SQl Query Select

    Hello Colleague,
    I have a table that contains multiple entries of TABLE NAME.
    I need to query the databse table and check if certain entry exist in that table.
    I Loop over the table containing the tablenames and try a select :
    Loop at lt_key into ls_key.
      SELECT * FROM (ls_key) WHERE field = 'ABC' .
    ENDLOOP.
    It gives me a error and asks to store the result using INTO. Now i am confused with the type of result because the tablename is provided dynamically.
    Could you please help.
    Thanks in advance.
    Piyush

    HI,
    I did something similar to it, the following program accepts table
    name and fields from user and sort dynamically.
    REPORT  zreport_SORT.
    parameters:
      p_f1(15) obligatory,
      p_f2(15) obligatory,
      p_f3(15) obligatory,
      p_table(15).
    data:
      w_tab type ref to data,
      fs_tab type ref to data,
      w_flag,
      w_count type i.
    create data w_tab type table of  (p_table) .
    create data fs_tab type (p_table).
    data:
      t_tab type table of spfli,
      fs_tab1 like line of t_tab.
    field-symbols:
      <fs> type any table,
      <fs1> type any,
      <fs2> type any,
      <fs3> type any,
      <fs4> type any.
    at selection-screen.
    select count(*)
      from dd03l
      into w_count
    where tabname eq p_table
       and fieldname eq p_f1.
    if w_count eq 0.
      w_flag = 'Y'.
    endif.
    select count(*)
      from dd03l
      into w_count
    where tabname eq p_table
       and fieldname eq p_f2.
    if w_count eq 0.
      w_flag = 'Y'.
    endif.
    select count(*)
      from dd03l
      into w_count
    where tabname eq p_table
       and fieldname eq p_f3.
    if w_count eq 0.
      w_flag = 'Y'.
    endif.
    if w_flag eq 'Y'.
    clear w_flag.
    Message 'Incorrect field name' type 'E'.
    endif.
    start-of-selection.
    assign w_tab->* to <fs>.
    assign fs_tab->* to <fs1>.
      select *
        from (p_table)
        into corresponding fields of
       table <fs> up to 10 rows.
       sort <fs> by (p_f1) ascending (p_f2) ascending (p_f3) ascending.
    assign component p_f1 of structure <fs1> to <fs2>.
    assign component p_f2 of structure <fs1> to <fs3>.
    assign component p_f3 of structure <fs1> to <fs4>.
      loop at <fs> into <fs1>.
      write:/ <fs2>,
              <fs3>,
              <fs4>.
      endloop.
    Regards and Best wishes.

  • Help with sort on OLAP cubes

    Hi,
    I have a requirement to provide a D4O report where one of the cube measures is sorted desc. As I have explored on discoverer, I don't think my problem will be solved on the report side.
    Can I create a sort on the cube but this sort will not affect the cube's default sort? This a new report requirement on an existing cubes and I was thinking if I can have a sort in the cube where it will not affect any of the existing reports. Do I need to create a new measure for this? If so, how will I populate the measure?
    Example:
    Dimensions : TIME, GEOGRAPHY, CUSTOMER
    Cube Measures: Amount1, Amount2, TotalAmount
    Desired output on the report:
    Crosstab report where the rows are : Customer , Amount1, Amount2, TotalAmount
    PageItem: Time and Geography
    Sort on Total Amount desc.
    How to populate a new sort-measure such that it will be for all hierarchies of the dimensions in the cube?
    Any help will really be appreciated.
    Cheers,
    Gina

    Hi Gina,
    This can in fact be done using Discoverer, within the Query Builder. But you cannot sort the cube, this does not make sense from an OLAP perspective. You need to define a sort for each of your dimensions.
    In query builder, in the "Selected" panel on the right side of the dimensions tab there is a "Sort" button at the bottom of the selected list. Clicking on this button will launch the sort dialog. Click on the "Sort Members By:" radio button to enable the buttons on the right side of the dialog, then click on the "Add" button.
    In the "Sort By" pulldown, you will find a list showing the available sort options, such as: name, attribute values, measures included in the query, and a "more" option that will allow you to select any measure not currently included in the query. If you select the requiered measure "Total Amount", set the "Direction" to descending then the last step is to determine the QDR for the sort - that is the dimension selections for the other dimensions that make up the measure "Total Amount". For any dimensions that are on the page edge, or where the dimension is to the left of the dimension being sorted when more than one dimension is in the row edge, the QDR selector will allow a "For Each" selection which will make the sort dynamic for those dimensions. This "For Each" feature seems to be nicely hidden and not really covered in any of the documentation but is a very powerful feature and can be used in query filters as well, such as Top 10, Bottom 10 etc. In this case, using it in a sort, as the user selects a new page member, the sort will be re-applied. For other dimensions, such as the column edge you will have to pick a specific dimension member.
    You will need to repeat this process on each of your dimensions - Time, Geography and Customer (as an FYI, I would expect Customer and Geography to be the same dimension?). When you apply the sort, it will adhere to the hierarchy for your dimension, so as your drill down the members at each level will be correctly sorted using the measure "Total Amount".
    Hope this helps.
    Keith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Reuse_alv_grid_display TITLE problem after refresh

    All,
    I have a alv report using fm reuse_alv_grid_display. While calling initially this fm i am passing the grid tile in I_GRID_TITLE parameter. its displaying in grid, then after user click on the app toolbar button , i am doing some filteration , then coming back to grid the TITLE is missing in display
    Any Info .  below is the code snipet
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program             = sy-repid
         i_callback_pf_status_set       = 'F_PF_STATUS_SET'
         i_callback_user_command        = gc_user_com
         i_grid_title                   = gv_gtitle "<< passing initially
    then in User_command i am filering some values on the basis of button clicked (Button placed in app toolbar)
    FORM f_user_command USING p_ucomm    LIKE sy-ucomm
                              p_selfield TYPE slis_selfield .
        WHEN '&EXP'.
          perform f_expand.
          p_selfield-refresh = 'X'.  "<<<----- refresh the grid
      code for f_expand
    form f_expand.
        CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET'  " Getting current layout
          IMPORTING
            es_layout      = ls_layout
            et_filter      = lt_filter
            es_grid_scroll = ls_grid_scroll
            es_print       = ls_print
          EXCEPTIONS
            OTHERS         = 1.
    " Here doing some filteration. ie append some values to IT_FILTER table for enabling then filter
        perform f_set_fltr_val_exp using lt_filter[].
        ls_layout-colwidth_optimize = gc_x.
        read table gt_sfieldcat into gv_fieldcat
                          with key fieldname = 'REGIO'.
        if sy-subrc eq 0.
          gv_fieldcat-no_out = ' '.
          modify gt_sfieldcat from gv_fieldcat index sy-tabix.
        endif.
    * Set the grid title to include the parameters and the report type
      CONCATENATE text-027 p_bukrs text-028 p_perio
                  text-029 p_gjahr
             INTO gv_gtitle SEPARATED BY space.
        CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_SET'
          EXPORTING
            is_layout      = ls_layout
            it_fieldcat    = gt_sfieldcat
            it_sort        = gt_sort
            it_filter      = lt_filter
            is_grid_scroll = ls_grid_scroll
            is_print       = ls_print
          EXCEPTIONS
            OTHERS         = 0.
    endform.                    " F_expand

    Hi All,
    Thanks for your replies.  I have done all that has been said.  My problem is that when the user double clicks on the ALV without pressing the sort button in the ALV display, the index provided in the user-command subroutine is the same as the index of the record in the internal table.  But, when the user sorts dynamically when the ALV is displayed and then double clicks, the index of the record provided by ALV is different from the index of that record in the internal table.
    For example, when the ALV grid is shown a record is in the 1st row, and when the user double clicks now, the index of this record provided is 1 which is same as the index in the internal table.
    But, after the user sorts in the display, if this record moves to the 5th row, the index provided by ALV will become 5, but, actually the index in the internal table is still 1.
    Hope I have clarified my problem.
    Thanks,
    Sridhar

Maybe you are looking for

  • Airplay mirroring problems from MacBook Pro only

    I have the second newest MacBook Pro (the one that came out before the retina display) and an apple tv (Generation 3) that i just purchased last week. When i go to do airplay mirroring to put youtube or movies on the sound is perfect but the video is

  • In Mountain Lion when my Mac Pro awake after sleep,

    Finder is not accessible, the second display is not connected, I only can shut down and restart. Please help

  • Abap oops

    Hi Gurus, In ALV grid display, I have 'display' and 'print' icon in the application tool bar. When I select a particular record and click display buttton, it will display the detailed description of the particular row.but,  when i select the print bu

  • Cellular Data Settings

    I'm not sure I completely understand the cellular data setting in IOS7. When using facetime it seems to default to using cellular data even when connected to a network. Anyone know why? I don't remember having to mess with any cellular settings in IO

  • How to exclude FBA users from an audience

    I have the following situation (SharePoint 2013): I have an audience: internal users (rule is based on emailadress because internal users all have an email adress that ends the same) I created a navigation button which should only be visible for 'int