Crystal Report - Linking tables

Hi all,
I had a look around for this subject matter but cannot find anything to answer my question.  If you know where I can find the answer, please let me know.
I have 2 tables on Crystal Report and am trying to link the Primary table to the secondary one with a 'NOT EQUAL' link.  ie. I want all the records in the Primary table (about 4000) which Do Not have an entry in the secondary one (about 3500) so I am expecting to get about 500 records.
I have tried with all the various link and Enforce Join options but cannot get the correct results.
I have also tried to link them with an Inner Joint of Equal Type then created a formula of Primary.key.field <> to Secondary.key.field but this is not working either as it returns no records.
  Any idea?

Hi All,
This is to let you know that I have now found an answer to my questions (yiha!).  So thanks to James Gust who answered a note from Joey041 on March 2nd.
Thanks a lot for being there.
Cheers, Sylvie
Edited by: SylvieWolpert on May 12, 2009 7:31 AM

Similar Messages

  • Crystal Report linked to a table with filter attached

    I have a Crystal Report based on 2 tables and I want it to display every incident in the incident table and to pull the truckID of the
    first truck on the scene from the truck table . So the finished product should look like this…
    IncidentID           IncidentNum     ResponseTime                  First Arriving Truck           Disctict
      1x44452                1258ab55             5:32                                        B8                              2
    *The first arriving truck is the truck in the Truck Table with the same IncidentID and  the earliest ArrivalTime.  There will be multiple trucks for each incident but I want it to only show the one that arrived first (ArrivalTime).  So one line per incidentID.
    Incident Table
    IncidentID
    IncidentNum
    ResponseTime
    District
    Truck Table (Will contain many trucks for one incident with the following info
    Truckkey
    IncidentID (Link to Incident Table)
    ArrivalTime
    TruckID
    I figure I probably need to build a formula with the min function or perhaps an OnCommand – I’m just not sure.
    The biggest issue is the overall report has 4 filter settings.  They can select a date range, a location, an incident type and a range for the response time. So I do this with the Select Expert
    I can get all of that to work except I cannot figure out how to get it to pull the First Arriving Truck without duplicating the incident
    line.  Also, if there is a Truck with an ArrivalTime of Null I want it to ignore that Truck Table record.
    Can anyone help???

    Hi Debbie,,
    You may try this:
    1) Go to the Group Expert > Create a Group on the 'Incident ID' field from the Incident Table
    2) Insert a summary on the 'Arrival Time' field and place the field on the Group Footer
    3) Move all the fields from the Details section to the Group Footer
    4) Go to the Group Selection Formula (Report > Selection Formulas > Group) and use this code:
    {Truck.ArrivalTime} = Minimum({Truck.ArrivalTime}, {Incident ID})
    5) Suppress the Details Section
    -Abhilash

  • Crystal Report VS2005 - Table fields missing in Database Expert

    Hi,
    I am having a problem with the Crystal Report comes with Visual Studio 2005. I am trying to develop a customized report for SAP Business One. When I try to add two tables using the Database Expert, there are certain fields missing in the LINK page. This is a big problem for me because I need to link that field with another table. Oddly, it doesn't seems that there are anything wrongs with the missing fields. If I click OK and check at the Field Explorer, the missing fields are there!!!
    In other words, it is missing only at the Database Expert --> Link Tab. Anyone having the same problem? Is this a known issue or any patch that I can apply to resolve this issue?
    Thanks in advance for your help.
    Regards,
    Harianto

    Try this link to resolve your issue:
    Full Outer Join option for SQL Query and BW Query grayed out
    Thank you
    Don

  • Function module in crystal reports using tables as input

    We had a function module created with a few import parameters. We successfully linked it in crystal and were able to retrieve the data.
    To accommodate the requirement of being able to pick multiple values for some of the parameters, the import parameters were changed to tables. When testing in ECC, we are able to retrieve the data using the function module.
    However, when we're using the same approach as before in crystal reports, we are not able to retrieve the data.
    Is it possible in crystal to pass the input parameters to tables ?
    Any ideas what I might be doing wrong?
    Thanks,
    Mat

    Hi John,
    The solution is very simple. 
    You create a function module in ECC (t-code SE37) that will receive you input parameters, process them, and export a table with your results.
    In the function module you define an input parameter using a CHAR120 data type (ex. PERNR).
    In the function module source code you add logic to split the input parameter
    [SPLIT i_PERNR AT ',' INTO TABLE itab_PERNRS.]
    You then create a crystal report against your function module.
    In your crystal report you create a parameter using type "string" (ex. I_PERNR).
    When you execute the crystal report, you input a comma delimited string in the parameter.
    [00001234,00005678,00009123]
    The function module will receive the string of values, split the string to an internal table, and process accordingly.
    I still have no solution for the 120 character restriction in the CR->ECC interface.  In the meantime, I get around this by creating multiple parameters (PERNR1, PERNR2, PERNR3, etc.). 
    Each parameter is set up to pass a string of 120 characters to ECC.
    The function module is set up to concatenate the parameters before splitting.
    [CONCATENATE PERNR1 PERNR2 PERNR3 into I_PERNR]
    Hope this helps.

  • Dunning Letter as Crystal Report: What tables? (SAP B1 9.0)

    Dear Experts,
    I am being asked to revise the Dunning Letters for our clients.  The existing PLDs for each Dunning Letter shows most data fields as system variables.  The existing Crystal Report for Dunning Letter 1 is a conversion from the PLD and doesn't show table information for most of the report's main items.  There are tables in the report but they are standard ones (OADM, OADP, OCRD, OHEM, OSLP).  It also includes a "table" called "PLD__ITEMS" which has all the PLD system variables and no B1 table or field/column information.
    As I'm just now starting to work with dunning letters, I see that I can't even run this report in Crystal.  The PLD__Items datasource prompts me for a file path and class name.  Any ideas what one enters here to run the report outside of B1 (from the Crystal report designer)?
    The main focus of my question is: Has anyone created a Crystal Report to replicate the Dunning Letter and if so, what tables are involved and how are they connected?  If I can create a Dunning Letter entirely in Crystal, I can replicate it across all clients and get the correct fields/columns of data the clients want.  The inclusion of the PLD__Items apparently limits my ability to test the results.  I would prefer to avoid the PLD limitations.
    Thanks for any assistance.

    Thank you Nagarajan.  I have a dunning letter created in Crystal Reports for our client.  It is fairly limited in scope, it just has the customer name and address, invoice numbers and dates, amounts due and the text they wanted in it.
    I can import it into B1 9.0 and set it as the default for Dunning Letter #1 and it runs, but unlike other formats where there is a DocEntry and/or ObjectID and a ?DocKey@ or ?ObjectId@ parameter, how do I limit the report to just one customer?  Typical document layouts run for the document that's on the screen.  In the dunning process, the report runs once for every customer when the Dunning Letter Method is set to "One Letter per BP".  I have to limit the report to one customer at a time.  Right now, each dunning letter based on the Crystal report is identical and it contains all the data for every customer.
    So, does anyone have any ideas for what selection criteria needs to be included in the Crystal report to have it select just one customer from the dunning wizard tables?  Thanks.
    Michael
    Edit: I created a ?WizardID@ parameter and a ?CardCode@ parameter to limit the report to a single dunning wizard event and a single customer.  While it works fine in Crystal itself, it doesn't work in B1 at all.  I had thought that by limiting the report in this way, it would only create dunning letters for a single customer.

  • Crystal report link Salesforce

    I use the crystal report 2008. When I  link the crystal report to salesforce, it need to input the server , user name and password. But I can't log in use my salesforce user name and password.
    The server name: www.salesforce.com
    Maybe the server name must be modified.
    How can I link them? Thanks!

    Hi David
    Please see the documentation for connecting to salesforce from crystal reports 2008 in the CR 2008 user guide.
    To see the guide visit the following link
    http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf
    or search for the cr 2008 user guide in the following link:
    http://help.sap.com/
    Hope this helps!!!
    Regards
    Sourashree

  • Crystal Reports - ECC Tables - Row level security on Multiple tables

    Hi Experts,
    We are implementing Crystal Reports directly reporting on ECC Tables.  Lot of information on row-level security has been provided by experts Ingo Hilgefort, Don Williamsand Mike Seblani, but not related to multiple tables or Wild cards
    Requirement:
    Crystal Users should have access to ALL the tables in ECC, but restricted by Company code, plant, Sales Organization, Purchasing Organization fields to what ever table it applies to. Example: MARC table should be restricted by Plant, BSEG table should be restricted by Plant and company code, GLT0 table should be restricted by Company code..etc
    Users should ONLY see their Organization related data.
    Solution Developed:
    1. We created custom authorization object with BUKRS and WERKS
    2. In  /CRYSTAL/RLS  we used Wild Cards *, +  rather than specific table  and referenced the custom authorization object with =BUKRS and =WERKS  in the Field Value
    3. Enabled global lock
    4. Custom Authorization object was added to user-profiles with corresponding restrictions
    *Observation:*
    1. This security works when a crystal report was developed on a ECC table which has both BUKRS and WERKS
    2. This setup DOES NOT work when a crystal report developed on a table with either one of BUKRS or WERKS
        Example: Does not work on MARC table - error message "Database connection error: /CRYSTAL/OSQL_EXECUTE_QUERY Message: field T0~BUKRS" unknown"
       Does not work on GLT0 table - error message "Database connection error: /CRYSTAL/OSQL_EXECUTE_QUERY Message: field T0~WERKS unknown"
    Trouble Shooting:
    In the "where clause" of the internal ABAP code generated for MARC, system is checking for BUKRS - which  should not be the expected result
    ANYTHING WRONG IN THE SECURITY SETUP ? PLEASE ADVICE
    Note: Document "BusinessObjects XI Release 2, Integration Kit for SAP, Installation Guide" does not talk much about this multiple table restriction. Any other document to be referred to ?

    I'm not sure how that would help; by using the Faculty_ID Session Variable I can identify the CRN and Term of all courses a faculty member is teaching. But I don't think that has to do with the problem I am having?

  • Crystal 2011 linking table with a String and a Number

    Hello,
    I am able to retrieve the data I want with the following  SQL Query in SQL: If I try to create it in Crystal 2011 APPLRUNN is a string and CNTBTCH is a number. Is there a way I can link these two fields if one is a string and the other is a number ?
    SELECT   
    ENADV.APPLRUNN, ENPBD.CNTBTCH,
    ENPBD.DOCNBR
    FROM       
    ENADV INNER JOIN
    ENPBD ON ENADV.APPLRUNN = ENPBD.CNTBTCH
    Thanks,
    Debbie

    Hi Debbie,
    You cannot linking  table with a string and a number. I have given a example query:
    SELECT   
    ENADV.APPLRUNN, ENPBD.CNTBTCH,
    ENPBD.DOCNBR
    FROM       
    ENADV INNER JOIN
    ENPBD ON
    ENADV.APPLRUNN = ENPBD.APPLRUNN  or ENADV.CNTBTCH = ENPBD.CNTBTCH
    I modify last sentense because one table primary key is equal to another table Foreign key i.e
    one table ID field = another table ID field or one table NAME field = another table Name field.
    Please understand my intenction and check linking fields in tables.
    Thanks,
    DJ

  • Crystal Reports Temp tables - Driving Me crazy

    Our ongoing saga with temp tables and crystal reports continues. I am ready to go crazy, so any help would be appreciated.
    Notes:
    I create the ##tempsmall table in query analyzer, so it is present when the code executes.
    When I use the sa/Corinne credentials, it works.
    When I use a non sa set of credentials, I get an error saying the temp table is not found.
    When I add the non sa user to the tempdb as a user, with DBO permissions, It works.
    Code is below
    Dim Report As New ReportDocument()
    Report.Load("C:\KI\Customers\Live Customers\Brookledge\ReportRD\CrystalReportsApplication1\Projects.rpt")
    Dim LogInfo As New TableLogOnInfo
    Dim Tbl As Table
    For Each Tbl In Report.Database.Tables
      LogInfo = Tbl.LogOnInfo
      LogInfo.ConnectionInfo.ServerName = "ocamb-vista"
      LogInfo.ConnectionInfo.DatabaseName = "mapps20"
      ' We need to figure out how to make this work with a non sa user?
      LogInfo.ConnectionInfo.UserID = "medequipuser"
      LogInfo.ConnectionInfo.Password = "mapps"
      'LogInfo.ConnectionInfo.UserID = "sa"
      'LogInfo.ConnectionInfo.Password = "corinne"
      Tbl.ApplyLogOnInfo(LogInfo)
    Next Tbl
    Report.Database.Tables.Item(0).Location = "tempdb.dbo.##tempsmall"
    Dim v As New Viewer
    v.CrystalReportViewer1.ReportSource = Report
    v.Show()

    Hi Scott,
    The problem is tempdb is only accessible by the Administrator account and they are typically not to be used by anyone other than the system. This is how SQL server works, any query being run will create a temp table for the DB server to use and pass that data to the calling query, once completed the tempdb is deleted.
    As you have seen, unless you set permissions each time for a specific user you don't have access to it. One option is to use real tables that you can populate and delete the rows of data each time. Not very efficient though.
    Crystal respects all DB permissions so it's not a CR issue.
    One possibility is in your front end you could use MS SQL Server API's, if there are any, or use a stored procedure to set permissions to the temp table before calling CR to set location. Sorry no samples to do this, its a DB server question.
    Another option is to write the data into a Data Set and then set the location to the DS for CR to use. If you have more than 5000 row though don't do this or your reports will have performance problems.
    CR does not have any API's that will allow you to access a table that it does not have permissions to get to. Basic DB security, you'll get the same log on error trying to connect ot any table that user doens't have access to.
    Thank you
    Don

  • Addon Crystal Reports (LINK)

    Dear Guys,
    some link for download addon crystal report grath than first verision (1), ????
    if yuoe have a link please give me,
    thanks
    Oscar

    What exact product are you looking for? Please explain a bit more what you need.
    I am not sure what you mean with Crystal Report 1.

  • Crystal report link between sales order and picklist

    Hi,
    Good day!
    I am making a picklist document using crysal report. My requirement is to show the sales order number, cardcode, cardname, itemcode, released qty in the picklist. the tables i linked in crystal are the ff:
    RDR1.DocEntry linked to ORDR.DocEntry and ORDR.DocNum linked to PKL1.OrderEntry.
    I have a sales order with 2 items and then I processed picklist for it. When I run the report, my problem is that it shows the items twice.
    Scenario:
    Sales Order 1:
    Item A   2
    Item B   1
    When I run the report, it's like this:
    Item A 2
    Item A 1
    Item B 2
    Item B 1
    I'd already tried adjusting the links but still can't get it.
    Please help me.
    Thanks so much.
    SIncerely,
    Jackilou

    Hi,
    could you please describe how you solve this issue?
    Thank you very much!
    Regards,
    Tobias

  • Crystal Reports - Two Tables in one report, grouped by machine.

    I have two tables for machine schedules.  One is a Current Job Table, and the other is a Que Job Table.  I do have tables joined to a definition table for the machine name.
    Cur Job Table - Def table
    Que Job Table - Def table
    I want to report the information from the current job table for each 13 machines in sequence.  Some machines may have more current jobs than qued jobs.
    ...Machine 1 (Machine Name)
    .....Current Jobs (Cur Job Table)
    .....Qued Jobs (Que Job Table)
    ...Machine 2 (Machine Name)
    .....Current Jobs (Cur Job Table)
    .....Qued Jobs (Que Job Table)
    Etc.
    Is there a way to do this easily?  I have tried grouping and sub reports.  Seems like I end up with duplicate records due to the SQL joins.

    Sharon,
    Select distinct will not work here, as select distinct checks all fields in the record, and when joining the two detail tables, it will not clear out "duplicates" on only one side of the join.
    I would also humbly suggest that using Select Distinct to try to "clean up" a query is rather dangerous.  You may end up dropping some data that should appear on the report.  (In fact I recently had to fix a report due to this issue - coded by someone else, of course!  :->)  If you are getting duplicate records and you don't want them, the query should be coded to produce the desired result set WITHOUT the Distinct clause being the reason duplicates are dropped.  (This is not to say that select distinct is not useful, or should never be used.  If you need a distinct list of customers over a date range, using Select Distinct custcode from sales where date between {?start} and {?end} is perfectly OK.)
    HTH,
    Carl

  • How to build Table of Content in Crystal Reports

    Hi,
    Initially, I am looking for an article about how to build Table of Content in Crystal Reports in table-based approach----including how to write to DB table from report:
    http://support.businessobjects.com/library/kbase/articles/c2011950.asp
    However, the link above is invalid. I also searched through SDN articles, but no luck.
    Can someone please forward me the link if you happend to know?---does not have to link to this specific article, any working solution is just fine.
    I am aware of another approach which put the TOC to the end of the report(http://www.ml-consult.co.uk/cryst-05.htm), which probably does not satisfy the requirement.
    If you have other solutions, your share is greatly appreciated.
    Thanks a ton!

    [Is it possible to create a table of contents in Crystal Reports?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]

  • Need help in creating table in crystal report for visual studio 2010

    Since there is no table support in crystal report,how can I create a table in crystal report for visual studio 2010?
    I have a datatable and I need to show that in crystal report in table structure.
    I have tried using lines and boxes to generate the table but it is not working perfectly.
    How can I export the report in excel format in read/write mode saving all the formatting in the report

    Hi,
    Check sample codes from following:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    You can download the [Developer's Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm] & [API Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    Thanks,
    Saurabh

  • Crystal Report does not run through NWBC

    Hi All,
    I have been going through posts on SDN all day and I cannot seem to get a resolution to my issue as yet.
    Workflow is this
    Logon onto NWBC 3.0
    Click on Crystal Report. Crystal report contains an OpenDocument URL specified as follows:
    http://<servername>:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AbFjYgXfkO5AofAAPxoxOyA&sIDType=CUID
    When click on the Crystal REport link, i am SSO'd onto SAP BusinessObjects Infoview (Edge 3.1 SP3)
    The Crystal Report attempts to load and then I encounter the following message:
    Error
    The database logon information for this report is either incomplete or incorrect. 
    SSO with SAP Authenication is enabled for SAP BusienssObjects.
    Server-side Trust, etc has been set-up on the SAP Side
    All steps were followed from the SAP BusinessObjects XI Integration for SAP Solutions Installation and Admin Guide.
    For the Crystal Report itself, within the CMC, for the Database Configuration i set it to 'Use SSO context for database logon'.
    Also the the Data Source is using FQDN for everything.
    I am at a loss as to why the SSO is not working to refresh the Crystal Report.
    Any ideas on what to check next would be very much appreciated.
    Also, the report I am trying to run from within NWBC, contains a dynamic prompt, that uses a BV layer to populate it. The LOV is scheduled to refresh every morning. Dont know if that is causing the issue or not.
    Thanks,
    Ainsley
    Edited by: Ainsley O'Sullivan on Oct 27, 2011 7:57 AM

    Hi Ingo,
    Thank you for your reply.
    Why has server side trust been setup on the SAP side ?
    I am not sure why Server Side Trust has been set-up on the server side. The basis person who set that up was following the BusinessObjects XI Integration for SAP Solutions Installation and Administration Guide. We thought we needed this in order for SSO to work between NWBC and BusinessObjects.  I read now it is only required for multi-pass report bursting.
    We have also set up the PSE as well.
    So...perhaps  an impersonation-style logon is happening on the SAP side because we have set up SNC?
    What do we do to undo this from a BusinessObjects server perspective? We have downloaded all the Cryptographic Libraries, set them up on the SAP and BusinessObjects servers.
    I will discuss this further with the basis person.
    All involved URLs and server names have been fully qualified ?
    Yes, everything is fully qualified.
    NWBC has been configured to issue a SAP logon token ?
    I am not sure. Where is the documentation on how to configure NWBC to issue a logon token? Should I be pointing my basis resource to look at the NWBC Documentation, Section 7.3 Logon Tickets?
    OpenDocument has been configured to use SAP authentication by default and to accept Logon token ?
    Yes, everything from a BusinessObjects server perspective has been configured. The web.xmls for InfoView and OpenDocument have been configured for sso with sap.
    In the CMC, SAP Authentication has been set-up and works a treat.
    It seems to me the SAP side, ie. NWBC needs more work.
    Just find it hard to get a clear, step by step process on how to set-up NWBC to work with BusinessObjects. There is an abundance of documentation, but sometimes not a clear cut, step by step guide.
    Ingo I bought your book the other day too, Integrating SAP BusinessObjects 3.1 Tools with SAP Netweaver. I really liked it because it is clear what you need to do. Perhaps another one could be written or another section added to this book that talks about NWBC and embedding BusinessObjects reports within it?
    Thanks again.
    Cheers,
    Ainsley

Maybe you are looking for

  • MAXDB Dataabase system Copy - Fail on Phase ABAP Import - Index

    Hi All I wonder if somebody can shed some light on the below; we are doing a system copy of Production BW to QA BW; on ABAP import phase we get an error in the log SAPAPPL1.log (The Database being used is MAXDB) ERROR : Execute for create index /BI0/

  • IDoc from R3 to CRM in status 52. Employee does not have central person

    Hi All, I have a requirement wherein I have to replicate R3 HR Org Structure O-S-P in to CRM system. IDocs for Org Unit and Position are getting posted successfully and I can see that structure in CRM system as well. But when I am trying to assing pe

  • I am having problems downloading itunes to Windows 8.

    It says iTunes installer completed. Then it says "the installer encountered errors before iTunes could be configured. Errors occured during installation. Your system has not been modified. Please run the installer again, ot click finish to exit". I h

  • N80 IE

    I am planning to buy N80 to replace my 2yr-old 3230 s60 2.0 phone. I have read lots of review on nokia phones and i like N80 the most. however most of review mention this phone to be buggy and lagging, also the batteries life is short. I noticed that

  • Remove dots on a dark background photo? Please help!

    Hello, I'm a newbie! I'm desperately trying to make a slideshow of my daughter's wedding to show at her reception next week. I have Iphoto 8 and the newest Aperture and also Photoshop ELements 4. I'm using an Apple I Mac. I have a couple questions: 1