Calendar date variable problem in queries

Hi-We upgraded to NW2004s from BW 3.1 We have an issue with queries when we try to change the value of any variable that is a calendar date such as the Current Calendar Day. Example: when running a query, the Select Values for Variants screen displays today's date as the default for Current Calendar Day in the format 09/29/06. To change the date to another value, I get the screen displaying a calendar, if I pick 09/28/06, the display comes back as 28.09.2006 & then I can't proceed any further as I get an error "please enter value in permitted format for variable current calendar date" 
Any ideas on how to resolve this?
thanks
Marge Blick

Hi
There may be some other reason for it, coz Day light savings starts in last week of March, not in May.
And day light savings ends in Last week of October
Suresh

Similar Messages

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • HT1296 I have a problem synching calendar data between my iPhone 3GS iOS 5.1 & Outlook 2007 on MS7.  The basic calendar is OK but the birthdays (little box icon) are a day early & cannot be changed to the correct date. How can I fix this?

    I have a problem synching calendar data between my iPhone 3GS iOS 5.1 & Outlook 2007 on MS7.  The basic calendar data transfer is OK but the birthdays (little box icon) are a day early & cannot be changed to the correct date. The birthday entries in my Outlook contacts have correct dates.How can I fix this?

    The following peocess corrects the calendar entry:
    edit the contact & change the birthday, save the change; edit the contact & change the birthday to the correct value, save the change again. The calendar entry then displays on the correct date.  Alternatively as a temp solution I can just de-select the "birthdays" calendar which stops the icon being displayed.
    Thanks for your advice, I think that it's n going to be a slow process to fix all the entries for not much return.

  • IPod Nano 3rd Gen. Problems [Rebooting, Won't Sync Contact/Calendar Data]

    I have noticed that my iPod nano will reboot itself after it has been syncing/charging. It reboots when I go to the last playlist that was playing before I began to sync/charge it. Also, it would randomly reboots when I am selection a playlist.
    Then, it won't sync my contact/calendar data if it nearly full. But I can sync them when it is nearly empty.
    What is causing the problem and how can I fix it?

    if you have done restores then possibly it is a firmware issue... i would take it to the apple store if you can to get it looked at...

  • Problem in importing calendar data

    Hi, I have a problem in importing calendar data, i.e. no national holidays are imported in the calendar (neither when I create the calendar nor later on using the settings). After waiting quite a while on the window "importing calendar data" I always get the message:
    "Unable to access calendar data - There was an error attempting to access a shared calendar using your internet connection. Check your connection settings and try again".
    That happens whatever the national holidays I choose.
    My internet connection works fine, so I don't understand where the problem is. Would anyone have useful hints?
    Thanks.

    Log into another account on you Mac and see if you can add holidays there. If not then a reinstall of iPhoto is indicated. To do so you'll have to delete the current application and all files with "iPhoto" in the file name that reside in the HD/Library/Receipts folder.
    If you can import OK in the other account then the problem is with your primary account. It could be a preference file other than iPhoto's. Here's how to determine if that's the case:
    Trouble Shooting Preferences in Leopard
    1 - Create a folder titled "Preferences A" on the Desktop.
    2 - Open the working Preferences folder, HD/Users/your_name/Library/Preferences, and move the contents to the Preferences A folder on the Desktop.
    3 - Make a duplicate copy of the Preferences A folder on the Desktop as a precautionary backup.
    4 - With the working Preferences folder empty run the application again and determine if the problems is fixed.
    NOTE: you may have to drag the contents of the working folder to the trash and empty if moving the contents to the A folder only copies them instead of moving.
    5 - If the problem is fixed:
    A - open the working Preferences folder (HD/Users/your_name/Library/Preferences).
    B - Open the Preferences A folder on the Desktop, select all of the contents and drag them into the working Preferences folder.
    C - When the Copy window pops up check the "Apply to All" check box and then click on the Don't Replace button as seen here.
    6 - If the problem is NOT fixed, empty the working Preferencess folder and move the contents of the Preferences folder on the desktop back into it.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Problem with Date Variable in Web I

    Hi everybody,
    In the BW I have a query with a Date Variable (0date) and when i execute the WebI report the variable
    shows date and time, like "04/22/2010 00:00:00". Is it possible i remove the
    time from the variable ?
    I need to do this cause i use this date to make some calculation into the WebI report, and with the time the formulas don´t work fine, it shows "#ERRO". I've already tried to insulate the date in other variable using some functions, but it does´t work nevertheless.
    Any idea ?
    Thanks.

    Hi Jordan,
    I would suggest several options.
    First, you have the option within Webi to display only the date and not the time (right click on the object on the report, or go to field properties, and change the format of the display).
    If you are using this value in comparisons in the report, you must make sure the format matches. Try changing the format within the variable to be the same as what you are comparing it to. If that is still not working, let me know. It may still just be a syntax or data type/format error.
    Thanks

  • Creation of Dynamic Date Variables to be used in WebI reports

    What we are trying to achieve is to create 4 optional filters (Current Day, Current Week, Last Week, Last Month) on 4 different dates which will allow the users to use them in WebI reports.
    When using an optional SAP Customer Exit variable in BEx and creating a Universe on top, the filter becomes mandatory (i.e. the whole Universe is filtered by the SAP Exit, irrespective of whether the filter is used in the WebI report). Even if the filter is flagged as optional at the Universe level, it still behaves as mandatory.
    If each filter becomes mandatory then we'll have to create 16 different Universes (for each optional filter and date combination)! This is not feasible.
    I've seen in other posts that MDX Statements are not currently supported for Universes base on BW and SAP Exit should be utilized.
    So with the existing BO version, is it possible to create optional dynamic date variables or is that a product limitation?
    We are on XI3.1 SP3 FP3.1
    Thanks

    Hi Adam,
    In BEx, I would create this query very easily using the "Amount" key figure twice in my results and restricting each with a different SAP standard out-of-the-box delivered variable. For your reference, the variables in BEx are: 0FPER and 0FYTLFP.
    If I expose these variables in my OLE DB for OLAP query, they are not transfered into the universe, but rather act as filters on the entire universe. I've seen in documentation that only "Ready for Input" variables can be transfered as options into the universe which is not something that I have seen mentioned in this thread.
    >> In the BEx Query you have the option to either make the variable "ready for input" or not. The behavior is the same in Bex or in the Universe / Web Intelligence. "Ready for input" means the user can actually provide an input and without the flag the user can not provide an input. Yes those variables are supported in the Universe.
    Why this is a problem: I can't create separate universes based on potential variable periods that users might want to see. Additionally, many financial reports require concurrent use of these measures in the same report. Also, in reality it's not 2 variables, but dozens.
    >> Which is a decision you make already on the BEx query level. if you decide that the variable is not ready for input then the user can change the timeframe in BEx either.
    Also, I don't have a good way to mimic the standard out-of-the-box functionality given with BEx in BO. If I custom create all my variables in the universe, how do I do a lookup from the system date to the fiscal calendar that is stored on the BW server? In other words, how does BO know which date belongs in which period? (the same would be true with factory calendars for a different functional area).
    >> Variable are created in the BEx query and the Universe will leverage those.
    If you want a dynamic date range then EXIT variable as part of the BEx query - ready for input or not - is the solution.
    regards
    Ingo Hilgefort
    The only work around I can see is to require users to enter the current fiscal period and have the BO reports filter based off that user entered value. This is unfortunate as the entire purpose of SAP Exit variables is to avoid having to require user input at report time.

  • WAD date period problem

    hi,
    i create a query and it has a variable typed date period,
    i want to develop a WAD, i set two input field for the begin date and end date,
    my problem is:
    1. i want a button beside the input field, when clicked, a calendar input help pop up, how to do?
    2. when i enter the begin date and end date, how to fill the date period variable with the input entry?
    pls help

    Have you tried dropdown web item that can display all the dates and user can choose relevant ones
    Use the web item input field for input help with interval option in the properties

  • ITunes Calendar data doesn't match Outlook's.  How can I fix?

    I have a new iPhone and just recently discovered that the Calendar is not updating, 
    probably since the first time I synced.  And even then it was using old calendar data which 
    doesn't currently show up in Outlook.   (Contacts sync perfectly.)  Applecare took me 
    through their 1st and 2nd-level support troubleshooting and said they couldn't do anything more.  
    They suggested possible corruption of outlook.pst. 
    One glaring example: I used to have 3 calendars in Outlook: "Bridge", "Calendar" and 
    "Others".  I recently deleted all but the one called Calendar, but all 3 still show up in 
    iTunes, even though I've uninstalled/reinstalled iTunes twice.  Only "Calendar" shows up on 
    the iPhone, but it has old data.  I think the data it's displaying has not been refreshed 
    since 9/23/11, when I moved the outlook.pst file to a location in My Documents for easier 
    backup, but that doesn't really make sense since the Contacts update just fine.  (I've had 
    an iPad for about a year, and it's behaving the same as the iPhone now; the Calendar used 
    to update properly.)  Another possible clue: the iPhone shows two instances of one 
    particular recurring appointment.  I don't recall ever having two instances of it in 
    Outlook and wonder if that could be the problem.  I removed it altogether from Outlook and 
    that didn't help.
    I've done extensive testing with a new Windows user account and Outlook, and the calendar 
    syncing seems to work fine.  I've Googled "iPhone calendar won't update" and similar and
    haven't found anything that works for my situation.
    I'm running Office 2003 on Windows XP.  I do NOT use Outlook for mail.

    I was having the same problems after downloading 10.4.1 IStore would only download half way then nothing attempted reinstall no goood checked the Diagnostics with IPad connected, indicated no errors. more than a few hours browsing possible solutions. Found one stating 'Remove all Itunes connected software, i.e. Bonjour, ITunes, Safari etc from PC via the Uninstall Safely Feature and ReInstall. Hey Presto it worked now no issues.
    Good Luck. I am using Windows 7.
    That's my problem exactly, but I can't find the: ''Uninstall Safely Feature and ReInstall''. Where is that??
    Thank You

  • The contacts and calendar data on my iPod touch will not sync with my Mac

    I have a 2nd generation ipod touch, and an iMac running iTunes 8.2.1.
    I have been away from my mac for a few months and have entered a lot of contact and calendar info into my ipod touch.
    Now, when I try to sync the contacts and calendar data on my ipod touch with my mac, the data will not sync to my mac.
    Similarly, for the last couple months, the contact and calendar data on my ipod touch has not been able to sync with my mobileme account.
    I cannot afford to lose the contact and calendar data on my ipod touch.
    Can anyone kindly inform me how to fix this syncing problem without losing such data?

    DGKSA wrote:
    I ended up entering the data onto my Mac, then nuking my iPod touch with a restore.
    So, there is no need to respond to my question.
    You can also mark your post as "solved" if you solved your problem on your own.
    Only the original topic poster has the option to mark replies as either Helpful or Solved or to not mark a reply at all. The originator can also end the discussion by marking the topic as "answered," which displays a green star at the top of the topic page to let everyone know that the topic contains valid helpful information.
    copied from "Terms of Use"

  • Assigning date value to a date variable

    Hi,
    How can I hard code a date (09/22/2006) in a date variable?  Help me out.
    Thank you.
    Regards,
    Dhana

    Hi,
    it depends if your input is already parsed and how you want to set the time (hours, etc.).
    Two sample ways :
            String s = "09/22/2006";
            SimpleDateFormat sd = new SimpleDateFormat("MM/dd/yyyy");
            Date date1 = sd.parse(s);
            Calendar c = Calendar.getInstance();
            c.set(2006, 8, 22); //month is zero based
            Date date2 = c.getTime();
    Btw for basic java programming I would suggest searching for some java tutorials on the net and reading on your own instead of posting in forums. At least for me that is better way to learn.
    HTH
    Peter

  • Date variable in a query

    Hi all,
    Currently I'm working on a query and I'd like to put in a date variable. It has to be a monthly report and I'm building the query for it based on the attribute "TaxDate" (with format DD-MM-YY) from the table "ORDR".
    For the query I'd like to build in a variable where the user can put in the month and year, for instance 01-04. I know how to put in a variable, but how can i solve this problem?
    I thank you in advance!
    Edited by: Chief on Mar 12, 2008 1:23 PM

    Chief,
    The parameters in a SQL Query accepting a date works the same way as you would enter a date on DocDate or DocDueDate field on the form.
    But, you will need to filter the input and take only the Month.
    So test this simple query
    SELECT T0.DocNum AS 'Document Number', T0.DocDate AS 'Posting Date' FROM  [dbo\].[ORDR\] T0  WHERE MONTH(T0.TaxDate) = MONTH('[%0\]')
    Suda

  • Date popup problem in APEX 3.1

    Hi
    I have a date picker (DD-MM-YYYY HH24:MI) and after upgrading to APEX 3.1 from APEX 3.0.1 the popup window height is too small.
    The end user is having to resize the window to click on the OK button.
    Is there a file I can edit to increase the height, couldnt find it in templates/themes.
    Regards
    Adam

    Hi Adam,
    This is a bug in APEX 3.1. It was discussed here:
    Apex 3.1 Upgrade Issue - dba_lock and date picker display
    and here:
    Date Picker problem in Apex 3.1
    I'll let Carl investigate and provide an official response and recommendation. Although I know where this problem is occurring.
    The size of the popup calendar window is hard-wired in the file apex/images/javascript/apex_3_1.js. In APEX 3.0, the size of the popup window was determined programatically at runtime and was a function of the date format, if it included a time component or not.
    The uncompressed, readable version of this same file is in apex/images/javascript/uncompressed/apex_3_1.js. Look for p_DatePicker and you'll see what I'm talking about. You'll see the height is hard-wired to 210 and width to 258. In APEX 3.0, the height was set to 255 if the date format contained a time component.
    So my suggestion, until Carl provides an official response, is to look for '210' in apex/images/javascript/apex_3_1.js and change this to 255. Granted, all calendar popup windows will be this big, but it won't put as great a burden on the end-user.
    I hope this helps.
    Joel

  • Use of Input Variables in SQL-Queries Sometimes Not Possible

    Only in simple SELECT-statements the use of input variables ([%0], [%1], etc.) work without problems.
    In more complex queries the use of these variables is not possible (e.g. SELECT-statements with sub-queries, sometimes when UNION is used - but I couldn't find any general rule when the problems will arise; sometimes two different queries with the same query-structure behave in different ways when these variables are used).
    In these cases the query is not executed - not even the input-window to enter values into the input variables is displayed. The query stops with some strange error-messages in the status line. These error-messages doesn't have any relation to the actual query - sometimes it refers to field-names never used in the query or refers to syntax error which do not exist.
    If the input variables are replaced by constant values there are no problems so there can't be any syntax errors - the only difference is the presence or absence of input variables.
    Example:
      provided that the queries have a certain complexity
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= [%0] ...
      does not work,
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= '1.1.2007' ...
      works!
    Does anybody have run into the same problem and now if it is a bug of SAP-BO or an error on behalf of the user? Does anybody know a way to correct the problem?
    Thanks in advance!
    Frank
    By the way: Are there any rules where exactly input variables can be used in a query?
    Only in SELECT-statements? Where there exactly?
    In statements outside of SELECT?

    Only SAP Partners Can access service.sap.com/notes, but I think it is possible to search in them from the customer portal as well.
    Here are summary of the two notes mentioned before this:
    730960:
    <i>
    The following query is an example for how to define variables in long
    queries rather than using "Fixed Declares".
    You need to use exactly the same template as follows, do not delete
    "comments" from this query.
    The only changes you need to do :
    1. In the first and in the fifth rows you need to select the table to which you would like to relate the variable e.g. in this example, the variable is related to the table VPM1 - 'Payments to Vendors - Rows'.
    2. In the fourth and in the eighth rows you need to select the field to which you would like to define the variables e.g. in this example, the variable is the field 'DueDate'.
    /SELECT FROM [dbo].[VPM1] T0/
    declare  @fromdate as datetime
    /* WHERE */
    set @fromdate = /* T0.DueDate */ '[%0]'
    /SELECT FROM [dbo].[VPM1] T1/
    declare  @tilldate as datetime
    /* WHERE */
    set @tilldate = /* T0.DueDate */ '[%1]'
    select  OVPM.docnum, VPM1.dueDate,VPM1.CheckNum, VPM1.Branch,
    VPM1.BankCode, VPM1.CheckSum, OVPM.CardName,
    case
    when OPCH.docnum is null then VPM2.docEntry
    else OPCH.docnum
    end as 'docnum'
    from OVPM INNER join VPM1 on OVPM.docnum = VPM1.docnum
    left join  VPM2 LEFT JOIN OPCH ON VPM2.DocEntry = OPCH.DocEntry
    on OVPM.docnum = VPM2.docnum
    where OVPM.Canceled = 'N' AND VPM1.DueDate >=@fromdate AND
    VPM1.DueDate <=@tilldate
    </i>
    955295:
    <i>
    Using SAP Business One Survey Variables (parameters) in a 'Set' SQL Statement can give an error in the Query Generator.
    For Example:
    Declare @Num as numeric(2)
    Set @Num = [%0]
    Select T0.DocNum
    From ORDR T0
    Where DocNum = @Num
    Other terms
    query, SQL, parameter, survey, variable, query generator, set, declare, [%0], table, error, SAP Business One
    Reason and Prerequisites
    FAQ
    Solution
    In such cases you need to put in an SQL remark statement a reference field in the DB for the Survey Variable (any field).
    For Example: (to make the above query work)
    Declare @Num as numeric(2)
    Set @Num = /* T0.DocNum */ [%0]
    Select T0.DocNum
    From ORDR T0
    Where docnum = @Num
    </i>

  • How to fix calendar date inconsistency

    Hello,
    I have a problem with closing material period due to inconsistency with actual calendar date. Last closed period in material master of specific cc is 07.2009.(It is test system with IDES database). How to close remaining periods to 01.2012. I can not do it in mmpv.
    Regards
    Sylvester
    Moderator messaage: I cant see any proof for the calendar date inconsistency that you mentioned in the subject.
    It is the same question about month end closing which was answered many hundred times in this forum.,
    Please search the forum before asking the same questions again. Read the forum rules before posting.
    thread locked.
    Edited by: Jürgen L. on Jan 19, 2012 10:42 PM

    Hi, If it is IDES follow below step, but never try this in Production system,
    First check in OX06 & OBY6, "Fiscal Year Variant" is maintained as K4,
    Then Use T-code OX18, delete all the assignments of your company code & plant,
    Now use T-code OMSY enter the year & period (2012 & 01)
    Noe again Use T-code OX18, and again do the assignments of the company codes & all plants

Maybe you are looking for