Secondary Datasource -Aud/Report

Hi,
We have secondary Data source configured for audit and reporting, now I have couple of questions:
1. Is AUD_JMS part of Primary DB or Secondary DB - i.e does OIM starts picking up Audit messages from Secondary DB or primary DB for processing before it processes the same and puts in as a snapshot in secondary DB tables?
2. What are the scenario that OIM considers Primary DB to process audit and reporting functionality even if Secondary DB is configured.
Thanks

The audit database simply copies the audit tables to another database. Once configured, all of the Historical reports will reference this database instead of the primary.
-Kevin

Similar Messages

  • Issue while opening SSRS Report with Oracle as Datasource in Report Manager

    I deployed SSRS report in Report Manager but I am unable to generate that report. Am getting following error.
    Is it problem with datasource in report manager? I am not able to change the Data source type to Oracle. It is showing Microsoft SQL Server. How can I change it, no other options are coming except Microsoft SQL Server. Please help.
    An
    error has occurred during report processing. (rsProcessingAborted)
    Cannot
    create a connection to data source 'TEST_DS'. (rsErrorOpeningConnection)
    For
    more information about this error navigate to the report server on the local
    server machine, or enable remote errors

     When I deploy them in localhost, and try to run report in report manager, it is not showing any data source type in drop down list except MS SQL Server. I do not know why it is showing in BIDS and not in report manager!!!
    Hello,
    Based on my test, I can specify the data source type as Oracle after deploy the report to Report Manager and open the report Data source propertity page. If the report use the shared data source, you should check the specify data source at the Data Source
    folder. Please refer to the following screen shot:
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Updating a secondary datasource to a Sharepoint list via infopath form rules

    Using SharePoint 2010 and InfoPath 2010 I created a form that prior to submission it gets an integer value from a separate SharePoint list via a secondary datasource.  Just before the rule that submits the form to a document folder via the
    main datasource I increment the integer value and try to write it back to the secondary datasource I got it from.  I know that I have the correct value.  That is, it is reading from the data source the correct integer information and it is incrementing
    it in the form but when it writes the value back to the same column in the same secondary datasource it doesn't give any indication that it didn't work.  But when I look at the list of the secondary data source I see that the integer value is
    not updated.

    Hi Jonas,
    You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized  web service.
    For more information, you can have a look at the thread:
    http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
    http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
    https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
    https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error in RSS file when setting datasource in report

    Hi,
    I trying to prepare script to deploy my reports to reporting service 2008. Script is takes from
    this question (Deploying Reports rss). Unfortunately code provided for data sources settings is not working in my case and I do not know why.
    Sequence is following: removed reports path, re-craete it, create datasource and for each report following actions performed: deploy and set datasource.
    After first report tried to set data source in itself scripts failed with error:
    D:\_ST\FLASH>rs -i deploy.rss -s http://localhost/ReportServer_i2008
    Parent folder Pipeline Reports created successfully.
    Deploying report 'CRM Practice Report'
    Report: CRM Practice Report published successfully.
    Setting datasource to report 'CRM Practice Report'.
    Error setting datasource to report 'CRM Practice Report'
    ERROR while Publishing report: CRM Practice Report
    Unhandled exception:
    The data source 'Warehouse Datasource' cannot be found.
    Here is the script I using to deploy datasource and reports:
    Dim definition As [Byte]() = Nothing
    Dim warnings As Warning() = Nothing
    Dim destinationFolder As String = "Pipeline Reports"
    Dim reportsTargetPath As String = "/" + destinationFolder
    Dim reportsSourcePath As String = "D:\Depot\Internal\BDW\BDW_Phase4\Src\BDW_R4.17.2\Reports\BDW_Reports"
    Dim datasourceName As String = "Warehouse Datasource"
    Public Sub Main()
    Try
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials
    If rs.GetItemType(reportsTargetPath) = ItemTypeEnum.Folder Then
    rs.DeleteItem(reportsTargetPath)
    End If
    rs.CreateFolder(destinationFolder, "/", Nothing)
    Console.WriteLine("Parent folder {0} created successfully.", destinationFolder)
    CreateReportDataSource(datasourceName, "SQL", "Data Source=apopov\i2008;Initial Catalog=bdw")
    PublishReport("CRM Practice Report")
    PublishReport("CRM Report")
    PublishReport("Pipeline Practice Report")
    PublishReport("Pipeline Report")
    Console.WriteLine("Tasks completed successfully.")
    Catch ex As Exception
    Throw ex
    End Try
    End Sub
    Public Sub CreateReportDataSource(name As String, extension As String, connectionString As String)
    Dim definition As New DataSourceDefinition()
    definition.CredentialRetrieval = CredentialRetrievalEnum.Integrated
    definition.ConnectString = connectionString
    definition.Enabled = True
    definition.Extension = extension
    Try
    rs.CreateDataSource(name, reportsTargetPath, False, definition, Nothing)
    Catch e As Exception
    Console.WriteLine("ERROR creating data source: " + name)
    Throw e
    End Try
    End Sub
    Public Sub PublishReport(ByVal reportName As String)
    Try
    Console.WriteLine("Deploying report '{0}'", reportName)
    Dim stream As FileStream = File.OpenRead(reportsSourcePath + "\" + reportName + ".rdl")
    definition = New [Byte](stream.Length-1) {}
    stream.Read(definition, 0, CInt(stream.Length))
    stream.Close()
    rs.CreateReport(reportName, reportsTargetPath, False, definition, Nothing)
    Console.WriteLine("Report: {0} published successfully.", reportName)
    SetDatasource(reportName)
    Catch e As Exception
    Console.WriteLine("ERROR while Publishing report: " + reportName)
    Throw e
    End Try
    End Sub
    Public Sub SetDatasource(ByVal reportName As String)
    Try
    'Not working, I do not know why
    Console.WriteLine("Setting datasource to report '{0}'.", reportName)
    Dim reference As New DataSourceReference()
    reference.Reference = reportsTargetPath + "/" + datasourceName
    Dim source As New DataSource()
    source.Item = reference
    source.Name = datasourceName
    Dim sources As DataSource() = New DataSource(0) {}
    sources(0) = source
    rs.SetItemDataSources(reportsTargetPath + "/" + reportName, sources)
    Catch e As Exception
    Console.WriteLine("Error setting datasource to report '{0}'", reportName)
    Throw e
    End Try
    End Sub
    I have not ideans why this error may occures.

    Hi Alex,
    I have test the script in my test environment, it works.
    Based on the error message, the data source 'Warehouse Datasource' cannot be found. Please check, did you have add Warehouse Datasource.rds file in the same folder? In your case, it is located in: D:\Depot\Internal\BDW\BDW_Phase4\Src\BDW_R4.17.2\Reports\BDW_Reports
    If the issue is persist, please feel free to ask.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Secondary cost element report

    Hi experts,
    i just looking for secondary cost element reports ?
    regards,
    Sanju M S

    HI,
    Go to T.code : S_SL0_21000007 and,
    Go to bellow link
    http://wiki.sdn.sap.com/wiki/display/PLM/SettlementandCostElementReports
    http://help.sap.com/saphelp_46c/helpdata/en/a9/ab76ce414111d182b10000e829fbfe/content.htm
    Thanks,
    Raviteja

  • Medicare Secondary Payer Mandatory Reporting

    Does SAP offer a solution for the new mandatory Medicare reporting (MMSEA Section 111 Medicare Secondary Payer Mandatory Reporting)?

    No replies

  • Error using Excel as a DataSource for Report Builder 3.0 - ODBC connection

    Hi,
    I'm getting this error message below while trying to use excel as a datasource within Report Builder 3.0.  I can see the columns and rows but unable to display/run the report.  Using Excel 32 bit and have the driver and user dsn created under c:/windows/syswow64/odbcad32.
    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Hi Cherise,
    Vishal's link looks good.
    I have commercial experience in migrating Crystal Reports to SSRS. When performing any type of migration it is always wise for the business requirements to be revisited. It is likely that the business requirements may have changed since the Crystal reports
    were initially developed, etc.
    I've done some research for you and the following link looks quiet impressive and offers a cheap trial, in terms of a direct migration. Please tell me how you get on; - 
    http://www.sqlcircuit.com/2013/08/ssrs-how-to-create-report-using-excel.html
    I emphasis again I have commercial experience of lots of migration projects and it would be very unwise to not revisit the business requirements as part of the migration process.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

  • Filter the secondary datasource based on lookup column

    Hello All,
    I am customizing a List form. I have a secondary data connection which is
    a datasource for my drop down list. I have to filter the datasource based on Lookup column value.
    I know how to filter on the datasource by going to entries and filtering but it does not work with Lookup column.
    Can anyone let me know step by step procedure.
    Regards,
    smith
    smith

    Hi,
    According to your post, my understanding is that you wanted to filter the secondary datasource based on lookup column.
    I recommend to create a cascading drop-down list box in InfoPath.
    You can follow the steps in the article to achieve what you want:
    Create Cascading Dropdown in Browser enabled InfoPath form using InfoPath 2010
    More information:
    Cascading Drop Down List In SharePoint 2010
    Cascading Drop-Down List in SharePoint 2010 using InfoPath 2010
    Dan's SharePoint Blog: InfoPath Tutorial Cascading Dropdown (Does not have the 20 item limit)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How do I initialize a secondary axis with report generation vi's

    I have two cloumns of data. one is around the range of 10 and the
    other one is in 100 range. I want to display these two columns in the
    same graph. Can i use the secondary axis for my second column. Is it
    possible using repport generation VI's. The other question is can I
    specify which coloumn I want to use on x-axis and y-axis.

    Hello Mudda,
    It looks like you are trying to view two groups of data in the same
    graph, and then send that graph to a report.
    If your two columns of data are in separate arrays, you can use the
    �Build Array� function to combine those arrays into a two-dimensional
    array (see �Graph Waveform Arrays.vi� example, which can be found
    under Help >> Find Examples).
    A two-dimensional array can be wired directly into a graph. The two
    arrays will show up on the graph as different plots (in different
    colors), both on the y-axis. The data in the 10 range will show up
    lower than the data in the 100 range.
    If you want to plot your two data columns against each other on
    different axis, wire a two-dimensional array into an �XY Graph� (see
    �XY Graph.vi� example, which can be
    found under Help >> Find
    Examples).
    To view a graph in a report using a report generation VI, use the
    �append front panel image to report� VI. The LabVIEW Report
    Generation Toolkit for Microsoft Office will provide more report
    functionality for adding graphs to Word and Excel, if you do not
    already have it.
    If these suggestions are not exactly what you are looking for, please
    post more information so I can better assist you; or, ideally, attach
    this portion of your application to examine. Have a great day!
    Robert M
    Applications Engineer
    National Instruments

  • Error in setting datasource - Crystal reports

    Good day,
    I am currently experiencing a problem with setting my datasource to a report in Crystal Reports.
    Strangely, the report works in VS 2010, but when running as an executable, the program fails when assigning the datasource.
    My code:
        Public Sub PurchasesByVendor()
            Try
                Dim sql As String = "SELECT tblVendors.VendorID, tblVendors.VendorName, tblPO.POID, tblPO.EnterDate, tblCustomers.Company, tblOrders.RefNum, Sum(tblPOItems.ExtPrice) AS SumOfExtPrice " & _
                                    "FROM (((tblPO INNER JOIN tblPOItems ON tblPO.POID = tblPOItems.POID) INNER JOIN tblVendors ON tblPO.VendorID = tblVendors.VendorID) LEFT JOIN tblOrders ON tblPO.OrderID = tblOrders.OrderID) LEFT JOIN tblCustomers ON tblOrders.CustomerID = tblCustomers.CustomerID " & _
                                    "WHERE (((tblPO.EnterDate) Between #" & dpStart.Text & "# And #" & dpFinish.Text & "#)) " & _
                                    "GROUP BY tblVendors.VendorID, tblVendors.VendorName, tblPO.POID, tblPO.EnterDate, tblCustomers.Company, tblOrders.RefNum; "
                Dim con As New OleDb.OleDbConnection
                Dim da As OleDb.OleDbDataAdapter
                Dim ds As New DataSet
                con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Program Files\Mail-Shop\MSApp2k.mdb"
                con.Open()
                da = New OleDb.OleDbDataAdapter(sql, con)
                da.Fill(ds, "PO")
                Dim povList As List(Of POV) = New List(Of POV)
                If ds.Tables("PO").Rows.Count > 0 Then
                    For i = 0 To ds.Tables("PO").Rows.Count - 1
                        Dim pov As POV = New POV()
                        pov.VendorName = ds.Tables("PO").Rows(i).Item(1)
                        pov.PONumber = ds.Tables("PO").Rows(i).Item(2)
                        pov.PODate = ds.Tables("PO").Rows(i).Item(3)
                        If IsDBNull(ds.Tables("PO").Rows(i).Item(4)) = False Then
                            pov.Company = ds.Tables("PO").Rows(i).Item(4)
                        End If
                        If IsDBNull(ds.Tables("PO").Rows(i).Item(5)) = False Then
                            pov.Order = ds.Tables("PO").Rows(i).Item(5)
                        End If
                        pov.Total = ds.Tables("PO").Rows(i).Item(6)
                        povList.Add(pov)
                    Next
                End If
                'MsgBox(povList.Count)
                Dim datas As POVD = New POVD()
                Dim dt As New DataTable("povd")
                'Dim dt As DataTable = datas.Tables.Add("hc")
                dt.Columns.Add("Vendor", GetType(String))
                dt.Columns.Add("PONumber", GetType(Integer))
                dt.Columns.Add("PODate", GetType(Date))
                dt.Columns.Add("Company", GetType(String))
                dt.Columns.Add("OrderNbr", GetType(Integer))
                dt.Columns.Add("Total", GetType(Double))
                dt.Columns.Add("Charged", GetType(Double))
                datas.Tables.Add(dt)
                For Each dr In povList
                    Dim vendor = dr.VendorName
                    Dim ponbr = dr.PONumber
                    Dim poDate As Date = DateValue(DateTime.Parse(dr.PODate))
                    Dim company = dr.Company
                    Dim order = dr.Order
                    Dim total = dr.Total
                    Dim charged = dr.getCharged(dr.PONumber)
                    Dim nw As DataRow = datas.Tables(0).NewRow()
                    nw(0) = vendor
                    nw(1) = ponbr
                    nw(2) = poDate
                    nw(3) = company
                    nw(4) = order
                    nw(5) = total
                    nw(6) = charged
                    datas.Tables(0).Rows.Add(nw)
                Next
                '' bind the datasource+
                Dim objRpt As New PurchaseByVendor
                objRpt.SetDataSource(datas.Tables(0))
                Dim wfp As New WindowFormReport()
                wfp.CrystalReportsViewer1.ViewerCore.ReportSource = objRpt
                Me.NavigationService.Navigate(wfp)
                con.Close()
                con.Dispose()
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub
    Thanks!

    What version fo CR you are using, what service pack?
    What CR components are installed on the client machine for deployment?
    When using datasets to pass the data to Crystal reports, the issue occurs due to datasets in 50% of cases.
    What exact error do you get?
    Could you try below steps which would tell you if its an issue with Crystal or with getting data into datasets.
    - Once the data is populated in the dataset and before doing a "objRpt.SetDataSource(datas.Tables(0))", write the data to a datagrid.
    - While deploying the EXE, you could observe the datagrid to check fi the datasets do return some data.
    This may not be a Crystal issue.
    if you get the data in the datagrid and not in the report then do a 'ds.writeXml("XMLfilepath.xml")'. this will generate the XML file with the data from the dataset. the open the report indeaigner and try to assign the XMl to the report and see if the report works in thed esigner.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Secondary cost element report to show the balance of cost elemnets in OKG4

    Hi
    I have assinged two CE ex: 934 and 935 in OKG4 and included in Cost component structruee (is it required or not?)
    created Production order and did GI and GR andf WIP.
    WIP posted against 934 and 935 that i can see from cost analysis.
    when i try to execute the reort S_SL0_21000007 with CE 934 and 935 icouldnot able to see the details.
    Can you please help me from where i can see the postings for CE's (Secondary)
    in cost analysis against only these two line items  getting message Without origin
    Please help.
    Thanks,
    Sudha

    Pl try running GRR3 > Expand library 6O1 > Report 6OAB-001 Orders: Accruals. It will show you the postings in these cost elements. I am not aware of a transaction that calls this report directly.
    Regards
    Subodh

  • Changing datasource of reports in a loop only works for first report.

    Hi,
    I have code that loops through a list of reports to change the datasource and save the change in the report. The idea is that this can be done at build time so time taken at runtime is only for opening the report and running it.
    The problem is that the first iteration of the loop works, and any further ones don't. Apart from closing the client document is there anything else that should be explicitly closed? I don't retrieve any ReportSource from the Client Document so I shouldn't need to dispose of that...I don't think. In particular is there something that should be done to the databaseController retrieved from the clientDoc after each loop?
    The code goes like the below:
    for(File report : reports){
         System.out.println("Preparing report: " + report.getAbsolutePath());
         ReportClientDocument clientDoc = CRJavaHelper.getReportClientDocument(
                   report.getAbsolutePath());
         CRJavaHelper.replaceDBConnection(clientDoc, props);
         clientDoc.close();
         System.out.println("Report " + report.getAbsolutePath() + " prepared.");
    getReportClientDocument does this:
    ReportClientDocument clientDoc = new ReportClientDocument();
    clientDoc.setReportAppServer("inproc:jrc");
    clientDoc.open(fullPath,
              OpenReportOptions.openAsReadOnly.value());
    return clientDoc;
    replaceDBConnection does the following:
    DatabaseController dc = clientDoc.getDatabaseController();
    logonDataSource(dc, username, password);
    prepareReport(dc, schema);
    ConnectionInfos cis = dc.getConnectionInfos(null);
    for (IConnectionInfo oldci : cis) {
         IConnectionInfo newci = new ConnectionInfo();
         newci.setKind(ConnectionInfoKind.SQL);
         newci.setAttributes(propBag);
         newci.setUserName(username);
         newci.setPassword(password);
         dc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                   + DBOptions._doNotVerifyDB);
    SubreportController src = clientDoc.getSubreportController();
    IStrings strs = src.getSubreportNames();
    Iterator<?> it = strs.iterator();
    while (it.hasNext()) {
            String name = (String) it.next();
         ISubreportClientDocument subreport = src.getSubreport(name);
         DatabaseController sdc = subreport.getDatabaseController();
         cis = sdc.getConnectionInfos(null);
         for (IConnectionInfo oldci : cis) {
              IConnectionInfo newci = new ConnectionInfo();
              newci.setAttributes(new PropertyBag(propBag));
              newci.setUserName(username);
              newci.setPassword(password);
              sdc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                        + DBOptions._doNotVerifyDB);
    clientDoc.save();

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • Profit Center Accounting - Need an appropiate DataSource for reporting

    We have a report which gives us debit-credit info based on Business Area for given G/L accounts. Modeling is as follow:
    0FI_GL_1 -> 0FIGL_C01 then report is based on virtual cube 0FIGL_VC1(logic is based on 0FIGL_C01 only)
    now we need a report which will be giving us Profit center wise debit/credit for given account numbers...
    so we moved to Profit center accounting---> used the cube 0PCA_C01,,modeling is as follow:
    0EC_PCA_1 -> 0PCA_C01
    we extracted the datasources 0FI_GL_1 and 0EC_PCA_1 in R/3 whose debit/credit info is not matching for the given G/L accounts.
    Please let me know which datasource will be suitable to get profit center wise o/p instead of using 0EC_PCA_1
    thanks
    Edited by: Alok Kashyap on Mar 26, 2009 7:56 AM

    Yes you are right...
    but as of now table GLT0 is throwing 0 record whereas relevant data is available in table FAGLFLEXT, same has been discussed with FI consultant ,,,anyways its okay...
    my second worry is on Fiscal variant...
    we need historical data which is based on V3 (apr to Mar)---->present in old R/3
    however in new R/3 we have implemented K4 (Jan to dec)---> present in New R/3
    >
    Data modeling is done for both to new BI ,means:
    BI7 is talking to old R/3 and New R/3
    so we have historical data till mar09(coming from old R/3 (V3)) and fresh data coming from New R/3 (K4) since apr09
    >
    now the problem is we have data for all periods but due to difference in fiscal yr variants we will be having data in BI as follow:
    Mar 09 - 12/2009 (V3) - data available
    Apr 09 -  04/2009 (K4) - data avaiable
    here we are seeing data avaiable for both mar and apr but due to difference in fiscal yr variants we are not getttin data since 01/2009 till 03/2009 nevertheless its present ...reports are based on fiscal period/year so if user wants to view report for the period 01/2009 - 03/2009 then it cant be viwed....
    lets know yr opnion on this

  • Problem pushing XML as DataSource to report

    Post Author: biiz
    CA Forum: JAVA
    Hello!
    I have a report which uses xml and xsd as datasource. I have now the requirement to dynamically set the xml-data into the report.
    I do this via reportClientDocument.getDatabaseController().setDataSource(xml_ds, "ObjectSpace", "") but I receive following exception although data in xml_ds is not null:
    Error occured: com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: The data source object cannot be null.---- Error code:-2147024809 Error code name:failed
    The ReportClientDocument is retrieved from Crystal Report Server XI R2 .
    In crystalras log I have found following error-msg: ErrorLog 2008  5 29 10:56:40.784 1992 828 (\servers\ras\dtsagent\cdtsagent.cpp:3177): CDTSagent::doOneRequest reqId=272: CSResultException thrown.   ErrorSrc:"Analysis Server" FileName:"\servers\ras\dtsagent\reporthandler.cpp" LineNum:16948 ErrorCode:-2147024809 ErrorMsg:"The data source object cannot be null." DetailedErrorMsg:""
    Can you please help me?
    Regards,
    Gerald Spitzer
    Here is my code:
      CrystalEnterprise objCE = new CrystalEnterprise();  ISessionMgr objCESessionMgr = objCE.getSessionMgr();  objCESession = objCESessionMgr.logon("Administrator", "", this.getServletContext().getInitParameter("RAS"), "secEnterprise");  objTokenMgr = objCESession.getLogonTokenMgr();    cstrLogonToken = objTokenMgr.createLogonToken("", 60, 500);
       IInfoStore objInfoStore = (IInfoStore) objCESession.getService("InfoStore");
      java.lang.String cstrStatement;
      cstrStatement = "";  cstrStatement = cstrStatement + "SELECT SI_ID, SI_NAME";  cstrStatement = cstrStatement + "  FROM CI_INFOOBJECTS";  cstrStatement = cstrStatement + " WHERE SI_NAME = '" + reportName + "'";  cstrStatement = cstrStatement + "   AND SI_INSTANCE = 0";
      IInfoObjects objInfoObjects = objInfoStore.query(cstrStatement);
      if (objInfoObjects.getResultSize() > 0) {
       IInfoObject objInfoObject = (IInfoObject) objInfoObjects.get(0);
       IReportAppFactory objRASFactory = (IReportAppFactory) objCESession.getService("", "RASReportFactory");   ReportClientDocument objReport = (ReportClientDocument) objRASFactory.openDocument(objInfoObject,0,java.util.Locale.ENGLISH);
       FileInputStream fin = new FileInputStream("C:
    fragebogen_dokument_ohneADesc.xsd");   ByteArrayOutputStream baos = new ByteArrayOutputStream();   byte&#91;&#93; bytes = new byte&#91;1024&#93;;   for(;;) {    int count = fin.read(bytes);    if(count < 0)     break;    baos.write(bytes, 0, count);   }   final byte&#91;&#93; xsdBytes = baos.toByteArray();   fin.close();    fin = new FileInputStream("C:
    fragebogen_dokument_ohneADesc.xml");   baos = new ByteArrayOutputStream();   bytes = new byte&#91;1024&#93;;   for(;;) {    int count = fin.read(bytes);    if(count < 0)     break;    baos.write(bytes, 0, count);   }   final byte&#91;&#93; xmlBytes = baos.toByteArray();   fin.close();
       IXMLDataSet xml_ds = new IXMLDataSet() {    private IByteArray xmlData = null;    public void setXMLData(IByteArray xmlData) {     this.xmlData = xmlData;    }    public IByteArray getXMLData() {     return this.xmlData;    }    private IByteArray xmlSchema = null;    public void setXMLSchema(IByteArray xmlSchema){     this.xmlSchema = xmlSchema;    }    public IByteArray getXMLSchema() {     return this.xmlSchema;    }    };
       xml_ds.setXMLData(new IByteArray() {    public void fromString(String arrayValue){}    public String toString() { return ""; }    public byte&#91;&#93; getBytes() { return xmlBytes; }   });
       xml_ds.setXMLSchema(new IByteArray() {    public void fromString(String arrayValue){}    public String toString() { return ""; }    public byte&#91;&#93; getBytes() { return xsdBytes; }   });
       System.out.println("####bytes.length" + xml_ds.getXMLData().getBytes().length);
       objReport.getDatabaseController().setDataSource(xml_ds, "ObjectSpace", "");

    Post Author: Ted Ueda
    CA Forum: JAVA
    Below is sample RAS SDK XML datasource injection code.Sincerely,Ted Ueda<%@ page import = "com.crystaldecisions.sdk.exception.SDKException,                   com.crystaldecisions.sdk.framework.,                   com.crystaldecisions.sdk.occa.infostore.,                   com.crystaldecisions.sdk.occa.managedreports.,                   com.crystaldecisions.sdk.occa.report.application.,                   com.crystaldecisions.sdk.occa.report.data.,                   com.crystaldecisions.sdk.occa.report.definition.,                   com.crystaldecisions.sdk.occa.report.document.,                   com.crystaldecisions.sdk.occa.report.lib.,                   com.crystaldecisions.sdk.occa.report.exportoptions.,                   com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,                   com.crystaldecisions.sdk.plugin.desktop.common.,                   java.io.,                   java.util."%><%/* * Environment variables - modify to suit your deployment  */String username = "";String password = "";String cmsname  = "<cms name here>";String authType = "secEnterprise";String reportName = "Test XML";   // Report name as published on EnterpriseString xmlFilePath = "C:
    XMLData
    new_test_data.xml";  // Path to XML datasource String xsdFilePath = "C:
    XMLData
    new_test_data.xsd";  // Path to XSD for XML datasource IEnterpriseSession boSession = null;try {    IInfoStore infoStore;    IInfoObjects infoObjs;    IInfoObject report;    IReportAppFactory raFactory;    ReportClientDocument doc;    byte&#91;&#93; xmlBytes;    byte&#91;&#93; xsdBytes;    IXMLDataSet xml_ds;    ByteArrayInputStream exportByteArrayStream;    byte&#91;&#93; exportByteArray;    boSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authType);    infoStore = (IInfoStore)boSession.getService("", "InfoStore");    infoObjs = (IInfoObjects) infoStore.query("SELECT TOP 1 * FROM CI_INFOOBJECTS "                                               + "WHERE SI_KIND = 'CrystalReport' "                                              + " AND SI_INSTANCE=0 "                                              + " AND SI_NAME='" + reportName + "'" );    report = (IInfoObject) infoObjs.get(0);    raFactory  = (IReportAppFactory) boSession.getService("", "RASReportService");    doc = raFactory.openDocument(report, 0, Locale.ENGLISH);    xmlBytes = bytesFromFile(xmlFilePath);    xsdBytes = bytesFromFile(xsdFilePath);    xml_ds = new XMLDataSet(new ByteArray(xmlBytes), new ByteArray(xsdBytes));    doc.getDatabaseController().setDataSource(xml_ds, "schema1/People", "schema1/People");    exportByteArrayStream = (ByteArrayInputStream)doc.getPrintOutputController().export(ReportExportFormat.PDF);    exportByteArray = new byte&#91;exportByteArrayStream.available()&#93;;    response.reset();    response.setHeader("Content-disposition", "inline;filename=crreport.pdf");    response.setContentType("application/pdf");    int bytesRead = 0;    while((bytesRead = exportByteArrayStream.read(exportByteArray)) != -1) {        response.getOutputStream().write(exportByteArray, 0, bytesRead);        }            response.getOutputStream().flush();    response.getOutputStream().close();} finally {  if(boSession != null)       boSession.logoff();}%><%!byte&#91;&#93; bytesFromFile(String path) throws IOException {    FileInputStream fin;    ByteArrayOutputStream byteOStream = new ByteArrayOutputStream();    byte&#91;&#93; bytes;    fin = new FileInputStream(path);    bytes = new byte&#91;1024&#93;;    for(;;) {        int count = fin.read(bytes);        if(count < 0)            break;        byteOStream.write(bytes, 0, count);    }    bytes = byteOStream.toByteArray();    fin.close();    return bytes;}%>

  • Datasources and Reports

    Hi friends,
    i need the report on the following datasources (2lis_11_vahdr,  2lis_11_vaitm, 2lis_13_vditm)   By using these 3 datasources i wants to know the possible reports. plz help me in this regard.
    regards,
    aravind

    Hi Arvind,
          You find the relevant information for reports on the datasources in : help.sap.com
    When you are in help.sap.com click on Search Documentation link...type for the relevant datasource you are looking for and type 2LIS_11_VAHDR as the search string.
    Example:
    http://help.sap.com/saphelp_nw70/helpdata/EN/c3/18f23864eec97ae10000000a114084/frameset.htm
    Regards,
    Sudhakar Kuricheti

Maybe you are looking for