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

Similar Messages

  • 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

  • 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>
    >

  • Dynamic Sort on table control

    Hi friends,
    I am having a problem when sorting the table control dynamically based on the fields selectd.
    sorting is not working, when you select multiple fields ( one numeric field and one character field )  I have written code for handling multiple field sort,gettting field names correctly, everything looks fine but internal table is not getting sorted.
    Is it related unicode issue..?
    Any help will be appreciated.
    Sample code:
    loop at tc_control into lc_cols.
      case lc_cols-selected.
             wehn 'X'.
        split lc_cols-screen-name at '-' into gv_tabname gv_fieldname.
        move gv_fieldname gs_struc+lv_off(20)
        add 20 to lv_off.
      endcase.
    endloop.
    if ok_code = 'ASCE'.
      sort itab by (gs_struc-field1) (gs_struc-field2) ..... ascending
    endif.
    Thanks in advance
    Thiru.p

    Hi
    Try using an internal table for the field names..
    Example
    DATA: BEGIN OF ITAB OCCURS 0,
            MATNR TYPE MATNR,
            WERKS TYPE WERKS_D,
          END OF ITAB.
    DATA: ITAB_FIELD(30) OCCURS 0 WITH HEADER LINE.
    DATA
    ITAB-MATNR = 'ABC'.
    ITAB-WERKS = 'ABCD'.
    APPEND ITAB.
    ITAB-MATNR = 'ABC'.
    ITAB-WERKS = 'ABC'.
    APPEND ITAB.
    SORT INTERNAL TABLE
    ITAB_FIELD = 'MATNR'.
    <b>APPEND ITAB_FIELD.</b>
    ITAB_FIELD = 'WERKS'.
    <b>APPEND ITAB_FIELD.</b>
    <b>SORT ITAB BY (ITAB_FIELD).</b>
    LOOP AT ITAB.
      WRITE: / ITAB-MATNR,ITAB-WERKS.
    ENDLOOP.
    Thanks
    Naren

  • Sort a dynamic table

    Hi friends.
    I am currentyl trying to find a way to sort a table which only has dynamic attributes. I do not know the structure type at design and runtime.
    So how can I get a table of the dynamic attributes of a node like get_static_attributes_table( )?
    Any ideas are welcome.
    Cheers,
    Sascha

    Hi Sascha,
       Did you try using
    data : Table type  table

  • How to show the filter and sort capabilities in adf dynamic table

    hi
    how to show the filter and sort capabilities in adf dynamic table..
    Pls help me

    Hi
    Click on a colum in your table and go to the properties pallet
    make true the sortable property then you can sort the table according to that column
    Thanx
    Padma

  • Use the value of a field as column-name of a dynamic table

    Hi All
    I have the following situation:
    a) Internal table TB_ORDER_CONDITION ==>  data: tb_order_condition type standard table of bapicond.
         sample of the internal table TB_ORDER_CONDITION:
    CONT_TYPE # CONDVALUE# CONDBASEVAL  
        ZR00         #    38.800000#  1.000000
        ZR30         #    2.800000  #  0.000000
        SKTO        #    0.000000  #  57.8500000
    b) dynamic-table  <L_TABLE_II> has the following columns:
    ZR00#ZR30#ICM3#IPS2  SKTO  
    c) I would like to move as below:
    ZR00#ZR30# ICM3#IPS2# SKTO 
    38.800000#2.800000#57.8500000
    Observation:
    I used this symbol just to show the separationfrom one column from another.
    Items a) and b) are OK. The problem is that I don't know how to make this move as showed in item c).
    Could you please advise?
    Thanks in advance.
    Gaia

    Hello,
    Check the code snippet below:
    FIELD-SYMBOLS: <wa_order_creation>  TYPE bapicond,
                   <l_table_ii>         TYPE STANDARD TABLE,
                   <l_wa_ii>            TYPE ANY,
                   <l_fieldval>         TYPE ANY.
    SORT tb_order_condition BY itm_number. "Sort by Item Number
    LOOP AT tb_order_condition ASSIGNING <wa_order_creation>.
    * Add a record to the dynamic table for each item
      AT NEW itm_number.
        APPEND INITIAL LINE TO <l_table_ii> ASSIGNING <l_wa_ii>.
      ENDAT.
      ASSIGN COMPONENT <wa_order_creation>-cond_type
      OF STRUCTURE <l_wa_ii> TO <l_fieldval>.
      IF sy-subrc = 0.
        <l_fieldval> = <wa_order_creation>-cond_value.
      ENDIF.
    ENDLOOP.
    BR,
    Suhas

  • Here's how to use DYNAMIC tables for almost any structure (4.6C onwards)

    Hi guys
    I'm describing a  feature  here that has been around since 4.6C that is not really well known but can really simplfy programming where you need to get data into some sort of internal table and then display it either as a classical list or as al ALV grid.
    This feature is RTTI which allows you to retrieve your structure, build a dynamic FCAT (Field catalog) and a Dynamic table.
    Here's a really quick little program which reads 200 entries from VAPMA into a dynamic table. Any structure will work if you use the code sample shown.
    To pass it to an ALV GRID  is then really simple as you've already got the Field Catalog, Table and Data.
    The method I'm showing below will work for almost ANY structure you care to name whether or not the fields are in the data dictionary.
    I create a dynamic FCAT and dynamic table based on the FCAT and then populate it.
    You can create field catalogs dynamically quite simply by using the new RTTI facility available from 4.6C onwards.
    (From here it's only a small step to dynamic tables and EASY ALV grid displays)
    Example to create dynamic FCAT and table and populate it with 200 entries from VAPMA
    PROGRAM ZZ_BUILD_FLDCATALOG.
    tables: vapma.
    Define any structure
    types: begin of s_elements,
    vbeln type vapma-vbeln,
    posnr type vapma-posnr,
    matnr type vapma-matnr,
    kunnr type vapma-kunnr,
    werks type vapma-werks,
    vkorg type vapma-vkorg,
    vkbur type vapma-vkbur,
    status type c,
    end of s_elements.
    end of your structure
    data lr_rtti_struc type ref to cl_abap_structdescr .
    data:
    zog like line of lr_rtti_struc->components .
    data:
    zogt like table of zog,
    wa_it_fldcat type lvc_s_fcat,
    it_fldcat type lvc_t_fcat ,
    dy_line type ref to data,
    dy_table type ref to data.
    data: dref type ref to data.
    field-symbols: <fs> type any,
    <dyn_table> type standard table,
    <dyn_wa>.
    *now I want to build a field catalog
    *First get your data structure into a field symbol
    create data dref type s_elements.
    assign dref->* to <fs>.
    lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( <fs> ).
    zogt[] = lr_rtti_struc->components.
    Now build the field catalog.  zogt has the structure in it from RTTI.
    loop at zogt into zog.
    clear wa_it_fldcat.
    wa_it_fldcat-fieldname = zog-name .
    wa_it_fldcat-datatype = zog-type_kind.
    wa_it_fldcat-inttype = zog-type_kind.
    wa_it_fldcat-intlen = zog-length.
    wa_it_fldcat-decimals = zog-decimals.
    wa_it_fldcat-coltext = zog-name.
    wa_it_fldcat-lowercase = 'X'.
    append wa_it_fldcat to it_fldcat .
    endloop.
    Let's create a dynamic table and populate it
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = it_fldcat
    importing
    ep_table = dy_table.
    assign dy_table->* to <dyn_table>.
    create data dy_line like line of <dyn_table>.
    assign dy_line->* to <dyn_wa>.
    select vbeln posnr matnr kunnr werks vkorg vkbur
    up to 200 rows
    from vapma
    into corresponding fields of table <dyn_table>.
    from here you can pass your table to a GRID for display etc etc.
    Cheers
    Jimbo

    Thanks for the info.
    I went to their web site and also Googled.
    I found a great review on their photographer's books on nikonians.org
    They use an HP/Indigo Ultrastream 3000 digital offset press for all hardcover books, which is GREAT!
    I did sign up and requested the 45 day trial "photographer" account.
    I am curious if Shared Ink offers a size that matches the ONLY current book size from Aperture, the odd 8.5x11.
    In the above review, I saw that Shared Ink offers a 12x12 book.. very nice! Except you will need to design that one in CS2
    So then, all that Apple really needs to do is simply add the ability to select/create custom book sizes. Then we don't need a printing service from Apple, as there are plenty of options out there, and more arriving on the market each month!

  • Could anyone provide sample of WebDynpro Java TableFilter for Dynamic Table

    Hi
    I have a dynamic table I have given a context node as a data source and it executes a Web Service and populates itself based on the resultset of query this node contains no of columns and rows
    The table changes dynamically everytime the user selects different table type
    When I created a TableFilter I used IWDTableColumn from the current view and looped though the context elements and binded the values of attributes of each context element to this column inside a loop. TableSort works, But I  am not able to get the Filter working for the Dynamic Table , when I click on Filter Button the Filter does not filterand  just sorts.
    Not sure what is wrong but if someone can give some inputs,leads I will highly appreciate if some one has  a  sample of WebDynpro Java TableFilter for Dynamic Table
    Thanks in advance,
    Ragu.

    Hi Ragu,
    Please check the link for table filtering.
    http://wiki.sdn.sap.com/wiki/display/WDJava/GenericTableFilter+Code
    since your dynamic table uses webservice I assume it has fixed context attributes, just put the filter into wdDoModify method everytime you execute/trigger the webservice.
    Regards,

  • Problem using DELETE ADJACENT DUPLICATES with dynamic table

    Hello All,
       In my program i have to delete duplicate records from dynamic table.
    I tried using  DELETE ADJACENT DUPLICATES FROM <DYN_TABLE> COMPARING <fieldname1> <fieldname2> but it fails in syntax check, then i tried like below:
      DATA string type string.
      string = '<fieldname1> <fieldname2>.........'.
      DELETE ADJACENT DUPLICATES FROM <DYN_TABLE> COMPARING (string).
    It also got failed at runtime.
    Please suggest how can i achieve this....
    Regards
    Munish Garg

    Hi,
    this code is worked truly.
    You can try this.
    Regards.
    DATA itab LIKE STANDARD TABLE OF mard.
    SELECT * FROM mard INTO TABLE itab UP TO 100 ROWS.
    * You define max number of the field that you need
    data : cmp01  TYPE string,
    cmp02 TYPE string,
    cmp03 TYPE string,
    cmp04 TYPE string,
    cmp05 TYPE string.
    * You fill the fields that you need, others is clear.
    cmp01  = 'MATNR'.
    cmp02 = 'WERKS'.
    CLEAR : cmp03,cmp04,cmp05.
    SORT itab BY (cmp01) (cmp02) (cmp03) (cmp04) (cmp05).
    DELETE ADJACENT DUPLICATES FROM itab COMPARING (cmp01) (cmp02) (cmp03)
    (cmp04) (cmp05).

  • Create sortable dynamic table header

    I have a webpage .ASP that connects to a database by system ODBC connection.  How can I make my dynamic table have clickable header text to sort the column in ascending or descending order?
    Dreamweaver CS3
    Thanks

    If you do it server-side, the page will need to reload every time you
    sort. You could do it client side, with a bit of script, as we've done
    on our updates page (after several suggestions to do so from a customer
    who posts regularly on this forum
    http://www.projectseven.com/support/updatepages/
    Al Sparber - PVII
    http://www.projectseven.com
    The Finest Dreamweaver Menus | Galleries | Widgets
    Since 1998

  • Delete adjacent duplicates from dynamic table

    Hi all,
    How to do delete adjacent <tab> comparing f1 f2 f3 for a dynamic table.
    Thx in advance
    Edited by: Misha Denis on Feb 14, 2010 9:28 AM
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Feb 14, 2010 3:45 PM

    you can use a function   GET_COMPONENT_LIST to get all the fields' name  after the dynamic table generated. then you can use the field name in the statement "DELETE....COMPARE "
         CALL FUNCTION 'GET_COMPONENT_LIST'
             EXPORTING
               program          = SY-REPID
               fieldname        = THE_NAME_OF_THE_DYNAMIC_INTERNAL_TABLE
             tables
               components       = ITAB
    LOOP AT ITAB.
    *ASSIGN THE ITAB-COMPNAME TO SOME VARIANTS:FIELD1,FIELD2,FIELD3.
    ENDLOOP. 
    SORT THE_NAME_OF_THE_DYNAMIC_INTERNAL_TABLE BY FIELD1  FIELD2  FIELD3.
    DELETE ADJACENT DUPLICATES FROM THE_NAME_OF_THE_DYNAMIC_INTERNAL_TABLE COMPARING FIELD1 FIELD2 FIELD3.

  • Dynamic table manipulation

    hi experts...
    suppose i have i_tab with component werks, matnr, mtart.
    in i_tab, i have retrieved 2 entries of matnr from one werks.
    i have to transfer the entries from i_tab into dynamic table <dyn_tab>.
    how will i transfer each entry?
    i have created and assigned work area for the dynamic table output:
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    please help me with this. thanks!
    march

    Do it like this:
      METHOD fill_dynamic_tab.
        DATA: l_descr_ref TYPE REF TO cl_abap_structdescr,
              l_str       TYPE string,
              l_tabix     TYPE sytabix.
        FIELD-SYMBOLS: <li_table> TYPE ANY,
                       <comp_wa>  TYPE abap_compdescr,
                       <fzmach>   TYPE zscmachine.           "This is your i_tab work area
    * Create dynamic work area and assign to FS
        CREATE DATA dy_line LIKE LINE OF <dyn_table>.
        ASSIGN dy_line->* TO: <dyn_wa>, <li_table>.
          l_descr_ref ?= cl_abap_typedescr=>describe_by_data( <dyn_wa> ).
          check ( l_descr_ref IS BOUND ).
    * Main logic
        LOOP AT lt_zmach ASSIGNING <fzmach>.                 "This is your i_tab
          MOVE-CORRESPONDING <fzmach> TO: <li_table>, <dyn_wa>.
          READ TABLE l_descr_ref->components ASSIGNING <comp_wa>
                       WITH KEY name = 'WERKS'.
            l_tabix = sy-tabix.
            IF sy-subrc = 0.
              ASSIGN COMPONENT l_tabix OF STRUCTURE <li_table> TO <dyn_field>.
              <dyn_field> = <fzmach>-werks.
            ENDIF.
            READ TABLE l_descr_ref->components ASSIGNING <comp_wa>
                       WITH KEY name = 'MATNR'.
            l_tabix = sy-tabix.
            IF sy-subrc = 0.
              ASSIGN COMPONENT l_tabix OF STRUCTURE <li_table> TO <dyn_field>.
              <dyn_field> = <fzmach>-matnr.
    * keep doing as above for all other fields you require
            APPEND <li_table> INTO <dyn_table>.
          CLEAR: <li_table>, <dyn_wa>.
        ENDLOOP.
        SORT <dyn_table>.
      ENDMETHOD.                    "fill_dynamic_tab
    I'm not in front of a system, so you might get syntax errors, correct them as you go.
    <b>Don't forget to reward points if this has helped you!</b>
    Cheers,
    Sougata.

  • Ad link and image to spry dynamic table

    hello,
    i create a simple spry dynamic table i want to add a column
    with image (link to a photo gallery) and another one whose linking
    to pdf files. How i can do this.
    my html code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>tableau choix séjour raquette: Bauges,
    Chartreuse</title>
    <style type="text/css">
    <!--
    .Style49 {color: #FF6600}
    -->
    </style>
    <script type="text/javascript"
    src="xpath.js"></script>
    <script type="text/javascript"
    src="SpryData.js"></script>
    <script type="text/javascript">
    var dsMassifs = new Spry.Data.XMLDataSet("tab_raquette.xml",
    "massifs/massif");
    </script>
    </head>
    <body>
    <div spry:region="dsMassifs">
    <table width="950" height="294" border="1"
    align="center">
    <tr>
    <th width="78" scope="col"spry:sort="@id"><div
    align="center" class="Style49">Massif</div></th>
    <th width="84"
    scope="col"spry:sort="durée"><div align="center"
    class="Style49">Durée</div></th>
    <th width="164"
    scope="col"spry:sort="thème"><div align="center"
    class="Style49">Thème</div></th>
    <th width="77" scope="col"spry:sort="niveau"><div
    align="left" class="Style49">Niveau</div></th>
    <th width="77" scope="col"spry:sort="niveau"><div
    align="center">Fichiers</div></th>
    </tr>
    <tr spry:repeat="dsMassifs">
    <td><div
    align="center">{@id}</div></td>
    <td><div
    align="center">{durée}</div></td>
    <td><div
    align="center">{thème}</div></td>
    <td><div
    align="left">{niveau}</div></td>
    <td><div
    align="left">{fichier}</div></td> </tr>
    </table>
    </div>
    </body>
    </html>
    my xml code:
    <?xml version="1.0" encoding="utf-8"?>
    <massifs xmlns="
    http://www.foo.com/employees">
    <massif id="Bauges">
    <durée>Week end</durée>
    <thème>raquette et bien
    être</thème>
    <niveau>1</niveau>
    <fichier>Fiche circuit.pdf</fichier>
    </massif>
    <massif id="Chartreuse">
    <durée>4 jours</durée>
    <thème>raquette et gastronomie
    </thème>
    <niveau>2</niveau>
    <fichier>Fiche circuit.pdf</fichier>
    </massif>
    </massifs>

    "David Powers" <[email protected]> wrote in message
    news:fapkm4$cjt$[email protected]..
    > Joris van Lier wrote:
    >> Does Dreamweaver CS3 contain such a "Live Object"?
    >> (one that generates XML export and Spry DynamicTable
    code from a
    >> Recordset?)
    >
    > One of the registration gifts for CS3 is an XML Export
    extension, which
    > generates XML on the fly from a recordset.
    Thanks for you reply David,
    since I posted I've found the the Spry documentation for
    Dreamweaver 9, and
    the info at
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WS48C07A61-5107-48d0-AC6 2-D96B7A008F01.html,
    seems to suggest that inserting a spry DynamicTable is a
    multi step process,
    so the Live Object may still be useful in other servermodels,
    but I'll focus
    my efforts on duplicating the existing Spry integration for
    the PHAkt
    servermodel.
    Joris

  • Dynamic Table display Horizontally??

    Is there any relatively easy way to make a DW CS3 Dynamic
    Table display horizontally? So far the best I can figure out is to
    do multiple <cfoutput query= lines per:
    <table border="1">
    <tr> <cfoutput query="rsOfficeStyles"
    startRow="#StartRow_rsOfficeStyles#"
    maxRows="#MaxRows_rsOfficeStyles#">
    <td>#rsOfficeStyles.image#</td> </cfoutput>
    </tr>
    <tr> <cfoutput query="rsOfficeStyles"
    startRow="#StartRow_rsOfficeStyles#"
    maxRows="#MaxRows_rsOfficeStyles#">
    <td>#rsOfficeStyles.name#</td> </cfoutput>
    </tr>
    </table>

    You need to pass the following to the quantity fields..
    ls_fieldcat-do_sum = 'X'.
    When you build the sort table, do this...
    FORM sort_build USING lt_sort TYPE slis_t_sortinfo_alv.
      DATA: ls_sort TYPE slis_sortinfo_alv.
      CLEAR ls_sort.
      ls_sort-spos = 1.
      ls_sort-tabname = gt_tabname_item.
      ls_sort-fieldname = 'DESCBIEN'.
      ls_sort-subtot = 'X'.
      ls_sort-up = 'X'.
      ls_sort-group = 'UL'.
      APPEND ls_sort TO lt_sort.
    ENDFORM.                    " sort_build
    Has you any way of knowing which fields are quantity?
    Greetings,
    Blag.

Maybe you are looking for

  • Dunning phases and blockades not visible for archived invoices in FPL9

    Hi experts, I am not able to see the dunning phases and blockades for archived invoices when i am opening FPL9 with archive. My requirement is that it should be visible and donot so any error message. Can you please provide me with the solution ? Tha

  • Can I add a 200 Gig Drive?

    I have a Maxtor 200Gb ATA drive. The install manual says you need to have ATA/133 capability to get the full 200Gb use out of it. Without that capability, you can only "see" up to 128Gb. That much is true. I had this drive in an older G4 and could on

  • Need to split multi-page ID file into multiple-single paged ID files

    I have created a 366 page document (and have 2 more to create). None of the text threads from page to page, and there are no master page items. Each page is destined to be used as a single block that will be copied and pasted into a master document b

  • Is instant on, or resume from sleep expected to be slower?

    I have a MBA 1.6 GHz Core 2 Duo with 4 GB RAM and after upgrading to Lion it takes an unusual amount of time (around 10 seconds) to wake up from the sleeping state (closing the lid).  This time varies depending on how long the system has been in slee

  • Difference between Oracle 8i and Oracle 9i

    What is the difference between Oracle 8.0/8i and Oracle 9i?