How to Show Total Calculation in Footer of Table

Hi everyone, is it possible to show total calculation in footer of table in webdynpro ? For the calculation, I think i can handle it because many thread in forum and weblog discuss it but for show it in footer of table , i can't find.
Display
A
B
C
D
| ____Total | XX |  --> XX shows total calculation for column D
If this is not possible, how to trick it ? Thank you
null

Hi,
Even i had the same requirement once, but as this is not possible i.e displaying the total as the footeer of the table.
the other option for this is to hav a seperate table below the main table & then displaying the total in that table.
You can collect the value of each cell of column D in an integer variable at the time of displaying the data in the table.
A | B | C | D |
1
2
3
for(int i = 0;i<node.lenght();i++)
int tot = wdcontext.element
now at the end you can create the element of the node & assign this variable "tot" to that element, then add teh element to the node
Hope it helps you.
Regards
Jeet

Similar Messages

  • How to Show total value in the header 2nd page but based on 1st page footer

    How to show total value in header in report builder but i have the total have related with the total in footer.
    Example
    ===============================================
    Page 1
    Empno Ename Sal
    1 Scott 1000
    2 ALlen 2000
    3 Susi 1000
    Total Sal Page 1: 4000
    ===============================================
    Page 2
    Total Sal Page 1: 4000 --> How to get it?????
    Empno Ename Sal
    4 Budi 1000
    5 Roger 200
    6 George 2000
    Total Sal Page 2: 3200
    Please Help..
    Thanks

    hmm .. what i would do is
    - create a placeholder column
    - create a field in the header and one in the footer
    - have the footer field reference the summary column
    - have the header field reference the placeholder column
    - create a fromat trigger on the footer field to
    store the value of the footer into the placeholder column
    so when the report is executed and the footer field is formatted, the format trigger stores the current value of the summary in the placeholder. then the pagebreak occures and the header field is formatted .. printing the value.
    there might actually be an easier way, just reference the two fields to the same summary column and in theory, since there is nothing happening between the time when the footer is formatted and the header is formatted, the values should be the same .. however this is a theory and i have not actually tested this. since reports does all kinds of fancy optimization this might have unexpected results, but it's worth a try.
    thanks,
    ph.

  • How to find total recs in a local table for a particular condition

    Hi,
    How to find total recs in a local table for a particular condition?
    Thanks,
    CD

    Well, you may want to try this as well, and compare to the LOOP way.  Not sure what kind of overhead you may get doing this way. Here ITAB is our main internal table, and ITAB_TMP is a copy of it.  Again I think there may be some overhead in doing the copy.  Next, delete out all records which are the reverse of your condition.  Then whatever is left is the rows that you want to count.  Then simply do a LINES operator on the internal table, passing the number of lines to LV_COUNT.
    data: itab type table of ttab.
    data: itab_tmp type table of ttab.
    itab_tmp[] = itab[].
    delete table itab_tmp where fld1 <> 'A'.
    lv_count = lines( itab_tmp ).
    Regards,
    Rich Heilman

  • How can i pass calculated value to internal table

    Hi
    i have to pass calculated value into internal table
    below field are coming from database view and i' m passing view data into iznew1
    fields of iznew1
                 LIFNR  LIKE EKKO-LIFNR,
                 EBELN  LIKE EKKO-EBELN,
                 VGABE  LIKE EKBE-VGABE,
                 EBELP  LIKE EKBE-EBELP,
                 BELNR  LIKE EKBE-BELNR,
                 MATNR  LIKE EKPO-MATNR,
                 TXZ01  LIKE EKPO-TXZ01,
            PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
                 KOSTL  LIKE EKKN-KOSTL,
                 NAME1  LIKE LFA1-NAME1,
                 NAME2  LIKE LFA1-NAME2,
                 WERKS  LIKE EKPO-WERKS,
                 NETWR  LIKE EKPO-NETWR,
                 KNUMV  LIKE EKKO-KNUMV,
                 GJAHR  LIKE EKBE-GJAHR,
    and now i want to pass
    one field ED1  which i has calculated separatly and i want to pass this value into iznew1
    but error is coming that iznew1 is a table with out header line  has no component like ED1.
    so how can i pass calculated value to internal table iznew1,

    When you declare your internal table , make an addtion occurs 0
    eg . data : begin of iznew occurs 0 ,
                    fields ...
       add the field here ed1.
               end of iznew.
    now when you are calculating the value of ed1,
    you can pass the corresponding value of  ed1 and modify table iznew.
    eg
    loop at iznew.
    iznew-ed1 = ed1.
    modify iznew.
    endloop.

  • How do you add calculation columns to a table Region by using the Footer?

    I have a requirement to add some aggregate metrics at the bottom of my "tableRegion". The "TotalValue" property value for the table is not going to work for me since I the data I'm calculating is more complicated then doing a simple "sum".
    My first try (simple test case) was to use "OATableFooterBean". However, when it tries to find the table bean, it comes back as "null":
    if (empDetails != null) {
    OATableFooterBean tblFooter =(OATableFooterBean) empDetails.getFooter();
    if (tblFooter != null) {
    tblFooter.setAttributeValue("EmployeeName", "Merit Inc Target/Budget");
    I'm guessing it is due to not defining a "footer" region for my "table" region. When I click on the "Table" region, then due "New", I dot see "Region" listed as an option. So my question is how do I add a region "footer" to my "table" region? Once I have that, I'm sure it will solve the "null" exception I'm seeing for trying to get the table footer in the above code.
    Thanks

    Hi,
    For this create a transient attribute in the VO.
    Perform your required logic on this new transient attribute.
    Now create a footer region and create a styledtext and assign this transient attribute.
    Regards
    Sridhar

  • How to show New calculated item in graph.

    I created a new calculated item in column in pivot table. That new calculated item is not showing in line graph.
    How to show that new column in graph.
    Thanks

    Guys Please provide any pointers to achieve this. its very urgent for  me.
    Regards
    Kris

  • How to set total number of rows of table control

    Hi All,
    I want to set the total number of rows of table control. I don't want to display the blank rows in table.
    Regards,
    Shrinivas

    Need some fine tuning regarding the scrollbar height but it's a start
    Unless this isn't what you asked for
    Small number of rows
    Large number of rows
    Attachments:
    PlayingWithTable.vi ‏17 KB

  • How to see total 'Quantity' on footer of PLD printed document?

    The bottom line is that I want to see the total number of products on a document at the bottom of every page, like how the "Total" is the entire document total, and shows the same on every page of a printed document.
    This is for an item level purchase order.
    For example, if we want to buy 4 cases of item A and 5 cases of item B, the bottom of the purchase order would say 9 in the area labeled Total QTY.
    I can do this on a single page purchase order using ColSum("Field_89") or ReportSum("Field_89")  Field 89 is the ordered QTY on a purchase order.
    However, on a multi-page page report, it only either sums page by page, or does a cumulative total by page (as in the first page shows the total of the first page, the second page shows the total of the second page + the total of the first page and so on)
    This happen no matter where I put the ReportSum() function, meaning in the header, footer, repetitive area or repetitive area header/footer.
    The purchase order I'm testing has a total qty of 385 items, and 3 pages of line items. When I try to use 'ReportSum()' on the quantity field, the first page shows 75, second page shows 283, third page shows 385.
    How can I get the 385 to show up on all three pages of the purchase order?

    Thanks, but this does not work. It only sums the quantities of the individual page.
    I want the total of all quantities from the all pages of the report to show on every single page.
    Using the example I originally provided, your solution only summed each individual page, so all three pages showed a different number. I swapped out PageSum() with ReportSum() and it gave me the same incorrect results I described in my example.
    Using the example above, all pages should read '385' as the total quantity. It should be like the 'Document total' (which I know is a system variable) that shows the same on all pages of a report.

  • How to show total pages in a report

    Hi Experts,
    I have to show the pages in the formart current page/ Total pages. I am not able to claculate the total pages. Please help me and give the code.
    Thanks a lot.
    Krishan

    The code below shows how to display the total number of pages in a report like "Page 1 of 8."  However, it doesn't work if you execute the program as a background jobs.
    CODE
    " Declare a variable
    DATA L_PAGE_COUNT(5) TYPE C.
    "  Copy this code to the end of program
    "  Page count will be printed on each page here
        WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
        DO SY-PAGNO TIMES.
            READ LINE 1 OF PAGE SY-INDEX.
            REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
            MODIFY CURRENT LINE.
        ENDDO.
    TOP-OF-PAGE.
        WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
    Refer : http://www.sap-basis-abap.com/sapab007.htm

  • Help regarding how to show total and grand total

    hi all
    please help me to show the total / grand total fund wise
    i m giving final output that i want
    which functions may i use .
    following is my query
    SELECT MUT_NAME , NATURE , BROK_TYPE ,sum(BROKERAGE) brokerage   FROM (
    SELECT MUT_NAME , NATURE , BROK_TYPE ,BROKERAGE  FROM (
      select mf.mut_name , si.nature ,'UPFRONT' BROK_TYPE ,  sum(up1.paid_brok)  BROKERAGE from upfront_paid up , upfront_paid_dtl upd , upfront_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
    -- and si.mut_code = 'MF004'
      group by   grouping sets (  (mf.mut_name , si.nature) ) ROLLUP(MF.MUT_NAME,SI.NATURE)
      UNION ALL
      select mf.mut_name , si.nature ,'TRAIL' BROK_TYPE ,   sum(up1.paid_brok)    BROKERAGE  from TRAIL_paid up , TRAIL_paid_dtl upd , TRAIL_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
    -- and si.mut_code = 'MF004'
      group by  grouping sets (  (mf.mut_name , si.nature) ) ) ROLLUP(MF.MUT_NAME,SI.NATURE)
    UNION ALL
    SELECT 'TOTAL ' MUT_NAME , ' ' NATURE , ' ' BROK_TYPE ,SUM(BROKERAGE)  FROM (
      select mf.mut_name , si.nature ,'UPFRONT' BROK_TYPE ,  sum(up1.paid_brok)  BROKERAGE
      from upfront_paid up , upfront_paid_dtl upd , upfront_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
      --and si.mut_code = 'MF004'
      group by  grouping sets (  (mf.mut_name , si.nature) ) ROLLUP(MF.MUT_NAME,SI.NATURE)
      UNION ALL
      select mf.mut_name , si.nature ,'TRAIL' BROK_TYPE ,   sum(up1.paid_brok)    BROKERAGE  from TRAIL_paid up , TRAIL_paid_dtl upd , TRAIL_pr up1 , scheme_info si , mut_fund mf
      where up.slab_id = upd.slab_id
      and up.SLAB_ID = up1.paid_slab_id
      and up.sch_code = si.sch_code
      and si.mut_code = mf.mut_code
    -- and si.mut_code = 'MF004'
      group by  grouping sets (  (mf.mut_name , si.nature) ) ) ROLLUP(MF.MUT_NAME,SI.NATURE)))
    GROUP BY grouping sets (MUT_NAME),( NATURE ),( BROK_TYPE)
    ORDER BY MUT_NAME , NATURE , BROK_TYPE 
    Sl. No.     Fund House     Fund Type     Brokerage Type     "Type-wise
    Commission "     Gross Commission
    (1)     Fidelity Mutual Fund     Equity     Upfront Commission     xxx     
                   Trail     xxx     
                   Others     xxx     
              Debt     Upfront Commission     xxx     
                   Trail     xxx     
                   Others     xxx     
    T O T A L :                         xxxxx
    (2)     Franklin Templeton Mutual Fund     Equity     Upfront Commission          
                   Trail          
                   Per Form          
                   AUM Linked          
                   SIP Advance Annual Brokerage          
                   Others          
              Debt     Upfront Commission          
                   Trail          
                   Others          
    T O T A L :                         xxxxx
    CONSOLIDATED TOTAL COMMISSION :                         xxxxxany help appriciated.

    how can i use compute in procedure
    actually i am giving the output from query to ref_cursor and from front end ( .NET) they are fetch rows and show the output.
    i want output as fallows
    fund name -- nature --- brok type --- brokerage
    1] fidelity     equity     upfront       2000
                 equity     trail         1000
                 debth      upfront       1500
                 debth      trail         500
      Fidelity                            5000
    2] abc       --                     
    so on hope this clears you
    Message was edited by:
    Pankaj M

  • How to show total search time in FAST

    Hi
    does anyone know how to enable the total time to search in FAST?
    example will be when you search for an item in google. They will show you this in the search page "About 5,190,000,000 results(0.34 seconds)"
    Thanks
    Jar

    Hi  Jar,
    You have to edit the web part "Search Statistics" of your Search Center site. Please take steps as below:
    1.Go to your search result page, edit the page.
    2.In the Middle Lower Left Zone, edit the Search Statistics Web Part.
    3. In the Web Part edit panel, check Display search response time under Result Statistics section.
    Using this way , the search will show you in the search page as :“1-10 of
    16 results Your search took 0.27 seconds.”.
    Reference:
    http://office.microsoft.com/en-us/sharepoint-server-help/customize-the-search-center-site-HA010382279.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to show Total amount and distributed amounts in one report

    Hi,
    I have the Plan Amounts distributed across Fiscal Year Periods for various WBS Elements in the cube.
    I have to give a report wherein I should display the Total Plan amount for each of the WBS Element in one column, and the plan amounts across the fiscal year periods in the corresponding columns.
    The user enters a Plan Start Date and a Plan End Date as input. The fiscal year periods to be displayed should be between this selection. For example if the user enters Plan Start Date as March07 and Plan End Date as Jun 07, the data should be displayed as follows:
    WBS Element Total Plan Mar07 Apr07 May07 Jun07
    WBS1 5000 3000 1000 0 1000
    WBS2 8000 0 2000 4000 2000
    If I take WBS Element in the row, Amount and Fiscal Year Period in the column, I am getting Plan Amounts distributed across the Fiscal Year Periods. I am not able to display the Total Plan amount.
    If I take WBS Element in the row, and Amount in the column, I am getting Total Plan Amounts for each WBS but I am not getting amounts distributed across the Fiscal Year Periods.
    I have tried by creating restricted key figures for all the fiscal year periods, but this doesn't work as the Fiscal Year Periods to be displayed are dynamic based on the user selection of Plan Start Date and Plan End Date .
    Is there any way this can be handled by writing some ABAP code??
    Please suggest on what can be done.
    Regards,
    Srini.

    Hi,
    If i understand your question ,
    you want like Total plant amount for range entered , and plan amount for variaous fiscal periods , is that correct...
    Y dont u try following ways:
    Total plan amount,,,,,,jan,,feb,,mar,,apri...............dec
    wbs element..
    Now take wbs element in Rows
    In columns take  plan amount , and double click it so u will reach selection screen.
    In this selection... take fiscal period from Time Char and drag it to right side
    Restrict the fiscal period with creating Interval variable...
    change description to TOTAL PLAN AMOUNT
    Now again take Plan amount and bring it in columns..
    Double clikc and in selection bring Fiscal period.
    Right click it and restrict it to january/ period 1
    Change description to January
    Copy this January,,,,, 11 times and paste it below
    now go in each january and then restrict them with different values....
    for one, select february and change description to february
    for 2nd select march as restriction and change description to march...
    Same way carry out till december.
    Save the query...
    Click Query in Menu and click properties...
    Apply zero row suppression to rows and columns..
    This way you will get Total plan amount for total range and for each period in same columns...
    With zero row supression if ur user enter only range march to june ,,, all other period values plan amount will get cancel out and u will not see them in display...
    Try this workaround and let me know...

  • How to show grouped data in the same table?

    Hi,
    I am using JDev 11.1.1.2.0 with ADF 11g.
    I have a below requirement
    I have a tbl as below
    Columns -==> RC TL Code
    Data ==> 0 0 Prof
    0 1 Prin
    0 2 Tech
    1 0 Prin
    1 2 Prof
    I prepared a query with a grouping on TL so that I can show my data as below
    TL - 0
    RC Code
    0 Prof
    1 Prin
    TL - 1
    RC Code
    1 Prin
    TL - 2
    RC Code
    0 Tech
    2 Prof
    Really confused on to what type of component should I use and how can the component be repeated once dragged and dropped onto the canvas. Is this possible using ADF? If not what is the alternative?
    Thanks in advance.

    Hi Bharat,
      Unload the Repository and Delete the Table and fields in Hierarchy table and Recreate and reload the data.OIther wise you have to lot of manual work.
    Thanks
    Ganesh Kotti

  • SQL loader : how to populate a calculated feild of a table?

    Hi All,
    I have a table which has total 92 columns, among them 6 feilds are calculated using few other fields of the same table.
    i have a csv file , which has only 86 feilds .
    during upload data using sql loader, is it possible to calculate other 6 feilds and upload them along with 86 fields ?
    Or any other method to populate the calculated values?
    Thanks in advance,
    Archana

    Hi Archana,
    You can have a script file with the required update commands and execute that script after the Loader loads the data to have them updated.
    But it is not a good practice to store the calculated values in the fields.
    Whenever required you can have them as a calculation in your select statements instead of storing them in the table.
    Unfortunately if the base values get changed you would be forced to recalculate and store them if you have them in the table.
    Regards,
    S.Muthukumar.

  • How to do column calculation in smartforms using table

    Hi,
    In Smartform Table..I created main area ( as TABLE) having  columns 
    POSNR(CELL7),   MATNR(CELL8),  FKIMG(CELL9),  VRKME(CELL10),  UPRICE(CELL11),  NETWR(CELL12)....
    Here UPRICE--- Calculate this field as Unit price = Amount / Billed Qty.
    For this....I created a Flow Logic at CELL11
    CELL11(Right click)
    CREATE---FLOW LOGIC -
    PROGRAM LINE
    Provided code:
    UPRICE = WA-NETWR / WA-FKIMG.
    Its showing the run time error
    Reference field WA-NETWR unknown in form
    what i have to do now for calculating UPRICE in this case...
    <offer removed by moderator>
    Thanks
    Lohit
    Edited by: Thomas Zloch on Jan 11, 2011 11:36 AM

    retreived the five column ( POSNR MATNR FKIMG VRKME NETWR )  values by providing code in GLOBAL SETTINGS -- INITIALISATION (TAB)
    SELECT POSNR MATNR FKIMG VRKME NETWR  INTO CORRESPONDING FIELDS OF TABLE
       ITAB FROM VBRP WHERE VBELN EQ PVBELN.
    And in  MAIN AREA-----Table -
    DATA (Tab) provided
    Loop
    Internal Table   ITAB  TO  WA.
    Created Text at each cell as
    WA-POSNR(for Cell 7),
    WA-MATNR (for Cell 8),
    WA-FKIMG(for CELL9),
    WA-VRKME(for Cell 10),
    UPRICE(for Cell 11),
    WA-NETWR(for Cell 12)

Maybe you are looking for