Adding Layout Crystal Report by DI API for a user form

I need help. How the layout knows which field to take from the table of the report to print when setting the key to LayoutKey in eventInfo  ? Because each time I preview the report it's always the first row of the table not the one I set in LayoutKey

Hi Marc,
If you are running that query in Query Generator than what result you are getting. Is still only First Row ???
If Yes..
Can you paste your query here.
Thanks
Regards::::
Atul Chakraborty

Similar Messages

  • Adding a Crystal Report (report or layout) in a specific menu location

    Hi,
    i want to import a CR Report through SDK.
    I found an example in the sdk help center. You can find it searching 'Adding a Crystal Report (report or layout)'.
    It works but going in the Report and layout manager i find it under 'Lost Reports'.
    i cannot find a way to specify the MENU LOCATION just like the Import Wizard allows.
    Can anyone help me?
    Thanks
    Paolo

    hi how you solve this??

  • 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.

  • Dashboard based on Crystal Report's Latest instances for the logged in user

    Hi,
    I am trying design a dashboard based on LiveOffice-crystal report's latest instance for the logged in user. Also there is row level security in the universe on which the crystal reports is created.
    In the live office connection i have selected 'latest instance by current user' in the refresh option and published the dashboard to InfoView.
    when i open the dashboard in InfoView , i find the row level restrictions being applied for different users. But the data retrived is always on-demand data and not based on the latest instance of the logged in users.
    Can anyone throw some light on this issue.
    Thanks

    Hi,
    I am trying design a dashboard based on LiveOffice-crystal report's latest instance for the logged in user. Also there is row level security in the universe on which the crystal reports is created.
    In the live office connection i have selected 'latest instance by current user' in the refresh option and published the dashboard to InfoView.
    when i open the dashboard in InfoView , i find the row level restrictions being applied for different users. But the data retrived is always on-demand data and not based on the latest instance of the logged in users.
    Can anyone throw some light on this issue.
    Thanks

  • Crystal Reports Add-on toolbar for BW

    Hello Gurus,
             Posted a similar question before but not of much help. I have SAP BW 3.5 on my system since long and recently installed Crystal Reports V10. I need to create reports in crystal reports using BW queries for which I need SAP linked to Crystal reports or vice versa. How can I obtain the CR add on toolbar for BW?
             Any solution for this problem would be greatly appreciated.
    Thanks,
    Nikki

    Hi Nikki,
    like mentioned in the conversation before.
    Part of the overall Netweaver package is a DVD with the software for Crystal Reports and Crystal Enterprise.
    On this DVD you will also find the Add Ons for Crystal Reports
    Ingo Hilgefort
    Business Objects

  • IMPORT_COUNTREQUEST API for Physical Count form data load?

    Dear All,
    Please clarify whether I can use the IMPORT_COUNTREQUEST API for physical count form data load...?
    or which other API does the job other than dataload through dataloader..
    Please update...
    many thanks in advance....

    Hi,
    We believe instead of using IMPORT_COUNTREQUEST API you can use a Dataload script to key in data in Physical Inventory form.
    Basically you need to populate 4 fields in this form, i.e Physical Inventory, Date, Description & Snapshot Complete (checkbox).
    Go ahead and write a Dataload script for the same.
    Regards,
    S.P DASH

  • Crystal Report Print Engine API calls  from Powerbuilder

    I am using Crystal Report XI R2 with Powerbuilder 9.0. I  am using Crystal Report API calls using crpe32.dll to display my reports. When i run my reports from my development machine where Crystal Reports is installed the reports run properly, but when i deploy my application on a server where Crystal Reports is not installed the report gives me error "Report has not been opened" , Error 599.
    The database logon info is properly set in the RPT file.
    I want to know whether it is possible to run reports without installing Crystal Reports and how do you do it?

    Somehow, you will have to install the CR runtime...
    Probably the best way will be to create a deployment project using a utility such as InstallShield,  Wise, MS Visual Installer, etc. Use the RDC merge modules and  add the crpe32.dll to the deployment project, ensuring the crpe32.dll is installed into the ...\3.5\bin directory. The Correct msm files are here:
    https://smpdl.sap-ag.de/~sapidp/012002523100009381702008E/crxir2sp4_rdc_mm.zip
    BTW., using the print engine APIs... Not something recommended, nor supported. Last header files for the crpe APIs shipped in version 9...
    Ludek

  • All items doubling up on Purchase Request layout (Crystal Reports)

    Hi Everyone,
    There is an error in our Crystal Layout when printing 'Purchase Requests'. This error appears to have been present in our system since 'Go Live' and may be present in other people's systems due to the fact that I am using the 'System Default' Crystal Reports layout for Purchase Requests.
    Here is the layout that I am selecting (however the error that I am about to show below is occurring on all of our Purchase Request layouts) -
    The issue with the layout is that items on the Purchase Request are doubled up, and so are their related costs.
    I have blacked out some of the information in the screen capture for confidentiality.
    Is anybody else experiencing this issue? If so how did you overcome it?
    Kind Regards,
    David

    Hi David,
    a) Right click on the fields and go to format field and select the option suppress if duplicated.
    b)you can go to the database tab on the top and select the option "select distinct records
    c) Please check the joins .This happens due to wring Joins between two tables.Please check the join properly.
    If it is proper then check the No. of fields and its data coming and do not take unnecessary fields if it is not in use.
    Thanks

  • Sale Order Query Print layout/Crystal Report Query required

    Hi Experts,
    I created a Sale Order. Items included in it are service and material.
    (I created a BOM, bound the child material item to the parent service item. Moreover child item will have unit price where as parent item will not have unit price)
    I need the report on it please let me know how i can do it.
    I tried with below query
    select a.DocEntry, a.DocNum, a.CardCode, a.CardName, b.DocEntry,b.ItemCode, b.Dscription, b.Quantity, b.Price, b.LineTotal, a.DocTotal, a.VatSum 
    from ORDR a inner join RDR1 b on a.DocEntry = b.DocEntry
    --and b.TreeType <> 'N'
    where a.docnum = '14240621'
    output of above query is
    DocEntry
    DocNum
    CardCode
    CardName
    DocEntry
    ItemCode
    Description
    Qty
    Unit Price
    Line Total
    DocTotal
    Tax Amount
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302010001
    PROVIDING & LAYING
    17.62
    2493.76
    43940.05
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0001
    Material for PROVIDING & LAYING
    17.62
    2800
    49336
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    305010005
    BM CM INCLUDING CEMENT
    10.055
    1980
    19908.9
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0002
    Material for BM CM  INCLUDING CEMENT
    10.055
    1650
    16590.75
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302040001
    P/APPLYING
    65
    116.5
    7572.5
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0003
    Material for P/APPLYING
    65
    65
    4225
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    301000001
    P& FIXING
    2.233
    31625.05
    70618.74
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0004
    Material for P& FIXING
    2.233
    44000
    98252
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    306010001
    PROVIDING RMC
    3
    3593
    10779
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0005
    Material for PROVIDING RMC
    3
    4847
    14541
    354652
    18888.46
    and my desired output is
    Unit price of both child item and parent item should be display in single column. ie. cumulative in Unit Price Column and Linetotal respectively.
    DocEntry
    DocNum
    CardCode
    CardName
    DocEntry
    ItemCode
    Description
    Qty
    Unit Price
    Line Total
    DocTotal
    Tax Amount
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302010001
    PROVIDING & LAYING
    17.62
    5293.76
    93276.05
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    305010005
    BM CM  INCLUDING CEMENT
    10.055
    3630
    36499.65
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302040001
    P/APPLYING
    65
    181.5
    11797.5
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    301000001
    P& FIXING
    2.233
    75625.05
    168870.7
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    306010001
    PROVIDING RMC
    3
    8440
    25320
    354652
    18888.46
    please let me know the update on this.
    with regards

    Hi Nagarajan,
    thanks for reply..
    1) Yes, i.e i have taken into BomType: Template
    2) i did not get any helpful output by using treetype by keeping 'S' and 'N', i kept in comment.
    3) Actually MT0001-05 - these are material item- unit prices are fixed. see in attached image
         for parent item, unit prices are not fixed. I give the price for them in Sale Order.
         I want unit price for parent and child should be summed/cumulative for Sale Order print.
         (in my above post, first matrix exactly same as sale order line items plz check it)
    Please help me, how i can achieve this by query(for PLd or Crystal report)
    With Regards

  • Crystal report input prompt..for sub report

    Hi All,
    I developed crystal report and retreived the fields from the exsiting Query.Now for  enhancing the report i must creat a sub report for th eexisting one.In this case iam getting 2 input prompts one for the old report and the other one is for the enhanced sub report .But the requirement is tha t, the report must get only one input prompt for both the reports. Is this can be possible from the Query end or the crystal report end?
    YVL

    Hi Vijayalakshmi
    You can apply just one input parameter for the main report and then link your subreport with this parameter.
    Once you link the subreport, you would get only one prompt for inputting parameter values.
    This way you can optimize the performance of the report as well.
    For more information about linking subreports you can refer to the user guide for the respective crystal reports version you are using.
    Hope this helps!!!
    Regards
    Sourashree

  • Crystal Report doesn't prompt for SAP credentials / errors out on refresh

    2 Environments tested with same results:
    <p>
    BOE XI 3.1 SP2 & BOE XI 3.1 SP2 FP2.5<br>
    SAP Intg Kit on mirrored SP/FP levels in each environment.
    <p>
    We've been successfully creating Crystal Reports against BEx queries in BW for months now as well as ECC master data.  We've also built universes and have WebI reports actively working against similar BEx queries in the same.  However, we're getting some curious behavior when we refresh the Crystal Reports against BEx queries in BW.  Verified all necessary transports and authorizations have been provided for both authoring, as well as refreshing/viewing on demand, etc.
    <p>
    We've setup all the Crystal Reports we're testing to:
    <p>
    a) Use custom database logon information specified here.<br>
    b) Specify a custom driver, leveraging the crdb_bwmdx driver<br>
    c) Prompt the user for database login
    <p>
    We have not enabled SNC as of yet.
    <p>
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server. 
    <p>
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    <p>
    However:
    <p>
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials.  We immediately get the "LOV" prompts.  Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through.  However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data.  Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to.  An error is then spit back.  We run the same queries with the same users within SAP and get normal behavior.  It's as though as soon as we apply security to the query the mdx driver doesn't like it.  Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    <p>
    Interactive Viewer: "Error in File %reportname%: Encapsulating Page Failed"<br>
    Java Viewer:  "Error in File %reportname%: Database Connection Error"
    <p>
    Nothing glaring in the event logs on the BO servers or in the Crystal logs that I can see, however just because it isn't spitting a specific error in the crystal logs doesn't mean I'm not missing something because I don't know what to look for behavior wise. To reduce the liklihood that it has to do with the way the report was built, we've tried against the same query by building a report using standard methods, as well as the SAP Toolbar using a very plain jane report.  Same behavior.
    <p>
    Thoughts?
    Edited by: Jay Riddle on Mar 1, 2010 8:55 PM

    Hi,
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server.
    >> Which authentication are you using to logon to InfoView ? Whats the configuration in the Universe Connection for Authentication ?
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    >> The user is using which authentication ? and against which system does he log on ?
    However:
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials. We immediately get the "LOV" prompts. Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through. However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data. Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to. An error is then spit back. We run the same queries with the same users within SAP and get normal behavior. It's as though as soon as we apply security to the query the mdx driver doesn't like it. Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    >> The user is using which authentication ? and against which system does he log on ?
    >> You mentioned security restrictions and I assume we talk about BI authorizations in form of data level security. If so - does the BW query include the authorization variables ?
    Ingo

  • Using Crystal Reports as the default for opening .rpt files

    Hi all,
    I know this is a simple question with a simple answer, but I'm baffled, so here goes. I'm using Crystal Reports 2008 and I have the Crystal Report Viewer installed on my computer. I want to open .rpt files with Crystal Reports 2008 as the default application, not Crystal Report Viewer.
    When I right-click the .rpt file I have three options, Crystal Report Viewer 2008, Microsoft Visual Studio Version Selector, and Choose Program. When I select Choose Program, then click the Browse button, Crystal Reports is not available as one of the programs to choose.
    When I look at the programs available via the Control Panel, I see Crystal Reports 2008, but I'm not able to select it as the default for opening .rpt files. I'm assuming the program file is in my Program Files folder somewhere in the Business Objects folder, but I'm not sure which file I need to set Crystal as the default program. Can someone please point me in the right direction? Thanks in advance.

    C:\Program Files\Business Objects\Crystal Reports 12
    then crw32.exe

  • What version of Crystal Reports do I need for ClickOnce Deployment VS2005?

    Hello,
    I have a Windows application that is currently being maintained in VS2005. Eventully we plan to upgrade to VS2008 but for now this is what we are using.
    I used the version of Crystal Reports that shipped with VS2005 to build some reports. Now I need to deploy them and I prefer to use ClickOnce. Some time ago, I checked into this process and only one specific version of Crystal could accomplish what I needed: CR XI R2.
    Now that Crystal 2008 has been released, I am curious if I can use it as a direct replacement for this package, or if it only supports ClickOnce on VS2008, or if there are any other deployment or version mismatch issues I need to be aware of. If CR XI R2 is still the only option I have for ClickOnce with VS2005, please let me know so I can buy that package instead.
    Thanks

    You can use click once with .NET 2005 and .NET 2008. Click once MSI is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100005986302008E/cr120_clickonce.zip
    CR XI r2 and CR 2008 are side by side compatible, so if you have apps using the two runtimes on the same computer, it should not be an issue.
    Ludek

  • Error Bars - Can Error Bars be added to Crystal Report Charts

    I am trying to add or create "error bars" in my cystral report chart (graph).  I can add "error bars" in an Excel sheet chart (graph) but I cannot find the functionality in crystal reports.
    Is it possible to "error bars" to a crystal report chart.  If so, how?

    Hi,
    I don't see that this functionality or this kind of chart exists in CR.
    I would suggest that you log an Enhancement Request at http://ideas.sap.com and let our developers look into this.
    -Abhilash

  • Crystal report open instead of PLD with same form reference.

    Dear All,
    I configured crystel reports  to open in preview insted of PLD for documents,
    but it is asking parameters of the documents to be opened coz i have created parameteries crystal report,
    Means it is open whatever i have created in crystal report.
    But i want to open my crystel reports on preview directly insted of PLD
    with the same form reference.
    Means like PLD is opening preview directly whatever number form is open.
    Suppose in Sales Oreder form is open in that 5 no's Sales Order is there and then
    when i click on Preview that time only 5 no's PLD Preview is open.
    Like that i want to open Crystal Report.
    How to get that no's reference to crystal report ?
    Thnks
    Harish

    Close this thread as 2 same threads are opened with the same topic..

Maybe you are looking for

  • Is there a way to delete an app when you can't see the app's icon?

    Is there a way to delete an app when you can't see the app's icon? I have so many apps that they don't all show up on the existing screens. I know it can be done by connecting to a computer and using iTunes, but I'm on the road away from my Mac.

  • Problem in connecting to other application servers

    Hi Forum, I am working on a 3-tier arechitecture involving: 1) An oracle database server 2) A middle layer using BC4J(which has to support the major application servers) 3) A front-end Swing client accessing the business layer. The problem i am facin

  • One file Adapter NXSD file dynamic

    Hi all, I will get different inputs based on the input request ID i have to do write the file using file adapter . so the question is if i have 10 files is it necessary to create 10 File adapters or can i achieve this using a single File adapter and

  • Stop google results coming up after attempts to use the URL bar!!!

    I just installed the latest firefox and am angry. I used to be able to type things into the URL bar and firefox would direct me to the relevant website, no questions asked. I could type, for example, "BBC world news" into the URL bar, and after hitti

  • Using Aperture 3 on external disc

    I am completely new to Aperture. I want to use it so that no images are stored on my internal HD but rather on an external one. When I insert my card reader and try to import to a library I created on teh external I get a message saying no backup fol