Single DB hit for Report Publication

We have some Crystal Reports and Webi Reports
Each Report we need to distribute to the end users in PDF/Excel Format. For Each reports the users >10000 members 
Currently we are generating the reports trough publications . We have implemented role based / hierachy based secuirity in one table ( with has BOUSERID Filed ) and that table we are joining with Reporting table and created BOUSERID prompt( This wiill be in Where class of the underlying report query )
This parameter is associated with profile value ( Profile Value is BOUSERID System variable )
So basically the personification with BOUSERID  Profile value and the report hits the DB for 1000 times This is time consuming
My Planing to implement the Single DB hit and  divide the report to all the users through Publication . Dynamic distribution is not good for our requirement
Please suggest me best approach and steps to achieve
Thanks in advance
Yogi

Thanks for the info! I was afraid that it wasn't possible to restrict RAS to one DB connection if the report has subreports.
I tried choosing the "Connections stay open until report is finished" option when configuring RAS so that my temporary table would remain available for the subreports to use, but this didn't work.
How do I (or can I even) keep a temporary table until the end of my report with a report with subreports using RAS? 
The report works fine as written in Crysatl XI and it works using RAS if the subreports runs the same query that the main report ran instead of trying to use a temp table, but it takes significantly longer to run when each subreport has to do the complex query over again.

