Creating custom reports with Pie Chart

Hello,
I've got a little problem while I'm creating custom reports with SQL Chart.
For example, I want to have a Pie Chart that represent the distribution of the version for a software, i wrote my query with no problem, the result is in good format.
My Pie Chart is fine except there are no percentage displayed. The legend on the right is fine with correct count of different version, but no percentage on the pie chart.
Any idea?
Thanks in advance,
Fab

Hello,
well, I think this is not possible to ask OEM to print the percentage over the chart.
Anyway, I sugget you to rewrite your query to compute the % in the query itselft thus to have the pct displayed on the rigth.
Let's say you want to display the database files' size with such a query: select file_name name,bytes val from dba_data_files;
This is the way to display the % of each file size over the total (remark the above query has been embeded in the new one).
select name,ratio_to_report(val) over() pct
from ( select file_name name,bytes val from dba_data_files )
order by val desc
It is quite easy to adapt such a tip to your own query.
Regards,
Noel Talard

Similar Messages

  • Create Custom Report or Pivot chart

    Hi,
    can anyone help me to create Report or Pivot chart contains below:
    1- Incident ID
    2- Incident Title
    3- Created Date
    4- First assigned Date
    5- First response
    Thanks,
    Kareem Behery

    Check out this blog post on how to create SSRS Reports for Service Manager - http://marcelzehner.ch/2012/08/14/creating-custom-service-manager-reports/
    All of the information you are looking for is in the IncidentDimvw view of the DWDataMart database. 
    Matthew Dowst |
    Blog | Twitter

  • Error creating custom reports. Permissions issue with custom reports

    I am having permission issues with reports. I am building a new Configuration Manager  2012 infrastructure and I have configured the Site server on Server1 and the DB is on Server2. Server2 also hosts the Reporting Point and SSRS roles/features. If
    I look in Monitoring at the Site Status and Component Status are all green no issues with the setup.
    Running SQL 2008 SP2 (no CUs). I have a service account that I used to install Configuration Manager and SQL. This service account is running the SQL service on Server2 and i am using the same account as the Reporting Services Point Account.
    I log into the SCCM console with a different user account, lets call it Admin1. This account is a member of the Full Administrator role. I can run any built in report.
    When I open the SSRS website and try to create a custom report I connect the DataSource using Windows Authentication. So the Datasource is connecting using the logged in users account. In this case Admin1. I test the connection and it connects fine.
    I test this query. (Select * from v_R_System) I only have about 10 workstations discovered so the report shouldn’t be very big. I get an error “The Select permission was denied on the object ‘v_R_System’, Database ‘CM_XXX’, schema ‘dbo’. (Microsoft sql server,
    Error: 229)”
    I have fixed the SELECT permission error by going into the database (using SQL Management studio) and granting Admin1 Select rights to the Configuration Manager database. I can now run the above query and make custom reports.
    My 2<sup>nd</sup> problem is that other members of the Full Administrator role cannot run these custom reports unless I go into the database and grant them the SELECT permission.
    Question:
    Should I have to manually go into the database to add SELECT permissions(i could use a group)? shouldnt Configuration Manager take care of this for me?
    Maybe the built in reports use the SQL service account rights and the custom ones do not? Am I doing something wrong with the Datasource when I create these custom reports?
    What is the correct process for creating custom reports?

    I think i am getting closer to a solution. After the Custom report is created. i can go back into the report. Delete the DataSource. Then browse for a dataSource. there is a datasource located in http://server2/reportserver/ConfigMgr_XXX/
    That datasource is used by all builtin reports. if you view the properties on the Credentials tab it is set to "do not use credentials" and the option is greyed out / cannot be changed.
    it looks like i still need the SELECT permissions on the database to create the report initially but at least i have solved the problem with viewing these reports.
    Can anyone confirm that what i did is correct?

  • Problem with creating customized report layout

    Hello,
    I want to create customized report layout. However, it doesn't work. Can somebody help me?
    I have a page 24 in apex.oracle.com(workspace: houbcm, username: apex, password: apex1). Here is the code in my .xslt.
    <?xml version="1.0"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="content"
    page-width="210mm" page-height="297mm">
    <fo:region-body/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="content">
    <fo:flow flow-name="xsl-region-body">
    <fo:table table-layout="fixed" width="100%">
    <fo:table-body>
    <fo:table-row >
    <fo:table-cell> <fo:block text-align='right' > <fo:inline> Product Name: </fo:inline> </fo:block> </fo:table-cell>
    <fo:table-cell> <fo:block text-align='left' > <fo:inline> <xsl:value-of select='.//PRODUCT_NAME' /> </fo:inline> </fo:block> </fo:table-cell>
    </fo:table-row>
    <fo:table-row >
    <fo:table-cell> <fo:block text-align='right' > <fo:inline> Description: </fo:inline> </fo:block> </fo:table-cell>
    <fo:table-cell> <fo:block text-align='left' > <fo:inline> <xsl:value-of select='.//PRODUCT_DESCRIPTION' /> </fo:inline> </fo:block> </fo:table-cell>
    </fo:table-row>
    <fo:table-row >
    <fo:table-cell> <fo:block text-align='right' > <fo:inline> Category: </fo:inline> </fo:block> </fo:table-cell>
    <fo:table-cell> <fo:block text-align='left' > <fo:inline> <xsl:value-of select='.//CATEGORY' /> </fo:inline> </fo:block> </fo:table-cell>
    </fo:table-row>
    <fo:table-row >
    <fo:table-cell> <fo:block text-align='right' > <fo:inline> Availability: </fo:inline> </fo:block> </fo:table-cell>
    <fo:table-cell> <fo:block text-align='left' > <fo:inline> <xsl:value-of select='.//PRODUCT_AVAIL' /> </fo:inline> </fo:block> </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell> <fo:block text-align='right' > <fo:inline> List Price: </fo:inline> </fo:block> </fo:table-cell>
    <fo:table-cell> <fo:block text-align='left' > <fo:inline> <xsl:value-of select='.//LIST_PRICE' /> </fo:inline> </fo:block> </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    Thanks,
    Jen

    Hi,
    Thanks for the reply. I have created following report definition.
    SELECT Call_Type.EnterpriseName, Call_Type.Description AS DNIS, Call_Type_Interval.CallTypeID,
    SUM(Call_Type_Interval.ServiceLevelCallsOffered) AS CallsOffered,
    SUM(Call_Type_Interval.CallsAnswered) AS CallsAnswered,
    SUM(Call_Type_Interval.TotalCallsAband) AS TotalCallsAband,
    SUM(Call_Type_Interval.ServiceLevelAband) AS ServiceLevelAband,
    SUM(Call_Type_Interval.ShortCalls) AS ShortCalls,
    SUM(Call_Type_Interval.CallDelayAbandTime) AS CallDelayAbandTime,
    SUM(Call_Type_Interval.AnswerWaitTime) AS AnswerWaitTime,
    SUM(Call_Type_Interval.AnsInterval1) AS AnsInterval1,
    SUM(Call_Type_Interval.AnsInterval2) AS AnsInterval2,
    SUM(Call_Type_Interval.AnsInterval3) AS AnsInterval3,
    SUM(Call_Type_Interval.AnsInterval4) AS AnsInterval4,
    SUM(Call_Type_Interval.AnsInterval5) AS AnsInterval5,
    SUM(Call_Type_Interval.AnsInterval6) AS AnsInterval6,
    SUM(Call_Type_Interval.AnsInterval7) AS AnsInterval7,
    SUM(Call_Type_Interval.AnsInterval8) AS AnsInterval8,
    SUM(Call_Type_Interval.AnsInterval9) AS AnsInterval9,
    SUM(Call_Type_Interval.AnsInterval10) AS AnsInterval10
    FROM        
    Call_Type (nolock),
    Call_Type_Interval (nolock)
    WHERE Call_Type.CallTypeID = Call_Type_Interval.CallTypeID
    AND Call_Type.CallTypeID in (:calltype_list)
    AND Call_Type_Interval.DateTime >= :start_date
    AND Call_Type_Interval.DateTime <= :end_date
    GROUP BY Call_Type.EnterpriseName,
    Call_Type.Description,
    Call_Type_Interval.CallTypeID
    For this definition i wanted to create a customized report which is apparently not possible.

  • How to create custom report plugin using child region report metadata

    Hi,
    I want to ask for help on how to create custom report plugin using child region report metadata. My idea is to create a child region, a classic report and set the condition to never.
    Then i will query the child report metadata from apex view and use it to create a custom report like using jquery jq-grid. Any idea how i can create a process that will use the child report
    metadata? I dont know how i can create a process just like how apex work, how apex render report, coz i want it to be control using the standard apex report attribute. This plugin will
    render according to the child report attribute.
    Is there anybody here had ever done this?

    Hi Nicolette,
    Thanks for the reply. I know where to find the metadata, just asking for idea on how the rendering process will be.
    Start from determining column heading, column order until finish rendering the report. The same way how apex
    render the classic report.
    Previously this imy my rendering process:
    FUNCTION GETCOLUMN(P_REGION IN APEX_PLUGIN.T_REGION,
                         P_PLUGIN IN APEX_PLUGIN.T_PLUGIN,
                         P_VALUE  IN VARCHAR2) RETURN SYS.DBMS_SQL.DESC_TAB2 IS
        VSQLHANDLER     APEX_PLUGIN_UTIL.T_SQL_HANDLER;
        VCOLCOUNT       NUMBER;
        VCOLNAMES       VARCHAR2(2000);
        VAJAXIDENTIFIER VARCHAR2(100);
        VPAGESIZE       TYPEATTR := P_REGION.ATTRIBUTE_04;
        VJSCODE         VARCHAR2(32767);
      BEGIN
        VSQLHANDLER := APEX_PLUGIN_UTIL.GET_SQL_HANDLER(P_SQL_STATEMENT  => 'select * from s_emp',
                                                        P_MIN_COLUMNS    => 1,
                                                        P_MAX_COLUMNS    => 999,
                                                        P_COMPONENT_NAME => P_REGION.ID);
        VCOLCOUNT := VSQLHANDLER.COLUMN_LIST.COUNT();
        FOR I IN 1 .. VCOLCOUNT LOOP
          VCOLNAMES := VCOLNAMES || '{name: "' ||
                       UPPER(VSQLHANDLER.COLUMN_LIST(I).COL_NAME) || '",';
        END LOOP;
        APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
        RETURN VSQLHANDLER.COLUMN_LIST;
      EXCEPTION
        WHEN OTHERS THEN
          APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
          RAISE;
      END GETCOLUMN;
    So this is how i get the header for my report plugin. The same method is use to get the value / data for each column. This process is work. So now
    i want to extend my plugin so that i will use all attributes from the child report to render my plugin. So the column header, column order, all will depend
    on the child report. And the column display condition is set, it will also check the condition before render the column. Sounds like i want to reinvent
    the normal apex rendering process but this is what i want to achieve.
    I need help to find the correct logic for my render process. Don't want too much for starting, just want to render the plugin correctly, same with child report,
    same columns alias, column ordering and column  conditional display.
    Thanks,
    akulala

  • Best way to create custom reports

    Good Afternoon,
    I am completely new to UCCX 9 and Crystal reports, so double newbie. I have been attempting to create customs reports that will not be run by the Historical Reports. I've used the Historical Reporting Admin and Dev Guide along with the DB Schema pdfs, to no avail. Is there a better option? I've seen that the DB can be accessed via SQL applications. The reports that have been requested are rather complex (IMO),
    Number of calls accepted and abandoned, with available (Ready and Not Ready) Agents per hour vs scheduledI've been able to create this with two different reports
    Calls taken by Agent by hour and status through out the day including times spent in different Ready Codes, Talk times, hold times, etc.
    Essentially, can any one guide me to a better resource or option? I appreciate the help. Thank you.
    - Jose

    Hi,
    there's a number of solutions available, you may wish to browse the Solutions Catalog.
    Alternatively, you can build your own - there's a number of free and commercial solutions available. Personally, I prefer BIRT.
    G.

  • How to create custom reports.

    Hi ,
    Could you please let us know how to create custom reports which are data based and not analytics. Which is the best method , is it to devlop reports in sites or integrate with OBIEE reports. could you please let us know the best practices for this approach.
    Thank you,
    Sashank P.

    Hi Jiri ,
    Thanks a lot for your support. Below are my answers for the request:
    1) what data you want to report on? Is it data from a database? file system? Web service outputs?
    Ans : The Data would be mostly from Database only.
    2) what is the overall purpose of your solution?
    Ans: The overall purpose of this solution is to generate reports with sorting capability and should be able to export in different format documents.
    3) what is your architecture?
    Ans :
    4) why Sites?
    Ans: The customers login into our site and can be able to view the different reports and the present site is already a webcenter site. and the reporting capability is an enhancement .
    Can you please provide the right approach here. We have an option of using ADF or even we can use Webcenter Portals. So which would be the best approach to go. And can you please guide us any approach or examples for integrating Webcenter Portals and Sites and even integrating ADf with Sites.
    Thank you,
    Sashank P.

  • Need help to develop report with column chart

    Hi
    I am new to SAP BO world.Could  anyone please help me to design report with column chart.Please guide me how to develop report for the following requirement.I am not aware of variance columns and variance labels.Please provide some guidance or some tutorials(for column Chart) so that I can complete the task. Please reply me as soon as possible.Waiting for reply.Thanks in advance.
    Type: Column Chart
    u2022     Rows: Banking Asset Margin (%)
    u2022     Start / End Columns: PY YTD Act(Prior year year to date); CY YTD Act(Current year Year to date)
    u2022     Variance Columns: # Var (CY-PY Act) for GOLM; Volume; Rate; Non Banking NII; Banking Volatility in NII; Banking Volatility in OOI; Fees/One Offs/Other; Volatile Items; Sophie
    u2022     Sub-total columns: PY YTD Underlying; CY YTD Underlying.
    u2022     Variance Labels: % Var (CY-PY Act) for Total Income and Underlying Income
    u2022     Sub-Total Labels: # Var (CY-PY Act) for Net Insurance Income; Banking Volatility; Other Operating Income
    Additional information
    u2022     Variance columns (bar) colours: Red = Adverse to Prior Year; Green = Favourable to Prior Year
    u2022     Columns to show values. Adverse values to be shown in red text in brackets. Favourable results in black text.
    u2022     All values in Black, but adverse to be shown below the bar.

    Hi,
    This type of question is almost impossible to answer over a forum .
    You need to work with your business to understand what these requirements mean in terms of data modelling and relationships between object entities.
    - Some of these metrics should be delegated to source, and calculated in the update routines to your datatargets (aka Cubes/Tables)
    - Others could be resolved in the semantic layer (Universe)
    - Other will be calculated in the presentation layer as local formulae or variables.
    whilst BusinessObjects is a fairly intuitive tool, it may be unreasonble to expect a new learner to deliver an advanced report with conditional formatting.
    Regards,
    H

  • How to create a report with survey data

    Hi All,
    I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
    Swapna

    Hi Swapna,
    According to your description, you want to create a report with survey data and display the summary.
    Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
    to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • How to create a report with different page sizes

    Hi,
    I would like to create a report with different page sizes, it's possible to do it with diadem?
    When I change the layout parameters, changes afect to all sheets...
    Is there a way to change page size individually for each sheet?
    Thanks in advance.
    Marc

    Hi Marc,
    You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach.  This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
    ' Print PDF Page by Page.VBS
    OPTION EXPLICIT
    Dim i, Path, OldPrintName
    Path = AutoActPath & "2D Stacked"
    Call DataDelAll
    Call DataFileLoad(Path & ".TDM")
    PDFFileName = Path & " Page by Page.pdf"
    IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
    OldPrintName = PrintName
    PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
    PDFResolution = "72 DPI" ' "2400 DPI" , "default"
    PDFOptimization = TRUE
    PDFFontsEmbedded = FALSE
    PDFJPGCompressed = "high"
    PrintOrient = "landscape" ' orient paper
    Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
    PrintLeftMarg = 0.181
    PrintTopMarg = 0.181
    PrintWidth = 10.67
    'PrintHeigth = 7 (read-only)
    Call WndShow("REPORT")
    Call DocStart ' Begin multi-page document/print job
    FOR i = 1 TO 4
    Call PicLoad(Path & ".TDR")
    Call GraphSheetNGet(1)
    Call GraphSheetRename(GraphSheetName, "Page " & i)
    Call PicUpdate
    Call PicPrint("WinPrint") ' Add a page to be printed
    NEXT ' i
    Call DocEnd ' End multi-page document/print job
    PrintName = OldPrintName
    Call ExtProgram(PDFFileName)
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Problem while creating XDO Report with PL/SQL

    hi,
    i am trying to create
    1.created XDO Report with the help of PL/SQL which takes two parameters and code for writing XML tags to output file
    2.created concurrent program that will call the PL/SQL pkg
    here i am trying to create the xml out put bu t i am stuck with some errors below is the code
    create or replace
    PACKAGE AgentTimeReport_XDO_pkg AS
    TYPE srdaterange_rec is RECORD (
    fromsrdate varchar2(20 byte),
    tosrdate varchar2(20 byte)
    Type agent_table IS TABLE OF srdaterange_rec INDEX BY BINARY_INTEGER;
    procedure GetAgentTimeList(o_errbuf  OUT VARCHAR2
                   ,o_retcode             OUT VARCHAR2,p_fromsrdate IN varchar2,p_tosrdate IN varchar2);
    END AgentTimeReport_XDO_pkg;
    create or replace
    PACKAGE BODY AGENTTIMEREPORT_XDO_PKG AS
      procedure GetAgentTimeList(o_errbuf  OUT VARCHAR2
                   ,o_retcode             OUT VARCHAR2,p_fromsrdate IN
    VARCHAR2,p_tosrdate IN VARCHAR2 )
    IS
    cursor cs_agenttime(p_fromdate IN VARCHAR2,p_todate IN VARCHAR2)
    is
    SELECT  
      incident.Incident_Number as ServiceRequestNumber,
      TO_CHAR (incident.incident_date,'DD-MON-YYYY') as ServiceRequestDate,
      incident.Summary as Summary,
      agenttime.agentname as AgentName,
      to_char(agenttime.agentstarttime,'DD-MM-YYYY HH24:MI') as StartTime,
      to_char(to_date('00:00:00','HH24:MI:SS') +
      (agenttime.endtime-agenttime.agentstarttime), 'HH24:MI') as TimeSpent 
    FROM cs_incidents_all_b incident,cs_agenttime_agv agenttime
    WHERE agenttime.incident_id=incident.incident_id
    AND incident.incident_date between to_date(p_fromsrdate,'DD-MON-YYYY')
    AND to_date(p_tosrdate,'DD-MON-YYYY');
      BEGIN
        /*First line of XML data should be ‘<?xml version="1.0" encoding='utf-8'?>’*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="utf-8"?>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<AGENTTIME>');
    FOR cs_agent IN cs_agenttime(p_fromsrdate,p_tosrdate)
    LOOP
    /*For each record create a group tag <G_AGENT_TIME> at the start*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_AGENT_TIME>');
    /*Embed data between XML tags for ex:- <EMP_NAME>Abeesh</EMP_NAME>*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SERVICEREQUEST_NUMBER>' ||
    cs_agent.ServiceRequestNumber 
                                    || '</SERVICEREQUEST_NUMBER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SERVICEREQUEST_DATE>' ||
    cs_agent.ServiceRequestDate ||
                                       '</SERVICEREQUEST_DATE>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<START_TIME>' || cs_agent.StartTime
                                     ||'</START_TIME>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<TIME_SPENT>' || cs_agent.TimeSpent
                                     ||'</TIME_SPENT>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_AGENT_TIME>');
    END LOOP;
    /*Finally Close the starting Report tag*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</AGENTTIME>');
      END GetAgentTimeList;
    END AGENTTIMEREPORT_XDO_PKG;any one help me
    the log file
    Service: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    DEMOXDO module: DemoAgentXDO Report
    Current system time is 28-JUL-2009 05:16:46
    **Starts**28-JUL-2009 05:16:46
    ORACLE error 1861 in FDPSTP
    Cause: FDPSTP failed due to ORA-01861: literal does not match format string
    ORA-06512: at "APPS.AGENTTIMEREPORT_XDO_PKG", line 9
    ORA-06512: at "APPS.AGENTTIMEREPORT_XDO_PKG", line 25
    ORA-06512: at line 1
    The SQL statement b
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 28-JUL-2009 05:16:46
    ---------------------------------------------------------------------------

    Hi,
    Please see if these documents help.
    Note: 367607.1 - FDPSTP Failed Due to ORA-01861: Literal Does Not Match Format String
    Note: 370272.1 - not able to run the report set having unsupported date format of fnd-date4
    Note: 376034.1 - How to Handle New Date Formats in SQL*Plus and PL/SQL Procedures?
    Regards,
    Hussein

  • Problem when creating a Report with a schduled date

    When I tried to create a report with a Schedule (any option except NOW) I get the error of "First Report Occur Date should be after or equal to Current Date" unless I use a date of 2012-10-01 or later in the First report occurs on field.  Today's date is 2012-08-23.
    Let me know if you can recreate this and if or when there will be a fix.

    Hi Tim,
    I'm glad to see you've been configuring your On100, but sad to see you've hit another snag. We are looking into this issue now. I'll get back to you with an update.
    Thanks,
    The OnPlus Team

  • Need help in creating custom reports

    hello,
    I am using EM 10.2.0.2 on windows 32-bit.
    All EM components are installed on a single machine.
    Have installed AGENT 10.1.0.5 for managing targets which are on LINUX 2.1
    Please help me in getting the solution for the following queries:
    (a)I need to create a custom report regarding the CAPACITY MANAGEMENT .
    (b)I have some UDM defined but I am not able to use these UDM while creating custom report.
    (c)Also is there any possibility that we can use views other than REPOSITORY VIEWS. What I meant was : instead of using REPOSITORY VIEWS can we use the tables of the target instances.
    Thanks in advance.

    Same post
    Need help on repository views for creating custom capacity planning reports

  • Want to create custom report under report field in OEM 11G

    Dear all
    I would like to create custom report on OEM 11G. I have query which is executed and verified from TOAD. But after placed report element it shows an error that table/view not exits. But it doesn't ask any database user name and password.So let me like to know how to do this. I want add more and more reports after the success of this.. Ho can it be done?Please advice.
    Note:-
    The data is getting from OEM repository i think so.. But i need a report which is get data from various apps and system tables. So how to display result from this table and shown to EBS reports.
    Regards,
    Gobinath.R
    Associate consultant
    Petrofac Information Services Private Limited
    Chennai.
    Edited by: Gopinath on May 18, 2012 4:23 AM

    Report should be based on tables in repository database. Mostly sysman tables we will be using for reporting. If you need other database tables then you need to create dblink to those targets in sysman schemas. To my knowledge that's the only way you can refer to other db tables in reports.
    Regards,
    Satheesh Shanmugam

Maybe you are looking for

  • Jnlp file shown as XML in Internet Explorer

    My problem is somewhat complex and have given me a headache while it seem to be a completely erratic behaviour. (Erratic, not over time, but over different computers.) The main trouble is that I've got two separate webservers serving jnlp files for a

  • The credit card you entered is not supported in this dimension. Any words on this problem?

    It seems credit cards of all kinds (at least Mastercard and Visa) are being rejected by the iTunes Store today, which remembers me that it has been strange lately asking for data more than necessary on my iPad and computer. I can not buy now as many

  • I opened iPhoto to find all of my albums and pictures gone.

    None of the rebuild options discussed in other forums have brought the pictures back. Earlier today, my computer experienced a kernel panic. Would that have deleted all of my pictures? I don't know a lot of technical stuff about how my Mac works. I j

  • SAP- FIORI communication with peripherals ?

    Does SAP-Fiori can communicate with external peripherals like Bluetooth bar code scanner, RFID scanner etc .? Like instead of entering the serial numbers manually can SAP-Fiori provide an interface where we can get the serial numbers of the material

  • Best workflow PAL (Avid DV) to NTSC

    Hi friends, I received a 2-hour concert video (I was informed that this is going to be 16:9) from Prague with the following Item Properties (from FCP): Creator: QuickTime Player Vid Rate: 25 fps Frame Size: 720 x 576 Compressor Avid DV Data Rate: 19.