Total in report

Title says it all. I would like to know how to do total in report.
Thank you.

Welcome to Oracle Forums!
Please acquaint yourself with the FAQ and forum etiquette if you haven't already done so.
Also, get yourself a friendlier handle, 974072 is not friendly
Always state
<ul>
<li>Apex Version</li>
<li>DB Version and edition</li>
<li>Web server used.I.e. EPG, OHS, ApexListner Standalone or with J2EE container</li>
<li>When asking about forms always state tabular form if it is a tabular form</li>
<li>When asking about reports always state Classic / IR</li>
<li>Always post code snippets enclosed in a pair of &#123;code&#125; tags as explained in FAQ</li>
</ul>

Similar Messages

  • Profit center accounting totals records report 2KEE:

    Hi,
    When I am executing Profit center accounting totals records report 2KEE for a specific selection as below,
    Record type: 0
    Version: 0
    Controlling area:
    Company code:
    Posting period :1
    Fiscal year:2007
    Profit center: 1000dummy
    Account:
    After report is generated and if drill down further, line items total is not matching with the report page, breakup gives different values but not the report value.
    I tried report even after implementing OSS 892779 and 952263 but the result is same.  I am using 4.7
    Request your help in this.
    Regards,
    Lakshmana Rao

    Dear Eugene,
    What do you mean? What is the report?

  • RUNNING TOTAL IN REPORTS

    Hi,
    Can any one tell me how to create a running total in Oracle reports. I have two fields pulled in the SQL called CR and DR. I want to do the running total at report level. Here what I want
    CR------DR-------RTOTAL
    20-----10---------10 ( here the RTOTAL Field is (20 - 10) )
    30-----15---------25 ( here the RTOTAL Field is (30 - 15) + 10)
    50-----25---------50 ( here the RTOTAL Field is (50 - 25) + 25)
    75-----35---------90 ( here the RTOTAL Field is (75 - 35) + 50)
    Thanks
    -Feroz

    Hello,
    You can use the following SQL query :
    select cr,dr,cr-dr cr_minus_dr from <table> ...
    and create a Summary Column in the Reports :
    Source : the field cr_minus_dr
    Function : Sum
    Regards

  • Totals in report header?

    I am using Crystal XI to develop a fairly simple financial report.  One of the requirements for the report is to have a copy of the totals located in the Report Header section.  It does not seem to be as simple as just putting the running total field in the header.  When I do that it does not evaluate properly and the result is incorrect.  What can I do to work around the limitation with Crystal?  Maybe I need to design a sub report that totals the information and then supress everything but the Report Footer section on the sub-report?

    Please try creating a sub report in the report header and assign the values to a shared variable and call the variable in the main report and place it in the below section of the sub report. And also note that you should not suppress the sub report instead suppress the sections inside the sub report and resize the sub report to smaller size.
    How do I create a shared variable in the sub-report?  Can you give me an example?  I'm not sure what you mean by placing the variable "in the main report" ... "below the section of the sub report".  Are you suggesting that I place both the sub-report, and the variable in the Report Header of the main report?  If so, why?  I imagine the variable would serve the same purpose as the sub-report.  In the case, I could just use one or the other.

  • Running total in report footer returning inaccurate result

    Post Author: smarkta
    CA Forum: Formula
    I am writing a report that contains 3 groups.  I have created running totals for each group that are accurate by selecting the group to evaluate and reset on.  now I need to basically sum the results of the all the group running totals but have had no success.  any tips on how to do this would be greatly appreciated.
    Thanks

    Post Author: Charliy
    CA Forum: Formula
    Were you doing a Distinct Count?  Did you have a formula on the Running Total?  What is there about the Group Totals that make them different than the final total.

  • Ssrs 2008 grand totals of report

    In an SSRS 2008 report, I am placing a grand total amount in the report footer since I want the amount at the very end of the report.
    The problem is when the report is exported to PDF, the amount is a long ways from where the detail lines are located at.
    Thus can you tell me how to make the data in the report footer change to be closer to the detail lines?

    In your report design make sure you remove as much white space as possible from the main body of the report

  • PO total value report

    Hi filks!!
    I want to have a PO report in which I want to see only the total value of the PO, and no PO line details.
    Is there any report..Please help.
    Best regards

    Hi everyone,
    I need the same for scheduling agreements instead of POs. Is this possible as well?
    Further I do need the line specific value and not the total one.
    I'd be really thankful for help!
    BR,
    Alex

  • How to get the group totals in report

    HI,
    Iam generating a report to display Storage Location, and Unit of Measures and Material group and also group totals.
    how to display the group totals on the report.
    thank q
    rushi.

    Hi,
    This following report clearly explains how to display the subtotal and grand total of
    the particular field in alv.
    REPORT  YMS_ALVSUBTOTAL.
    *REPORT z_alv_sub_totals .
    TYPE-POOLS: slis.
    DATA: BEGIN OF it_output OCCURS 0,
              var1(8) TYPE n,
              var2(10),
              var3 TYPE I,
          END OF it_output.
    DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
           t_fieldcat TYPE slis_fieldcat_alv,
          it_sort TYPE slis_t_sortinfo_alv,
          t_sort TYPE slis_sortinfo_alv,
          v_repid LIKE sy-repid.
    INITIALIZATION.
      v_repid = sy-repid.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM sort_fields.
      PERFORM fill_fieldcat.
      PERFORM list_display.
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM get_data.
      it_output-var1 = 1000.
      it_output-var2 = 'anupama'.
      it_output-var3 = '10000'.
    it_output-key = 'X'.
      APPEND it_output.
      CLEAR it_output.
      it_output-var1 = 1000.
      it_output-var2 = 'siddhu'.
      it_output-var3 = '20000'.
      APPEND it_output.
      CLEAR it_output.
      it_output-var1 = 1000.
      it_output-var2 = 'chinni'.
      it_output-var3 = '100000'.
      APPEND it_output.
      CLEAR it_output.
      it_output-var1 = 2000.
      it_output-var2 = 'chicchu'.
      it_output-var3 = '10000'.
      APPEND it_output.
      CLEAR it_output.
      it_output-var1 = 2000.
      it_output-var2 = 'candy'.
      it_output-var3 = '10000'.
      APPEND it_output.
      CLEAR it_output.
      it_output-var1 = 1000.
      it_output-var2 = 'anupama'.
      it_output-var3 = '10000'.
      APPEND it_output.
      CLEAR it_output.
      it_output-var1 = 4000.
      it_output-var2 = 'anupama'.
      it_output-var3 = '10000'.
      APPEND it_output.
      CLEAR it_output.
    ENDFORM.                    " GET_DATA
    *&      Form  fill_fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM fill_fieldcat.
      PERFORM fill_fields USING: 'IT_OUTPUT' 'VAR1' 'Variable 1' ' ',
                                 'IT_OUTPUT' 'VAR2' 'Variable 2' ' ',
                                 'IT_OUTPUT' 'VAR3' 'Variable 3' 'X'.
    ENDFORM.                    " fill_fieldcat
    *&      Form  fill_fields
          text
         -->P_0146   text
         -->P_0147   text
         -->P_0148   text
         -->P_0149   text
    FORM fill_fields USING    value(tabname) TYPE slis_tabname
                              value(fieldname) TYPE slis_fieldname
                              value(seltext_m) LIKE dd03p-scrtext_m
                              value(do_sum) TYPE c.
      t_fieldcat-tabname = tabname.
      t_fieldcat-fieldname = fieldname.
      t_fieldcat-seltext_m  = seltext_m.
      IF do_sum = 'X'.
        t_fieldcat-datatype = 'CURR'.
      ENDIF.
      t_fieldcat-do_sum = do_sum.
      APPEND t_fieldcat TO it_fieldcat.
      CLEAR t_fieldcat.
    ENDFORM.                    " fill_fields
    *&      Form  list_display
          text
    -->  p1        text
    <--  p2        text
    FORM list_display.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
         i_callback_program             = v_repid
         it_fieldcat                    = it_fieldcat
         it_sort                        = it_sort[]
       TABLES
          t_outtab                       = it_output
       EXCEPTIONS
         program_error                  = 1
         OTHERS                         = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " list_display
    *&      Form  sort_fields
          text
    -->  p1        text
    <--  p2        text
    FORM sort_fields.
      t_sort-fieldname = 'VAR1'.
      t_sort-tabname = 'IT_OUTPUT'.
      t_sort-spos = 1.
      t_sort-up = 'X'.
      t_sort-subtot = 'X'.
      APPEND t_sort TO it_sort.
      CLEAR t_sort.
      t_sort-fieldname = 'VAR3'.
      t_sort-tabname = 'IT_OUTPUT'.
      t_sort-spos = 2.
      t_sort-up = 'X'.
      APPEND t_sort TO it_sort.
      CLEAR t_sort.
    ENDFORM.                    " sort_fields
    Thanks,
    Sankar M

  • Sum Total in Reports

    hi guyz,
    i did this before but today i forget it how i did :)
    i have master detail report, have the below field
    Master
    Invoice#
    Name
    Description
    Details
    Inv#
    Item
    QTY
    Unit Price
    Total
    Sum_total
    i place a formula on total is
    RETURN NVL(:QTY, 0) * NVL(:UNIT_PRICE, 0);it give me the correct total in total field but i didnt get the sum_amount, anyone give tell me how can i get the sum_total from total? any formula or any other thing?
    any help appreicate.
    im using reports 6i.
    Regards
    Edited by: Moazam Shareef on Dec 12, 2009 12:42 AM

    hi
    try something like this.
    Example:
    PROCEDURE get_gap IS
    Cursor C_k1(P_Week pls_integer) is
    SELECT sum(reload_amount) theSum,
    count(reload_amount) theCount
    FROM trap_ra_k2_ain_balance
    WHERE week_no = p_week;
    R_K1 C_K1%Rowtype;
    Cursor C_k2(P_Week pls_integer) is
    SELECT sum(reload_amount) theSum,
    count(reload_amount) theCount
    FROM trap_ra_k1_ppb_balance
    WHERE week_no = p_week;
    R_K2 C_K2%Rowtype;
    v_reload_amount_ain number(12);
    v_reload_amount_ppb number(12);
    v_number_reload_ain number(12);
    v_number_reload_ppb number(12);
    BEGIN
    ----> totally unnecessary: if no value given in declarartion, a number will default to zero
    v_reload_amount_ain := 0;
    v_reload_amount_ppb := 0;
    v_number_reload_ain := 0;
    v_number_reload_ppb := 0;
    :CP_1 := 0;
    :CP_2 := 0;
    :CP_3 := 0; -- 'A'
    :CP_4 := 0; -- 'B'
    open C_k1( :P-Week)
    fetch C_k1 into r_k1;
    close c_k1;
    v_reload_amount_ain := nvl(R_k1.theSum,0);
    v_number_reload_ain := nvl(R_k1.theCount,0);
    open C_k2( :P-Week)
    fetch C_k2 into r_k1;
    close c_k2;
    v_reload_amount_ppb := nvl( r_k2.theSum);
    v_number_reload_ppb := nvl( r_k2.theCount);
    :CP_1 := v_reload_amount_ain - v_reload_amount_ppb;
    :CP_2 := v_number_reload_ain - v_number_reload_ppb;
    -- checking for 0 divisor
    if (v_reload_amount_ppb) > 0 then------------------------------------------------> this cannot be <0 ?
    :CP_3 := abs(ROUND(:CP_1/(v_reload_amount_ain + v_reload_amount_ppb) *100,2));
    ----> Not nec: you allready did this in 'A'
    else
    :CP_3 := 0;
    end if;
    -- checking for 0 divisor
    if (v_number_reload_ppb) > 0 then------------------------------------------------> this cannot be <0 ?
    :CP_4 := abs(ROUND(:CP_2/(v_number_reload_ain + v_number_reload_ppb) *100,2));
    ----> Not nec: you allready did this in 'B'
    else
    :CP_4 := 0;
    end if;
    END;sarah

  • Doubt about sub totaling in Report Painter

    Hi,
    I am new to the report painter and i want to know that is there a possibility of performing the sub total in the output.
    Suppose,i had defined a row and column and in the row i had given the range of the Account Numbers and in the column i had defined the local currency. As there are a lot of GL Account Numbers i.e. 1000,2000,40000 and so on....
    Is it possible to display the out put on the basis of sub total ? I had seen a sub total button during the creation of report in report painter format and i had defined Account Number to be explode .
    When i execute the report it displays the grand total of the whole accounts.. I want to show sub total also.
    Please provide me guidelines to solve this problem.

    >
    Vijay Babu Dudla wrote:
    > >So better don't give him a chance to create one more thread, please...
    >
    > But he will create one more Account , it is easy for him to post a new Thread with another name.
    Dont worry. Its pretty easy to catch his clone. All his questions follow a pattern. Plus he asks a hundred question on the same issue. Also, he's probably the only ABAPer who extensively works on Report Writers.
    pk

  • Shouldn't these accounts be totally off report

    Were they closed in 2007/2008? If negative accounts, when was the date of first delinquency? If positive accounts, they can stay on indefinitely, but no earlier than 10 years from closing.

    Astuart881 wrote:
    I have 5 accounts that are closed from 2007/2008 shouldn't these accounts be totally gone from my report by now?Only charged off accounts follow the 7.5 year rule. Accounts that are simply paid and closed (by you or the creditor) are positive accounts that report ten years from closure.

  • Change Default message for report total: in reports

    Hi,
    I want to change the message for subtotals in the report i.e "report total"
    pls help me
    tnks
    mani

    Go to Shared Components>Text Messages and find Message Name "REPORT_TOTAL" and set correct string for your language.

  • Item level total in reporting

    Hi All,
    I have below requirement at present can any one help me out to over come this issue.
    Service ID       order     net value   New colum
    aaaa              10001      500         500 by total of aaa service id like  500 by 1500 = 0.333
    aaaa             10002      1000        1000 by total of aaa service id like 1000 by1500 =0.6667
    bbbb            10003        200          200 by total of bbb service id like 200 by 700 = 0.28
    bbbb             10004       500          100 by total of bbb service id like 100 by 700 = 0.71
    i need to get the new colum as given above formula.
    can any one help me on this.
    Thanks in advance.
    Kumar.k

    Hi Vineet,
    Thanks for your answer,
    Can you please elaborate on you answer.
    I need to get the new column like service id net value by total of the net value.
                             Service ID         order     net value       New Colum ( I need to populate this new Colum in the report)
                               AAA               10001        500               500/1500 = 0.333
                               AAA               10002       1000           1000 /1500 =0.6667
    Total                   AAA                               1500       
    Thanks in advance
    Kumar.k

  • Calculating totals in report

    I have an invoice report that has billing categories and under each billing category there are one or more bliing category lines. I want to calculate the total for each billing category e.g.
    BILLING CATEGORY 1
    Billing Category 1 0.00
    Billing Category 2 1.00
    Category Total 1.00
    BILLING CATEGORY 2
    Billing Category 1 0.00
    Billing Category 2 1.00
    Category Total 1.00
    Client Total 2.00
    Can anyone please help me by giving me a step-by-step guide? I have created the query to retrieve data from the database and saved the data in an XML document. I have created the RTF template and so far it is not showing the Category Total and Client Total.

    Hi,
    It's quite difficult to give you an exact step-by-step guide without your XML, but I'll give it a go. Given the following XML:
    <billing_categories>
    <billing_category>
      <category>BILLING CATEGORY 1</category>
      <sub_category>Billing Category 1</sub_category>
      <amount>0.00</amount>
    </billing_category>
    <billing_category>
      <category>BILLING CATEGORY 1</category>
      <sub_category>Billing Category 1</sub_category>
      <amount>1.00</amount>
    </billing_category>
    <billing_category>
      <category>BILLING CATEGORY 2</category>
      <sub_category>Billing Category 1</sub_category>
      <amount>0.00</amount>
    </billing_category>
    <billing_category>
      <category>BILLING CATEGORY 2</category>
      <sub_category>Billing Category 1</sub_category>
      <amount>1.00</amount>
    </billing_category>
    </billing_categories>In your RTF Template you would need the folliowing:
    <?for-each-group:billing_category;./category?> <?category?>
    <?for-each:current-group()?> <?sub_category?> <?amount?> <?end for-each?>
    Category Total: <?sum(current-group()/amount)?> <?end for-each-group?>
    Client Total: <?sum(amount)?>Each <?command?> should be placed in a seperate Text Form Field within your RTF.
    Hope this helps
    Andy

  • Associate a record name with a running total in Report Footer

    Please Help!
    I have a report that returns records for the most recent order recieved by vendor.
    The page header displays Vendor, Contact, Order #, and date
    I did a group by Vendor
    I used a running total on the order date
    with a summary of minimum
    that evaluates on change of group
    Reset never
    This returns the last order date for the vendor with the oldest order
    How can I get the vendors name that is associated with the oldest order date to display in the Rport Footer.

    Please follow the following steps: I tested it and it works.You dont need to use running total.
    1. Add the Vendor,Contact,Order #, Order Date to Details Section (u can delete them if not needed from details section)
    2. Create a Group on Vendor.
    3. Add a Summary  i.e. Minimum(Order Date)
    4. Copy this summary to Group Header if you want or just let it be in the Group Footer Section
    5. Add a SubReport in the Report Footer Section.
    6.The Subreport Should be based on the Command like:
    SELECT `Orders`.`Customer ID`, `Orders`.`Order Date`
    FROM   `Orders` `Orders`
    WHERE `Orders`.`Order Date`=
    SELECT MIN(`Orders`.`Order Date`) 
    FROM  `Orders` `Orders`)
    7. Refresh the Report and you will see that Report Footer section displays all the vendors with minimum order date along with their name.
    One more thing to keep in mind is that more than one vendor might have the same minimum order date.

