Differences in SQL between Report Designer and RDC

Post Author: GarethThom
CA Forum: Data Connectivity and SQL
Using Crystal Reports v10 SP6, we have created a report that can show a retrospective aged analysis of supplier invoices based on a Comparison Date parameter.  The data is in a Microsoft Access database.  In the Record Selection Criteria we have the following criteria:
{Transactions.TranType} in &#91;"SA", "SO","ST", "SN", "SR"&#93;And {Transactions.InvoiceDate} <= {?ComparisonDate}And ({Transactions.PaymentDate} = CDate(0,0,0) Or {Transactions.PaymentDate} > {?ComparisonDate})
The idea being that we want all Invoices (of a certain type) dated up to and including the Comparison Date parameter and where either the Invoice has not yet been paid or was paid after the Comparison Date, i.e. the outstanding/unpaid Invoices at that point in time.
When run within the Report Designer everything works perfectly.  When we view the SQL Query used to bring the data back it says:
WHERE  (`Transactions`.`TranType`='SA' OR `Transactions`.`TranType`='SN' OR `Transactions`.`TranType`='SO' OR `Transactions`.`TranType`='SR' OR `Transactions`.`TranType`='ST') AND `Transactions`.`InvoiceDate`<#2008-05-07 00:00:00#
The PaymentDate part of the criteria is obviously evaluated within Crystal once the data has been retrieved from the database.
However, when run through the RDC using VB6 SP6 the following SQL Query is used:
WHERE  (`Transactions`.`TranType`='SA' OR `Transactions`.`TranType`='SN' OR `Transactions`.`TranType`='SO' OR `Transactions`.`TranType`='SR' OR `Transactions`.`TranType`='ST') AND `Transactions`.`InvoiceDate`<#2008-05-07 00:00:00# AND ((`Transactions`.`PaymentDate`>=#1899-12-30 00:00:00# AND `Transactions`.`PaymentDate`<#1899-12-30 00:00:00#) OR `Transactions`.`PaymentDate`>=#2008-05-07 00:00:00#)
Which returns no records.
The reason we are using CDate(0,0,0) to check for an empty date is that if you have "Convert Database Null Values to Default" ticked it does not seem to handle using IsNull({Transactions.PaymentDate}) in the Record Selection Criteria - no records are returned (in the Report Designer) even though if you copy the SQL Query and run in directly in the database it returns records.  As soon as you untick the flag the correct records are returned.
So, is there a fix for this problem or does anyone have any alternate ideas as to how this "null/empty date" scenario could be handled?
Thanks,

Please check the below links to understand difference between Query designer and report designer:
http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a5680e09411d2acb90000e829fbfe/frameset.htm
and
http://help.sap.com/saphelp_nw70/helpdata/EN/c8/2d1442505d5033e10000000a155106/frameset.htm
Nitika

