Unable to open a report from Java SDK

Hi,
I am trying to open a report from the SDK in a java application. Here is the code :
package com.metrixware.test;
import com.crystaldecisions.sdk.occa.report.application.OpenReportOptions;
import com.crystaldecisions.sdk.occa.report.application.ReportAppSession;
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
public class MyBoTest {
@param args
     public static void main(String[] args) {
         ReportClientDocument myDoc = new ReportClientDocument();
         try {
              ReportAppSession sess = new ReportAppSession();
              sess.setReportAppServer("AGIRC-DEMO");
              sess.initialize();
              myDoc.setReportAppSession(sess);
               myDoc.open("rassdk://D:/Document8.rep",OpenReportOptions._openAsReadOnly);
               System.out.println("Titre du doc : "+myDoc.displayName());
          } catch (ReportSDKException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
but i always get the following error stack (ReportSDKException) on the open method of the doc :
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Impossible de charger le rapport.---- Error code:-2147483123 Error code name:failed
     at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
     at com.metrixware.test.MyBoTest.main(MyBoTest.java:22)
The document is at the right location on my local machine where my test is running. The RAS server is up and running on the CMS.
Can you help me on this problem.
Also i have another question. Can you tell me if i'll be able to read through this object the generated SQL select statement of the report.
Thanks.
Julien Pignatel

try the following instead:
ReportClientDocument myDoc = new ReportClientDocument();
myDoc.setReportAppServer("AGIRC-DEMO");
myDoc.open("rassdk://D:
Document8.rpt",OpenReportOptions._openAsReadOnly);
Also make sure that on RAS command you have added: -ipport "1566" -reportdirectory "D:/"
Please note:
1. Don't need to use ReportApSession class
2. what do you use Document8.rep, you cannot open a Deski document with RAS. RAS can be used only with crystal reports.
Hope that helps.
Best Regards
Aasavari

Similar Messages

  • Unable to Open Bex report from SAP APO User Menu

    Hi All,
    I am an  SAP APO consultant, and have not miuch expereice in BEx reporting. As APO uses Build in BI for reporting and pulling history from either external BW or R/3.
    Now my issue all BEx reports we use are assigned ot my user menu and when I select a report, I would expect report to open but an excel sheet opens and closes and nothing happens. However I am able to open this reports from my desktop menu selecting Business explorer and Analyzer and linking my SAP system. I use Excel 2007 , Is this some compactibilty issue or is there anything I need to do?

    Hi KV,
    There's a couple of possible root cause why you dont see properly the Bex Report.
    Can you share to me the APO version and the BW software component being used?
    In case this is still in the 3.x, 4.x APO, I think, a separate BW add on is needed for you to run your BEx report properly. You can ask your basis team for this separate installation.
    Btw, is this report working before, meaning was it pulled successfully already in the past?
    Can you try doing this again in a separate workstation, as the BW add on is installed separately per workstation.
    Its possible that this is also an auth issue that the user you are using is not capable enough to run BEx.
    As of now, I have not encountered any Bex issue that is related with the Excel version, I have tried running Bex in Excel 2007 no issue also. I think it maybe more related with the OS you are using, if its in Vista already what I know is you need to add your excel as a trusted document before you can run bex fro Vista.
    Let me think of other possibilities.
    Hope this helps.
    - Jeff

  • 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 set DbConnections when scheduling a crystal report using Crystal Reports Server Java SDK?

    Post Author: Manjula
    CA Forum: JAVA
    Hi,
    Trying to schedule a report using Crystal Reports Server Java SDK. Want to pass DBConnections from API, though passing DBConnections, the report is not being scheduled and says "Failed to retrieve data from the database.Details:&#91;Database Vendor Code:6550&#93;.
    Would be thankful if someone could answer my point as applicable.
    Here is the code attached.
    ISDKList dbLogons = oReport.getReportLogons();int dbLogonSize = dbLogons.size();
    for(int i=0; i<dbLogonSize; ++i) {
    IReportLogon dbLogon = (IReportLogon)dbLogons.get(i);
    dbLogon.setDatabaseName("DBname");
    dbLogon.setUserName("usrname");
    dbLogon.setPassword("pwd");
    Thanks in advance.

    Post Author: Manjula
    CA Forum: JAVA
    Ted,
    Thank you for your valuable information.
    First, tried scheduling on Central Management Console and then with the java code.It worked fine, but here is another question for you.
    On the Console, a report exists with ServerName and UserName harcoded and when trying to set ServerName and UserName from the java code, its throwing exception. Where as Password is not set on Console, am able to set password from java.
    And DatabaseName is not set on Console (non editable), unable to set the same from java too. Why is it so?
    So, my question is - though ServerName,DatabaseName,UserName,Password exists on the Console report, can't I override those parameters from java?
    Would be greatful if you answer my question and provide me some guidance.
    Thanks in advance.

  • Open doc URL: unable to open the report in same window

    Hi
    I'm trying to open a report using open doc url with "swindow=same" but still it opens in a separate window. This happens only when I use JAVA viewer. it works fine in ActiveX and HTML but I want this in JAVA viewer as i'm including this page in my JAVA application and it should open the report in the same window. I tried using "<a>URL</a>" and also target="_self" by HTML interpretation for that object but still the same problem. I'm unable to open the report in the same window by using JAVA viewer for Crystal Reports in info view. Please help me!!!
    Envirorment Details: Crystal Reports 2008 SP3, BOE XI R3 SP3
    regards
    Raghavendra.G

    I have tested that myself and It seems that HTML interpretation does not work with the Java viewer.
    I have also tried using a hyperlink containing javascript
    eg.
    javascript:window.location.href='http://www.sap.com'
    but the java viewer seems always to launch a new window before processing the command.
    I would recommend to open a case by SAP support ( httP://service.sap.com/support )
    Regards,
    Stratos

  • Creating a sample report using JAVA SDK

    Hi,
    I am trying to create a sample report using JAVA SDK.
    I slelect 4 "free cells" and pass 4 different strings to it.
    I even slelect the font colour and size. When i run the class and try to view the report in Infoview, I only seeblank blocks without any data. Now if I edit the report from infoview, and save the changes, I am able to see the data.
    My issue is, Why am I not able to see the data when I run the java code.
    Please find teh code below.
    package com;
    import java.awt.Color;
    import java.io.FileOutputStream;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import com.businessobjects.rebean.wi.BinaryView;
    import com.businessobjects.rebean.wi.DataProvider;
    import com.businessobjects.rebean.wi.DataProviders;
    import com.businessobjects.rebean.wi.DataSource;
    import com.businessobjects.rebean.wi.DataSourceObject;
    import com.businessobjects.rebean.wi.DocumentInstance;
    import com.businessobjects.rebean.wi.DocumentLocaleType;
    import com.businessobjects.rebean.wi.FontImpl;
    import com.businessobjects.rebean.wi.FreeCell;
    import com.businessobjects.rebean.wi.HTMLView;
    import com.businessobjects.rebean.wi.OutputFormatType;
    import com.businessobjects.rebean.wi.PageHeaderFooter;
    import com.businessobjects.rebean.wi.Query;
    import com.businessobjects.rebean.wi.Recordset;
    import com.businessobjects.rebean.wi.Report;
    import com.businessobjects.rebean.wi.ReportBody;
    import com.businessobjects.rebean.wi.ReportCell;
    import com.businessobjects.rebean.wi.ReportContainer;
    import com.businessobjects.rebean.wi.ReportElement;
    import com.businessobjects.rebean.wi.ReportEngine;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.framework.ISessionMgr;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObject;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.plugin.CeKind;
    public class Aug7th {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String CMS = "pundl8136:6400";
              String userID = "srivas";
              String password = "morcom123";
              String auth = "secEnterprise";
              List<String> entire =new ArrayList<String>();
              List<String> country =new ArrayList<String>();
              List<String> resort =new ArrayList<String>();
              IEnterpriseSession enterpriseSession;
              try
                   ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
                   enterpriseSession = mySessionMgr.logon(userID, password, CMS,auth);
                   if (enterpriseSession != null)
                   {//Create and store useful objects for the session.
                        IInfoStore iStore = (IInfoStore)enterpriseSession.getService("InfoStore");
                        ReportEngine reportEngine = (ReportEngine)enterpriseSession.getService("WebiReportEngine");
                        IInfoObject infoView = null;
                        String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE (SI_KIND = '"+CeKind.WEBI+"' OR SI_KIND='FullClient') " +
                        "AND SI_INSTANCE = 'false' AND SI_NAME='Structure Test_001_Java' ORDER BY SI_NAME ASC ";
                        //String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS ORDER BY SI_NAME ASC ";
                        IInfoObjects objInfoObjectsWIDs = (IInfoObjects) iStore.query(str);
                        System.out.println(objInfoObjectsWIDs.size());
                        IInfoObject objInfoObjectWID = (IInfoObject) objInfoObjectsWIDs.get(0);
                        DocumentInstance doc = reportEngine.openDocument(objInfoObjectWID.getID());
                        DataProviders dps = doc.getDataProviders();
    //                     Retrieve the 1st data provider
                        DataProvider dp = dps.getItem(0);
    //                     Retrieve the universe objects
                        DataSource ds = dp.getDataSource ();
                        Query q = dp.getQuery();
                        Recordset rs = dp.getResult(0);
    //                     0: assume query has one flow
                        rs.first();
    //                     Print the column types. They can be Integer, String,
    //                     or Date.
                        for (int i = 0; i < rs.getColumnCount(); i++) {
                        Class c = rs.getColumnType(i);
                        StringBuffer sbt = new StringBuffer();
                        if ( c.equals(Integer.class) )
                        sbt.append("Integer");
                        if ( c.equals(String.class) )
                        sbt.append("String");
                        if ( c.equals(Date.class) )
                        sbt.append("Date");
                        sbt.append(";");
                        System.out.println(sbt.toString());
                        System.out.println(rs.getColumnCount());
                        while (!rs.isLast()) {
    //                          column names
                             StringBuffer sbn = new StringBuffer();
                             StringBuffer sbd = new StringBuffer();
                             for (int j = 0; j < rs.getColumnCount(); j++) {
                             sbn.append( rs.getColumnName(j).toString() );
                             sbn.append(";");
                             System.out.println("sbn "+sbn.toString());
    //                          data
                             for (int k= 0; k< rs.getColumnCount(); k++) {
                             sbd.append( rs.getCellObject(k).toString() );
                             sbd.append(";");
                             entire.add(rs.getCellObject(k).toString());
                             System.out.println("sbd "+sbd.toString());
                             rs.next();
                        System.out.println(entire.size());
                        for(int i=0;i<entire.size();i++){
                             country.add(entire.get(i));
                             i++;
                             System.out.println("entireList "+entire.get(i));
                             resort.add(entire.get(i));
                        DataSourceObject city = ds.getClasses().getChildByName("Country");
                        DataSourceObject resorts = ds.getClasses().getChildAt(1);
                        dp.runQuery();
                        ReportContainer report = doc.createReport("Resort");
                        PageHeaderFooter header = report.getPageHeader();
                        FreeCell headerCell = header.createFreeCell("Resort Report");
                        PageHeaderFooter footer = report.getPageFooter();
                        FreeCell footerCell = footer.createFreeCell("Report Ends");
                        ReportBody body =  report.createReportBody();
                        for(int k=0;k<resort.size();k++){
                        FreeCell res=body.createFreeCell(resort.get(k));
                        res.getAttachTo();
                        res.setHeight(15d);
                        res.setWidth(30d);
                        Color c = new Color(255,255,255);
                        Color c1 = new Color(255,0,0);
                        FontImpl fnt = (FontImpl)res.getFont();
                        fnt.getDecoration().setTextColor(c1);
                        res.setFont(fnt);
                        //res.deleteAttachment();
                        //res.setAttachTo(body,VAnchorType.BOTTOM,HAnchorType.NONE);
                        doc.applyFormat();
                        doc.refresh();
                        final String l_docToken = doc.getStorageToken();
                        final DocumentInstance l_docToSave = reportEngine.getDocumentFromStorageToken(l_docToken);
                        doc.saveAs("mor31",835,null,null);
                        doc.closeDocument();
                        str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE (SI_KIND = '"+CeKind.WEBI+"' OR SI_KIND='FullClient') " +
                        "AND SI_INSTANCE = 'false' AND SI_NAME='mor31' ORDER BY SI_NAME ASC ";
                        //String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS ORDER BY SI_NAME ASC ";
                        objInfoObjectsWIDs = (IInfoObjects) iStore.query(str);
                        System.out.println(objInfoObjectsWIDs.size());
                        objInfoObjectWID = (IInfoObject) objInfoObjectsWIDs.get(0);
                        DocumentInstance doc1 = reportEngine.openDocument(objInfoObjectWID.getID());
                        String token = doc1.getStorageToken();
                        DocumentInstance doc2 = reportEngine.getDocumentFromStorageToken(token);
                        doc2.saveAs("123123", 835, null, null);
                   //     doc.refresh();
                        //doc.save();
                   enterpriseSession.logoff();
              catch(Exception e)
                   e.printStackTrace();

    duplicate post:
    Sample report using JAVA SDK

  • Unable to open a report in BI Launchpad.

    Hi Guys,
    I am unable to open a report in BI Launchpad, but i am able to access the report in RichClient. It's popping with the following error while i am opening the report in BI Launchpad.
    While there is no problem in opening other reports with the same universe.i tried by checking the connectivity with the database and objects associated while building the report.
    Regards,
    Amjad.

    Hi Anish,
    Thanks for your concern, i tried using this process also, but has'nt worked.
    By the way i got the issue solved,After a long research i got to know that the issue was with the date function.
    As we are migrating from 3.X to 4.X, there is a change in date function, we need to change this as shown below..
    first is the 3.X and the preceding is the 4.x. by making these changes in the formula we are able to open the report in BI Launchpad as well with rich-client also..
    Thank you Guys,
    Regards,
    Amjad.

  • Excel report from java

    I'm generating the Excel report from java .In that i create a row,but i don't know how to increase the size of the cell.if any one have idea.kindly suggest it

    I had a similar porblem and finally i guess somebody can help me with this issue
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......Bottom line is onclick of a link in jsp it should open up a ezcell report....
    Please please please help me....
    Thanks in advance...

  • Unable to Open the Report Cursor

    Hi Team ,
    I have query running in Unit box and will running i am getting
    Unable to Open the Report Cursor : ORA-20000: Unable to log the message in the pipe :
    bIG Query is :-
    Select
      K.CustomerID ||','||
      K.SubscriberID ||','||
      vcsi.EquipmentSerialNumber ||','||
      K.SVODStatus ||','||
      K.PUR_CANC_EXIS_DATE ||','||
      K.PackageFee ||','||
      K.UniqueRef ||','||
      PCUS.Name
      FROM
      Select
       CustomerID ,
      SubscriberID,
      SVODStatus ,
      PUR_CANC_EXIS_DATE ,
      UniqueRef,
      sq,
      PackageFee
      FROM
       (Select
       sa_subscribers.c_id CustomerID ,
       sa_subscribers.seq SubscriberID,
       SV.SVODStatus SVODStatus ,
       SV.PUR_CANC_DATE PUR_CANC_EXIS_DATE ,
       Case
      when SV.SVODStatus='NEW' THEN   UniqueReferenceID.UniqueRef
      Else NUll
              End UniqueRef,
       UniqueReferenceID.sq,
       Case
      when SV.SVODStatus='NEW' THEN
      (SELECT distinct RP1.PARAMETER_VALUE
      FROM Sa_Vw_Request_Parameters RP1,
        Sa_Subscribers SU,
        (SELECT VC.Request_Seq,
        VC.Command_Seq,
        VC.Subscription_Seq,
        VC.issue_date,
        VC.completion_dt
      FROM Sa_Vw_Commands VC
      WHERE VC.Request_Type_Id IN ('PURSUB')) SQ
      WHERE SU.SEQ = SQ.Subscription_Seq
        AND RP1.REQ_SEQ = SQ.Request_Seq
        AND SV.su_seq = SU.SEQ
        AND UniqueReferenceID.sq = RP1.REQ_SEQ
        AND SV.SVODStatus = 'NEW'
        AND RP1.PARAMETER_TYPE in ('INITIAL PAYMENT AMOUNT')
        AND SQ.Issue_Date <= TO_DATE ('&date', 'YYYY-MM-DD')
        AND SQ.Issue_Date > ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1))
        Else NULL
       End PackageFee
                      FROM
      Select SVODStatus,PUR_CANC_DATE,su_seq,seq from
      select Case When  p.EndDate<=TO_DATE ('&date', 'YYYY-MM-DD')   Then 'CANCELLED'
       Else NULL
       End SVODStatus,
      Case When  p.EndDate<=TO_DATE ('&date', 'YYYY-MM-DD') Then p.EndDate
      Else NULL
       End PUR_CANC_DATE,
       p.su_seq su_seq,
       p.seq seq
       FROM
        select su_seq,EndDate,
        StartDate StartDate, seq
        From
        select sa.su_seq su_seq ,nvl(sa.end_date,sysdate) EndDate,
       Max(Start_date) StartDate,sa.seq seq
        from sa_services sa
        where sa.st_id ='SVD'
        and sa.start_date <= TO_DATE ('&date', 'YYYY-MM-DD')
        and sa.start_date > ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1)
        and (sa.end_date IS NULL OR sa.end_date >= ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1))
        group by sa.su_seq,nvl(sa.end_date,sysdate),sa.seq
      ) p
      ) WHERE SVODStatus='CANCELLED'
       UNION
      Select SVODStatus,PUR_CANC_DATE,su_seq,seq from
       ( select  'NEW' SVODStatus,
      p.StartDate PUR_CANC_DATE,
       p.su_seq su_seq,
       p.seq seq
       FROM
        select su_seq,EndDate,
        StartDate StartDate, seq
        From
        select sa.su_seq su_seq ,nvl(sa.end_date,sysdate) EndDate,
       Max(Start_date) StartDate,sa.seq seq
        from sa_services sa
        where sa.st_id ='SVD'
        and sa.start_date <= TO_DATE ('&date', 'YYYY-MM-DD')
        and sa.start_date > ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1)
        and (sa.end_date IS NULL OR sa.end_date >= ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1))
        group by sa.su_seq,nvl(sa.end_date,sysdate),sa.seq
      ) p
      ) SV,
        (Select RPAD(UniqueRef,12,'0') UniqueRef ,su_seq,seq,sq
      From
      ( select substr(cmd_param.Value, instr(cmd_param.Value,'SERVSEQ')+7,10) UniqueRef,
        New_sub.su_seq su_seq ,New_sub.seq seq,Req.Seq sq,
        Rank() over (partition by New_sub.su_seq  order by cmd_param.cmd_seq  ) rnk
       From
       sa_service_commands serv_cmd,
       sa_command_parameters cmd_param,
       SA_Command_TypeS CT,
       SA_RequestS Req,
       sa_Services s,
       select m.SVODStatus SVODStatus,m.su_seq su_seq,m.seq seq
        FROM
       Select 'NEW' SVODStatus,
       p.su_seq su_seq,
       p.seq seq
       FROM
        select su_seq,EndDate,
        StartDate StartDate, seq
        From
        select sa.su_seq su_seq ,nvl(sa.end_date,sysdate) EndDate,
       Max(Start_date) StartDate,sa.seq seq
        from sa_services sa
        where sa.st_id ='SVD'
        and sa.start_date <= TO_DATE ('&date', 'YYYY-MM-DD')
        and sa.start_date > ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1)
       and (sa.end_date IS NULL OR sa.end_date >= ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1))
        group by sa.su_seq,nvl(sa.end_date,sysdate),sa.seq
      ) p
       ) m
       Where m.SVODStatus='NEW'
       ) New_sub
      where Serv_Cmd.Req_Seq = Req.Seq
      and serv_cmd.Cmd_Type_Seq = CT.Seq
      and Serv_Cmd.Seq = Cmd_Param.Cmd_Seq
      and New_sub.seq=s.seq
      and New_sub.su_seq=s.su_seq
      and  CT.ID='ACSRPY'
      and  substr(cmd_param.Value, instr(cmd_param.Value,'SERVSEQ')+7,10)=to_char(s.seq)
      ) UniqueReferenceID,
        sa_subscribers
          WHERE  SV.su_seq =UniqueReferenceID.su_seq(+)
          and  SV.seq= UniqueReferenceID.seq(+)
          and sa_subscribers.seq=SV.su_seq)
        UNION
         SELECT  customer_id,
               Subscriber_ID,
               svod_status,
               Exis_DATE,
                          Unique_Reference,
                          UR,
                                      PARAMETER_VALUE
                    FROM
                    ( SELECT SQ.Subscription_Seq Subscriber_ID,
                                                    'EXISTING' svod_status,
                                                    SU.c_id customer_id,
                                                    SQ.issue_date Exis_DATE,
                                       to_char(RP1.REQ_SEQ) Unique_Reference,
                                       RP1.REQ_SEQ UR,
                                       RP1.PARAMETER_VALUE
                        FROM Sa_Vw_Request_Parameters RP1,
                                       Sa_Subscribers SU,
                                       (SELECT VC.Request_Seq,
                                                                       VC.Command_Seq,
                                                                       VC.Subscription_Seq,
                                                                       VC.issue_date,
                                                                       VC.completion_dt
                                                      FROM Sa_Vw_Commands VC
                                                    WHERE VC.Request_Type_Id IN ('PAYMNT')) SQ
                        WHERE SU.SEQ = SQ.Subscription_Seq
                        AND RP1.REQ_SEQ = SQ.Request_Seq
                        AND RP1.PARAMETER_TYPE in ('PRICE')
                        AND SQ.Issue_Date <= TO_DATE ('&date', 'YYYY-MM-DD')
                        AND SQ.Issue_Date > ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1)
        ) K,
      (select si.ID EquipmentSerialNumber,
            sv.su_Seq su_Seq
        from   sa_Service_ids si,
             sa_Services sv,
             SA_Equipment eq
        where si.Sv_Seq = Sv.Seq
        and si.id= eq.id
        and sv.st_Id = 'STB'
        and si.id_type = 'J'
                    and sv.start_date <= TO_DATE ('&date', 'YYYY-MM-DD')
                    and (sv.end_date IS NULL OR sv.end_date > TO_DATE ('&date', 'YYYY-MM-DD'))
        and si.Date_From <= TO_DATE ('&date', 'YYYY-MM-DD')
                   and (si.Date_to IS NULL OR si.Date_to > TO_DATE ('&date', 'YYYY-MM-DD') )
         ) vcsi,
       (SELECT  K.Id  Customer_Id, PD.Name Name
                    FROM
                      SA_Customers C
                    ,SA_Customers K
                    ,SA_Party_Details PD
                    ,SA_Party_Roles PR
        WHERE
                    PR.PR_Id  = C.Parent_ID
                    AND
                    C.ID=K.Parent_ID
                    AND
                    PR.RT_Id  = 'T'
                    AND
                    PR.Date_From  <= TO_DATE ('&date', 'YYYY-MM-DD')
                    AND
                    NVL (PR.Date_To (+), ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1))  >= ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1)
                    AND
                    PD.PY_Seq  = PR.PY_Seq
                    AND
                    PD.Date_From  <= TO_DATE ('&date', 'YYYY-MM-DD')
                    AND
                    NVL (PD.Date_To  , ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1)) >= ADD_MONTHS (TO_DATE ('&date', 'YYYY-MM-DD'), -1)
       ) PCUS
    WHERE K.SubscriberID= vcsi.su_seq(+)
    AND  K.CustomerID=PCUS.customer_id(+)
    ORDER BY K.PUR_CANC_EXIS_DATE;

    Hi Saubhik
    I got the log for the report running please let me know if want any feather information.
    --- Reports Schedular    Version 8.6.80 (Democratic Republic of the Congo) ---
    2015-04-24 00:07:02 : Platform ID  : ICAP-DBSRV-01
    2015-04-24 00:07:02 : Process Name : sa_report_scheduler
    2015-04-24 00:07:02 : Process ID   : 26055
    2015-04-24 00:07:02 : Log in
    Parameter Table sa_report_scheduler:
    ALARM_PIPE_NAME          : db_alarm_pipe
    CONFIG_REFRESH_PERIOD    : 60
    DAEMON_PROCESS           : NO
    ERROR_BACKOFF_PERIOD     : -1
    LOG_FILE_DIR             : /home/sa_exec/log/
    LOG_FILE_STUB            : sa_report_scheduler
    MAX_REPORT_TIME          : 180
    VERBOSE_LOG_FILE         : NO
    WORK_DIR                 : /home/sa_exec/work/
    2015-04-24 00:07:03 : Received parameter calljobname - sa_report_scheduler
    2015-04-24 00:07:03 : Using parameter calling_jobname - sa_report_scheduler
    2015-04-24 00:07:03 : Start reports for queue G
    2015-04-24 00:07:03 : No more reports to submit.  0 new reports submitted
    2015-04-24 00:07:03 : Overdue report: PURP-0002 submitted at 2014-10-29 00:00:04
    2015-04-24 00:07:03 : Report PURP-0002 possibly failed
    2015-04-24 00:07:03 : Overdue report: PURP-006_Monthly submitted at 2015-02-01 00:00:09
    2015-04-24 00:07:03 : Report PURP-006_Monthly possibly failed
    2015-04-24 00:07:03 : Overdue report: PURP-006_W submitted at 2015-01-24 00:00:06
    2015-04-24 00:07:03 : Report PURP-006_W possibly failed
    2015-04-24 00:07:03 : Overdue report: PURP-0021 submitted at 2014-10-31 00:00:08
    2015-04-24 00:07:03 : Report PURP-0021 possibly failed
    2015-04-24 00:07:08 : Error Sending Alarm to Pipe
    2015-04-24 00:07:08 : send_pipe_alarm :  ORACLE error detected: -20000
    2015-04-24 00:07:08 : ORA-20000: Unable to log the message in the pipe :
    ORA-20000: Unable

  • BIP not able to open the reports from the catalog

    Hi everyone,
    I am trying to open the existing reports from the catalog. When i try to expand the folders am getting all the subfolders and evrything and when i am trying to open a particular report am unable to open it, am not getting the data. For all the reports in the catalog am getting the same pbm. What might b the pbm for that, Could anyone pls ans my question bcoz i am having requirement on BIP which am new to it.,,,,
    Regards
    Lalitha

    Hi,
    I am trying to open the reports from the shared folders. But am unable to expand the content of that folders and reports. I am using the database as TERADATA. Do we need any security changes for that to acess all the content from the shared folders from BIP side. I am working with the administrator role.,
    Regards

  • Since last update, unable to open PDF files from either banking site. The other (IE) works fine but I hate IE. I deleted newer versions and went back to older releases. No help, same thing. Checked settings in options. That is ok. What's up?

    Unable to open PDF files from my banking statements.

    I think almost every dev is on arch-general, so that is the place to contact the group in general.  Specific points can probably be emailed to the dev involved, if one is identifiable and if the bug tracker is not a better place (bug reports to my email get ignored).
    I think the whole problem here is that there is really no dev in charge of that package.  So your emails were probably seen then skipped over by all devs thinking not my problem...  (I know that is true for me).   Then Andrea noticed an "orphan" package that needed updated and went ahead with it without connecting it to your previous emails, which is unfortunate.
    Now our maintainer backend is fixed, hopefully we can get all the orphan packages adopted out, or at least know if we need to bring on new people to maintain them.  That way, there should always be someone who information about specific packages should be sent to.

  • Unable to open KVM's from UCS Console

    Unable to open KVM's from UCS KVM Console, Windows 2008 R2 with Java installed try in IE and Firefox, I am able see all KVM's but when I click on KVM it will ask for save or open, saving to disk and opening from disk, directly open not working. Any configuration for IE and Java

    Try to Attach the Screenshot here....

  • My first program to create a crystal report from java... Help needed...

    Hi... I am writing a java program that fetches a table from database and creates a Crystal Report from that table(ResultSet object)... Optionally exporting the report as a pdf also...  This will be a console application since it is my first program using crystal reports.... Any one can help me with this...?

    Hi Karthik,
    you could have a look over these developer guides below for understanding of Java sdk :-
    [http://www.sdn.sap.com/irj/boc/sdklibrary|http://www.sdn.sap.com/irj/boc/sdklibrary]
    you could also find  below sample codes for creating reports using Java sdk (RAS sdk) :-
    [http://www.sdn.sap.com/irj/boc/samples|http://www.sdn.sap.com/irj/boc/samples]
    let me know if you need any help,
    Regards,
    Rameez.

  • Unable to open .chm file from a link in Weblogic 7.0

    Unable to open .chm file from a link in weblogic server. But the same
    jsp code works in Websphere
    Sample Code :
    <!-- < a href="JavaScript:window.navigate('help/manual.CHM')">
    Linked Text</a> -->
    The above link, works well in websphere. help is a folder that
    resides in the server. But when i tried to execute the same in
    Weblogic, some junk characters appeared . so i tried to direct the
    link to Display.jsp and passed the path of the chm file as the
    parameter. I cleared teh out buffer using out.clearBuffer() . i set
    the content type to application/x-msdownload and also set the header
    to content disposition.
    Nothing worked .
    I also tried another way.. That is the following
    I even tried including the mime type
    <mime-mapping>
    <extension>chm</extension>
    <mime-type>application/x-msdownload</mime-type>
    </mime-mapping>
    in the web.xml file. and still it doesnt work
    Nothing Worked . What should i do ? I need immediate help to sort out
    this issue. Can anybody help me
    - Angel

    This could be a Launch Services issue. The following article describes how to manually reset Launch Services — the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, take a look at this other article for general troubleshooting and cache-cleaning procedures. Actually, you should also verify/repair the startup disk (not just permissions), as described there:
    Resolving Disk, Permission, and Cache Corruption
    The most appropriate utility for this particular problem probably is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Go to Maintenance > Reset and check LaunchServices database.
    4. Un-check any other pre-checked options.
    5. Click the Execute button.
    6. Restart the computer.
    BTW, if you’re running Mac OS X 10.4 (Tiger), as your profile indicates, it would have been more appropriate to discuss this in the Mail & Address Book - Tiger forum. If the discussion applies to both Mail 1.x and Mail 2.x, it doesn’t really matter, but it’s difficult to know that in advance.

  • TS3276 i am unable to open web pages from email links on my ipad

    I am unable to open web pages from email links on my ipad

    A few more details might help, if nobody else recognizes this.   
    What happens when you try to open the links?
    Can you post an example of a link that doesn't work?
    Is there any particular source for the mail with the (bad) links, or is mail from all sources failing?
    If you happen to know it, what's the format of the mail message?  (Maybe the message is an image?)
    Do the embedded links work as expected from an OS X system running Mail.app, or some system and some other other mail client?
    To view the link in iOS: if you press on and hold your finger on an embedded link in most contexts, iOS will show a pop-up with the link contents, and will offer to copy it.  You can use that to acquire and post the link.  If pressing and holding on the link doesn't offer the pop-up, the format of the link itself may not be valid, or it might not really be a link.

Maybe you are looking for

  • What are the differences between Oracle AS and Database Server?

    Hi I have quesstions: 1- what are the main differnces between Oracle Application Server 10g and Oracle Database Server 10g ? 2- does the oracle J developer 10g come with Oracle application server or comes standalone? 3- is there any integration betwe

  • Open Url iView in same window but full screen

    Hi , I have a requirement where i need to open the url iview in the same window but in fullscreen mode. Also for eg if the url is www.google.com ,then the iview should look similar in terms of size as opened in the normal IE browser.Also the url on t

  • Need information on licensing in OBIEE 10g

    Experts , Can you guide me on how licensing works in OBIEE 10g ? Scenario : If there is one license for a PROD box for 1 Project ,then can other team use that PROD box. Is there any document on Licensing . Appreciate your help . Thanks, Anand

  • PRE 3 editing a picture with Photoshop ele 5

    Hi All Im having trouble figuring this out. I have premiere elements 3 and Photoshop elements 5. Im making a video for you tube and now everyone has cool boarders or frames for there vids. Example 51 secs in this video http://www.youtube.com/watch?v=

  • Page size different between design and preview modes

    When I accept the default sizes when creating a new site, the page size appears as it should in design, but then when I preview it, it appears much larger, almost a perfect square.  So, what I think I'm creating in design is not what I see when I pre