Sap function used in crystal- date parameter issue

have a function developed in sap and it is using date parameters in the function
i can run the function in sap and retrieve records
when i create a report from the function and create my date parameter to use in the record selection
and i enter my parameter values to run the report, it doenst retrieve any records
i have hardcoded dates
i am using this in the record selection
if hasvalue({?Run Date}) then {?Run Date} else currentdate
any ideas?

Actually, what are you returning?  In your record selection, what date are you trying to filter?  Set your formula equal to whatever you want to return in the report:
if (not hasvalue({?Run Date})) then REPORT FIELD = currentdate  else REPORT FIELD = {?Run Date}

Similar Messages

  • Run time Date parameter Issue

    hi,
    In my report i have 3 parameters, one is date and another parameters are string
    there is no problem with string parameters
    Problem in date parameter is if i given the date by using date picker the reports is running, never end
    if i hardcode the date in sql query itself, it give the output in seconds,
    Why it is behave like that, can any one please let me know the possible ways to pass the date parameter in runtime.
    Thanks,
    Mohan

    hi,
    We are selecting the date from date picker only, for the given records also available.
    The format which i hard coded into sql is equivalent to the format return from date picker.
    I given the date picker java date format is dd-MMM-yy so it takes the date like '28-Apr-11'
    still it is not working,
    Thanks,

  • Primary Key Multiple Column with Date - parameter issue

    All,
    I am having an issue that I cannot find the answer to. I have looked high and low to no avail. Please help.
    The issue at hand is that I have a table that has a multiple column primary key and one of the columns happens to be a date and the other is a string. I have a basic search and I want an update picture in the results table that the users can click on and go to a different page to update that record. The issue is when I fire an action based on the update picture I also want to set parameters based on the record that I selected. So I set the string parameter and that works fine. The issue is with the date. When i set the date parameter it works but it chops off the timestamp. Later when I try to get this parameter 'pageContext.getParameter("dateParameter");' it will bring in a date like 15-Dec-2008 but I need the entire date and timestamp (i.e. 15-Dec-2008 10:20:33) to correctly identify the record.
    Please help!
    Thanks,
    Colby J

    Hi
    since every parameter go in url as a string format so u will never get the date parameter with complete timestamp,the solution would de
    1.) Set a fire action on update picture,give its event name as "update",
    2.) clicking on update picture will fire this event .
    3.) in processFormrequest method of controller
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if ("update".equals(pageContext.getParameter("event")))
    // this will give the select row where update is clicked
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    VORowImpl row = (EmployeeSummaryVORowImpl)am.findRowByRef(rowReference);
    Timestamp sdateVal=(String)row.getAttribute("Date value");
    // this will transfer the values to next page
    pageContext.putTransactionTransientValue("transferdvalue",sdateVal);
    // and in the next page u can get the value like this
    timestamp getDateVal=pageContext.getTransactionTransientValue("transferdvalue"l);
    hope this will resolve your issue,Please let me know if u face any issue
    thanx
    Pratap

  • 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 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 Data Conversion Issue (Error converting data type varchar to datetime)

    Hi,
    I can run stored procedure without error in SQL Server using my personal credentials as well as database credentials.
    I can also run Crystal Report after connecting to Stored procedure without error on my desktop using my personal credentials as well as database credentials.
    But when I upload the crystal report in BOBJDEV and when I run using database credentials report fails saying that "Error in File ~tmp1d1480b8e70fd90.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ]" but I can run the crystal report successfully on BOBJDEV using my personal credentials.
    I googled (Data Conversion Error Message) about this issue & lot of people asked to do "Verify Database" in Crystal Report. So I did that, but when I do it I am getting a error message like this:
    Error converting data type varchar to datetime.
    Where do you think the error might be occurring? Did anyone faced this kind of issue before? If so, how to resolve it?
    (FYI, I am using Crystal Reports 2008, & for stored procedure I have used SSMS 2012 )
    Please help me with this issue.
    Thanks & Regards.
    Naveen.

    hello Naveen,
    since the report works fine in the cr designer / desktop, we need to figure out where you should post this question.
    by bobjdev do you mean businessobjects enterprise or crystal reports server? if so please post this question to the bi platform space.
    -jamie

  • Date Parameter Issue in XML Report

    Hi,
    I have developed a custom report using xml data definition, but it returns an error when running with date parameters.
    I have given the parameters like this..
    <?xml version='1.0' encoding='windows-1252'?>
    <dataTemplate name="XXX_REP" description= "XXX Report">
    <properties>
    <property name="xml_tag_case" value="upper"/>
    </properties>
    <parameters>
    <parameter name="P_ORG_ID"/>
    <parameter name="P_DIFFRENCE"/>
    <parameter name="P_FROM_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
    <parameter name="P_TO_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
    <parameter name="P_FROM_SO"/>
    <parameter name="P_TO_SO"/>
    </parameters>
    <lexicals></lexicals>
    <dataQuery>
    <sqlstatement name="Q1">
    --- />
    Error -
    XDO Data Engine Version No: 5.6.3
    Resp: 21623
    Org ID : 84
    Request ID: 670920
    All Parameters: P_ORG_ID=:P_DIFFRENCE=BREIF:P_FROM_DATE="2013/03/01 00:00:00":P_TO_DATE="2013/03/28 00:00:00":P_FROM_SO=:P_TO_SO=
    Data Template Code: XXX_REP
    Data Template Application Short Name: ONT
    Debug Flag: N
    {P_FROM_SO=, P_TO_SO=, P_TO_DATE=2013/03/28 00:00:00, P_DIFFRENCE=BREIF, P_FROM_DATE=2013/03/01 00:00:00, P_ORG_ID=}
    Calling XDO Data Engine...
    --SQLException
    java.sql.SQLDataException: ORA-01830: date format picture ends before converting entire input string
    Please help me to solve this issue?
    Thanks

    Please find the sql query,
    <?xml version='1.0' encoding='windows-1252'?>
    <dataTemplate name="XXX_REP" description= "Free Issue Audit Report">
    <properties>
    <property name="xml_tag_case" value="upper"/>
    </properties>
    <parameters>
    <parameter name="P_ORG_ID"/>
    <parameter name="P_DIFFRENCE"/>
    <parameter name="P_FROM_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
    <parameter name="P_TO_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
    <parameter name="P_FROM_SO"/>
    <parameter name="P_TO_SO"/>
    </parameters>
    <lexicals></lexicals>
    <dataQuery>
    <sqlstatement name="Q1">
    <![CDATA[
    SELECT tb2.name "OPR_UNIT",
    tb2.org_id "ORG_ID",
    tb2.header_id "HEADER_ID",
    tb2.order_number "ORDER_NUMBER",
    tb2.line_number "LINE_NUMBER",
    tb2.segment1 "ITEM",
    tb2.description "ITEM_DESC",
    tb2.ordered_date "ORDER_DATE",
    tb2.ordered_quantity "ORDER_QTY",
    free_qty "FREE_QTY",
    (tb2.ordered_quantity - tb2.free_qty) "DIFFRENCE"
    FROM (SELECT tb1.name,
    tb1.org_id,
    tb1.header_id,
    tb1.line_id,
    tb1.order_number,
    tb1.line_number,
    tb1.segment1,
    tb1.description,
    tb1.ordered_date,
    tb1.ordered_quantity,
    --xt.free_quantity "FREE_QTY",
    (SELECT XX_FREE_ISSUE_DISC_REP (oll.header_id, oll.line_id)
    FROM oe_order_lines_all oll
    WHERE oll.header_id = tb1.header_id
    AND oll.inventory_item_id = tb1.inventory_item_id
    AND unit_selling_price != 0 -- and oll.shipping_instructions is null
    free_qty,
    -- (tb1.ordered_quantity - xt.free_quantity) "DIFFRENCE",
    tb1.inventory_item_id
    FROM xx_free_issue xt,
    (SELECT ou.name,
    oh.org_id,
    oh.header_id,
    oh.order_number,
    ol.line_id,
    ol.line_number,
    it.segment1,
    it.description,
    ol.ordered_quantity,
    TO_CHAR (oh.ordered_date, 'DD-MON-YYYY') ordered_date,
    ol.inventory_item_id,
    ol.shipping_instructions
    FROM oe_order_headers_all oh,
    oe_order_lines_all ol,
    hr_all_organization_units ou,
    mtl_system_items_b it
    WHERE oh.header_id = ol.header_id
    AND oh.org_id = ou.organization_id
    AND ol.inventory_item_id = it.inventory_item_id
    AND ol.ship_from_org_id = it.organization_id
    -- AND ol.price_list_id = 6007 --Free Issues
    AND ol.shipping_instructions = 'Free Issue'
    --AND oh.order_number = '1001385'
    ) tb1
    WHERE TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
    NVL (
    xt.effective_date_from,
    SYSDATE))
    AND TO_DATE (
    NVL (
    xt.effective_date_to,
    SYSDATE))
    AND tb1.inventory_item_id = NVL (xt.item_id, xt.free_item_id)
    AND TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
    NVL (
    :P_FROM_DATE,
    tb1.ordered_date))
    AND TO_DATE (
    NVL (
    :P_TO_DATE,
    tb1.ordered_date))
    AND tb1.header_id BETWEEN NVL (:P_FROM_SO, tb1.header_id)
    AND NVL (:P_TO_SO, tb1.header_id)
    AND tb1.org_id IN (:P_ORG_ID, tb1.org_id)) tb2
    where (tb2.ordered_quantity - tb2.free_qty) = decode(:P_DIFFRENCE ,'DETAIL',(tb2.ordered_quantity - tb2.free_qty))
    union
    SELECT tb2.name "OPR_UNIT",
    tb2.org_id "ORG_ID",
    tb2.header_id "HEADER_ID",
    tb2.order_number "ORDER_NUMBER",
    tb2.line_number "LINE_NUMBER",
    tb2.segment1 "ITEM",
    tb2.description "ITEM_DESC",
    tb2.ordered_date "ORDER_DATE",
    tb2.ordered_quantity "ORDER_QTY",
    free_qty "FREE_QTY",
    (tb2.ordered_quantity - tb2.free_qty) "DIFFRENCE"
    FROM (SELECT tb1.name,
    tb1.org_id,
    tb1.header_id,
    tb1.line_id,
    tb1.order_number,
    tb1.line_number,
    tb1.segment1,
    tb1.description,
    tb1.ordered_date,
    tb1.ordered_quantity,
    --xt.free_quantity "FREE_QTY",
    (SELECT XX_FREE_ISSUE_DISC_REP (oll.header_id, oll.line_id)
    FROM oe_order_lines_all oll
    WHERE oll.header_id = tb1.header_id
    AND oll.inventory_item_id = tb1.inventory_item_id
    AND unit_selling_price != 0 -- and oll.shipping_instructions is null
    free_qty,
    -- (tb1.ordered_quantity - xt.free_quantity) "DIFFRENCE",
    tb1.inventory_item_id
    FROM xx_free_issue xt,
    (SELECT ou.name,
    oh.org_id,
    oh.header_id,
    oh.order_number,
    ol.line_id,
    ol.line_number,
    it.segment1,
    it.description,
    ol.ordered_quantity,
    TO_CHAR (oh.ordered_date, 'DD-MON-YYYY') ordered_date,
    ol.inventory_item_id,
    ol.shipping_instructions
    FROM oe_order_headers_all oh,
    oe_order_lines_all ol,
    hr_all_organization_units ou,
    mtl_system_items_b it
    WHERE oh.header_id = ol.header_id
    AND oh.org_id = ou.organization_id
    AND ol.inventory_item_id = it.inventory_item_id
    AND ol.ship_from_org_id = it.organization_id
    -- AND ol.price_list_id = 6007 --Free Issues
    AND ol.shipping_instructions = 'Free Issue'
    --AND oh.order_number = '1001385'
    ) tb1
    WHERE TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
    NVL (
    xt.effective_date_from,
    SYSDATE))
    AND TO_DATE (
    NVL (
    xt.effective_date_to,
    SYSDATE))
    AND tb1.inventory_item_id = NVL (xt.item_id, xt.free_item_id)
    AND TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
    NVL (
    :P_FROM_DATE,
    tb1.ordered_date))
    AND TO_DATE (
    NVL (
    :P_TO_DATE,
    tb1.ordered_date))
    AND tb1.header_id BETWEEN NVL (:P_FROM_SO, tb1.header_id)
    AND NVL (:P_TO_SO, tb1.header_id)
    AND tb1.org_id IN (:P_ORG_ID, tb1.org_id)) tb2
    where (tb2.ordered_quantity - tb2.free_qty) != decode(:P_DIFFRENCE ,'BREIF',0)
    ORDER BY 4,5 --tb2.order_number, tb2.line_number
    ]]>
    </sqlstatement>
    </dataQuery>
    <dataStructure>
    <group name="G1" source="Q1">
    <element name="OPR_UNIT" value="OPR_UNIT"/>
    <element name="ORG_ID" value="ORG_ID"/>
    <element name="HEADER_ID" value="HEADER_ID"/>
    <element name="ORDER_NUMBER" value="ORDER_NUMBER"/>
    <element name="LINE_NUMBER" value="LINE_NUMBER"/>
    <element name="ITEM" value="ITEM"/>
    <element name="ITEM_DESC" value="ITEM_DESC"/>
    <element name="ORDER_DATE" value="ORDER_DATE"/>
    <element name="ORDER_QTY" value="ORDER_QTY"/>
    <element name="FREE_QTY" value="FREE_QTY"/>
    <element name="DIFFRENCE" value="DIFFRENCE"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Thanks

  • Query on STRIP Using DISKUTIL and Data Safty Issues

    Here is an interesting (probably DUMB) question based on my current RAID config:
    7x500GB (RAID5 - one hdd can go down and no issue) = Vol#1
    7x500GB (RAID5 - one hdd can go down and no issue) = Vol#2
    The above using Diskutil I have made on STRIP Vol#1+Vol#2 = RAID50.
    From the above what are my chances of loosing data based on following three senarios:
    1. what if one of the controller fails, will I still see the entire volume
    2. what if one of the controller fails, will I loose everything on RAID50 (STRIP)?
    3. what if one of the controller fails, I replace the controller with a new one, will I get my data back?
    Please advice the above?
    Thanks

    >1. what if one of the controller fails, will I still see the entire volume
    You will lose access to the entire volume. The data will be intact but you cannot access the volume (on either controller) until the failed controller is replaced.
    >2. what if one of the controller fails, will I loose everything on RAID50 (STRIP)?
    No. Your data will be intact. You just can't access it.
    >3. what if one of the controller fails, I replace the controller with a new one, will I get my data back?
    Yes. The replacement controller can read the RAID configuration from the drives. Replacing the failed controller will restore access to your volume.
    Just for the record I have over a dozen XServe RAIDs (including one of the very first revisions using 180GB drives) all working 24/7 in a production network and have never lost a controller, power supply, or any other component other than one (or maybe two) failed disks. In my experience the failure rate is very low.

  • 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

  • SAP BO Rapidmart for sales: Data loading issue

    I could successfully load data to the sales rapidmart [XI 3.2] from SAP R/3 till QA [Our DEV and QA are same]. I have imported the same ATL to PRD and could succesfuly load 2 months of data. For the subsequent loads, its throwing me the following error.
    11252     8464     DBS-070401     5/31/2010 7:38:40 AM     |Data flow DF_DeliveryFact_SAP|Loader Rename_DELIVERY_FACT
    11252     8464     DBS-070401     5/31/2010 7:38:40 AM     ODBC data source <LIONSAPBI02> error message for operation    <SQLExecute>: <[Microsoft][ODBC SQL Server Driver]Datetime field
    11252     8464     DBS-070401     5/31/2010 7:38:40 AM     overflow>.|<Regular Load Operations>|<DELIVERY_FACT>
    Can  somebody help me in this?

    Hi,
    Refer the lnik and the note mentioned it.
    Re: Problem when storing master data 0PLANT_ATTR-Full (i.e. Full Update)
    With rgds,
    Anil Kumar Sharma .P

  • Format of Date parameter

    Does anyone know of a fix for the Date parameter issue. I have seen a number of posts regarding the same problem.
    When Crystal asks for a Date it is required in the format YYYY-MM-DD, now to a majority of database engines this would appear quite normal. To a regular user this is not normal. Here in Australia we use DD/MM/YYYY our 12 year old database was set up to reflect this and all our reports, created in Crystal 8.5, had no problem with this.
    However after spending 1000's of dollars on the latest version I find that it is basically useless because none of my 100's of reports will work, due to this 'Minor' problem.
    If anyone has experience with Crystal reports against an Informix database and has a workaround solution, or even someone not using Informix, please let us know.
    Thank you, Thank you, Thank you in advance.

    Hi,
    Create a string parameter (named eg. olPrint).
    The user will then input its normal way of date inputting. However it has to be in a format you specify in the caption (dd-mm-yyyy  thus 1 December 2007 = 01-12-2007 and not 1-12-2007)
    Then create a formula PrintDate with the syntax:
    DateTime(Date(
                ToNumber(Mid({?olPrint}, 7)),
                ToNumber(Mid({?olPrint}, 4, 2)),
                ToNumber(Mid({?olPrint}, 1, 2))))
    If you then select your report on = {@PrintDate} it should work.
    Hope this helps.
    Bye

  • Multiple Crystal Data Consumers in One Xcelcius File

    We are trying to create a mashup of multiple different types of dashboards in one Xcelcius file. We've been able to do this successfully with multiple worksheets in our Excel file. However, we want to make all of our dashboards pull in Live data. The only way we've been able to get this to work with single dashboards is using the Crystal Data Consumer data connection. All of the other ones don't work for us. The problem we are having is that it looks like it only let's us use one Data Consumer data connection. Does anyone else have any ideas on how I can go about this?
    The data source by the way is on a SQL Server 2005 database. We've been able to pull the data we need into our Crystal Report and then convert that data into dashboard form using the Crystal Data Consumer. We just need to do the same thing but do it with multiple dashboards.

    Hi,
    Try Using Live Office, it will allow you to bring multiple crystal report and you can have multiple connection in Xcelsius.

  • Crystal Reports Charting Issue with SAP Function Module

    I created a custom SAP Function module that returns 2 tables. The first table (summary table) contains two columns, column "a"  contains a grouping and column "b" is a quantity.  The second table is the detail and is linked to the first table by the grouping, column "a" , in both tables.  I can bring the function module into Crystal Reports, but cannot create a drill down using a pie chart off the summary table.  When I go into the Chart Expert - Data Tab only the Advance button is active and the Group, Cross-Tab, and OLAP buttons are deactivated.  First of all, is it possible to do this using a SAP Function Module, if yes, what am I doing wrong.

    hello Jhess,
    i am not sure if you found an answer for your question yet. if you have a Group and a Summary on your report (i.e. the Sum of your Quantity field) then group charts should be enabled.
    cheers,
    jamie

  • SAP tab in Crystal Reports 2013 issue

    We are using SAP Crystal Reports 2013 SP3 to build reports on BEX queries (BW 7.2). Creating a report via 'File' --> New connection --> BW MDX driver works fine, I can select bex queries & cubes and see the data. However SAP provided tab 'SAP' does not work as expected. When adding a new bex query using SAP--> Create new report from a query, I can see the list of queries and select one but it does not open and throws the following error -
    "An error occurred while generating a new report templete.
    No error"
    Using the "File" option any change to the .rpt file forces BO admin to update "DB logon" information in CMC (currently i cannot save .rpt file directly on enterprise from Crystal client due to some issue)  and we want to avoid this kind of maintainence using SAP authentication provided by using SAP tab, also the Crysal report prompts when run from BI launch pad request for prompt values twice (once for the report and once to pull list of values for each prompt) which can be avoided using SAP tab. I thought access to dev BW server is fine since the "File" tab works fine. Our BASIS team confirmed BOBJ dev servers have access to BW gateway. Am I missing something here, please help me with your experience and ideas to troubleshoot this as the only solution i could google was from a 2012 SAP recommended article to fix reginfo configuration files on SAP server
    I reinstalled Crystal Reports client twice to make sure intallation was not the issue.
    Thanks
    GORO.

    Hi Abhilash,
    Thanks for your response.
    Yes reports are working in CR 2013 designer.
    Getting Alignment and long spaces between the paragraphs issues even though report has properly designed on designer.
    After exporting to pdf getting above errors...
    -Srinivas

  • Single Date Parameter, but using a date range for selection

    Post Author: fireman204
    CA Forum: Formula
    I'm fairly new to Crystal Reports, so be gentle with me.  I have a report that has 4 parameters.  The report asks for data for a specific month, the YTD data to the end of the selected month, and the same data from the previous year.  It seems there should be a way to enter a single parameter (ie., 2007-4-1), and off that date select all the data for the month, the current year to the end of that month, and then the data from the previous year for the same period.  I know this will be a formula field needed to select the data, but not sure how to get there from here.  Any ideas?  Thanks in advance!

    Post Author: SKodidine
    CA Forum: Formula
    It should be possible for you to create just one parameter to have the user input a single date and then create formulae to create the begin and end dates for the month, YTD and PYTD.  You can then use these formulae for record selection criteria.
    For example, if the user inputs a date of 2007-04-01 for the single parameter then create formulae such as:
    beginmonth
    datevar beginmonth;
    beginmonth := date(year({?My Parameter}),month({?My Parameter}),01);
    endmonth
    datevar endmonth;
    endmonth := cdLastDayOfMonth ({?My Parameter});
    To use the cdlastdayofmonth function, In the formula workshop window, click on "Repository Custom Functions" then under CRYSTAL and DATE right click on cdlastdayofmonth and click on ADD TO REPORT.  Once that is done, then create the above "endmonth" formula.  You should see this new function in your formula workshop window in the FUNCTIONS window under CUSTOM FUNCTIONS.
    beginytd
    datevar beginytd := date(year(currentdate),01,01);
    endytd
    datevar endytd;
    endytd := cdLastDayOfMonth ({?My Parameter});
    beginpytd
    datevar beginpytd := date((year(currentdate)-1),01,01);
    endpytd
    evaluateafter({@endytd});
    datevar endytd;
    datevar endpytd;
    endpytd := date(year(endytd)-1,month(endytd),day(endytd));
    In your record selection criteria, you can use the above formulae like this:
    in {@beginmonth} to {@endmonth}
    or
    in {@beginytd} to {@endytd}
    or
    in {@beginpytd} to {@endpytd};
    This is one way of doing it, perhaps others might pitch in with a more efficient way.

Maybe you are looking for