Total sum to be displayed in a table view control ?

Hi,
  I am unable to display the total sum of a column in a table view control( using HTMLB ). How should one display the sum of a column ?
THanks in advance,
VaraPrasad

Hi,
it should work once you are restricting the capacity of the out put port then it should provide that much rows only otherwise its a Bug.
Alternativily you are tellin to disaply using sorting then add a Sort operator to the output port and the display ur output port in down order.
But first option should work just check it again.
On which SP u r working?
Regards,
Govindu

Similar Messages

  • To display Total sum of a column in a table view control ?

    Hi,
      I am unable to display the sum of a column in a table view control ( using HTMLB ). How should one display the sum of a column in a table view control ?
    Thanks in advance.
    Vara.

    Hi there, do a search in this forum for TableView Iterator. Then check out these weblogs:
    /people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    An Iterator is the way to go for you

  • How to "group by" and display  in separated table views

    What cloud be the approach to the following scenario:
    1) A RFC returns a list of lot of invoices.
    2 How to group by "customer code" and display in separated table views  for each customer "group of invoices" ?
    Is there a way to do this using VC or only using WebDynpro ?
    thanks

    Issac,
    you dont hv to do this using dynpro. you can achieve this in vc by using the 'Filter' operator. from the output port of the rfc, feed the results to multiple filters. hv one filter for each segregation (for eg for each customer code). Then feed these filtered entries to the table views.
    prachi

  • TABLE VIEW CONTROL IN MODULE POOL PROGRAMMING

    Hai Friends,
    <b>My problem is i design table view control using se51. I entered the data on table view and when i  press ENTER button on keyboard the total data is disapears from the screec(i.e table view).
    but i do not want this functionality. when i press ENTER button on keyboard that data is must be on the screen only.....................
    please tell me how it is possible   
    </b>

    Hello,
    Fill the data of the table control in PBO event of the screen.
    CHeck this sample report:
    DEMO_DYNPRO_TABCONT_LOOP
    Vasanth

  • Table view control problem in screen painter

    Hi All,
    i am unable to display the contents in the table view control in screen painter....actually i have created two screen one to take input and second to display details on next screen in table view control..but i m nt getting that details...
    my second screen PBO/PAI code is
    PROCESS BEFORE OUTPUT.
    loop at itab with control TCNTRL CURSOR tcntrl-current_line.
    MODULE STATUS_0101.
    endloop.
    PROCESS AFTER INPUT.
    loop at itab.
    endloop.
    MODULE USER_COMMAND_0101.
    can anyone solve my problem????????
    Thanks,
    Jayshree

    Hi,
    Use below approch (syntax may not be correct as I have typed it in notepad but use it as guide line)
    ***In screen flow logic
    PROCESS AFTER INPUT.
      module cancel at exit-command.
      chain.
        field: zproject_details-originator,
            zproject_details-proj_type.
        module check_data on chain-request.       
      endchain.
      module user_command_002.
    ***In abap code
    module cancel input.
      leave program.
    endmodule.
    module check_data input.
      if zproject_details-originator is initial.
        message exxxx "throw error message here
      endif.
      if zproject_details-proj_type is initial.
        message exxxx "throw error message here
      endif.      
    endmodule.
    module user_command_002.
      save_ok = ok_code.  "good practice to save okcode
      clear ok_code.
      case save_ok.
        when 'save' " using constant for fcode here is better
          perform save_data. "make it moduler instead of writing whole code in case statement
      enscase.
    endmodule.
    form save_data.
    ** do some additional checks if required before saving
    update zproject_details from zproject_details. " update database table here from work area contents
    endform.
    Regards,
    Vishal

  • Input field in a table view control

    Hi,
        I have a table view control, with input field in one of the columns.
        That is meant for entering some values.
        My problem is when i am entering a 3 input field with value and then by   using     mouse control i enter say 20th input field with value.  After that when i use the directional keys to enter the 21st field, the cursor is not in 21st field, it is somewhere else.
    How to correct this problem.
    Regards,
    Vijayalakshmi

    Hi,
    Try to use the TABINDEX property of <input>.
    Best regards,
    Guillaume

  • Help Needed regarding to Table View Control

    Hi Abapers
    In Table View Control which property or system variable keeps the user selected row's row id.
    Situation is that user enters many records into sales details table view. Table view contains the fields, productid product no qty discount and rate. Suppose user wants to delete one particular record(sales details) from that table view while entering this sales details .here i want to know which is that particular row that the user selected. Table views which property keeps this row no information. i am very glad if you people give me more information abount table View Controls .
    With regards
    Anoop.

    Hello Anoop,
    post your questions in the correct forums and you can hope to get a better answer. This forum as you see is the suggestions and comments forum and not the ABAP forum.
    Sameer

  • Help Needed on Table View Control

    Hi Abapers
    In Table View Control which property or system variable keeps the user selected row's row id.
    Situation is that user enters many records into sales details table view. Table view contains the fields, productid product no qty discount and rate. Suppose user wants to delete one particular record(sales details) from that table view while entering this sales details .here i want to know which is that particular row that the user selected. Table views which property keeps this row no information. i am very glad if you people give me more information abount table View Controls .
    With regards
    Anoop.

    You would have to use the outbound plugs to transfer data from your component to the other component. Here you have a parameter IV_DATA_COLLECTION. Fill the entries you want to fill here.
    Check the Sold to Party pop up while creating Quotation for Sales cycle when you log in with SALESPRO.
    Regards
    Kavindra
    Edited by: joshi_kavindra on Nov 23, 2011 5:03 PM

  • Displaying icons in tree view control

    Hi all
            i am trying to display  icons in my tree view control.I am using beow code but i am not getting the ouput.Please help me.
    Type-pools : fibs,stree , ICON.
    data : t_node type snodetext.
    data : node_tab like t_node occurs 0 with header line,
           it_icon_id type icon-id.
    clear : node_tab, node_tab[].
    select single id from icon into it_icon_id
           where name = 'ICON_CUSTOMER'.
    node_tab-type = 'T'.
    node_tab-name = 'Earth'.
    node_tab-tlevel = '01'.
    node_tab-nlength = '5'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    node_tab-NODEICON = it_icon_id.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Europe'.
    node_tab-tlevel = '02'.
    node_tab-nlength = '6'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 4.
    node_tab-NODEICON = it_icon_id.
    append node_tab.
    clear node_tab.
    CALL FUNCTION 'RS_TREE_CONSTRUCT'
    EXPORTING
      INSERT_ID                = '000000'
      RELATIONSHIP             = ' '
      LOG                      =
      TABLES
        NODETAB                  = node_tab
    EXCEPTIONS
      TREE_FAILURE             = 1
      ID_NOT_FOUND             = 2
      WRONG_RELATIONSHIP       = 3
      OTHERS                   = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      DATA: type_mapping TYPE stree_ctl_type_mapping_tab.
      DATA: wa_type TYPE stree_ctl_type_mapping.
      CLEAR: type_mapping[].
        wa_type-type = 'A'.
        wa_type-icon = '@A0@'.
        APPEND wa_type TO type_mapping.
    CALL FUNCTION 'RS_TREE_CONTROL_PREPARE'
    EXPORTING
        CONTROL_PATTERN             = 'PH'
        MULTIPLE_SELECTION          = 'X'
         TYPE_MAPPING                = type_mapping.
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
    EXPORTING
    LAYOUT_MODE                     = ' '
      USE_CONTROL                     = STREE_USE_LIST.
    Thank you.
    Regards
    Giri.

    Here is another option using <ICON> include,
    *& Report  ZKB_TREE_EXAMPLE
    REPORT  zkb_tree_example.
    INCLUDE <icon>.
    TYPES: BEGIN OF t_sbook,
            customid TYPE sbook-customid,
            fldate TYPE sbook-fldate,
            bookid TYPE sbook-bookid,
          END OF t_sbook.
    DATA: i_sbook TYPE TABLE OF t_sbook,
          w_sbook TYPE t_sbook.
    SELECT-OPTIONS: s_custid FOR w_sbook-customid.
    DATA: o_custom_container  TYPE REF TO cl_gui_custom_container,
          o_tree              TYPE REF TO cl_gui_simple_tree.
    TYPES: t_node_table LIKE TABLE OF trstree.
    DATA: i_node TYPE t_node_table,
          w_node TYPE LINE OF t_node_table.
    START-OF-SELECTION.
      CALL SCREEN 9000.
    *&      Module  status_9000  OUTPUT
          text
    MODULE status_9000 OUTPUT.
      SET PF-STATUS '9000'.
    ENDMODULE.                 " status_9000  OUTPUT
    *&      Module  user_command_9000  INPUT
          text
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm .
        WHEN 'BACK' OR 'EXIT'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " user_command_9000  INPUT
    *&      Module  init_9000  OUTPUT
          text
    MODULE init_9000 OUTPUT.
      DATA: lw_sbook TYPE t_sbook.
      SELECT customid fldate bookid FROM sbook
             INTO TABLE i_sbook WHERE customid IN s_custid.
      SORT i_sbook BY customid ASCENDING.
      CREATE OBJECT o_custom_container
           EXPORTING
                container_name              = 'TREE'
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Creating Container' TYPE 'E'.
      ENDIF.
      CREATE OBJECT o_tree
           EXPORTING
               parent                      = o_custom_container
               node_selection_mode         =
                                 cl_gui_simple_tree=>node_sel_mode_single
           EXCEPTIONS
               lifetime_error              = 1
               cntl_system_error           = 2
               create_error                = 3
               failed                      = 4
               illegal_node_selection_mode = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Creating Tree' TYPE 'E'.
      ENDIF.
    Add ROOT Folder
      CLEAR w_node.
      w_node-node_key  = 'ROOT'.
      w_node-text      = 'Root'.
      w_node-isfolder  = 'X'.
      APPEND w_node TO i_node.
      CLEAR lw_sbook .
      LOOP AT  i_sbook INTO w_sbook.
        IF lw_sbook-customid NE w_sbook-customid.
          lw_sbook-customid = w_sbook-customid.
          CLEAR w_node.
          w_node-node_key  = w_sbook-customid.
          w_node-text      = w_sbook-customid.
          w_node-relatkey  = 'ROOT'.
          w_node-relatship = cl_gui_simple_tree=>relat_last_child.
          w_node-isfolder  = 'X'.
          APPEND w_node TO i_node.
        ENDIF.
        CLEAR w_node.
        w_node-node_key  = w_sbook-bookid.
        w_node-relatkey  = w_sbook-customid.
        w_node-relatship = cl_gui_simple_tree=>relat_last_child.
        w_node-text      = w_sbook-bookid.
    <b>    w_node-n_image = icon_customer.</b>
        APPEND w_node TO i_node.
      ENDLOOP.
      CALL METHOD o_tree->add_nodes
        EXPORTING
          table_structure_name           = 'TRSTREE'
          node_table                     = i_node
        EXCEPTIONS
          failed                         = 1
          error_in_node_table            = 2
          dp_error                       = 3
          table_structure_name_not_found = 4
          OTHERS                         = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Adding Node to Tree' TYPE 'E'.
      ENDIF.
    Expand tree
      CALL METHOD o_tree->expand_root_nodes
        EXPORTING
          level_count    = 2
          expand_subtree = ' '
        EXCEPTIONS
          OTHERS         = 1.
      IF sy-subrc <> 0.
        MESSAGE 'Error Expanding Tree' TYPE 'E'.
      ENDIF.
    ENDMODULE.                 " init_9000  OUTPUT
    Regards
    Kathirvel

  • WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    Subhash,
    You create and distribute a model in BD64. The details of that are stored in this tables.
    A model gives you the details of the sender / receiving systems and what are the message types that are getting transferred between these systems.
    Regarding the IDOC segments issue, can you explaing how are you triggering the IDOC and which message / idoc type you are dealing with.
    Regards,
    Ravi
    Note :Please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Total sum of column for a af:table

    Hi all,
    I am using JDeveloper 11g with ADF BC.
    I've try to create a method in VO to iterate through all the rows to calculate sum as following:
            Row curItem = first();
            while (curItem!=null) {
                Long l = DbsDelegate.attributeAsLong(curItem.getAttribute("field1"));
                if (l != null)
                    result+= l.longValue();
                curItem = next();
            }        I found it is not a good practice. Since the cursor will jump to the last record after that. And most important, the next() method call will fire a NavigationEvent to registered RowSetListeners, by calling RowSetListener.navigated() as documented here: http://www.bisnis.com/doc/rt/oracle/jbo/server/ViewObjectImpl.html#next%28%29
    Is there any better way to iterate through a VO and calculate some summary data?
    Regards,
    Samson Fu

    Let the DB do the calculation. Implement a method in your VO which returns the 'select sum(col) from table'.
    Timo

  • How to get the total amount of filtered row in a table view

    I have created filter tables for each columns of my tableview. Now I want to add a row with some totals. For this I use an iterator and implement the RENDER_ROW_START. It is easy to add a new lines knowing the number of expected rows (add the line at the end). But the hic comes when there is a filter. How can I know how many rows I will have in the filtered table. There is no parameters that I found. Not even in an event handler.
    Thanks a lot in advance for your help

    i found the solution, thanks

  • Records not displayed on the table view

    We have a scenario as follows :
    I am working on webdynpro project in which i have table on one of my second view.
    when i insert a records in the table by entering its values from the Form on the startView,  it is being shown as populated on the table.
    But once I insert my second record(s) also, the first or the previous records are not visible once i click on the display button.
    Can anyone help me to solve my problem as to how to see all the records inserted in the table on this view.
    Also plz let me know how to physically check the records on the database side.I am using the dictionary tables as my datasource and using SAPDB database.
    Thanx in advance..

    hi
    Try this code.
    Node-->Person
    Attributes of Person-->FirstName,LastName(String)
    ComponentController-->FirstCompController
    FirstView:
    onActionDisplay(...){
    String fname= wdContext.nodePerson().currentPersonElement().getFirstName();
    String lname=wdContext.nodePerson().currentPersonElement().getLastName();
       wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setFirstName(fname);
       wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setLastName(lname);
        wdThis.wdFirePlugOut1();
    SecondView:
    onPlug<plugname>(..)
    String fname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getFirstName();
      String lname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getLastName();
       IPrivateSecondView.IPersonElement elem=wdContext.nodePerson().createPersonElement();
       elem.setFirstName(fname);
       elem.setLastName(lname);
       wdContext.nodePerson().addElement(elem);
    you have to do navigationlinks from FirstView to SecondView and viceversa and also context mapping between ComponentController and views.
    In the second view also create actionbutton for navigating to the firstview and
    Fire the oubound plug also.
    Regards
    sowmya.

  • Get selected row values from Table view control

    Hi ,
    I am using transaction ME23N, would like to access row values from item table for selected row. I have written a script as in screen shot and its giving me error at java script step two. I want to get the PR number from item table for selected row.
    With Regards
    Vishal Lokapur

    H Vishal,
    Can you please share how you were able to resolve the issue regarding the selected row
    in case of a table control .
    Regards

  • Table view control

    hi,
    i am using a table control to hav the customer information.i need to edit some fields in my table control to change the values and the chaged values should be updated to the database table.how to edit the fields in TC and how the updation can be made.please give me the related infomation regarding the same.
    thanks&regards,
    shwetha.

    <b>In PBO
    you have something like </b>
    loop at itab with control cursor control-current_line
    module editable.
    endloop.
    <b>in the pai like this</b>
    loop at itab.
    module save.
    endloop.
    editable should do this
    loop at screen.
    check screen-name = fieldtobeeditableon the screen.
    screen-input = 1.
    screen-output = 1.
    modify screen.
    endloop.
    save should do
    move fieldname of the screen to work area.
    then modify

Maybe you are looking for

  • Shuffling songs on a single Album

    When I set Settings | Shuffle to "Songs", my iPod Classic does indeed shuffle all the songs for an Artist or Genre. But when I select a specific Album, it always plays all the songs on the album sequentially -- always beginning with the first song. T

  • I HAVE BLOCK SITE AND i FOR GOT MY PASSWORD WHAT DO i DO?

    i SET A PASSWORD FOR BLOCK SITE AND FOR GOT IT. WHERE CAN i CHANGE THAT?

  • How can I reinstall the new iPhoto

    I just downloaded and installed Mavericks - not too bad a process. I kep trying to upgrade to the new iPhoto 9.5 and it failed to show up. Since I have few pictures on this MacBook Pro I decided to delete the old iPhoto - purchased apps shows that th

  • OBIEE 11g with BI Apps EBS: How to load Product Hierarchy?

    Hi Gurus, We are implementing BI Apps 7.9.6.3 [OBIEE 11.1.1.1.5 with EBS modules]. We implemented all configurations and mappings in Informatica. But after loading full ETL. All Product Hierarchy showing null. Currently we are investigating this. Can

  • Change pernr in internal data Infotype

    Hi, I want to change pernr in infotype 32 (internal data). Can anybody tel me how to change it. Thanks Sri