Crystal report parameter usage

Hi all,
I am facing a issue in designing crystal report. I want to display records in report as per user entered value of date parameter but  in database if data is not present for given input date value then the report should run for value which is one older than given input date value which is present in database (In short, report run for near by older value than input date value if record is not present for entered input value)  .
How to do it in crystal report.
Please help.
Any comment is valuable.
Thanks

You can try this - In your sql query select data for both the dates - input date and next higher date (something like where sale_date = {input date} or saledate ={input date}+1)
In Crystal do a record select filter to display the data for input date
For eg:
if sale_date ={input date} then
    if count(sale_id) is not null then 'sale amount'
else ' '.
Basically use the idea not sure about how to put it in syntax without looking at other report elements....Hope it helps

Similar Messages

  • Crystal report parameter problem while uploading in sap business one

    Hi
    All
    I designed a crystal report using
    stored procedure
    and
    Routemas user defined table
    in sql server with three parameter
    routname,from date,to date
    these parameters are from storedprocedure only but not created in report
    i set the parameter routename  as dynamic and i assigned the routename field from routemas table
    when i run the report in the parameter window it displays the list of routenames
    upto this is k but
    when i upload this report in sap business one 8.81 PL-05  and
    run this report in sap environment First it asks parameters there
    it didnt display the list of routnames
    when the parameter routname is set as static and assign some  routenames manually
    then it shows the list in sap environment
    Can any suggest the answer
    Edited by: madhu ganga raju on Oct 17, 2011 7:06 AM

    Hi Rhaul,
    i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
    Or as a workaround,
    try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
    Regards,
    D

  • Crystal report parameter issue in SAP B1 8.8

    Hi Experts,
    We are facing following issue in Crystal report SAP B1 8.8 version
    Can not open crystal report without mentioning optional parameters.
    User is forced to mention all parameters
    User should allow to open crystal report by mentioning mandetory parameters
    if We set for the parameter value of field [Optional Prompt] to 'True' and then preview in SAP Business One, then although the dialogue is displayed,  click 'OK' without populating the parameter value, the report is run
    but in our case we are passing parameters through Stored Procedure and this option is block in report to do so.
    means that option available to make optional true / false is block and we are not able to do anything.
    Pls. provide solution
    Regards
    Kamlesh Vagal

    Julie.
    This change has already occurred?
    Thanks.

  • Crystal report parameter asking for DB login

    Hi All,
    I have created a crystal report in 2008, in my crystal reprot i have a command which gives me 2 columns and a stored proced which give me 6 columns and then i joined them in link tab.
    Now in my report i have created a parameter using one the column from command. The data source for both are same database but diffrent tables.
    When i exported the report to enterprise and try to schedle it, for parameter option when i try to edit the parameter it promps me for database logon every time (i.e. every time i edit parameter it promps for Db logon) and i have already provide DB creds in database information page.
    BOXI R3.1 with no FP.
    please suggest on this.
    Thanks,
    Nimesh.

    In CMC, what option did you select on the Database Configuration section of the report properties?
    If it is " Prompt users for database credentials", then it'll prompt users for credentials whenever the report is run.
    If it is set to " use same credentials as above" (not exact wording), then it don't ask for credentials.

  • Crystal Report Parameter not showing in IPAD

    Hi All, 
    I create simple Purchase register report  by using Crystal report with date parameter
    My problem is that report not working on Ipad and its showing blank space .  
    The report working fine on ipad when i run report without parameter.
    Kindly tell me solution.

    Hi Rajesh,
    I am new to this Mobility..What is integration service upgrade..
    Currently we are using
    SMP Legacy connection typ1.
    BO version is 4.1 SP02.
    App is 6.0.6
    Please advise on this issue...and the steps which you have used..

  • SAP B1 suspends when Crystal Report parameter screen appears

    Crystal Report Add On is installed to my SAP B1 2007B (patch 10) system.
    When I run a CR report, a parameter screen appears for me to enter required parameter values. The system seems suspended to all other B1 users until I submitted the parameter values.
    Any idea of why this happens? And how to prevent this?
    Thank you.

    Hi,
    Is the addon download from SDN or developed by yourself?
    If it is developed by yourself, please make sure to open the CR report in another thread.
    You got to separate B1 Event Routine and Window Form Event Routine in different Thread.
    Otherwise one will be hung.
    Regards, Yatsea

  • Regarding Crystal report  parameter from and to.

    hi.
    I am having one requirement ie.
    Normally we are giving..i.e
    We are using parameter in Sap b1 like Docentry
    Based on this one Docentry the data will fetch from the data base and it will shows into the sap crystal reprot
    suppose Ex Docentry = 3 then it will show the data.. then
    but ring now what i nee dis  Docentry from and to
    fromdocentry = 1
    todocentry  = 5
    so, 1,2,3,4,5 five documents should be generate one by one in crystal report in single crystal report not 5 pdf files single pdf should have 5 doc entries
    Is it possible how can i do it.
    how can i do it...

    Hi
    I think it is not possible from Crystal Report but below discussion indicates it is possible through some Crystal Report SDK tool.
    Exporting a Crystal Reports file into multiple PDF's
    How to export a crystal report into several pdf files then email them to several email addresses
    With Regards
    Balaji Sampath

  • Crystal Report parameter creating pages of lists to choose from

    Hi All,
    We have created a crystal report to produce statements for customers. We have added a dynamic parameter so the user can choose which BP Codes they want to run the report for, but the report creates several pages of codes, so, the user has to look through the pages to find the code to select.
    Is there any way to stop the report from creating these pages? I have been unable to find any mention of these in the online help files.
    Thanks

    Hi Prem,,
    I have created a crystal report which contains a parameter to choose a BP Code to run it for.
    The parameter is a dynamic one, so it fetches the list from the database, however, instead of opening one drop down box to scroll & choose the BP, it creates 5 pages of lists, so the user first has to guess which page the BP might be on, then scroll through the page to find the code.
    I need to know if there is a way to change this behaviour in crystal reports.
    Thanks

  • Crystal Report - Parameter issue (advanced dialog box)

    In our wpf .net application we view the crystal report, the report prompts for entering 2 parameter values i.e 2 dates and inturn these parameters will be used to generate the crystal report.
    The parameter panel on the left has a button (show advanced dialog box). This button should again invoke the same parameter prompt dialog box, so that the user can modify these parameters and the report can be regenerated.
    Issue is that when I click on the the button, this generates a null reference exception in the code. The call stack is -
    at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowAdvancedDialog(ParameterUnit pu)
       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.pu_ShowAdvancedDialog(Object sender, EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterUnit.OnShowAvancedDialog(EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterUnit.editControl_ShowAdvancedDialog(Object sender, EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterValueEditControl.OnShowAdvancedDialog(EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterValueEditControl.btnShowAdvancedDialog_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Please note, I used the .net reflector to debug the crystal report dll , the isDCP method looks like -
    public bool isDCP
          get
            return (this.Attributes.Contains("IsDCP") && ((bool) this.Attributes["IsDCP"]));
    Looks like the attributes value is null.
    Please let me know your comments. Am I missing something while getting the report in the frontend.
    I use crystal reports 2008 sp 2 (also note that my gac contains different version of crystal reports (cannot remove them - tried it) , with windows server 2003. I use web service with proxy to get the report from the local server.
    Note I also tried to create sample application in which I specify the local path to reports source , this works. However when I tried to use webservice, i was getting soap exception.
    Please let me know how solve above issue

    So you found the Report Design forum, if you looked down one more you would have found the SDK forum, SDK stands for Software Development Kit if you did not know.
    Or did you not mention you get the same error when you run this report in CR Designer, if so then you were in the right forum.
    Try Service Pack 3 also
    Move to the SDK forums.

  • Crystal report Parameter binding issue with Liveoffice

    Hello,
    I have created a Crystal report on top of BW query. In crystal report when parameter is set to null the report gets all data from BW query.
    On inserting the same Crystal report to Live office document on binding the parameter i get the data for selected value for parameter but i am not able to set the parameter to null to get all the data from BW queries.
    Please help!
    Regards,
    Rahul Doshi

    Hi,
    I was able to solve the issue with the below code. I have added a parameter value as <Not Specifed> in paramter.
    if {?parameter1}='<Not Specified>' Then like '*' else
    ={?Parameter1} and
    if {?Parameter2}='<Not Specified>' Then like '*' else
    ={?Parameter2} and
    if {?Parameter3}='<Not Specified>' Then like '*' else
    ={?Parameter3} and
    if {?Parameter4}='<Not Specified>' Then like '*' else
    ={?Parameter4}
    This code works perfectly fine in crystal report. But when i bind the parameter with excel in Live office it gives me below error.
    Parameter has no value.
    Details: errorKind
    Error in File {7D9B961E-ADB9-4292-9DDE-A8D11B94D78E}.rpt:
    Error in formula  Record Selection:
    'if {?Sales Office}='<Not Specified>' Then {0SD_C03_ZQRY_0SD_C03_0011_BOBJ.D[0SALES_OFF]K} like '*' else
    Parameter has no value.
    Details: errorKind (LO 26603)  (6603)
    Please help.
    Regards,
    Rahul Doshi

  • Crystal Report parameter problem

    Dear experts,
    I created a crystal report to display a bill of material.
    To select the bill of material I created a paremeter ItemCode @SELECT * FROM OITM INNER JOIN OITT ON ItemCode = Code.
    Unfortunatly SAP shows ALL Items from The Item Master instead of showing only Items that are the Owner of a Bill of Material.
    Is there a way to solve this issue?
    Thanks
    Rüdiger
    Edited by: Rüdiger Frank on Apr 18, 2011 11:36 AM

    Hi,
    Try this
    ItemCode @SELECT * FROM OITT
    OR
    ItemCode @SELECT * FROM OITM INNER JOIN OITT ON OITM.ItemCode = OITT.Code
    Regards,
    Bala

  • Crystal report parameter defalut values in infoview

    Hi All,
                I am working on crystal reports, and  i have created a local variable in the crystal and set a default value. I aslo deploy it to the BO enterprise . When i open the report from the infoview, the default values which was set in crystal is not available.We can set this at the CMC level, but a developer may not have access to CMC other than Instance manager. Do we have any other option for the same to get the default values in infoview. Appreciate your help at the earliest.
    Thanks & Regards,
      Magesh Anandan.

    Hi Deidra,
    You can download latest service pack and hotfix from the following link:
    [https://www.sdn.sap.com/irj/boc/businessobjects-downloads]
    Have a look to Knowledge base article 1219377 - Error "ERROR: Thread was being aborted" in .NET InfoView .
    Hope this helps!!
    Regards,
    Shweta

  • Crystal Reports Templates usage - SAP BW MDX query data

    Hi Ingo,
    How are you?
    I am experiencing issues with crystal reports when trying to use crystal reports templates with SAP BW data.
    I have successfully created Crystal Report using SAP BW data with NodeID,  ParentNodeID hierarchy, Crystal Hierarchical Grouping.
    Also developed Xcelsius Dashboard using Live Office --> Crystal Report (SAP BW data) with refresh data on open.
    Now trying to create a template for new crystal reports to be designedu2026
    The following are observed by me:
    1.     When I create a crystal report using Report Wizard and select  templates from  the list shown, the following error displayed for SAP BW data:
    2.     When I try to apply template using Template Expert and selecting the report which is created using SAP BW data (and formatted), the following error displayed:
    u201CCould not apply template to the documentu201D
    I would like to know, whether there are known issues with Crystal Reports Templates using SAP BW data?  If so, could you suggest any solutions/work around to this issue?
    Thanks & Regards,
    S.Salai Manimudiyan

    I tried the following three methods:
    1. Applied all the 12 Crystal Templates
    2. Applied my own reports as Template
    3. Also applied Crystal Report developed using Templates Fileds.
    None of the above is working.
    Created a report with BW query data and try to apply all the above templates but the same issue.
    If I create a report using eFashion universe and apply all the above works without any problem.
    I do agree with you that templates should not depend on the data source, as it is mainly for the common/standard report page layout (to reuse)...
    Could you pl. check at your end and let me know the results.
    Thanks & Regards,
    S.Salai Manimudiyan

  • Crystal Report Parameter Default Value

    Hi All,
    I have one issues regarding the parameter in the report.
    I have two parameter field in the report. The scenario will be as below:
    In my report, i have mobile no & passport no parameter selection. Currently in my report, the selection was like below:
    {pax.mobile} = {?mobile} and
    {pax.passport} = {?passport}
    Formula above was placed in report's select expert. Each time user need to select or enter the two parameter above in order to select the entered data to be reflected into the report. However, my report REQUIRED to allowed null value from the parameter selection. I can enter mobile no but leave passport null, however with the formula above was unable to proceed to refresh the report. I have the formula as below, however it could not be able to work.
    (if(hasValue({?mobile}) = true) then {pax.mobile}  = '*ALL'
    else {pax.mobile} = {?mobile} ) and
    (if(hasValue({?patssport}) = true) then {pax.passport}  = '*ALL'
    else {pax.passport} = {?passport} )
    The formula above will display all of the records and sometimes it will b hung.
    Appreciated anyone who knows this able to advice.
    Thanks.
    Regards,
    CK

    hi,
    Thanks for your feedback.
    I have try one of the example below:
    if(hasValue({?Country})=false) then true
    else {Customer.Country} like '*'&{?Country}
    If country parameter is null, it will retrun all country. But i would like to return Country = 'USA' if my parameter value is null.
    Is this possible to do it in the formula above? I tried something like below, but if has parameter value it will return the USA as well.
    if(hasValue({?Country})=false) then {Customer.Country} = "USA"
    else {Customer.Country} like '*'&{?Country}

  • Crystal Report Parameter multiple values

    In crsytal report 2008, I created a report to enable user to view list of sales order. I created the following parameter to display list of sales order:
    doc@select docnum from ORDR
    In SAP B1 8.8, it displays a dropdown list of SO and users can select one sales order at a time to view the report. However, is there a way for users select MULTIPLE SO from the dropdown. I know in the parameter properties, you can set the 'enable range values' to TRUE. The end result of that is it generates a range for users to choose from (docnum next to each other). Instead of selecting range of SOs, is there a way for users to select random SO from the list? Example, from the list, select SO 13000, 13010, 14000 etc. Thanks.

    Daniel,
    Excellent, I changed
    - list of values from static to dynamic
    - changed toke from @select docnum to @select *
    - changed select criteria from docnum to docentry
    The list works fine.
    From the multiple values selection screen in SAP, it shows the following three columns:
    - Value (DocEntry)
    - Description (DocNum)
    - Check Box
    I was able to hide the vlaue (docentry) column from form settings. However, can I change the name of 'Description' to something more meaningful like 'Sales Order #'? Also, the description column is really wide. Is there any way I can narrow the column width?

Maybe you are looking for

  • How Can I Remove A Persistent Icon From Dock

    I've got an app's icon in my dock with a question mark in it.  I am unable to remove the icon from the dock(I should be able to push the icon out with my cursor and have it go "poof" but can't).  I deleted the app from my hard drive but the errant ic

  • IWork on Macbook Pro Retina display needs updating, text is blurry?

    I just purchased the new Macbook Pro with retina display and I am surprised there is no update for iWork. Text appears blurry and is very tough to use.

  • How do I add a time field to a dynamic list and form?

    I'm trying to create an update form that logs when an action was taken. Among the fields are one for the date and one for the time, but I've not been able to get the time field to display or enter data correctly. I've set the time format in the ADDT

  • Apple Mail Frustrations

    My wife and I are pulling our hair out trying to operate within Apple Mail. We are recent switchers and for some reason, the Mail program is causing the most trouble. Below are a few of our problems: 1. Her Address Book decides to delete all of the e

  • Delivery Tracking Number

    Hi, I have the following requirement, 1. The haulage firm RIDER shipping tracking number is maintained in the transaction VL02N in the backend system. Follow the menu path GOTO->HEADER->SHIPMENT. We have a field called BillOfLad ( Bill of Lading ) wh