Crystal Report Formulare - Artikel werden doppelt ausgewiesen

Hallo zusammen,
in allen Crystal Reports Einkaufs- und Verkaufs-Formularen werden die im B1-Beleg erfassten Artikel verdoppelt, also aus einer Zeile werden zwei  Positionen mit identischem Inhalt gemacht.
Dies trifft sowohl für die von SAP standardmäßig ausgelieferten Formulare als auch auf die kundenindividuell gestalteten zu.
Ruft man die Vorschau über den PLD auf, tritt dort das Problem nicht auf. Auch in der Testdatenbank kommt es bei den Crystal Report Berichten nicht zum geschilderten Problem.
Hat jemand mit diesem Spezialproblem schon eine Erfahrung gemacht?
Vielen Dank für eure Hinweise im Voraus
Milan Paul

Hallo Milan,
versuche mal im CR für SAP unter Datenbank / Datenbank-Assistent die Verknüpfungen der Tabellen zu analysieren.
Vielleicht hilft auch ein Test der unter Datenbank / Abfrage erzeugten  SQL-Abfrage in einem externen SQL-Programm (z.B. SQL Management Studio) laufenzu lassen oder du kopierst die SQL-Abfrage in das SAP-eigene Abfragefenster des Reportgenerators und testest es dort aus.
Viel Erfog