Similar Messages

  • How to Trace the single Query Hits for single User

    Hi BW Experts,
    I have one doubt.
    How do we know that How many times one User executed only one Report from last 2 months??
    How do we trace it in BW System
    Please tell me.
    Thanks in advance
    Regards
    Anjali

    Hi Anil,
    Thanks for the reply.
    I checked in RSDDSTAT Table. But I could not understand from that Table.
    How many times 'X' User is executed 'Y' Report (This is single Query/Report only) from last 2 months?
    Regards,
    Anjali

  • How can I will declare the symbol u2018 (Single Quote) in the report

    Hi ,
    Could you please tell me how can I will declare the symbol u2018 (Single Quote) in the report.
    My requirement is that I have concate the data with single quote and after that I have to store the data in to an internal table and I have to download the data in the form text file in the presentation server.
    For example :
    Let the below data I want to download into the presentation serve in the format of text file by storing in internal table.
    Assume all are constants:
    1st line : abcu2019add
    2nd line :  defu2019gef
    Thanks in advance.

    Hi Jyothi,
    Thanks for the quick reply .
    I can agree with you are point but My requirement is like this I am explaining clearly.
    I have declared the internal table like this.
    DATA: BEGIN OF OTAB OCCURS 0,
             LINE (9024),
           END OF OTAB.
    So I have to append the each line item into the internal table.
    So I am explaining what the data I have to append
    Ist line contains
    'UNBUNOC:2020308u2019 where 020308 I will get the  date from reguh table
    2nd line contains:
    'DTM+20020510' where the 20020510 will be reference document number from the table reguh.
    So I want to declare a constant 'UNBUNOC:2
    2nd the date from reguh table
    And another constant u2018
    So that I can concate all the three and I can put into string and I will append into internal table and I can download the data into the presentation server.
    Please let me know if you need any more clarification regarding my requirement.
    Thanks in advance.

  • Single row in alv report

    Hi experts...
    I want single row in alv report.
    I have use loop for fatch data into internal table using loop when i am passing data in alv report then the data comes according loop. i want onlu one data in alv row.
    how can i do such, plz help me.

    decleare two internal table.
    read table itab into  wa index  1.
    append wa to itab2.
    pass itab2 only one record display.

  • Simultaneous data activation in cube - request for reporting available

    Hi,
    I'm on BW 3.5.
    I am loading several million records to a cube, processing is to PSA first and subsequently to data target.
    I have broken the load up into 4 separate loads to prevent caches from filling up and causing huge performance issues.
    When I load all the data in a single load, it takes 10 hours to load.  When I break it up into 4 loads it takes 3 hours.
    My problem is that during the loading from PSA to data target, the first data load becomes green and ready for reporting before the last one has finished loading, and so the users get inaccurate report results if they happen to run a report before the last request activates.
    Is it possible to get all 4 requests to activate simultaneously?
    I have tried adding an aggregate to the cube, no good.
    I have tried loading the 4 loads to the PSA in sequential order in the process chain, and then loading from PSA to data target simultaneously (side by side), no good.
    Does anyone have a solution?
    Many thanks,
    Paul White

    Hi ....
    Have you done the Roll up ?
    Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
    Regards,
    Debjani....

  • Single line item for multiple line item payment.

    Hi
    I have booked the 3 vendor invoices (in FB60) for a single vendor. Now today i paid (with F-53) all the three invoices together. One payment document number was generated.
    However when i saw the vendor line item, i saw that three debit line items was generated for the clearing the open invoices (i..e 3 credit line items). so when i say vendor line item report, there were total 6 cleared line items (3 for credit i.e invoice and 3 for debit i.e. payments)
    But is it possible to get  single debit line item for all the three invoices cleared. If yes, please let me know how i can get it.
    If i will have one single line item for payment, vendor report would be simpler. Please help

    Hi,
    1. If you do payment through F-53, then each invoice have separate payment line item. This is not avoidable. If you do payment through F110, then you can group the line items for payment, so there only one payment line item for many number of invoices.
    2. While clearing through F-44, system is generating automatic line items because, there are exchange rate fluctuations. You can't avoid these line items, as these automatic line items only match Debit and Credit amounts in order to post the document.
    Rgds
    Murali. N

  • Bold a single row in a Report based on SQL Query

    Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?

    One way to do this is to add a hidden column to your report which contains the formatting value, for example:
    select empno
    , ename
    , sal
    , decode(empno,1,'font-weight:bold','font-weight:normal') style
    from emp
    Hide the STYLE column.
    Then you can use this column for each column in Column Formatting > HTML expression in this way:
    <span style="#STYLE#">#SAL#</span>
    Unfortunately you have to do this for each colum you want to appear bold.
    good luck,
    Dirk Dral

  • Tcode for report: PO missed delivery date

    Dear SAP Gurus,
    Kindly let me know is there any T-code for report which list the purchase orders missed for delivery date.
    Please help.
    Regards,
    Prashanth

    Dear
    your can your TCODE -  ME2M.
    Select Delivery Date field do the following step
    1. click on Multiple selection Button
    2. click on maintain selection option
    3. select single value and click continue.
    run the report. This may be useful to you.
    Regards,
    Pravin Kadam.

  • Crystal Report Viewer Credential Prompt for Report with Dynamic Parameters

    The .NET Crystal Report Viewer is prompting for database credentials when launching a report containing dynamic parameters. This only occurs for reports created with SAP Crystal Reports 2011 designer. Reports created with Crystal Reports XI designer (where dynamic parameters were first introduced) work correctly.
    The credential prompt window contains the following fields:
    - Server Name: <server name> (disabled)
    - Database Name: <database name> (disabled)
    - User Name: <empty> (enabled)
    - Password: <empty> (enabled)
    - Use Single Signon Key: false (disabled)
    The values in the prompt window which are disabled are the database connection values used during the design of the report in the SAP Crystal Reports 2011 designer.
    Expected Result:
    - No prompt for database credentials.
    - Values read from the database should be populated in a drop down for the dynamic parameters.
    Environment:
    - Visual Studio 2010 (C#)
    - Windows 7 Enterprise
    - SAP Crystal Reports runtime engine for .NET Framework 4
    - SAP Crystal Reports, version for Visual Studio 2010
    - SAP Crystal Reports 2011
    The database connection is being set to use a DSN. It must be a DSN as the calling application is only aware of the DSN/Username/Password values. These values are being passed to the Crystal Report Viewer contained in a Windows form.
    The database connection for the report is being set as follows:
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection otherwise the connection does not work
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Supposed to set the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    The SetConnection method's signature is as follows:
       SetConnection(string server, string database, string name, string password)
    As you can see from the code snippet above I am setting the DSN name as the server parameter, blank for the database parameter (a database connection using DSN should only require DSN name/Username/Password) and the database username and password respectively.
    Is this a SAP bug?
    Is this the correct way of setting the database connection to use a DSN?
    Is there some other properties that need to be set somewhere else in the report through code?
    Any help would be greatly appreciated.

    Thanks for the pointer to the database connection code generator. After taking a look at the output from the tool I was able to finally get the dynamic parameters to load and populate properly without prompting for credentials. I needed to tweak the outputted code a bit to match my requirements of using a DSN only connection.
    Instead of updating the database connection properties contained within the Report.Database.Tables collection from the CrystalReports.Engine namespace, I changed it to replace the database connection properties in the Report.ReportClientDocument.DatabaseController.Database.Tables collection from the CrystalDecisions.ReportAppServer.DataDefModel namespace. For one reason or another, using the RAS namespace solved the problem.
    Below is the updated code with the change made:
    using RAPTable = CrystalDecisions.ReportAppServer.DataDefModel.Table;
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Sets the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    // The attributes for the QE_LogonProperties which is part of the main property bag
    PropertyBag innerPropertyBag = new PropertyBag();
    innerPropertyBag.Add("DSN", this.DSN);
    innerPropertyBag.Add("UserID", this.LoginName);
    innerPropertyBag.Add("Password", this.Password);
    innerPropertyBag.Add("UseDSNProperties", "true");
    // The attributes collection of the tables ConnectionInfo object
    PropertyBag mainPropertyBag = new PropertyBag();
    mainPropertyBag.Add("Database DLL", "crdb_ado.dll");
    mainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
    mainPropertyBag.Add("QE_LogonProperties", innerPropertyBag);
    // Pass the database properties to a connection info object
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.Attributes = mainPropertyBag;
    connectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
    connectionInfo.UserName = this.LoginName;
    connectionInfo.Password = this.Password;
    // Replace the database connection properties of each table in the report
    foreach (RAPTable oldTable in this.report.ReportClientDocument.DatabaseController.Database.Tables)
        RAPTable table = new RAPTable();
        table.ConnectionInfo = connectionInfo;
        table.Name = oldTable.Name;
        table.QualifiedName = oldTable.QualifiedName;
        table.Alias = oldTable.Alias;
        this.report.ReportClientDocument.DatabaseController.SetTableLocation(oldTable, table);
    this.report.VerifyDatabase();
    Thanks again Ludek for the help.

  • How to use Oracle OAB Fast Formulas in Discoverer-desktop [ for reporting]

    Hi,
    Can anyone tell me how to use a fast formula in discoverer-desktop [for reporting]. Currently, we have a disco-report that calcuates the 'monthly salary', but we don't want to use that. Instead, we have a custom fast-formula [xx_oab_monthly_salary] which has the conditions and calculations that we need.
    I want to use that formula in discoverer-desktop directly and get the monthly-salary.. i.e., someone needs to create a folder under the business area and add it i believe.. the formula internally calls a function.
    when i checked about this with my dba - he said, he can add the 'function', but not the formula. and i need to write the calculation part...
    does anyone know how to add it...there shud a way right...
    i do not have access to the technical-stuff here..
    someone said ["you can wrap the FF_EXEC.run_formula call into your own pl/sql function and map this function into the EUL so that the formula can be called from a workbook.", but this talks about pl/sql-do we need pl/sql
    for this].
    also, someone else said [ some fast formulas need specific contexts to be set. Depending on whether the fast formula below the only fast formula that you want to recreate in Discoverer.
    For a single formula, in general my recommendation is to recreate the fast formula instead of using the ff_exec call].
    any quick answers greatly appreciate..
    thx,

    Hi,
    That's right you need to develop the pl/sql function outside of Discoverer using a pl/sql tool or just SQL*plus. I haven't an example to hand, but can dig one up if you need it. Once you have the function developed you can map it into the EUL using Discoverer Administrator. It will then be available to Discoverer Desktop/Plus as a database function when creating calculations. So you can then just add the calculation to an existing or new report.
    Alternatively, you can build the pl/sql function into a view and load the view into a new folder using Discoverer Admin.
    Rod West

  • Can we have a single inbound delivery for multiple  po???

    Hi
    can we have a single inbound delivery for multiple  po??? what are the steps to do it?
    how to do spro settings??
    please help me out.
    regards
    Arya

    Yes you can have and for that you don't need any config.
    just go to VL31N and from header hit the purchase order button and either enter the PO numbers or let system pulls the PO based on the selection adn than select all the POs adn hit adopt selected button and save.
    this will create one inbound delivery

  • Error while creating logical port for Reporting

    Hi,
    In one of the training materials for Duet Enterprise, i saw the steps for creating logical port for the consumer proxy /IWTNG/CO_PXY_RECORDS_REPOSITO.
    When i am trying to create the logical port, i am getting an error saying,
    " SRT Framework exception: Error in WSDL access: Exception occurred in communication framework:Error in HTTP Framework:500 Native SSL error
    https://<server:port>/_vti_bin/OBAFileReceiver.asmx?wsdl "
    I would like to know is it really necessary to create this logical port for "Reporting Scenario" and is it not created automaticallly using the Installation Wizard??
    And in case it has to be created, how to resolve this SRT framework exception?
    ~ Ramanath.

    Hi,
    the consumer proxy  /IWTNG/CO_PXY_RECORDS_REPOSITO was used in Duet Enterprise SP01. Now with SP02 the consume proxy /IWTNG/CO_OBAFILE_RECEIVER_SOA is created.
    However, the SSL error that you are getting looks a little strange (it does not mean that there is an error, but it is worth checking):
    So can you go to SOAMANAGER -> Service Administration -> Single Service Configuration. In here select "Consumer Proxy" from the "Search by", Search Pattern "/IWTNG/CO_OBAFILE_RECEIVER_SOA" and Field: Both.
    You should find one entry. Select it and click "Apply Selection".
    Now go to the Configurations tab. Here you should see one Logical Port with name "LOGICALPORTFORREPORTING" with Creation Type "Manually Created". In fact this logical port was created by the Wizard.
    Click on Display and scroll down again. Now in the "Additional Information" tab there is a string after HTTP Destination, e.g. 0050568E3F5A1ED096F22339C44BAF83.
    Copy this value and go to your SAP GUI -> Transaction SM59.
    Here click on Find/Search and search for this HTTP Destination. You should find one Type G RFC Destination that has the target host of your SharePoint server and the path prefix /_vti_bin/OBAFileReceiver.asmx.
    Now you can test the service. Just click on Connection Test. The result should be a HTTP Response: 200.
    If not, then something went wrong with the automatic configuration and we should take another look at it (for example maybe the SSL certificate from SharePoint that was imported by the Wizard is not valid)
    Regards,
    Holger.
    PS. Don't use the "Ping Web Service" test from SOAMANGER -- unfortunately this is not working consistently.

  • Grouping of vendor's for reporting purpose

    Dear Experts,
    i have an issue where i have different vendor code (For example - IBM- Mumbai, IBM-Bangalore,IBM- US,IBM-Germany). i have created different vendor code for all these companies.
    Now i want to link all these vendors under single grouping code  so that i can see the report based on group company "IBM" that what all the business i have done against the group company "IBM".
    Is there any concept of grouping several vendor's under single code for reporting purpose.
    Plz suggest.

    The best way to resolve your issue i think is by creating a vendor class with class type 010 in t/code CL02...before this create a characteristic where maintain the Vendor codes & name in Values data tab in t/code CT04 and assign the same in CL02...now you can use this class in any vendor related report by using the option Vendor by class.
    Regards,
    Indranil

  • Run time for Report saved in local machine and Database

    Hello,
    I have a report that runs in 5 seconds in Discoverer Desktop. When I saved the same report in database(File->Save As - in Database) it takes more than 40 mins. I haven't made a single change to the report before saving to Database. Has anybody come across this? Please help me find the problem.
    Thanks.

    Hi,
    this is just how the Internet works and also how file displays work. Everything you view, listen to etc. in your browser gets saved as a temporary file on your computer. You can't even view a simple html page without having it saved on your computer for a short time. I can't think of anything to prevent this from happening.
    Also, if you generated the file yourself, how is that a security threat to your client? He should be sure the file is safe.
    Best regards!

  • Setting dynamic recipient for a publication is failing

    I have a publication which has the dynamic recipient set up as a crystal report template. I am trying to change this dynamic recipient template using the below code. However, it does not work-
    string newPublicationQuery = @"SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND = '"
        + InfoStore.CeKind.PUBLICATION + "' AND SI_NAME = '" + newPublicationTitle + "' AND SI_INSTANCE = 0";
    newPublicnInfoObjects = infoStore.Query(newPublicationQuery);
    if (newPublicnInfoObjects != null && newPublicnInfoObjects.Count > 0)
        newPublication = (Publication)newPublicnInfoObjects[1];
        // Get the collection of publication event handlers and add a handler to retrieve dynamic recipients.
        handlers = newPublication.PublicationEventHandlers;
        handler = handlers.GetPublicationEventHandler(2583);
        handlerInfo = handler.Add();
        // Configure the event handler to use a dynamic recipient data provider.
        handlerInfo.PluginClassName = "com.businessobjects.publisher.dynamicrecipients.crystalreports.CRDataProvider";
        // Set the new report template as the dynamic recipient template for the publication
        handlerInfo.DynamicDataDocumentID = newDynRecRepId;
        newPublication.Save();
        infoStore.Commit(newPublicnInfoObjects);
    The code works without any errors. However the dynamic recipient template is still the same old one.
    Can anyone please help? Thanks in advance.

    Thanks for the prompt response Dan.
    I checked the Publication Extension link and didn't see any extensions there. I assumed the event handler is present because the Add() was giving an error (like you say above). And yes, it was because it already had property "SI_ON_READ_RECIPIENTS" in the object.
    I have now done the following changes to the code to see if it helps-
    // Get the collection of publication event handlers and add a handler to retrieve dynamic recipients.
    handlers = newPublication.PublicationEventHandlers;
    handlers.RemovePublicationEventHandler(2583);
    handler = handlers.AddPublicationEventHandler(2583);
    handlerInfo = handler.Add();
    // Configure the event handler to use a dynamic recipient data provider.
    handlerInfo.PluginClassName = "com.businessobjects.publisher.dynamicrecipients.crystalreports.CRDataProvider";
    handlerInfo.DynamicDataDocumentID = newDynRecRepId;
    Above I remove the eventhandler and add it again. However, even this does not work. The publication still has the old dynamic recipient template. Not sure what I am missing here.

Maybe you are looking for

  • Field for transaction code description ?

    Hello, I know that the T-code is stored in table BKPF, but what is the table where the transaction code DESCRIPTION is stored ? Thanks, Julien

  • Emal with attachment from package

    Hi i tried to send email with attachment file from package, these files may be pdf, xls or any type of file , i tried ces package but is not working and i try UTL_SMTP package but this package send just txt file. i need to know if there is any tools

  • HTML Email Project

    I am needing to create a polished html email and then be able to send it out via Outlook. Similar to sending a mail merge in publisher but much more polished and html friendly. Does anyone have any suggestions on what programs that Adobe offers might

  • Change OVS text Advanced Search

    Hello. Someone knows how to change the text from label in OVS (Advanced Seach) to other language ? We have a webdynpro project using the OVS (Obejct Value Selector) and we need to change the label Advanced Search in OVS to portuguese ! Best Regards.

  • JCE SecurityException: Cannot set up certs for trusted CAs

    hi, I am using trying to Jar an application that uses the JCE package for encryption. When running the jar file the following exception ocurss: java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs at