By using Table view , Disply Coloumn Total

Hi,
I am displaying data by using table view, now i need to display total amount for particular currency column,
right below that column.
pls reply on this regard, if possible send me code...
Thanks in Advance
S

Hi Srinivas,
For this you need to use iterator....
Go through this Weblog on how to use the iterator...
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
Hope it helps you.
Regards,
Maheswaran.B

Similar Messages

  • Error when using Table view

    Hi Folks,
    I m getting this problem frequently when i m using table view in reports. Im using SQl server2008 and working on BIApps.
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 28000 code: 18456 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'DWH'.. (HY000)
    SQL Issued: SELECT 0 s_0, "Financials - AP Overview"."Time"."Fiscal Quarter" s_1, "Financials - AP Overview"."Time"."Fiscal Year" s_2, "Financials - AP Overview"."Facts - AP Turnover"."Days Payables Outstanding" s_3 FROM "Financials - AP Overview" FETCH FIRST 65001 ROWS ONLY
    Thanks in advance.
    Raghava.

    Hi,
    As per you query shown above, I am assuming that the query limit exceeds the maximum number of rows to show in your result. because it showing only 65001 rows fetched but your data may be more than that.
    So try to extend the maximum rows for table view in instanceconfig.xml file.
    Regards,
    Pandian

  • Migration from Designer: wrong alias for used table/view in views

    Hello,
    I am using SQL DM version 3.3.0.744.
    when importing a view from Designer, a query is build with aliases for the used tables/views which are the same as the table/view name. When using a where clause in Designer, you refer to the alias of the table/view, like t1.col1= t2.cola. Here t1 and t2 are the aliases of the underlying tables.
    In Designer the following DDL is generated:
    CREATE OR REPLACE FORCE VIEW VIEW5
    (COL2
    ,COL1)
    AS SELECT T2.COLA COL2
    ,T1.COL1 COL1
    FROM TAB2 T2
    ,TAB1 T1
    WHERE t1.col1= t2.cola
    After importing the view in Data Modeler, the following DDL is generated:
    CREATE OR REPLACE VIEW VIEW5 ( COL2,
    COL1 )
    AS SELECT
    TAB2.COLA COL2,
    TAB1.COL1 COL1
    FROM
    TAB2 TAB2,
    TAB1 TAB1
    WHERE
    t1.col1= t2.cola ;
    So by using the wrong alias, the where clause is invalid and the query builder doesn't show the joins.
    The solution for this is to use the alias of the used table/view instead of the table/view name. Can you raise a bug for this?
    Thanks in advance,
    Joop

    Thanks for your time. I did all possible way, but still the same problem. I mean
    EXP 8... IMP 8
    EXP 8... IMP 9
    EXP 9... IMP 9
    Today I found that, NLS_LANG of two databases are different. Oracle 8i is : WE8ISO8859P1
    AND Oracle9i is : WE8MSWIN1252
    So I created a new database from scratch with Oracle 8i character set :WE8ISO8859P1 and then use imp9i to import the file. Still the same problem.
    Thanks,
    Arash

  • Check box in tabel view?when to use itereator and when to use table view

    hi,
    I want to have a check box along with the other 7fields  in the table view.
    when the checkbox is checked and the merge complete push button is clicked, the respective code for merge is to be executed.
    how can I do this?
    could anyone tell me hw to get a check boz in table view
    when to use a  iterator in BSP, how table view n iterator in comparision ae used or function/work.
    Regards,
    Pavan P.

    Hi Pavan,
    Table View is an BSP element used to display mass data in a layout similar to a table (table view).
    <b>Iterator</b>is an attribute to modify rendering row-by-row, and make it dependent on the clicked row. In this way, you define an action from a particular line. This action is defined in columnDefinitions or overWriteDefinitions.
    <htmlb:tableView id = "tvX"
                     headerText          = "Department List"
                     design              = "standard"
                     headerVisible       = "true"
                     width               = "30%"
         selectedRowKeyTable = "<%= selectedrowindextable %>"
         onRowSelection      = "MyEventRowSelection"
         sort                = "server"
         keepSelectedRow     = "TRUE"
         selectionMode       = "MULTISELECT"
         table               = "<%= i_dept %>" >
    </htmlb:tableview>
    In your <b> OnInputProcessing </b>, Use this Iterator table to get the data of selected records.
    IF selectedrowindextable[] IS NOT INITIAL.
    DESCRIBE TABLE selectedrowindextable LINES no .
    Rgds,
    Jothi.
    Pls do close the thread if ur problem is solved.

  • How to call dynamically TablerowCount using Table view

    Please help me urgent

    I have one abc.htm view
    ==================
    <htmlb:group>
            <htmlb:groupBody>
             <htmlb:tableView
                                                id = "tv1"
                                                columnHeaderVisible = "TRUE"
                                                design = "alternating"
                                                fillUpEmptyRows = "TRUE"
                                                footerVisible = "TRUE"
                                                headerVisible = "TRUE"
                                                table = "<%= t_maintain %>"
                                                iterator = "<%= iterator %>"
                                                visibleRowCount = "<%=model->G_NO_SIMILARSUBNO%>"
                                                width = "100%"
                                                selectionMode="singleSelect"
                                                filterButtonText = "Go"
                                                filterButtonTooltip = "Filter content"
                                                tableLayout = "AUTO"
                                              />
    In this view i want to call   visibleRowCount = "12".. User is going to give this rowcount dynamically through his page textbox.. How can i do this ?How can i paas the counting variable here..

  • Changeable image using table view iterator

    Hello Forum -
    I have a tableview iterator working using cl_htmlb_image class. The icon shows up perfectly based on the column value (X=green; space=red). I would now like to click on the icon (just like clicking on checkbox) and turn the color from red->green or green->red which should of course change the value of the column as well.
    Here is my code, please help me:
    ======================================================
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
    ======================================================
    DATA: img       TYPE REF TO cl_htmlb_image.
    DATA: beetable  TYPE REF TO cl_bsp_bee_table.
    CREATE OBJECT img.
    CREATE OBJECT beetable.
    CASE p_column_key.
      WHEN 'ACTVFLAG'.
        img->id   = p_cell_id.
        IF c_row_ref->actvflag = 'N' OR
           c_row_ref->actvflag IS INITIAL.
           img->src = 'ICON_LED_RED'.
           img->alt = 'Inactive'.
        ELSE.
           img->src = 'ICON_LED_GREEN'.
           img->alt = 'Active'.
        ENDIF.
        beetable->add( element = img level = 1 ).
        p_replacement_bee = beetable.
    Thanks,
    Partho

    in the iterator (render cell start) when rendering the image add the onclick property to image.
    p_replacement_bee = cl_htmlb_image=>factory( id = p_cell_id src = icon_plane onclick = 'image_click' )
    now when the user click on the image oninputprocessing will be triggered and check whether its is image click, if yes set a variable to some value to indicate that the image is clicked (and also to identify what image is clicked)
    option1: store these info as a serverside cookie and read it in your IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START method to change the image
    or
    option2: pass these values to iterator class attribute and read it in your IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START method to change the image.
    Regards
    Raja

  • No data for Parent-child hierarchy column in Pivot table view

    Hi all,
    I used OBIEE 11.1.1.6.2 Version.
    I drag one Parent-child hierarchy column and one measure and show result with a pivot table view.
    But when I click "+" icon to show detail level data,
    It messaged that: "*the layout of this view combined with the data,selections,drills,or prompt values chosen resulted in no data*."
    But it can show every-level data when I used table view.
    It was so strange..
    Did anybody meet this before?
    Thanks in advance.
    regards,
    Anne

    Hi,
    Yes, I have the same problem with pivot table for hierarchy dimension.
    If you use a normal table (not pivot) it seem to work. Unfortunatley with restrictions as normal table view have.
    Same problem still exist in 11.1.1.6.5
    I have logged a SR to Oracle about this.

  • Filter a table view

    Hi All,
    In a compound layer with 2 table views, is it possible to filter only one of them? (if I apply the filter in Criteria Tab or Column formulla it applies to all the views, so I need to apply the filter after retriving the results)
    Thanks,
    Regards

    Hi,
    If you are applying filter under criteria it will effect the whole report.It mean what ever views you are using will get effected.
    Can do in this way..didnt check but you can try ;)...
    Use FILTER function to make filter get effected to only one column.Now pull two same columns on which you want filter.Now apply filter on column and other column without filter.
    Use two pivot table view,you can use one column with filter in one view and the other column without filter in the other view and place the unwanted column in each view under excluded section.
    FILTER(Table.Column USING Condition) in fx
    If you are using table view i am not sure if its possible or not because we should use all the columns which are in criteria,but try making column with filter as hide in one view and column without filter as hide in other view under properties.
    Regards,
    Srikanth
    Edited by: Srikanth Mandadi on Nov 11, 2010 4:55 AM

  • Problems with Date Type in Table View

    Hello.
    Following problem:
    I have to make a Table View with some data. One Colum is Type of Date!
    Now I used Table View Iterators to change the backgroundcolor of some cells.
    Sample:
    WHEN 4.
         DATA: col4_text TYPE REF TO CL_HTMLB_TEXTVIEW.
        CREATE OBJECT col4_text.
        col4_text->text = M_ROWREF->DATE1.
           If  mod_vari = 1.
            p_style = 'cellDesign:POSITIVE'.
         ENDIF.
    But now I have the problem that this columm´s date is not formated: 20050112 but I want it this way: 01.12.2005.
    How can I handle this problem? newbie

    This one throw me for a loop as well coming from a non SAP background but here's a nice little code sample that you will find to be quite useful all the world over
    data: lt_date type string,
          lt_tmp type string,
          lt_sep type string.
    lt_sep = '.'
    * You already have your date but for the example not
    * so this is why I use the lt_date
    lt_date = '20050112'.
    CONCATENATE
      lt_date+4(2)
      lt_date+6(2)
      lt_date+0(4)
    INTO lt_tmp SEPARATED BY lt_sep.
    * Now you can give lt_tmp to your output of your cell
    For the cell output you can double check the various weblogs on the subject "Iterator".
    You can play around with the lines after CONCATENATE to put the date in the format you want.

  • Is it possible to change dynamicaly VC table view size (width/heigth)?

    Hi gurus!
    So the question is: Is it possible to change dynamicaly Visual Composer table view size?
    Particularly I'm interested in changing table-view height; the objective is not to use table-view paging option, instead to show all returned data rows at once.
    Thanks in advance!
    --- Kaspars

    Hi Kaspars,
    I would say there is atm no possibility to change the table view size dynamicly, because you can't input a formula into the size field so the size is fixed as you enter it.
    Best Regards,
    Marcel

  • Cannot select the fields for table view WB2_V_MKPF_MSEG2

    Hi, I have a program where the query is using join statement of MSEG and MKPF.  As part of the performance enhancement I use Table View WB2_V_MKPF_MSEG2 instead.
    Validation: Entries in MSEG and MKPF is the same as in  WB2_V_MKPF_MSEG2 = OK (via SE16)
    But upon debugging the program on SY-SUBRC breakpoint, I can see 5 rows appended in internal table T_MSEG "BUT" the entries are all blank.
    The entries in my SE16 are exact data that's appearing on the filter statement in my SQL query below.  SE16 is giving correct output, but using table view in my SQL does not give me the correct output.
    (Note: This is my first time to use table view in ABAP-SQL)
      SELECT MATNR_I BWART_I MENGE_I
        FROM  WB2_V_MKPF_MSEG2
          INTO CORRESPONDING FIELDS OF TABLE T_MSEG
      WHERE MATNR_I IN R_MATNR3
          AND  MATNR_I IN R_COMPNTS
          AND  WERKS_I EQ P_WERKS
          AND  BWART_I EQ '931'
         AND  BUDAT    IN S_GSTRP 
         AND  MJAHR    EQ W_DOC_YEAR.
    IF SY-SUBRC EQ 0.
    ENDIF.
    THANKS, appreciate your inputs.
    Regards,
    Jun

    Hi Suhas,
    I just did a short test just now:
    REPORT  ZTEST_SELVIEW.
    TABLES: WB2_V_MKPF_MSEG2.
    TYPES: BEGIN OF Y_MSEG,
             MATNR LIKE MSEG-MATNR,
             BWART LIKE MSEG-BWART,
             MENGE LIKE MSEG-MENGE,
           END   OF Y_MSEG.
    DATA: T_MSEG TYPE STANDARD TABLE OF Y_MSEG.
    SELECT MATNR_I
           BWART_I
           MENGE_I
      FROM WB2_V_MKPF_MSEG2
      INTO CORRESPONDING FIELDS OF TABLE T_MSEG
    WHERE MATNR_I EQ '000000000000004000'
       AND WERKS_I EQ '0288'
       AND BWART_I EQ '931'
    *   AND BUDAT   EQ '20071117'
       AND MJAHR   EQ '2007'.
    IF SY-SUBRC EQ 0.
    ENDIF.
    In my debug, T_MSEG contains the same number of rows that my SE16>WB2_V_MKPF_MSEG2(using the hard coded statement in my SQL) "BUT" each rows does not have any entries.  Bottomline, I can't only see blank entries in ITAB T_MSEG but the rows are being selected properly, so the itab contains x-number of rows with blank entries.
    Thanks.

  • Table View

    Hi all,
    My question is as follows:
    i have used table view in my page and I want to change the color of the rows with alternate rows having the same color in the table view.
    Can anyone help me on this?
    Thanks and Regards
    Shilpa Dhawan

    Hi,
    I tried design = "transparent". That is working fine but design = "alternating" is not working for me. Can anyone suggest me the possible solution.
    kindly reply soon
    thanks
    Shilpa

  • Table view width

    Hi friends
      I am displaying a 30 column table using table view and set it's width as 100%. But it's not fitted on window the horizontal scroll bar appeared .
      So I put the table view in Overflow container .but the problem here is , i must have to give width in pixels (for example 1000px )otherwise same problem, horizontal scroll bar on window.
      My requirement is want to set the overflow container width in Percentage , so that 30 column table should also fit in the window  with no horzontal scroll bar's on window, scroll bar is only in overflow container.

    I am not using iterator, i am just displaying simple data,
       If i set the column width to minimum also then same problem because all my columns are on average 20 char. so they are not fitting . here is my code
    <xhtmlb:overflowContainer id     = "OFLC_RCN_HDR"
                              width  = "980px"
                              height = "200px"
                              mode   = "SCROLL" >
    <htmlb:tableView id      = "TBL_RCN_HDR"
           columnDefinitions = "<%= model->mt_rcn_hdr_def %>"
           columnWrapping    = "true"
           design            = "ALTERNATING"
           visibleRowCount   = "<%= lv_visible_row_count %>"
           visibleFirstRow   = "<%= lV_Visible_first_row %>"
           table             = "//model/mt_rcn_hdr"
           selectionMode     = "SINGLESELECT"
           sort              = "SERVER"
           width             = "100%" />
    </xhtmlb:overflowContainer>
    Message was edited by: Shiva

  • Formatting of Tray and Table view

    Hi ,
    We have a requirement in which we are using Table views and Tray's at multiple places. Now we want to format all of them in the same way, i.e if I change the font size for one table view element , it should be changed for all table view elements on all pages. ( Similarly for other properties) . How can we do this?
    Regards,
    Divyanshu

    for all the properties use variables and for each property use the same name.
    for example for design property of all tableview use variable design. and modify the value for desing only once and it affects all the tableviews.
    (check out sample application htmlb_samples/default.htm and click on say button (in the tree node) - in this on the top on right side you can pass various values for properties and it gets applied to the result in the bottom portion)
    if you want to have your own styles check out this weblog.
    /people/brian.mckellar/blog/2005/06/12/bsp-in-depth-abap-look-and-feel-service
    Regards
    Raja

  • Error in Table view

    Hi All,
    I am working in MINISAP training system when i am using table view in any bsp application i got the following errors...
    1. <HTMLB:tableView>:  (Attribute=columnCount)  The attribute does not exist. (Compile time validation error).          
    2. Tag "tableView" contains invalid attribute values.
    How can i solve these errors..? Please guide me...

    i changed into caps but still i got same errors.. whenever i used tableview in Any  Bsp Application i got the same errors what is the reason behind in it..?
    Note: Working in Minisap system
    Here is my another code, again facing same errors
    1.<HTMLB:tableView>:  (Attribute=columnCount)  The attribute does not exist. (Compile time validation error).
    2.Tag "tableView" contains invalid attribute values.          
    <htmlb:tableView id = "table"
                     table = "<%= it_disptab %>"
                     design = "TRANSPARENT"
                     width = "100%"
                     headerVisible = "TRUE"
                     filter = "SERVER"
                     onFilter = "MyFilter"
                     visibleRowCount = "20"
                     allRowsEditable = "TRUE"
                     fillUpEmptyRows = "TRUE"
                     tableLayout = "AUTO"
                     headerText = "<%= tabname %>"
                     selectionMode = "LINEEDIT"
                     onRowSelection = "MyRowSelection">
    </htmlb:tableView>
    Pls help me in this out...

