How to generate a row in report to compute total?

Hi:
I need help to generate a report. In an accounting report, I need to make sum for each client regarding outstanding balance. The format of report is following:
invoice#, invoice date, invoice amount, paid amount paid date, write off, outstanding balance
Client Name: Baker Express / Debtor Name: Kurt Weiss inc.
137308001, 04/18/2012, 438.07, 537.07, 06/05/2012, , (99)
137308002, 04/18/2012, 100, 90, 06/05/2012, 10,
client Total: total payment:627.07, total outstanding balance: (99)
another client and debtor pair
My question is how to generate total payment and total outstanding balancefor every pair of client and debtor. And there are multiple pairs. I tried to use group by, but how can I display every invoice tuple as well in the report?
Any help would be appreciated.
Sam

One method would be to use ROLLUP in your SQL
http://www.oracle-base.com/articles/misc/rollup-cube-grouping-functions-and-grouping-sets.php

Similar Messages

  • How to generate org model through report

    How to generate org model using report .
    please share your information .
    thanks in advance ,
    sapcrm

    Hi,
    It's look like you are assuming that an organizational model can be created from external data input via a report. If so, then your assumption is wrong. There is no standard way to create a org. model from external input.
    As a standard practice SAP provided a report as mentioned in the previous reply. Using this report you can download ECC/R3 org. model into SAP CRM. This is the easy and best proven way of generating org. model in SAP CRM.
    Please let me know, if you need any further clarification
    Do not forget to reward if it helps
    Regards,
    Paul Kondaveeti

  • How to generate synthetic rows (raw(16) guid cols) in one SQL statement?

    We're populating a table containing two GUID columns:
    create table object
    ( object_guid raw(16) primary key
    , project_guid raw(16)
    )All object GUIDs are unique (thus the PK), and each object belongs to a given project (should be a FK to some project table). We want N objects / rows, belonging to only 100 projects, i.e. 1% of the rows of the object table belong to the project #1, 1% to #2, etc...
    Right now we're using about 25 lines of C++/OCI code to do that (one query doing a "select sys_guid() from dual", and using the generated GUIDs to do inserts into object), but I suspect it's possible to do this using a single SQL statement using mysterious connect by or some other Oracle SQL magic. (our OCI code does quite a few round-trips to do the equivalent).
    Would anyone please demonstrate how to generate the rows as explained above, and possibly describe how it works for the non-initiated?
    Thanks, --DD
    PS: I'm sure it can be done in PL/SQL as well, but I'm interested in a SQL version if one's possible.

    I've found two ways, both taking a few SQL statements, but somehow I think this ought to be possible without intermediary tables... I'm sure there's a better way.
    #1drop   table project_tmp;
    create table project_tmp
    as select rownum pid, sys_guid() guid from dual
    connect by level <= 100;
    drop   table object_tmp;
    create table object_tmp
    as select mod(rownum, 100) + 1 pid, sys_guid() guid from dual
    connect by level <= 1000;
    drop   table object;
    create table object
    as select o.guid object_guid, p.guid project_guid
    from object_tmp o, project_tmp p
    where o.pid = p.pid;
    drop table project_tmp;
    drop table object_tmp;#2:drop table project;
    create table project
    as select mod(rownum, 100) + 1 prj_id, sys_guid() guid from dual
    connect by level <= 100;
    drop table object;
    create table object
    as select mod(rownum, 100) + 1 prj_id, sys_guid() object_guid from dual
    connect by level <= 1000;
    alter table object add project_guid raw(16);
    update object o set o.project_guid = (select guid from project p where p.prj_id = o.prj_id);
    drop table project;
    alter table object drop column prj_id;Verification:select count(distinct project_guid) from object;
    select project_guid, count(OBJECT_GUID) from object group by project_guid;

  • How to Generate Statistic Graph in Report??

    Hi, i am developing an questionnaire program together with 19 question... i am able to get value for each value..
    Now my problem is how to generate a statistic graph whenever user can check their report ??
    Can anyone help?? Thank you very much......
    from bscs

    The easy way is to use your values to set the width or height of an image dynamically in HTML, but you can only do bar charts using this method.
    For real reports and measures have a look at
    http://www.jfree.org/jfreechart/index.php
    http://www.jfree.org/jfreereport/index.php

  • How to generate dummy rows in jsp??

    Hi,
    I have 2 records in my DB while iam displaying the page i should generate six rows, in that first twos should contain those 2 records from DB (this i had done) and the next four rows should be empty. I am using JSP and SERVLET i need to generate dummy rows in jsp. How could i do it.
    Thanks in advance.

    @hunter9000
    yes but rows will be generated dynamically. so it wont be helpful.
    @quitte
    did not get you. kindly go through my code. here am using ajax for getting refreshed for every 10 seconds.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM Software Development Platform">
    <META http-equiv="Content-Style-Type" content="text/css">
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/theme/common.css" />
    <TITLE>DepartureInfo.jsp</TITLE>
    </HEAD>
    <script type="text/javascript">
    var dummy=0;
    function loadDepartureList() {          
         dummy++;
         if (window.XMLHttpRequest) {
            req = new XMLHttpRequest();
        } else if (window.ActiveXObject) {
            req = new ActiveXObject("Microsoft.XMLHTTP");
        req.onreadystatechange = getDepartureList;          
         url="./departurescreen?action=depart&dummy="+dummy;          
        req.open("GET", url, true);
        req.send(null);
    function getDepartureList() {
       if (req.readyState == 4)
           if (req.status == 200)
                   html = req.responseText;                                        
                   document.getElementById('deptdata').innerHTML = html;               
              else
               alert('There was a problem with the request.'+req.readyState+","+req.status);
    </script>
    <%@page import="com.rak.uiobjects.response.FlightInfoResponseObject,java.util.*" %>
    <jsp:useBean id="displayList" scope="request" class="java.util.ArrayList"></jsp:useBean>
    <BODY topmargin="0" leftmargin="0">
    <!--<%
            String language;
            String country;
                language = new String("en");
                country = new String("US");
            Locale currentLocale;
            ResourceBundle messages;
            currentLocale = new Locale(language, country);
            messages = ResourceBundle.getBundle("MessagesBundle",
                                               currentLocale);
            System.out.println(messages.getString("farewell"));
              String Greet = messages.getString("farewell");   
    %>
    --><table border="0" height="1411" width="2509" cellspacing="0" cellpadding="0">
    <tr>
    <td height="80%" valign="top">
         <table border="0"  width="100%">
                <tr > 
                       <td width="100%" colspan="8" height="7%" class="mainheader">Departure</td>
                </tr>
          </table>
    <div id="deptdata">
      <table border="0" cellspacing="0" height="86%" width="100%">
      <tr valign="top">
        <td class="subheader" height="7%">Flight No</td>
        <td class="subheader">Airline</td>
        <td class="subheader">Time</td>
        <td class="subheader">Destination</td>
        <td class="subheader">Flying Time</td>
        <td class="subheader">Status</td>
        <td class="subheader">ETD</td>
        <td class="subheader">Gate</td>
      </tr> 
    <%if(displayList.size() == 0) {%> 
      <tr >
      <td class="rowdatahighlight" height="66%" colspan="8">List is Empty</td>
      </tr> 
      <%}else{
    String clazz="";
    int record=1;
    Iterator i = displayList.iterator();
    while(i.hasNext()){
    FlightInfoResponseObject flightInfoResponseObjects = (FlightInfoResponseObject)i.next();
    if(record%2==0){
    clazz="rowdata";
    }else{ 
    clazz="rowdatahighlight";
    System.out.println("SIZE IS::"+displayList.size());
    %>
      <tr class="<%=clazz %>">
         <td  height="11%"><%=flightInfoResponseObjects.getFlightNo() %></td>
        <td ><%=flightInfoResponseObjects.getAirLine()%></td>
        <td ><%=flightInfoResponseObjects.getDeptTime() %></td>
        <td ><%=flightInfoResponseObjects.getToDestination() %></td>
        <td ><%=flightInfoResponseObjects.getFlyingTime()%></td>
        <td ><%=flightInfoResponseObjects.getStatus() %></td>
        <td ><%=flightInfoResponseObjects.getEtdOrA() %></td>
        <td ><%=flightInfoResponseObjects.getGate()%></td>
      </tr>
    <% record = record +1;} }%>
      </table>
      </div>
    </td>  
    </tr>
    <tr>
    <td height="20%" valign="top">
      <div id="deptbanner">
      <table border="0" height="100%" width="100%"> 
          <tr>
             <td width="100%" colspan="8" class="mainheader"> </td>
          </tr>
       </table>
       </div>
    </td>
    </tr>
    </table>
    <SCRIPT LANGUAGE="JavaScript">
    window.setInterval("loadDepartureList()",10000);
    </SCRIPT>
    </BODY>
    </HTML>

  • How to underline a row in report...

    Hi,
    I have a report with 3 text fields.
    I need to underline every row of the report and have a problem with that.
    Why?... well I will try to explain the problem.
    for example:
    I draw a line in the bottom of the repeating frame where the field are.
    The field1 expands through 2 rows, field2 through 3 rows and field 4 through 4 rows.
    ...and the problem is: when I run the report he draws the line under the 1st row of first record because the first field is long only one row. That means that he draws the line over the values of the the field2 and field3 and they are not underlined they are crosslined ( hope this is a rigth word for that ).
    He draws the line under the first field no matter how long are the other field.
    If the first field is longer than the other two that he draws it OK, but if not that he crossline the other values.
    Hope I explained my problem in understandable way...
    So if somebody could help me or give me a hint...
    regards,
    Mzz

    One method would be to use ROLLUP in your SQL
    http://www.oracle-base.com/articles/misc/rollup-cube-grouping-functions-and-grouping-sets.php

  • How to generate PDF file through reports using forms 6i

    Hi all,
    I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
    Regards
    Vids

    hi,
    regarding report, there is a dedicated report forum. you should post there.
    but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
    In the report you should set the properties like
    destype to 'file'
    desname to 'path with file name'
    desformat to 'pdf'

  • How to hide the rows in report which there is no data

    Hi,
    I am using web I rich client Xi R3.1 version. In the report i am displaying data region wise and applied section on the column named 'business unit'. Now i see there is no data for some business units and dont want to show in the report. There are some columns like projectname, manager, status summary which i am displaying region wise for each business region now I dont want to display 'Enterprise Infrastructure services, Equities Technology and Fixed income Technology which there is no data. Could any one please tell how to achieve this.
    I am able to display not the empty rows by the following steps but i also do not want to show the names of business units on the report.
    > Select the block
    > Go to properties tab -> Display
    > Uncheck Show when empty option.
    Thanks in advance,
    Eswar
    Edited by: Eswar Rao on Mar 26, 2010 10:03 AM
    Edited by: Eswar Rao on Mar 26, 2010 10:04 AM

    hi Eswar,
    List the columns for which if there is no data, you want to suppress section details and section name.
    1) Select 'Section on: Field'. Go to Properties tab.
    2) Display -> 'Hide section when the following are empty' . click on the Right side drop down.
    3) select (Check Mark) the appropriate columns which you have listed.
    3rd step is very important as it will decide to display section name or not.
    Please try it again.
    --Vamsee

  • How to generate a PDF format report

    Hello,
    here i am trying to generate the report as 'PDF' format from the form. after i run the form a parameter form comes up there i give parameter as 'IC' it should get only the IC related report in 'PDF' format. i could do this but after i close the adobe and return to the report its not over writing on the same file where i gave the DESNAME:='C:\KAVITHA8.PDF'. its taking atleast 10 minutes to rewrite on the same file.
    i tried first the following way to get the PDF format output but its not even working.
    host('R30RUN32 C:\AC_REPORT.REP DESTYPE = FILE DESFORMAT = PDF BATCH = YES');
    THIS IS NOT WORKING TOO.
    THEN I TRIED THE FOLLOWING WAY HERE I AM EXECUTING THE REPORT BY HOSTING THE ADOBE.
    THIS WORKS BUT DOESNT REWRITE ON THE SAME FILE, IS THERE ANY OTHERWAY THAT I CAN DO THIS OR HOW CAN I MAKE THIS WORK IN PROPER WAY.
    BY THE WAY THIS REPORT DEVELOPED IN DEVELOPER 2000...
    THIS I NEED FOR MY PRODUCTION, PLEASE SOMEONE HELP ME OUT.....
    declare
    pl_id paramlist;
    destype varchar2(10);
    desname varchar2(20);
    desformat varchar2(10);
    TEMP_status varchar2(10);
    begin
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    TEMP_status :=:W_STATUS;
    DESTYPE := 'FILE';
    DESNAME := 'C:\KA.PDF';
    DESFORMAT := 'PDF';
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'P_STATUS',TEXT_PARAMETER,TEMP_STATUS);
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,DESTYPE);
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,DESNAME);
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,DESFORMAT);
    Run_Product(REPORTS,'C:\AC_REPORT.REP', ASYNCHRONOUS, RUNTIME,FILESYSTEM,pl_id);
    HOST('c:\program files\adobe\Acrobat 5.0\reader\acrord32.exe C:\KA.PDF');
    END;
    thanks in advance....

    All the information you described points to the problem that reports seems can't generate to a file which already exist. You can verify that by simply doing
    r30run32 C:\AC_REPORT.REP DESTYPE = FILE DESFORMAT = PDF BATCH = YES' desname=c:\temp\ac_report.pdf
    several times. If first time the report is successfully generated in c:\temp\ac_report.pdf, but not the second, third time, then it looks like there is a bug on reports r30run32 executable.
    You may try to find any latest patch for Reports 3.0 to see if patch can solve you problem. But keep in mind Reports 3.0 is de-supported, you are better to move to 6i or 9i reports.
    Thanks,
    -Shaun

  • How to generate Process chain status reports

    Hi Friends,
    I have a requirement to capture process chains runtime on a daily basis.
    I know we can get this in RSPCM, however my requirement is to automate this as a report. This report should be automatically generated daily and e-mail has to be sent to certain members of the project.
    Can someone please suggest how to go about this?.
    Regards
    Naveen

    Hi Raf,
    Thanks for the quick reply. yes, I have seen ST13 and it has all what i need like  date, PC Name, Start Time, End Time and Duration.
    However my requirement is that i should automate this to export it to a spreadsheet on a daily basis in the following format.
    PC Name
    PC1
    PC2
    Date
    ST
    ET
    DU
    ST
    ET
    DU
    28/04/2015
    09:00:18
    09:13:21
    00:13:03
    10:00:18
    11:13:21
    01:13:03
    29/04/2015
    10:00:18
    10:58:21
    00:58:03
    10:00:18
    12:58:21
    02:58:03
    30/04/2015
    11:00:18
    11:33:21
    00:33:03
    11:00:18
    11:33:21
    00:33:03
    Can you suggest how to achieve this?
    Regards
    BN

  • How to generate data model summary report

    Hi,sir,
    How can I generate a summary report when I create a server data model in designer 9i as some software did.
    I know CA Erwin or Sybase powerdesigner have a good report builder.
    It is easy to use. How about designer 9i?
    Any tutorial?

    Hi,
    It's look like you are assuming that an organizational model can be created from external data input via a report. If so, then your assumption is wrong. There is no standard way to create a org. model from external input.
    As a standard practice SAP provided a report as mentioned in the previous reply. Using this report you can download ECC/R3 org. model into SAP CRM. This is the easy and best proven way of generating org. model in SAP CRM.
    Please let me know, if you need any further clarification
    Do not forget to reward if it helps
    Regards,
    Paul Kondaveeti

  • How to generate Version of a Report -- I am getting Error Message

    Hi All,
    Hi all,
    I am doing the following steps
    ABAP Editor - Utilities - versions - Generate Versions
    "Object REPS ZMM_MATERIAL_CREATE not locked, no version
    created"
    Can anyone please help.
    Regards
    Martin

    Hi,
      Lock the report to a new transport request from SE09/10 transaction and try to generate the same, 
    Hope this helps,
    Rgds,

  • How to add new row in report

    Hi,
    I need to add a new record through report, I have a Add new button clicking on which report should add and editable row with textboxes to add new column values.
    Please help. Thanks.

    Hello User.
    Please change your name from the default #'s to your name, or a nickname etc.
    It makes things easier for everyone to communicate.
    Can you please provide some more details of your problem?
    Can you rewrite your question. I don't understand what your problem is...
    Which version of Apex are you using?
    Have you read and looked at the online instruction manuals?
    Here's a link.
    http://www.oracle.com/technology/products/database/application_express/index.html
    http://download-west.oracle.com/docs/cd/B31036_01/doc/nav/portal_booklist.htm

  • How to generate a row value automatically...(row count)

    Hi,
    I have a Table in my application with fields like
    ID     CNAME
    i should generate the values for the ID field dynamically with a Prefix..also this ID field is not visible to users, its for the database update alone...
    Thanx.
    Arjun.G

    Hi,
    Make this Id attribute calculated.
    When you make an attribute calculated you will be able to see the getter method created for the attribute
    In side the getter you can generate the value you needed.
    For Ex.
    public java.lang.String getID(IPrivateTestCompView.IContextElement element)
        //@@begin getID
        return UUID.randomUUID().toString() ;
        //@@end
    Regards
    Ayyapparaj

  • How to generate expand/collapse ssrs report?

    Hi,
    I have a requirement, where i have to expand/collapse the columns like below
    ID  Name  Profile
    1     X          A
    1     X           B
    2     Y            C
    2     X             D
    2     X             E
    now i want to group ID's  and Names  
    ID  name  Profile
    1
    when i expand '1' then 
    ID  Name profile
    1     X
    when i expand 'X' then i have to c Profiles of that
    jo

    Hi jyoshnaa,
    Based on my understanding, you want to display the Name values toggled by the ID, and the Profile toggled by Name.
    In your scenario, you can specify the Visibility for the textbox as hidden, then make the Textbox can be toggled by the corresponding report item. Please refer to the steps below:
    1. Specify the Visibility option for the Name group and [Profile] textbox like below:
    2. Preview the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