Maybe you are looking for

  • Laserjet driver with Windows 7

    Windows 7 professional 64 bit freezes when printing to HP Laserjet M1530 MFP . Is there a newer driver?

  • No synchronous Request/Reply option in B2B config wizard step 5 of 7 ?

    I have a customer running SOA Suite 11.1.1.5 who has created a BPEL process and added a B2B partner link to the reference swim lane. They want to send a 270 document to a partner and receive a 271 on the same HTTP Channel as a Sync Req/Reply When the

  • Disable iSight camera and use external USA webcam

    We have a macbook and use a large monitor for managing brochures etc. I would like to mount an external USB webcam on the monitor and use it with Skype. However, whenever I open Skype it turns on the iSight camera (which is facing a wall). Is there a

  • [iPhone] - Troubles with the NavigationBar transparency - Possibily a bug

    Hi, It seems some people including me are having problems with the NavigationBar especially when we are trying to use the transparency as it is used in the Photo application (the photos are visible under the NavigationBar and ToolBar at the bottom).

  • Preview source material issue

    Greetings all, it's been quite a while since I've posted here and I usually have audio (Logic) related posts, however I'm having fun with a new AVCHD Panasonic cam so I'm digging back into Final Cut, etc. I've created a sequence in FCPv6, ProRes 422