Similar Messages

  • Import in Crystal Report

    So... und nun gleicht das nächste Problem,
    da wollte ich mir die Crystal Report Samples einverleiben und benutzen, die hier netterweise von Hilko Müller zur Verfügung gestellt wurden. Habe auch brav gedownloadet und entpackt und dann dies...
    ... Die Dateiendung '.rpt' kann ich gar nicht importieren...
    Bei mir steht da: '.ixr'
    Kann mir mal jemand sagen, was ich da schon wieder falsch mache ?
    Danke im Voraus....

    Hallo,
    die ixr-Dateien sind normalerweise XL-Reporter Berichte. Im XL Reporter können natürlich keine Crystal Reports-Samples importiert werden...!
    Die rpt-Dateien können nur in Crytal Reports importiert werden...! Oder reden wir jetzt aneinander vorbei...!?!
    Gruß
    Jacqueline

  • Fehlermeldung bei Vesuch, Crystal Reports Beleg anzuzeigen

    Hallo zusammen,
    beim Versuch, in einem frisch installierten 8.81 System eine Belegvorschau über das hinterlegt Crystal reports Formular zu erzeugen, erscheint nach einer "gefühlten Ewigkeit" die Fehlermeldung: "Objektverweis wurde nicht auf eine Instanz festgelegt" und nichts geht
    Vielen Dank für eure Hilfe im Voraus
    Milan

    Hallo Milan,
    versuche mal im CR für SAP unter Datenbank / Datenbank-Assistent die Verknüpfungen der Tabellen zu analysieren.
    Vielleicht hilft auch ein Test der unter Datenbank / Abfrage erzeugten  SQL-Abfrage in einem externen SQL-Programm (z.B. SQL Management Studio) laufenzu lassen oder du kopierst die SQL-Abfrage in das SAP-eigene Abfragefenster des Reportgenerators und testest es dort aus.
    Viel Erfog

  • How do you reference a Formular Object on a Crystal Report using Java

    Hi all,
    I am trying to reference an object on my report which contains a Formula field.
    I have read the following 2 threads, but they refer to textObjects:
    [How do you reference a textObject on a Crystal report using Java|Re: How do you reference a textObject on a Crystal report using Java?]
    [Changing the text of ITextObject programatically|Re: Changing the text of ITextObject programatically]
    But I cannot even get those to work. I can reference a object which refers to a database field but as soon as I try
    reference a textObject or reportObject I just get a NULL variable.
    Below is the code I am useing
    IReportObject dbField = reportClientDocument.getReportDefController().findObjectByName("BOB1");
    IReportObject textBob = reportClientDocument.getReportDefController().findObjectByName("BOB2");
    "BOB1" is the name of my DB field Object, and "BOB2" can be a Text box or a Formula item and I just get nothing.
    I have just tested it with a FieldHeadingObject and that returns a valid object, so clearly I am going about this the wrong way
    for objects I place on the reports which are not driven by the database items.
    Ultimately what I want to do is reference an object in the Report Footer which will contain the RecordCount of the number of
    records contained in the report, which I am them going to use to determine if the report holds data,
    if it does I will print it, else ignore it and move on the the next report. I am doing this so that I can at an extra filter to split
    a report up into groups and produce a sinlge PDF for each group instead of one massive PDF containing all the groups.
    So if someone has a solution to any of my problems I would be very greatful, and I dont mind being told Im an idiot and should
    rather do it another way, as long as you supply that other way
    Thanks for the help
    Darren
    Edited by: Darren Jackson on Dec 16, 2009 7:29 PM
    Forgot to add am using CR4Ev2 SP3

    Right I have made some headway.
    Firstly, Im an idiot. I was making changes and setting up test fields on my report, but then when running the app, I had it looking at
    the backup report, which would explain why all the new textbox fields were not being found.
    The stupiditity did force me to delve deep and work out a fair bit of how the reports work, so cant complain too much. BUT, I am still
    not able to return values of Formula fields and formulas extra. Could someone tell me if this is even possible. I get retrieve the formula field
    name, and properties but not its value once the report has been populated. Am I wasting my time?
    Well I will continue dismantling my reports till I find the answer, or someone points me in the right direction.
    If any one is interested this is the code I used to drill down to my text boxes:
    IReportObject recCount = reportClientDocument.getReportDefController().findObjectByName("TB1");
    ITextObject obj_RecCount = (ITextObject) recCount;
    System.out.println(obj_RecCount.getName());
    Paragraphs objP = obj_RecCount.getParagraphs();
    for (int i = 0; i < objP.size(); i++){
         ParagraphElements pE = objP.getParagraph(i).getParagraphElements();
         for (int j = 0;j < pE.size(); j++){
              IParagraphTextElement pEE = (ParagraphTextElement) pE.getParagraphElement(j);
              System.out.println(pEE.getText());
    Cheers

  • Crystal report 2008 for B1 hyperlink to purchase order window

    HI all,
    I am developing a crystal report in sap business one 8.8. I read SAP document '"How to working with crystal report in sap business one"  I know we could link report field to Item master data window use 'http://$b1$/link?table=OITM&key='+{POR1.ItemCode}
    I also can use 'http://$b1$/link?table=OCRD&key='+{OPOR.CardCode} to link to business partner window.
    But I have trouble use purchase DocNum to link to purchase order window. First I get error of formular require string when use
    'http://$b1$/link?table=OCRD&Key='+{OPOR.DocNum}
    I did some search and found ('http://$b1$/link?table=OINV&key=' & totext({OINV.DocNum},0)). I add totext into my formular
    'http://$b1$/link?table=OPOR&Key='+totext({OPOR.DocNum},0)   
    I run that report and get IE open when click DocNum  with   http://$b1$/link?table=OPOR&Key=9,917   rather than open purchase order window.
    Please help me crystal report experts. I know I must miss something in there.

    Hi Rob,
    thanks very much for your help. that is working Now.
    I post the hypherlink code here. I hope that will be useful for someone.
    if {Command.ObjType}='22' then 'http://$b1$/link?table=OPOR&key='+ totext({Command.DocEntry},0,"","") // link purchase order
    else if {Command.ObjType}='20' then  'http://$b1$/link?table=OPDN&key='+ totext({Command.DocEntry},0,"","")// link good receipt
    else if {Command.ObjType}='21' then 'http://$b1$/link?table=ORPD&key='+ totext({Command.DocEntry},0,"","")// good retun
    else if {Command.ObjType}='18' then 'http://$b1$/link?table=OPCH&key='+ totext({Command.DocEntry},0,"","") // A/P Invoice
    else if {Command.ObjType}='19' then 'http://$b1$/link?table=ORPC&key='+ totext({Command.DocEntry},0,"","")  // A/P credit memo

  • Crystal Reports Server XI 2008 R2 - Problem

    We have installed the "Crystal Reports Server XI 2008 R2" and registered the product,  if we try to generate the crystal report at the server, it gives the below error message (Message logged at the following path C:Program FilesApache Software FoundationTomcat 5.5logs)
    Message:
    Alle 0 Lizenzen für den gleichzeitigen Zugriff (Concurrent Access Licenses) werden derzeit verwendet, oder der Lizenzschlüssel für Ihr System ist abgelaufen. Versuchen Sie es später noch einmal, oder wenden Sie sich an Ihren Systemadministrator, um zusätzliche Lizenzen zu erhalten
    Could you please let us know what may be the problem

    Thanks for the information.
    Actually we do not find "Central Management Console" in Start/Programme/Crystal Reports Server 2008/Crystal Reports Server 2008/.
    We also tried using the http://webserver:8080/CmcApp/ by providing the correct hostname and also with the IP address; but we get a webpage not found error.
    Could you please help us. We are not able to find Central Management Console.
    Thanks is advance!!!!

  • Crystal Report 11 Server License Problem

    Hello,
    We installed Crystal Report 11 server, In CMC we the license information is displayed as
    Gesamtzahl der lisenzen - 5
    Does this mean we have 5 licenses?
    We tried to excute our application (which was working fine with Crystal Report X) , but we get an error as given below:
    "Alle 0 Lizenzen für den gleichzeitigen Zugriff (Concurrent Access Licenses) werden derzeit verwendet, oder der Lizenzschlüssel für Ihr System ist abgelaufen. Versuchen Sie es später noch einmal, oder wenden Sie sich an Ihren Systemadministrator, um zusätzliche Lizenzen zu erhalten"
    Could anyone help on the possible solution. Does the above error mean we do not have Concurrent Access Licenses
    Thanks in Advance!!!

    Please re-post if this is still an issue to the Business Objects Forum or if you have a valid support contract create a case on line.

  • Crystal Report 2013 memory problem

    Hi,
    I am developing a Windows service. The service calls Crystal Report to generate PDFs. When a new contract appears in database (MS Access), the service reads contract number and build a formular. Then pass the formular to ReportDocument. The code looks like this
    using (ReportDocument report = new ReportDocument()) {
      report.Load("contract.rpt");
      // some initialize report
      foreach (var contract in contracts) {
        report.RecordSelectionFormula = BuildFormular(contract);
        report.ExportToDisk(ExportFormatType.PortableDocFormat, BuildOutputFilename(contract));
      report.Close();
    It works fine. When deploy on production, I want the location of Access file can be changed programmatically. So I modified the code
    using (ReportDocument report = new ReportDocument()) {
      report.Load("contract.rpt");
      // some initialize report
      foreach (ReportDocument subreport in report.Subreports) {
         foreach (Table table in subreport.Database.Tables) {
           table.Location = MdbPath;
      foreach (Table table in report.Database.Tables) {
        table.Location = MdbPath;
      foreach (var contract in contracts) {
        report.RecordSelectionFormula = BuildFormular(contract);
        report.VerifyDatabase();
        report.ExportToDisk(ExportFormatType.PortableDocFormat, BuildOutputFilename(contract));
      report.Close();
    It works but memory increases over time. Here are Private Bytes (I use Performance Monitor tool)
    10:45 - 58.000MB
    11:00 - 61.801MB
    11:15 - 64.611MB
    11:30 - 65.544MB
    11:45 - 65.716MB
    12:30 - 69.095MB
    I also attached some screenshot of report of DebugDiag tool.
    My environment:
    Net framework 4.5
    Tool runs as Windows Service
    Crystal Report 2013 (Crystal Report Runtime 32bit 13.0.10.1385).
    Database: MS Access/OleDb
    Any suggestion?
    Many thanks

    Hi Ludek,
    I wrote 3 tests. You can get detail here:
    https://dl.dropboxusercontent.com/u/4059883/WinFormSavedData.zip
    https://dl.dropboxusercontent.com/u/4059883/WinFormSavedData.Statistic.docx
    https://dl.dropboxusercontent.com/u/4059883/WinFormNoSavedData.zip
    https://dl.dropboxusercontent.com/u/4059883/WinFormNoSavedData.Statistic.docx
    https://dl.dropboxusercontent.com/u/4059883/WinFormChangeLocation.zip
    https://dl.dropboxusercontent.com/u/4059883/WinFormChangeLocation.Statistic.docx
    Here are summary:
    Tests are a Windows Form apps with one main form which has one button. If we click on the button, it call Crystal Report to generate 100 pdf. The Access database is simple - one table which has 10 records.
    Test case 1 - Saved data report.
    I clicked 7 times (700 pdf created). Memory increase from 40.177 MB to 43.347 MB
    Test case 2 - No saved data report
    I clicked 10 times (1000 pdf created). Memory increase from 41.123MB to 42.835MB
    Test case 3 - No saved data report and change location
    I clicked 10 times (1000 pdf created). Memory increase from 52.412 to 54.063MB
    Because I am developing a Windows Service and it runs 24/7, I expected that memory should not increase over time. My service runs 2 or 3 days and Crystal Report throws exception "Not enough memory for operation"
    00:00:11,276 [Worker-8] ERROR e.PdfGenerator.PdfGeneratorJob - Error while generating pdf
    CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException:
    Not enough memory for operation.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)
    Thank for all advice
    Vi

  • Crystal Reports in B1 Verbindungsfehler

    Hallo,
    habe heute meinen ersten Versuch gestartet meine existierenden Crystal Reports in SAP B1 eiunzubinden. Nach dem Import zu Geschäftspartner / Elektronische Berichte / Neuer Ordner kann ich den Bericht anklicken. Dann werden auch die Parameter abgefragt. Allerdings folgt dann eine Fehlermeldung: "Fehler beim Öffnen der Verbindung". Diese Meldung kommt 2 mal. Danach noch RCRI0004 und in Klammern anscheinend eine interne Nummer für meinen Bericht gefolgt von .rpt
    Im Stand Alone Crystal Report 11 läuft der Bericht einwandfrei. Im SAP Crystal Reports 8 ebenso. Auch ein Abspeichern mit CREP 8 bringt keine Änderung. Und in Der Systemsteuerung (Windows 7 64-bit) ist sowohl die System DSN als auch die Benutzer DSN mit dem Knoten sap eingerichtet (die auch so in CR benannt ist).
    Vielen Dank für jegliche Ideen zur Lösung.

    Hi
    Common issues for this :
    1. Once you install crystall add on ,you need to go to Crystal report Administration >Account setup .
    Put on the user name and password and click on creating ext tables
    Try then running the report .
    If not the case ,
    make sure you install runtime .
    You need :
    1.Crystal report basic from SAP download -(Not necessary if you want only report viewer >
    2.You need to have crystal integration addon (I think service pack is SP1)
    3.Make sure you have runtime install
    When you are installing ,make sure you restart your PC before you do or remove temporary file s
    Hope this solves your issue
    Bishal

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Sales quote layout rows doubled in crystal report layout

    Dear All,
    Sales quote layout rows doubled in crystal report layout.
    In sales quote layout the rows are doubled. Even in the standard layout. If the quote contains only two rows. Then it is doubled as 4 rows in the crystal report layout.
    It is happening in the particular database. Other database are working fine. I request you people to help me to overcome this issue.
    Regards,
    Siva

    Hi Siva,
    If this is regarding CR in SAP B1 then please repost to the SAP Business One Application space.
    -Abhilash

  • 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

  • SQL Connections remain open after Crystal Report closes

    I am wirting an interface to use the crystal report viewer to print reports, connecting to a Progress Open Edge 10.1B database.  From our application we declare the application, report, exportoptions and connectionproperties objects and pass these to the crystal reports viewer.  Once the report is printed we release the objects and set their variables for null.  However we are finding that the SQL connection to the database is remaining connected and we can only release the connection by manually going in a disconnecting.
    I have read in forums that people use .dispose or .close to release the connection, however we do not have access to these methods as we do not use .NET.  Are there any methods we can use to disconnect these sql connections?

    Hi Dean,
    Moved to the Legacy Application forums. Likely using the RDC as your report engine.
    You should still be able to close and dispose of the report objects. They are not specific to .NET.
    In VB it would look something like these lines::
        crReport.Close
        Set CrystalActiveXReportViewer1.ReportSource = Nothing
        Set crReport = Nothing
    Once the report is closed it should disconnect from the DB. If you close the application does that disconnect?
    Have you looked on 4GL's site for info on how to?
    Thank you
    Don

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

  • Exporting Crystal Report to HTML is not working in Windows 7

    Hi Sir,
    I am trying to export Crystal Report to HTML format using VB.NET code. Functionality is working fine at Windows XP Environment (Save to Disk, Open an Application and Email Attachment). But the same functionality is not working at Windows 7 Environment (both 32-Bit as well as 64-Bit).
    Below is the code to Exporting Crystal Report to HTML in VB.NET.
    Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions
    Dim CrFormatTypeOptions          As New HTMLFormatOptions
    Dim vFormat As Integer
    Dim CrExportOptions As New ExportOptions
    Dim vRdReport As New ReportDocument
    Dim sfd As SaveFileDialog
    Dim vFileName As String = Nothing
    vRdReport = vRptSource
    sfd = New SaveFileDialog
    If Not (vRptPath = "") Then
        sfd.InitialDirectory = vRptPath
    End If
    sfd.Filter = "Webpage, Complete(.htm;.htm)|.htm|Web Archive, Single file(.mht)|.mht|Webpage, HTML only(.htm;.html)|.html"
    If sfd.ShowDialog = DialogResult.OK Then
        ' Set the disk file options.
         CrDiskFileDestinationOptions.DiskFileName = sfd.FileName.ToString()
    Else
         Return
    End If
    CrExportOptions = vRdReport.ExportOptions
    CrFormatTypeOptions.HTMLFileName = vFileName
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLHasPageNavigator = True
    CrFormatTypeOptions.UsePageRange = True
    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.HTML32
                        .DestinationOptions = CrDiskFileDestinationOptions.DiskFileName
                        .FormatOptions = CrFormatTypeOptions
    End With
    vRdReport.Export()
    Catch ex As Exception
            MsgBox(ex.ToString)
    End Try
    Code working fine at Windows XP, But it is not woking in Windows 7 environment.
    Please can anyone share your valuable thoughts or ideas reg. this.
    Thanks in Advance
    Deivanayaga Perumal D.

    user13509659 wrote:
    Run this code to reproduce the issue.Which issue?
    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
    EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
    Edited by: jduprez on Feb 10, 2011 1:01 PM

Maybe you are looking for

  • Batch processing photographs in Photoshop Elements 11

    Hi everyone, I've been scanning in a lot of old photographs of late.  Many (probably all) of them would benefit from application of the "dust & scratches" filter, but it doesn't appear as an option in the "process multiple files" pull-down.  I've hea

  • Status of Purch Req

    Hi, On SAP release 46C the processing status of a purchase requisition is not updated during the creation of a contract. When I create a contract WK from a PR NB, the staus of Purch Req display only "Contract Created" but not displays the details of

  • ITunes 10.4 on OS X 10.5.8 shuts down immediately after opening

    I have a MacBook with OS X 10.5.8.  I had not used it for several weeks, so when I used it again last Monday Aug 1 it downloaded several updates.  After that, iTunes behaved weird:  artwork didn't show up.  Then it just quitted and, when trying to op

  • You do not have access to any End User Layer tables

    Hello Guru's! I'm having an issue with connecting/using EULs on Disco 10g - I have already installed 10g Admin and configured 2 EULs and also imported the sample data - they are all owned by DISCO user - When I connect to http://discoserver:7778/disc

  • Product Value

    Hi All, I have some doubt on product workbench in SRM (COMMPR01). How the price on the purchasing tab(Condition Price) is updated ?. I know it's coming from backend, But how it working ? How we can transfer purchasing tab price for new materials ? Re