Maybe you are looking for

  • Not connecting to docking station

    I have a Bush tv with ipod docking station that is meant to be compatible with my ipod 5th but when docking, the ipod screen is saying connected and the battery is charging but the tv is saying connecting. I can't get the ipod to connect and play i h

  • Upgrading a 2008 MBP

    I was thinking to upgrade my MBP Early 2008 (2.4GHz Core 2 Duo). I had the logic board replaced for the nvidia issue and the battery is brand new so I think it's better upgrade some parts than replace it with a new model. An Apple Store tech suggeste

  • Oracle 10g db & forms in server 2008 64bit

    hi, im using Oracle 10g db & forms 32bit version in windows server 2003 32 bit version. now we are planning to upgrade server with windows server 2008 64bit. what are the things to be taken care since we have to import data from other 2003 32bit serv

  • Docuemnt uploading not opening in cv01n

    Dear all We want to upload a document in the SAP system by using portal We have created a Z RFC and in this rfc we are calling : SCMS_XSTRING_TO_BINARY  to convert to binary BAPI_DOCUMENT_CREATE2 : when debugging , the docuemtn number is generated CV

  • Table structure changed in testing system after system refresh.

    Hi Team, Recently we underwent a system refresh in Testing System where the Testing data is filled with Production data. But now we find that in one table some fields which we had deleted they are again found there. The version history of table is al