Similar Messages

  • Font issue between Reports Designer and Report Output

    Hi.
    I've succesfully migrated several reports from 6i to 10g (10.1.2.0.2) with and without parameter form. However, I have the following font issue:
    - When report is run from Reports Designer, font is kept.
    - When report is run from a forms module (through rwserver on the same machine, that is not really from an application server, but using Oracle BC4J or Developer Suite enviroment) the report output is different. In this case a bigger font is displayed and occasional truncation happens for some fields.
    The question is: How can i avoid this difference in font behaviour?. Is it font.ali related?. How come this happen on the same machine(Windows XP)? These reports are to be deployed on Linux, where reasonably, and font machine is expected to happen.
    Font used: Arial (Occidental) 9

    this might be an issue with the printer that is associated also, and the permissions to the printer that you might have..
    login to the application server machine and restart the reports server as an admin..try running the reports via the URL..i have a feeling that this issue might be somethiing to do with the permission(s) to the printer from your AS machine

  • Differences Between Report Painter and Report Writer

    Hi,
    Anyone knows the differences between report painter and report writer?
    Thanks,
    CW

    Hello CW Teo,
    Yes report writer can be used in logistics also. One of the way which I am aware of is described below.
    Flexible analyses allow you to can tailor the way in which key figures are combined and aggregated. This means that it is possible to both provide administrators with detailed information and management with aggregated information.
    Flexible analyses enable easy access to the Report Writer, a user-friendly tool with which you can create reports for various analyses. The Report Writer is integrated in other SAP applications, such as Extended General Ledger and Cost Center Accounting.
    Evaluation structures form the interface to the Report Writer. Evaluation structures consist of characteristics and key figures and are easy to construct.An evaluation structure with the same name exists for each information structure in the standard system.Even the self-defined information structures created in Customizing can be evaluated via the flexible analyses.
    Evaluations:You can create an evaluation on the basis of the evaluation structure.
    To define an evaluation, all you need to do is select the characteristics and key figures you require (pick-up technique).One of the especially useful features here is that you have the option of tailoring the layout of your report to suit your particular requirements. You can also define extra key figures for the reports, which are derived from existing key figures by means of calculation formulas. You can thereby multiply the key figures or divide one key figure by another.
    ============================================================
    In addition to the above you can also edit a report in logistics module with the help of a report writer. below mentioned is the process for it.
    It is now possible to edit your report data using the Report Writer. You can also change the layout of the report. The most important functions of the layout design are summarized below.
    Summation levels:In the report screen, you can use the menu sequence View ->Summation level to specify the number of summation used to calculate total values. All totals that do not lie within the specified interval will be hidden. A summation level corresponds to a hierarchical level (for example, material level). Summation level 1 is the lowest hierarchical level. Summation level 2 is the next level up, and so on. The individual values are on the summation level 0.
    The summation levels can be specified both universally (for the entire report) or locally (for specific blocks of rows). In this case, the local settings overwrite global values.
    Report views:If a report is displayed on the screen, the Report Writer will then set page breaks so that exactly one page fits into the current window. This view will be defined as the standard view. As the Report Writer always processes exactly one page, you can only use the page keys and page icons to page up and down; the scroll bars cannot be used.
    The page view can be determined via Settings-> Page view. The page breaks in the page view correspond to those defined in the report layout.
    Hide and show rows:The function Edit->Hide rows exclude certain preselected areas of your report from the display. You can undo this command with Edit ® Show rows.
    Expanding and collapsing report rows:View-> Hierarchy->Collapse allows you to hide the report rows of the sub-trees that are located underneath. View->Hierarchy ->Expand allows you to undo this command level by level.
    If you want to display all the report rows that were hidden by collapsing the hierarchy or restricting the summation levels, select, View->Hierarchy-> Expand all.
    View->Collapse all allows you to reduced every row block to the highest summation level.
    Texts and Annotations:You can create an annotation for your report.
    Select: Extras->Annotation.
    You branch into the text editor of the Report Writer.
    Via the menu sequence Settings->Texts, you can create and format a title page, the last page, as well as headers and footers using word processing functions.
    For example, you can store variables in the header for the author of the report, the date of the selection or the name of the person who last changed the report.
    Layout parameters:Using the menu sequence Settings->Layout you can specify the page format, display form, rows and columns of the report according to your needs and you can determine the settings for the graphics function. You can make these layout settings with Report->Save settings.
    Hope I had been able to help you to some extent. please assign points as reward.
    Rgds
    Manish

  • What is difference between report programming and dialog programming?

    hi,
    what is difference between report programming and dialog programming? plz provide some example code
    bye

    ABAP programming
    Basically reports are used to read database and represent the results in lists.
    Reports are collections of processing blocks that the system calls depending on events.
    We can use reports to evaluate data from database tables.
    Reports are stand alone programs and controlled by events.
    A report itself never creates events
    steps in report:
    Processing the selection screen
    Reading the database
    Evaluating the data and creating lists
    Outputting a list.
    1st u write simple logics, after that u can enhance the code as step by step.
    http://venus.imp.mx/hilario/Libros/TeachYrslfAbap4/index.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm
    http://www.sapdev.co.uk/reporting/reportinghome.htm
    Dialog Programming
    Structure of a Dialog Program
    A dialog program consists of the following basic components:
    Screens (dynpros)
    Each dialog in an SAP system is controlled by dynpros. A dynpro (DYnamic PROgram) consists of a screen and its flow logic and controls exactly one dialog step. The flow logic determines which processing takes place before displaying the screen (PBO-Process Before Output) and after receiving the entries the user made on the screen (PAI-Process After Input).
    The screen layout fixed in the Screen Painter determines the positions of input/output fields, text fields, and graphical elements such as radio buttons and checkboxes. In addition, the Menu Painter allows to store menus, icons, pushbuttons, and function keys in one or more GUI statuses. Dynpros and GUI statuses refer to the ABAP/4 program that control the sequence of the dynpros and GUI statuses at runtime.
    ABAP/4 module pool
    Each dynpro refers to exactly one ABAP/4 dialog program. Such a dialog program is also called a module pool, since it consists of interactive modules. The flow logic of a dynpro contains calls of modules from the corresponding module pool. Interactive modules called at the PBO event are used to prepare the screen template in accordance to the context, for example by setting field contents or by suppressing fields from the display that are not needed. Interactive modules called at the PAI event are used to check the user input and to trigger appropriate dialog steps, such as the update task.
    All dynpros to be called from within one transaction refer to a common module pool. The dynpros of a module pool are numbered. By default, the system stores for each dynpro the dynpro to be displayed next. This dynpro sequence or chain can be linear as well as cyclic. From within a dynpro chain, you can even call another dynpro chain and, after processing it, return to the original chain.
    Check this link for basics.
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    Check this link for Dialog Programming/Table Control
    http://www.planetsap.com/Tips_and_Tricks.htm#dialog
    Check this SAP Help for Dialog Program doc.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    Check this SAP Help link for Subscreens.
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm
    Check this link for subscreen demo program.
    http://abapcode.blogspot.com/2007/05/demo-program-to-create-subscreen-in.html
    Also check this link too.
    http://abapcode.blogspot.com/2007/06/dialog-programming-faq.html
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld004.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/52/670c17439b11d1896f0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/52/670c17439b11d1896f0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ccf35c111d1829f0000e829fbfe/frameset.htm
    http://abapprogramming.blogspot.com/

  • Difference between Report painter and abap query .

    can anyone please tell me the difference between the report painter and the ordinary alv,clasical reporting and also the difference between Report painter and abap query. How the output format will be in Report painter. If anyone has any documents please send it to
    [email protected]
    Thanks,
    Joseph.

    hi,
    ABAP Query is an ABAP Workbench tool that enables users without knowledge of the ABAP programming language to define and execute their own reports.
    In ABAP Query, you enter texts and select fields and options to determine the structure of the reports. Fields are selected from functional areas and can be assigned a sequence by numbering.
    link for abap query --
    https://forums.sdn.sap.com/click.jspa?searchID=221911&messageID=2790992
    whereas the Report Painter enables you to report on data from various applications. It uses a graphical report structure that forms the basis for the report definition. When defining the report, you work with a structure that corresponds to the final structure of the report when the report data is output.
    link for report painter --
    https://forums.sdn.sap.com/click.jspa?searchID=221874&messageID=1818114
    Regards,
    pankaj singh
    Message was edited by:
            Pankaj Singh
    Message was edited by:
            Pankaj Singh

  • Report Designer  and Query Designer in BI 7.0

    Hi friends,
          what is the use of  Report Designer  and Query Designer.. and what is the difference between  these two..
        I know about  Analyser... that is used for designing a query and we can analyse (or) see the result of that query in that  window....
         then what is  the use of Query Designer... can you  give me the brief  introduction abt that...  if any documents plz farword  to me..
    my mail id--- [email protected]
    thanks
    @jay

    Hi Ajay,
    Report Designer is a newly added feature in BI 7. This helps to do cosmetic changes to the report, change the fonts, add colors etc. Please check this link for more info on Report designer.
    http://help.sap.com/saphelp_nw04s/helpdata/en/17/16d941de405f24e10000000a1550b0/frameset.htm
    Query Designer, is where you develop, edit your queries.
    Analyzer, is where you execute the query and analyze the results.
    Hope this helps.

  • Sql server reporting services and coldfusion

    I want to using sql server reporting services ,and create report after i want to call this reports in my coldfusion page.is it possible

    Hi,
    Please try setting the credentials of the datasource.
    1. Double click and open the datasource in your project.
    2. Click on the credentials tab, and click on option button 'Use this username and password'
    3. Enter the username and password to connect to the datasource
    4. Deploy or upload the datasource to the report server and try accessing the reports.
    Hope this helps.
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
    BH

  • What is the difference, if any, between Photoshop CS6 and CC?

    What is the difference, if any, between Photoshop CS6 and Photoshop CC?

    Thank you, Garima. This helps!
    Larry
    Date: Thu, 13 Feb 2014 14:14:08 -0800
    From: [email protected]
    To: [email protected]
    Subject: What is the difference, if any, between Photoshop CS6 and CC?
        Re: What is the difference, if any, between Photoshop CS6 and CC?
        created by Garima.J in Photoshop for Beginners - View the full discussion
    Hi LarryMeikle
    The biggest difference between Photoshop CS6 and Photoshop CC is that Photoshop CC is subscription-based--you have to subscribe to Adobe's Creative Cloud service to use it.  Also, Photoshop CC includes new features that were not in Photoshop CS6.
    Let us know if that helps.
    Thanks!
    Garima
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6118812#6118812
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6118812#6118812
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6118812#6118812. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop for Beginners at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • SAP SD--Difference of upgrade between SAP4.7 and ECC6.0

    Hi friends,
    Somebody can pls tell --Difference of upgrade between SAP4.7 and ECC6.0 in terms of sap SD module or any links for this.
    Rahul

    Hi Rahul,
    Your question is a little general...Maybe you could go to sap help portal to search for the documentation for upgrading to 600.
    As I know, we have some new functionality in release 600. For example, shipping point determination with storage location, automaticly outbound delivery creation after saving stock transfer order...
    Also the screen is different for most list transactions like VA05.
    Regards,
    Smile

  • 3.     What is the difference, if any, between a Workset and a Role?

    3.     What is the difference, if any, between a Workset and a Role?

    Hai
    Pls check these links
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/bceaffeb8c114ebef8255b63079c7c/frameset.htm
    http://www2.sapdesignguild.org/resources/ma_guidelines_3/introduction/what.html
    Reward points if helpful
    Regards
    Nissy

  • Difference between database design and schema design

    Hi i have visited so many database websites and i found so many people saying we can design a data base for you. Is schema designing and database designing is the same. so many palces i find people saying we have to design data base first in order to create a physical databse. so i am little bit confused. are they same? and also what is the difference between data model and schema?

    > the definition i found for logical data model, physical data model and the definition you
    gave for logical database design, physical database design are the same.
    Not correct. The physical design is the implemetation of the logical design. These two designs are at different levels. Also, the logical design will be the same. irrespective of the RDBMS product use.
    What is incorrect is a designer/architect designing a logical design specifically for Oracle.. or specifically for SQL-Server. A logical design has nothing to do with the RDBMS product (or h/w platforms. app servers, web severs and operating systems used).
    So the logical design will always be the same - it is RDBMS independent.
    The physical design is fully dependent on the RDBMS product used. The same logical design will be implemented as different physical designs for Oracle and for SQL-Server.

  • Difference between report mc49 and MC48

    HI,
    i would like to display stock value (in order to date and purchase group) in report MC48 and MC49. The value is different becouse report MC48 shows average stock value and mc49 just stock value. What arleady means "average stock value"? What is the difference between stock value and average stock value?
    Thanks in advance
    Kasia Gac

    Hi Kazia,
    MC48 shows the stock value at the end of the period you enter on the selection screen. The default here is the last 3 months.
    MC49 shows you the average stock value for that period.
    Best,
    Ralf

  • What is the major difference in MM between R/3 and ECC?

    what is the major difference for MM module if any between R/3 and ECC?

    Hi,
    Pickup list - Batch where-used list display in transaction MB56
    Usability enhancements for transaction MIGO for the posting of goods movements
    New report : display list of invoice documents (MIR5)
    Requirement prioritizations in materials management
    Mass maintenance of outline agreements
    Commitment plan for purchase contracts
    Availability check in "Enjoy purchase order and requisition"
    External services: putting service items in the purchase order on hold (changed)
    Customizing transactions OX18 replaced by view
    Goods receipt: new movement types in inventory management
    Prepayment of invoices
    Purchasing accounting information to the former SAP Business Information Warehouse
    Automatic settlement of planned delivery costs with evaluated receipt settlement (MRDC)
    Parking service items
    Report MB5B : Stock on Posting Date
    Stock Transfer Between Storage Locations

  • Differences in NLS_LANGWE8ISO8859 between Oracle 8i and Oracle 9i or higher

    Are there any differences in NLS_LANG WE8ISO8859P1between Oracle 8i and Oracle 9i or higher?
    please, there is a document that explains what.
    thank you very much.

    Ok,      
    I want to know whether there was any difference when using this NLS_LANG between 8 and oracle 9.
    I read many documet about unicode, but i want to know this question.
    If NLS_LANG is a standard there isn´t changes between the to versions.

  • Difference of balance between Sub Accounting and General Accounting !?

    Hi,
    i have a difference between the sub and the general accounting, the correct balance is in the general accounting.
    When i show the balance of the sub accounting with the Tcode FK10N i find that the difference comes from the last year, there is a balance of 10.000 Euro that is already cleared but it is still apearing in FK10N and in other Tcodes of sub accounting.
    Please how can i solve that ?
    Regards.

    F.07 is the Balance Carry Forward; it copies the suppliers (and customers) balances from one year to the next one (tables LFC1, LFC3, KNC1, KNC3).
    You should check that the opening balance of one year is the same as the closing balance of previous year. If it is not true, F.07 should repair the data in the tables.

Maybe you are looking for