Maybe you are looking for

  • Libreoffice in KDE does not use KDE file dialogs

    Hello, I have libreoffice-4.2.4-1 from [extra] installed, together with libreoffice-kde4 4.2.4-1. But it still shows the GTK file open/save dialog instead of the KDE one. I tried starting libreoffice with the following command that I got from the wik

  • Since upgrading to Mountain Lion Safari is not opening - see report below

    Process:     Safari [513] Path:        /Applications/Safari.app/Contents/MacOS/Safari Identifier:  com.apple.Safari Version:     5.1.6 (7534.56.5) Build Info:  WebBrowser-7534056005000000~6 Code Type:   X86-64 (Native) Parent Process:  launchd [340]

  • Changing the "default" appleID that appears on my iphone

    In the process of trying to download the new BofA online check deposit app, I found that my daughter's appleID automatically comes up. I need to be able to change it to mine. Anyone know how to do that?

  • L10: Deleting folders - should be easy or is it?

    Hi ive just brought a new satalite L10 and im having a problem with it. I cannot do the simplest thing - when i create a new folder on my desktop or document folder and try to rename it or delete it - it wont work and the whole laptop freezes!!! Cons

  • Schedule recovery of file folder Powershell from DPM

    I can recover through the DPOM console this data attempting to create a PowerShell script to do the same thing. Here is script : $from = (Get-Date).adddays(-36500) –f "dd-MMMM-yyyy 00:01:00" $to = Get-Date –f "dd-MMMM-yyyy HH:mm:ss" $pg = Get-DPMProt