Oracle Reports : How to Create Filtered Running Totals

I need to create a column in a group to represent a running total. But I want that running total to only count rows that meet specific criteria, such as [Field_Value_1] = 'Yes'. How can I accomplish this?

make a hidden (hidden) column in select like decode(Field_value_1, 'Yes', Val_to_Sum, 0) and make running total on that column ...
Hope This Helps

Similar Messages

  • How to create a running total formula for different calendar years

    Hello everyone,
    I am looking for some help in creating a running total formula for different calendar years in Oracle. This is what I currently have organized in the crosstab report: vertically I have the cities from our database organized, then horizontially have the following information for each city:
    2006 /2007 /2008
    Amount /Amount Spent /Unspent Amount Amount Recieved/Amount Spent /Unspent Amount Amount Recieved/Amount Spent/Unspent Amount
    Recieved
    I am trying to create a formula that will specify each calendar year. For example, I'd like to have a formula in 2007 which would total the: 2007= {2006 unspent amount + the unspent amount in 2007} and same for 2008= {2007 unspent amount + the unspent amount in 2008}. I hope this is clear, I have simplified the report into a basic interpretation of what i've been trying to accomplish.
    Would anybody know if this is possible and how to approach this?
    Really appreciate it! Thanks.
    Alex

    Hi,
    you can try and define a running total as a calculation in the crosstab as:
    sum(Unspent Amount) over (partition by city order by year)
    i find the crosstab format comfusing sometime since the aggregation is auto applied.
    I would start with a flat table and then "duplicate is as a cross tab"
    for your running total you can sort the data by the city,year and get it to 3 lines for each city, for example:
    city year Unspent Amount all other amount...
    X 2007 10
    X 2008 20
    X 2009 30
    Y 2007 5
    Y 2008 15
    Y 2009 25
    then you can use a funtion to calculate the amount :
    sum(Unspent Amount) over (partition by city order by year)
    this is the sql i used just to check it:
    SELECT city,year,"Unspent Amount"
    ,SUM("Unspent Amount") over (PARTITION BY city ORDER BY YEAR)
    FROM (
    SELECT 'X' city, 2007 YEAR, 10 "Unspent Amount" FROM dual UNION ALL
    SELECT 'X', 2008 ,20 FROM dual UNION ALL
    SELECT 'X', 2009 , 30 FROM dual UNION ALL
    SELECT 'Y', 2007 , 5 FROM dual UNION ALL
    SELECT 'Y', 2008 , 15 FROM dual UNION ALL
    SELECT 'Y', 2009 , 25 FROM dual
    Tamir

  • How to create a "running total" by Quarter and Month

    I need a report that will display 3 columns of monthly summary data and then a total column for that quarter.  I need this to repeat for an entire year.  Here is what the final result should resemble:
    The fields I will bring into the crystal report are:
    Unit
    Code
    Month
    Quarter
    Sum (which is the summary value - let's pretend it's number of apples picked)
    I can probably find a way to get SQL to spit this result out or something similar, but I had hoped Crystal would be able to slice and dice this dataset into the end result above.  Would make my life easier!  Thanks.

    Hi Jack,
    If you're using CR 2008 or higher, you can easily do this with a Crosstab.
    You can add the 'Date' field in the Crosstab's column and the Unit and Code field in the Rows.
    The Date field can then be set to print 'For Each Quarter'.
    To show the summaries after each quarter, you can have a look at the example in this thread:
    Crosstab - column subreports
    and create a formula that inserts a column before a new quarter starts.
    The only complicated part is the insertion of the subtotal columns after each quarter and the formula that actually calculates the subtotals.
    If you think this is too complex or unmanageable, the SQL method of bringing each month (in a quarter) alongwith the totals would also be fine.
    -Abhilash

  • Hi all, May i know how to create filters in Hyperion Planning Application?

    Hi all, May i know how to create filters in Hyperion Planning Application?
    i don't know how to create filters in Planning Application. but my superior asking me to create filters.
    Thanks & Regards,
    Sekhar

    Go to Administration > Dimensions > Select Dimension > Select the member to want to assign acccess filters to :- Assign Access
    Repeat process for all access permissions.
    If there is a lot of permissions to set you could use a utility :-http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch03s07.html
    Refresh Planning including security filters
    Also have a read of :- http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/mg_secfilter.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • PPR Report ,How to display Label with TOTAl

    Hi,
    How Can i display PPR Report ,How to display Label with TOTAl like
    [http://apex.oracle.com/pls/apex/f?p=267:30:]
    Thanks
    Edited by: 805629 on Jan 6, 2011 3:34 AM

    Hi,
    For PPR Report:
    Select "Yes" in "Enable Partial Page Refresh" item of "Layout and Pagination" region in Report Attributes of that report.
    For display Label with TOTAL:
    Use "Break Formatting" region in Report Attributes of that report.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • I'm debutante in oracle 10g how to create a database with picture?

    I'm debutante in oracle 10g how to create a database with picture? help please

    d7401ec1-d4d6-4e54-9eb4-2181ac367d0c wrote:
    I'm debutante in oracle 10g how to create a database with picture? help please
    Oracle 10g is obsolete.  Oracle 11g is already at terminal release.
    Have you installed the Oracle rdbms software?
    Installing Oracle and Building the Database
    If you are going to be a professional DBA, you need to learn to
    1) read the documentation
    2) wean yourself from dependence on pictures and GUIs.
    3) read the documentation
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career.  To that end, you should drop everything else you are doing and do the following:
    Go to  docs.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    BOOKMARK THAT LOCATION
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth.  They are reference manuals.  Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - *Read a chapter a day from the Concepts Manual*.
    - Take a look in your alert log.  One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - *When you have finished reading the Concepts Manual, do it again*.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Oracle forms how to create excel format report

    hello :)
    these are my codes that generates report in live previewer. my problem is how to create an excel report producing the same output i can get in live previewer.
    Declare
         pl_id ParamList;
         v_alrt number;
         v_acct_ent_date date;
         v_start_date date;
         v_end_date date;
         v_end_date1 date;
         v_end_date2 date;
         v_end_date3 date;
         v_end_date4 date;
         iss_group varchar2(100);
         monthidentify date;
    Begin
         SELECT B.USER_GRP
         INTO ISS_GROUP
         FROM GIIS_USERS A,GIIS_USER_GRP_HDR B
         WHERE A.USER_GRP = B.USER_GRP
         AND A.USER_ID = USER;
    Select max(acct_ent_date)
    INTO v_acct_ent_date
    FROM gipi_polbasic;
         SELECT TRUNC(ADD_MONTHS(SYSDATE, -24))
         INTO v_end_date1
         FROM DUAL;
         select LAST_DAY(:FILTERS.FROM_DATE)
         INTO V_END_DATE2
         FROM DUAL;
         SELECT TRUNC (TO_DATE (:FILTERS.END_DATE), 'MONTH')     
         INTO V_END_DATE3
         FROM DUAL;
    IF :FILTERS.FROM_DATE IS NULL THEN
              MESSAGE('Please Enter a starting date in the format "MM/DD/YYYY"');
         MESSAGE('Please Enter a starting date in the format "MM/DD/YYYY"');
         GO_ITEM('FILTERS.FROM_DATE');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.END_DATE IS NULL THEN
         MESSAGE('Please enter an Ending date in the format "MM/DD/YYYY"');
         GO_ITEM('FILTERS.END_DATE');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.FROM_DATE > :FILTERS.END_DATE THEN
         MESSAGE('Starting Date cannot be greater than Ending Date');
         MESSAGE('Starting Date cannot be greater than Ending Date');
         :FILTERS.FROM_DATE := NULL;
         :FILTERS.END_DATE := NULL;
         GO_ITEM('FILTERS.FROM_DATE');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.DATE_FILTER = 'AED' and :FILTERS.FROM_DATE > v_acct_ent_date and
              :FILTERS.END_DATE > v_acct_ent_date then
              MESSAGE('No premium batch production occured between the given dates');
         MESSAGE('No premium batch production occured between the given dates');
         Raise FORM_TRIGGER_FAILURE;     
         END IF;
    IF ISS_GROUP <> 2 or USER = 'MKMIF' THEN
    /* IF :FILTERS.END_DATE <> V_END_DATE2 THEN
              MESSAGE('DATE PARAMETER SHOULD BE EXACTLY 1 MONTH');
              MESSAGE('DATE PARAMETER SHOULD BE EXACTLY 1 MONTH');
         Raise FORM_TRIGGER_FAILURE;
         END IF;
         IF :FILTERS.FROM_DATE <> V_END_DATE3 THEN
              MESSAGE('FROM DATE PARAMETER SHOULD BE THE FIRST DAY OF THE MONTH');
              MESSAGE('FROM DATE PARAMETER SHOULD BE THE FIRST DAY OF THE MONTH');
         Raise FORM_TRIGGER_FAILURE;
         END IF;*/
         IF :FILTERS.FROM_DATE < V_END_DATE1 THEN
              MESSAGE('FROM DATE SHOULD BE 2 YEARS BEFORE OR 2 YEARS BETWEEN THE SYSTEM DATE');
              MESSAGE('FROM DATE SHOULD BE 2 YEARS BEFORE OR 2 YEARS BETWEEN THE SYSTEM DATE');
              Raise FORM_TRIGGER_FAILURE;
         END IF;
    END IF;     
    IF :FILTERS.DATE_FILTER = 'AED' THEN     
         BEGIN
         Select acct_ent_date
         INTO v_acct_ent_date
         from gipi_polbasic where acct_ent_date between :FILTERS.FROM_DATE and :FILTERS.END_DATE;
         EXCEPTION
              When TOO_MANY_ROWS Then
              Null;
              When No_Data_Found Then
              Message('Premium batch productions can only be done at the end of the month. Kindly check the dates you entered.');
              Message('Premium batch productions can only be done at the end of the month. Kindly check the dates you entered.');
              Raise Form_Trigger_Failure;
         END;
    END IF;     
         v_alrt := show_alert('PRINT_ALERT');
         IF v_alrt = alert_button1 then
                   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');
                        Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
                        Add_Parameter(pl_id,'start_date',TEXT_PARAMETER,TO_CHAR(:FILTERS.FROM_DATE,'MM/DD/RRRR'));
                        Add_Parameter(pl_id,'end_date',TEXT_PARAMETER,TO_CHAR(:FILTERS.END_DATE,'MM-DD-RRRR'));
                        Add_Parameter(pl_id,'CREDITING_BRANCH',TEXT_PARAMETER,:FILTERS.BRANCH_CODE);
                        Add_Parameter(pl_id,'LINE_CODE',TEXT_PARAMETER,:FILTERS.LINE_CD);
                        Add_Parameter(pl_id,'INTERMEDIARY_NAME',TEXT_PARAMETER,:FILTERS.INTM_NAME);
                        Add_Parameter(pl_id,'INTERMEDIARY_TYPE',TEXT_PARAMETER,:FILTERS.INTM_TYPE);
              IF :FILTERS.Date_Filter = 'AED' then           
                   RUN_PRODUCT(REPORTS, 'PREM_PROD_AEDALL.rep' ,SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
              elsif :FILTERS.Date_Filter = 'ED' then
              RUN_PRODUCT(REPORTS, 'PREM_PROD_EDALL.rep' ,SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
              End IF;
              END IF;               
    End;
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hello,
    build a standard report using REPORT BUILDER (Oracle 10g Release 2)
    set
    DESFORMAT=SPREADSHEET
    Regards,
    Tarun

  • Oracle Report, How to Display Polish Characters in a PDF Output

    Environment :
    Oracle Application Server version 10.1.2.0.2 on Red Hat 4 Enterprise (Kernel 2.6.9-42.0.3 , 32 bit) Oracle Database Version 10.2.0.3.0 Our character set of database is UTF8
    I have trouble to display polish characters in Reports Output. We develop on Windows XP machines. I can see the Polish Caharacters in the Reports Builder using several fonts (arial, arial unicode, Times new roman, verdana...) during design time or when running with the paper layout. But when the report deployed to application server running on the linux, the polish characters are replaced by symbols.
    Even under Windows, when I select 'generate to a PDF' file option, the characters are not displayed correctly (When I open the generated PDF file with Acrobat reader and go to Document Properties / Fonts, I see the Fonts are always replaced with Adobe Sans MM)
    Using the Forms Applications running on the same application server we have no trouble dealing/displaying with the characters (Ąą ĆćĘę Ł ł ŃńÓóŚ ś Ź ź Ż ż ß Đ đ € )
    NLS_LANG setting is AMERICAN_AMERICA.UTF8 on the Linux Box and AMERICAN_AMERICA.WE8MSWIN1250 is on the Development machines. (have tried a number of different NLS_LANG settings on the development box as well with no luck).
    Any direction would be appreciated.

    Hi,
    You have several different approaches to fix this problem. First of all, you would be able to generate the PDF output with Font Subsetting setup and be able to see the Polish characters correctly when running the output with destype=cache&desformat=pdf. The following metalink documents would guide you with this setup :
    Note.207711.1 "How to Use Font Subsetting in Reports 9i and 10g for PDF Output"
    As at design time you use many different Windows specific fonts, I also advice you to check the following document :
    Note.356221.1 "A Practical Methodology on Porting Reports from Windows to Unix with Different Fonts"
    Once the PDF output is generated properly with correct characters, then if you need to use "destype=printer" for direct print, rather than "destype=cache" to display the output in browser, then you can use the "PDFPrint" pluggable destination, which is located in :
    http://www.oracle.com/technology/products/reports/pluginxchange/index.html
    Regards,
    -Bulent

  • How to create a sub total and grand total using my query.

    How can I create a sub total for each section and grand total for using my query like this.  your help is appreciated. I am working with 9g
    WITH  BidItemsInformation  AS
    ( SELECT DISTINCT q.iplineno "Line Number", q.section "Section Number",
             i.item "Item Number",
             initcap(i.idescr) "Description" ,
             i.iunits "Unit",
             q.qty "Quantity" ,q.price  "Engineers Unit Price",
           (q.price * q.qty) "Engineers Estimate"
         FROM letprop l,
            proposal p,
            propitem q,
            bidlet b,
            bidtabs c,
            itemlist i,
            vendor v,
            bidders d 
         WHERE(l.letting = b.letting
                And b.letting = c.letting
                And p.cspecyr = i.ispecyr)
                AND q.prpitem = i.item
                AND p.contid = l.lcontid
                AND q.contid = p.contid
                AND c.vendor = l.avendor
                AND l.CALL = c.CALL
                AND q.lineflag = c.lineflag
                AND q.iplineno = c.iplineno
                AND l.letting = d.letting 
                AND c.letting = l.letting
                AND c.CALL = d.CALL
                AND v.vendor = d.vendor
                --  AND AND l.letstat = 'A'
                AND c.lineflag = 'L'
                AND  l.letting ='&letting'
                AND l.CALL = '&call'
    ), BiddersInformation  AS
    -- This is where you make your changes for vendor name and vendor number Do not touch the above code
    -- It is always the same for any call number and letting date
    ( SELECT IPLINENO "BLine Number",
            MAX(CASE WHEN VENDOR='K020'  THEN bidprice ELSE NULL END) "K020:: Unit Price",
            MAX(CASE WHEN VENDOR='K020'  THEN bidprice ELSE NULL END) K,
            MAX(CASE WHEN VENDOR='H438'  THEN bidprice ELSE NULL END) "H438:: Unit Price",
            MAX(CASE WHEN VENDOR='H438'  THEN bidprice ELSE NULL END) H,
            MAX(CASE WHEN VENDOR='U010'  THEN bidprice ELSE NULL END) "U010:: Unit Price",
            MAX(CASE WHEN VENDOR='U010'  THEN bidprice ELSE NULL END) U,
            MAX(CASE WHEN VENDOR='G110'  THEN bidprice ELSE NULL END) "G110:: Unit Price",
            MAX(CASE WHEN VENDOR='G110'  THEN bidprice ELSE NULL END) G,
            MAX(CASE WHEN VENDOR='H530'  THEN bidprice ELSE NULL END) "H530:: Unit Price",
            MAX(CASE WHEN VENDOR='H530'  THEN bidprice ELSE NULL END) H1
        FROM  BIDTABS
        WHERE LETTING='&letting'
              AND CALL='&call'
              AND BIDPRICE <> 0
        GROUP BY IPLINENO
    SELECT BidItemsInformation."Line Number",
           BidItemsInformation."Section Number",
           BidItemsInformation."Item Number",
           BidItemsInformation."Description",
           BidItemsInformation."Unit",
           BidItemsInformation."Quantity",
           BidItemsInformation."Engineers Unit Price",
           BidItemsInformation."Engineers Estimate",
           BiddersInformation."K020:: Unit Price",
            (BidItemsInformation."Quantity" * K) "KGM CONTRACTORS INC",
           BiddersInformation."H438:: Unit Price",       
            (BidItemsInformation."Quantity" * H) "HOFFMAN CONSTRUCTION COMPAN",
           BiddersInformation."U010:: Unit Price",       
            (BidItemsInformation."Quantity" * U) "ULLAND BROTHERS INC",
           BiddersInformation."G110:: Unit Price",      
            (BidItemsInformation."Quantity" * G) "GLADEN CONSTRUCTION INC",
           BiddersInformation."H530:: Unit Price",      
            (BidItemsInformation."Quantity" * H1) "HOOVER CONSTRUCTION CO"
    FROM   BidItemsInformation,BiddersInformation
    WHERE  BidItemsInformation."Line Number" = BiddersInformation."BLine Number";
    Line Number     Section Number     Item Number     Description     Unit     Quantity     Engineers Unit Price     Engineers Estimate     K020:: Unit Price     
    0010     0001     2011601/00003     Construction Surveying     LS       1     143,000     143,000     75,000     75,000     67,080     67,080
    0013     0001     2013601/00010     Survey Equipment     LS       1     25,000     25,000     25,000     25,000     30,000     30,000
    0020     0001     2015601/00030     Blast Monitor/Survey     LS       1     50,000     50,000     30,000     30,000     35,000     35,000
    0030     0001     2021501/00010     Mobilization     LS       1     382,250     382,250     809,000     809,000     704,000     704,000
    0040     0001     2021602/00010     Well Survey     EACH     60     500     30,000     2,150     129,000     1,600     96,000
    0050     0001     2031501/00040     Field Office Type D     EACH     1     6,367     6,367     4,000     4,000     25,000     25,000
    sub total:
    1610     0002     2401501/01143     Structural Concrete (1a43)     C Y      46     350     16,100     408     18,768     400     18,400
    1620     0002     2401501/01362     Structural Concrete (1c62)     C Y      68     200     13,600     204     13,872     200     13,600
    1630     0002     2401501/03643     Structural Concrete (3y43)     C Y      60     600     36,000     592     35,520     580     34,800
    1640     0002     2401512/03633     Bridge Slab Concrete (3y33)     S F      1,876     24     45,024     28     51,778     27     50,652
    1650     0002     2401521/00030     Structure Excavation Class R     C Y      17     125     2,125     1,000     17,000     500     8,500
    1660     0002     2401541/00010     Reinforcement Bars     LB       2,490     2     3,735     1     3,312     1     3,237
    1670     0002     2401541/00011     Reinforcement Bars (Epoxy Coated)     LB       12,380     2     18,570     1     17,703     1     17,332
    1680     0002     2401601/00010     Structure Excavation     LS       1     2,500     2,500     2,000     2,000     5,000     5,000
    1690     0002     2402583/00020     Ornamental Metal Railing Type Special     L F      284     150     42,600     194     55,096     190     53,960
    sub total
    1820     0003     2401513/00346     Type Curb Railing Concrete (3y46)     L F      135     25     3,375     16     2,093     15     2,025
    1830     0003     2401513/07447     Type Mod P-4 (Tl-4) Railing Conc (3y46)     L F      302     85     25,670     72     21,593     70     21,140
    1840     0003     2401541/00010     Reinforcement Bars     LB       14,780     1     18,475     1     13,598     1     13,302
    1850     0003     2401541/00011     Reinforcement Bars (Epoxy Coated)     LB       76,720     1     103,572     1     85,926     1     84,392
    1860     0003     2401601/00010     Structure Excavation     LS       1     10,000     10,000     116,000     116,000     115,000     115,000
    1870     0003     2402583/00020     Ornamental Metal Railing Type Special     L F      132     150     19,800     184     24,288     180     23,760
    sub total
    total

    You can accomplish that using decode with the grouping function. It returns 1 when that column passed as argument was grouped (or is in some total) and 0 otherwise.
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> with t as
      2  (select 'New York' city, 'US' country, 1 num from dual
      3  union all select 'Los Angeles' city, 'US' country, 2 num from dual
      4  union all select 'London' city, 'GB' country, 2 num from dual
      5  union all select 'London' city, 'GB' country, 2 num from dual
      6  union all select 'London' city, 'GB' country, 7 num from dual)
      7  select decode(grouping(country), 0, country, 'GRAND TOTAL') country,
      8         decode(grouping(city), 0, city, decode(grouping(country), 0, 'SUBTOTAL')) city,
      9         sum(num) num_total
    10   from t
    11  group by rollup(country, city)
    12  /
    COUNTRY     CITY         NUM_TOTAL
    GB          London              11
    GB          SUBTOTAL            11
    US          New York             1
    US          Los Angeles          2
    US          SUBTOTAL             3
    GRAND TOTAL                     14
    6 linhas selecionadas.
    SQL>

  • Oracle report 6i(some problems,when running thru internet)

    how can i fixed the page size of report(when
    i am running thru internet)
    i fixed the vertical elasticity of outmost frame(in layout) is fixed and in layout's main section
    height is 11.50 inch
    (physically it takes 8.50 inch)
    ,when i am running it in same machine then size of each page is fixed(i.e. 8.50)
    but when i am running thru the internet
    the size of page is vary such as 8.40,8.60,8.30 etc.
    siddharth singh
    null

    hello,
    i would check with oracle support services. there were some known issues with the margin settings in earlier reports versions.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                               

  • Crystal report ( how to create a hyper link for the crystal report file)

    hello all,
    how to create a hyperlink for my report file....nd i want it open in excel format.

    Hello Uher,
    sorry for the insufficient details,
    actually we are calling some actuate reports from actuate server, and the URL looks like this
    "https://iconsole.xxx.com/iconsole/viewer/viewreport.jsp?
    outputFileType=XLSX&fromwhere=viewDocument&outputName=
    /filelocation/ReportOutputs/Reportname.xlsx&serverurl
    =http://xx.xxx.com:8010&volume=xxx&userid=xxx&password=xxx"
    which would generate an excel output,
    my question is, can we have some url in which we would specify the output format, as far my research i found  URL reporting
    some thing like this
    "http://" + servername +
    ":8080/OpenDocument/opendoc/openDocument.jsp?outputfiletype=xlsx/
    filelocation/userlogondetails
    but my client needs an excel output, with out going through any web page or viewer controls and generating buttons.
    Thank you

  • SAP Query-for  Reporting   how to create and use it

    Hi SAP Gurus,
    i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon.
    also if you have any study material on steps on How to write and create queries for PP module
    thank you very much

    Hi
    Please refer below document
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Also refer below
    How to Create Infoset Query (SAP Query)
    Steps on how to proceed to create a Query:
    ADHOC QUERY
    A query can be created to extract information from master records  i.e  Infotypes.  For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
    Proceedure :  
    Decide on  the various Infotypes we  want to make the query.  Decide on the area where we  want to query  i.e  Global area or Standard area.  Standard area is client specific and globel area will include all clients.
    Menu : HR – PM – Admn -  Information System -  Adhoc Query
    Select area standard and select the  user group already created
    Creation of new query  :  
    TC SQ03  -  Select Environment – Select Standard Area -  Enter  --  If new user group is to be created, enter name of the user group, click on create and enter necessary information and  exit after saving
    TC SQ02  -  Enter name of the Infoset – Create – enter name of Infoset -  Data source -- >  Table join by basis table – give name of table e.g  pa0000 -  Enter -  Click on insert table if we  want to include more tables – give name of table one by one and after finishing,  place cursor on the joining lines and right click to delete unwanted relationships  - check  - and go back  - field groups  -  include all table fields  - click on generate button   -  go out
    TC SQ03  -  Select user group  -   eg.  Payroll
    Infoset  - Enter name of newly created Infoset 
    Assign users and Infosets  -  Assign infosets  -  put tick on payroll  - save and go back
    TC  PAAH  -  Expand the nodes and put tick on relevant fields depending upon necessity
    Save the query  by giving the same name as infoset for easyness..
    For executing a query which is already created
    1. Go to SQ01 transaction
    2. Go to Environment menu->query areas->std areas
    3. Then choose the user group where the query is created
    4. It will display all the queries created for the group.choose the query you want to executeand click execute.
    5. will take to the initial screen
    6. Enter the required parameters and execute
    Regards
    Ranga
    Message was edited by:
            Ranganathan Srinivasamurthy

  • COPA Report  - How to create a complex formula

    Hi SAP guru,
    Please shed some light on this issue.
    In COPA drill down report, could any of you know how to create a complex formula? My client requires the report to show the conditional formula such as
    IF value field 1 is zero, calculate A
    IF value field 1 is not zero, calculate B etc..
    Your help will greatly be appreciated.

    Hiya,
    Specify the formula for that row, then double-click the value and it provides some options. I believe you can manipulate the calculation based on that.
    The best option would be to create the Value outside of the report and use the report simply to display it.
    Another option would be to use COPA enhancements (using T-Code SMOD) to calculate values. Since you can include ABAP code, you have the freedom to calculate just about anything you want out here.
    Alternatively, you could use Actual Valuation (IMG --> CO --> COPA --> Master Data --> Valuation --> Using Condition Records) and input a formula based on an actual value. If the actual value is something like Sales Revenue, you can "map" it to that field within the Condition Type. Assign the Condition Type to a Value Field and provide a Val Strategy to pick it up during Actual Postings (PV = 1)
    Hope this helps.
    Cheers.

  • How to create filters for OPENHUB?

    hi experts,
    how can i create filters for OPENHUB Destination for the below scenario.
    Make some kind of u201Clogicu201D to support a filter on an open hub. E.g. only data from month 2011-04  and until today are u201Copen hubu2019edu201D each day and data before 2011-04 must be u201Copen hubu2019ed u201D e.g. each weekend.
    The filter on the open hub can be different from open hub to open hub. We must be able, to filter one or more fields from the open hub.
    Regards
    venuscm

    hi this may helpful for you
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a5e58d-1117-2d10-13a7-fa10c2cf20d8?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90441228-52a8-2d10-e683-fe4b2d65c331?QuickLink=index&overridelayout=true
    Edited by: Srikanth.T on Nov 24, 2011 10:03 AM

  • Oracle Lite: How to create data subsetting parameters?

    I need to know:
    how to create data subsetting parameters?
    I need these parameters for use of a restricting predicate in an item publication.
    I were looking the forum and i found topics about "how to set?" but i don't found how to create a data subsetting parameter.
    I am replacing SQL server 2000 and SQL server CE by oracle 9i and oracle lite 5.0.2.
    Thanks in advance.
    PCID

    Had problems with the parameters shown on pages webtogo in the datasubsettings section because none of them were "defined", but in sections 1.4.1.2 I found these lines:
    Template: select * from master.task where CustCity = :city
    Then click OK. This brings you back to the previous screen. The template query contains a variable (subscription parameter) named "city". Later, when you provision the application to a user, you will be prompted to enter the value for it.
    I found out how to put a parameter to restrict registries that download to the pocket pc from each user.
    Thank you very much!!!

Maybe you are looking for