Date of 19-SEP-07 is coming up as 0007/09/19 in rails

In my table i have a field:
SCHEDULED_DATE of type DATE.
When I do a query model = MyModel.find(1)
model.scheduled_date_before_type_case ends up being equal to
'0007-09-19' instead of '2007-09-19'.
In the oracle adapter I ran a debug accross all the fields and got, just
after it does the query and gets the results.
- 0001017408770802
- 0001017408
- "770802"
- !ruby/object:OraDate 0007/09/19 00:00:00
- !ruby/object:OraDate 0007/09/19 00:00:00
- N
- !ruby/object:OraDate 0007/09/19 00:00:00
- RM
Any ideas?

LimLian.. thankyou for the reply.
My Oracle Version:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE     10.2.0.3.0     Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Sorry, the .find(1) was just an example.
The query generated was:
SELECT * FROM project_milestones WHERE (project_milestones.id = '0001017408770802')
The result .yaml was:
--- !ruby/object:ProjectMilestone
attributes:
completion_status_code: N
final_submission_date: 0007-09-19
scheduled_date: 0007-09-19
data_source: RM
id: 0001017408770802
completion_date: 0007-09-19
rm_project_id: 0001017408
milestone_code: "770802"
The only oci8 version I could find was from a class in /site_ruby/1.8/oci8.rb ..
class OCI8
VERSION = '1.0.0-rc3'
CLIENT_VERSION = '1020'

Similar Messages

  • Data from one cube is not coming in the multiprovider

    Hi,
    I have two cubes with a common characterstic.
    I created multiprovider above these two cubes. But data is not coming from the cube 2. The values from cube 2 are showing as 0.
    Can anyone help me out in this?

    Hi ,
    Check the following:-
    1 Check whether you have made the joins properly.
    2 Check data at multiprovider level .
    3 is data available for reporting in both the cubes
    Regards
    Rahul

  • Date format in CSV file not coming as required

    Hi,
    I have a problem in date format after it is downloaded as a CSV file. In CSV file it is coming as 2/6/2009
    but the format i required is 2009/02/06. Im using GUI_UPLOAD FM for file download. In the internal table im having the date in this format YYYY/MM/DD only.
    How can i bring the date in CSV file in required format?
    Thanks in advance,
    Srilakshmi.

    Hi Srilashmi,
    You question really made me wear thinking cap.
    When you populate date in SAP system, it's taken in internal format i.e YYYYMMDD, though you declare date field as DATE, D or SY-DATUM, the issue comes into light, when you got to display it.
    1. Import date in internal format i.e. YYYYMMDD,
    DATA:
      w_date type d.
    2. Declare another variable w_date1(10) like C.
    3. Goto System-> User Profile -> Own Data -> Defaults -> Date Format. Now, whatever date you have set, it's gonna take the same format.
    4. WRITE W_DATE TO W_DATE1, transport imported date to char type w_date1, this makes date appear in format you want it to .
    And regarding, saving in CSV format, not always GUI_UPLOAD or GUI_DOWNLOAD works,
    TEXT _ CONVERT _ XLS_TO_SAP   -> From program to excel sheet
    ALSM_EXCEL_TO_INTERNAL_TABLE  -> Excel sheet to Program
    Hope this helps you.
    Thanks: Zahack

  • Data migration  and SEPA direct debit structure B2B

    Hi Gurus
    we are starting SAP roll-out at the company that already has SEPA direct debit B2B process with their customers. This is a recurring B2B process. In their existing Erp system the customers have already  SEPA mandate Reference.
    We migrated the customer master data from thier legacy system and we transferred external SEPA mandate reference.
    Each customer has information about the first run , which they need to retain in the SAP system. To which field the data from the first run should be migrated ?
    When they start using SAP SEPA direct debit procudure this will not be the FRST, but RECUR run. How to modify  the DMEE structure and assign the first payment run ID to the field EndtoEndID.
    I craeted the Z DMEE structure , but first i need to know to which field this information should be written.
    Do you have simular issues?
    Thank you  and kind regards

    HI Gordana
    We have exactly the same issue. I just analyse the dependencies, when First is set. If I make the migration of a already used mandat, I plan to update the field by a hard update, so that first is not taken by the system after migration the sepa mandate.
    BR
    Niels

  • Data Service Management Console (Administrator) not coming up

    Hi Experts,
    Was wondering if someone can help me a little. I am having issues with the Management console not coming up. This is what the address is:
    http://localhost:8080/DataServices
    The only message I see is : "waiting for localhost"
    I can see that the service Apache Tomcat for BI 4 is up and running.
    It was running up until yesterday but today the log-in page just does not come up. Would appreciate any help possible to look into this.
    I am also able to successfully click on Impact and lineage Analysis and navigate there. It is only the admin console that won't open.
    Just a further information, I setup a couple of real time jobs and thereafter probably something has gone wrong. Is there a way to disable RealTime jobs from outside of the management console?
    Thanks.
    MD

    Hi Manish,
    Is the path correct?
    Try http://localhost:8080/BOE/CMC

  • Field due date coming compulsory at entry level

    Hi,
    I have created the employee as vendor. When I am using a special gl indicator z with posting key 39 the field u201Cdue dateu201D becomes compulsory entry. When I am using the other key the same field is not compulsory. The settings for the above is as follows-
    1.     Special indicator reconciliation account- The filed status for this account in FS00 is having the u201Cdue dateu201D is optional entry.
    2.     Posting Key Field Status u2013 Here the field u201Cdue dateu201D is optional entry.
    Thus in both the settings, account field status and the posting key field status , the due date is optional but it is coming compulsory at entry level. How can I make this field optional at entry level.
    Please help to resolve the issue.
    CHEERS
    Edited by: NITIN on May 6, 2009 8:13 AM

    I am on my 2nd new (late 2013) Mac Pro. The first one had problems in booting up reliably when 2 monitors were used. I took it to AppleStore and a specialist verified that as well. He reocmmended that I send it back. So I did.
    Today is the 8th day of my 2nd Mac Pro. It had problems connecting to wireless keyboard when I first got it. The wireless mouse connected okay and it was just the wireless keyboard that had problems. I contacted AppleCare and spent hours with them and finally got it to work. Since then, there was one time that the wireless connection was dropped for a short time and came back. Other than that, it has been good for the last 7 days.
    These two Mac Pro machines are the base model, quad-core and 12GB of RAM.
    My experience with Apple products is that they usually have problems when I first get them. Then it takes some work to make them reliable. In addition to these two Mac Pros, I had 4 new Mac laptops in the last 12 months (1 MBP and 3 MBAs). They all had problems when I got them. I had to return 2 of these laptops as well.
    I am sure that my experience is not the norm. Apple products are supposed to work and work reliably. But all the 6 Apple computers I got in the last 12 months had problems. I am a software engineer with 20 years of industry experience in networking/software areas. I cannot explain my experience at all.

  • Data form is coming as non editable

    Hi
    I am using hyperion planning 11.1.1.3 when i am creating data form by default it is coming as non editable i.e. all the cells are coming as green.
    to give you more input in the my dataform -> other option-> make data form read only is unchecked.
    so kindly help how to create a editable data form.

    Hi John,
    Thanks for the quick reply,
    My version was standard bottom up which i changed to standard target
    workflow was started that was also changed .
    Maybe they not level 0 members- you are talking about the members is row and column dimension in the data form
    Currency issue- there is no currency conversion script only the application is created as currency application to suit future enhancement, default currency is INR
    year/period is not open- not sure about this what you are pointing to
    but still my data form is showing as non editable
    Kindly if you can help further , i will be great full.

  • Master data coming from which particular table of source system

    Hi,
    my requirement is i have a master data (ABC) coming from a source sytem XYZ
    there is an attribute (L) in my master data. Now i want to know from which table in my source sytem the data pretaining to attribute L is coming up.
    I m using BW 3-5 system
    Is there a way through which i can directly find out abt the same.
    thanks

    Hi,
    Is this standard Master data or Generic one, if it is customised one then you can find the same in customer exit of ECC system,
    go to tcode CMOD in ECC system, there willbe an project defined for the BW system, in that get an exact component, and check for the custom code for your masterdat, there you will be in a position to find out from where the data is being extracted.
    if you are good at abap you can debug it via RSA3 , else get an help of an abaper to find it out.
    if it is standard , then you can search in SDN, but for for better reuslts, you can go to RSO2 and give the datasource name of that master data and clik on display you, will get an display in the bottom saying that this data source using FM 'XXXXXXX', copy that FM name and try to give it in SE37 and debug it via RSA3 for better results.
    Regards,
    Nanda.S

  • How to store the data coming from visa into file

    Hi ,
    I want to store the data into text file,which is coming from visa-read.
    I tried visa read to file ,but it's not working.
     Am new to labview plz help me out.
    Thanks in advance. 

    CSFGF wrote:
    Hi ,
    I want to store the data into text file,which is coming from visa-read.
    I tried visa read to file ,but it's not working.
     Am new to labview plz help me out.
    Thanks in advance. 
     Share the code you have so far with us so that we can check what's going wrong.

  • Convert date 17-sep-2007 to 2007-09-17 format

    Is it possible to convert date say 17-sep-2007 to YYYY-MM-DD format?
    if so is there any Function module to implement this?
    Awaiting for ur reply....................

    Hello,
    try this
    REPORT ZTEST.
    DATA : V_DATE LIKE SY-DATUM,
    V_DATE1(10).
    V_DATE = '01012007'.
    CONCATENATE V_DATE4(4) V_DATE2(2) V_DATE+0(2) INTO V_DATE1.
    WRITE : V_DATE1.
    Reward if helpful,
    Regards,
    LIJO

  • How to update dunning data coming from a file to data base

    Hi,
    we have a requirement wherein we are getting the dunning level, dunning date and reason code data for  customer accounts from a file and they have to be updated in the customer master data (knb5 table) and document level (bseg-rstgr).
    If anyone knows about any function modules or bapi which can fulfill this requirement please let us know asap.
    Thanks,
    Simmi

    CSFGF wrote:
    Hi ,
    I want to store the data into text file,which is coming from visa-read.
    I tried visa read to file ,but it's not working.
     Am new to labview plz help me out.
    Thanks in advance. 
     Share the code you have so far with us so that we can check what's going wrong.

  • Parsing String to date

    This is my function to convert a string into a desired output format.But my Date in the desired output format is coming out to be null.Could smeone plz point out my mistake.
    Date getDateInDesiredFormat(String strInputDate,String strInputFormat,String strOutputFormat)
         try
           SimpleDateFormat sdfInput  = new SimpleDateFormat(strInputFormat);
           SimpleDateFormat sdfOutput = new SimpleDateFormat("MM-dd-yyyy");
           ParsePosition pos = new ParsePosition(0);
           Date dtInputDate=sdfInput.parse(strInputDate.trim(),pos);
           System.out.println(dtInputDate);
           String strFormattedDate=sdfOutput.format(dtInputDate);
           System.out.println(strFormattedDate);
           Date dtOutputDate=sdfOutput.parse(strFormattedDate.trim(),pos);
           if(dtOutputDate==null)
                System.out.println("dtOutputDate is null ");
           else
               System.out.println(dtOutputDate.toString());
           return dtOutputDate;
         catch (NullPointerException npex)
             return null;
          catch(Exception ex)
              return null;
       }This is how i am calling the function
    Date date=getDateInDesiredFormat("Fri Sep 30 20:30:56 IST 2006","EE MMM d HH:mm:ss ZZZ yyyy","MM-dd-yyyy");
      }

    You need to use the sdfInput object to parse the date and sdfOutput to format and print it (like you did before your 'if'):
    SimpleDateFormat sdfInput  = new SimpleDateFormat(strInputFormat);
    SimpleDateFormat sdfOutput = new SimpleDateFormat("MM-dd-yyyy");
    Date dtInputDate=sdfInput.parse(strInputDate.trim());
    String strFormattedDate=sdfOutput.format(dtInputDate);
    System.out.println(strFormattedDate);the toString() you use in the else block uses a default format, not the one you specify.

  • Issue while creating Data Model in BI Publisher and logging into xmlpserver

    Hi All,
    We are facing an issue in OBIEE 11.1.1.5.
    If we are logging with Non Admin Id (other than weblogic) and select New Data Model, a blank screen is coming. Where as, if we use Admin Id, we are getting screen as usual for creating data model. There were some blogs mentioning to change Priviledges for  SOAP access, but that approach is also not working.
    Further, we are also not able to open xmlpserver with Non Admin Id.
    Any help or pointers would be great.
    Regards,

    how about pasting the content of your data template here, so that forum members can see what could be the problem.

  • Error while saving date value in Java dictionary

    Hello Everybody,
    I got following error while saving date value in one of the fields of the Java table.
    Internal error occured in submit request: Error in method updateRequestContact : The object of type java.sql.Date with the value '2005-12-04 08:00:00.0' assigned to host variable 9 is not normalized. It must not contain time components in the time zone running the virtual machine.
    I can't find why it is taking time value in the date object.
    This value is coming from the RFC as a date value, and I am saving this value in Java dictionary table.
    Same code for this was working fine earlier. But, now suddenly it gives error like this.
    Even if I provide date on the screen from webdynpro application, this date value can't save in the Java dictionary and gives same error.
    What should be the problem behind this?
    Regards,
    Bhavik

    Hi Satyajit,
    I am getting date value from the screen of the webdynpro application from date picker control and passing this value in Java dictionary.
    More Information:
    I have dat value in the Date object: <b>target_date</b>
    But Now I have made new Date object as following:
    Date target_Date1 = new Date(target_date.getYear(),target_date.getMonth(),target_date.getDate());
    Then I am passing this object to Java dictionary. Still it gives same error.
    Then I have changed code as following:
              int l_year;
              int l_month;
              int l_days;
              l_year = target_Date.getYear();
              l_month = target_Date.getMonth();
              l_days = target_Date.getDate();
         Date target_Date1 = new Date(l_year,l_month,l_days);
    Now it works for me.
    But I guess this is not the perment solution. It looks very strange. I have used so many date objects at various palces. So, this solution is not the final for me.
    I want to findout the main cause of it.
    One more thing: This code was working for a mornth or two. But, now suddenly it is giving this error.
    Please help me if anybody knows.
    Regards,
    Bhavik

  • How to populate data in fields from the same cube

    HI Gurs,
    Need some help. I have a cube it has 11 key figures . Data for 7 of those is coming from another cube for rest of the 4 we need to calculate from two of those 7 fields. e.g.
    Field 1= Field2(First Cube) - Field3(FirstCube)
    Field4= Field5(FirstCube)/1.5
    Field 6 = Field1 / Field4
    I need to pupulate field 4 in the final cube.
    How can I achieve this?
    Can anyone please suggest anything?

    Hi Ray,
    One is as suggested by surendra i.e to populate thru End routine,take help of an ABAPer and do it.
    Else just add the new 4 KF  in the New Cube i.e Cube 2 and in the Individual Routine /Field Routine you can write the same Formula in the  Result of it.Say,For Fields 1 you have to have Field 2,Field 3 and Field 5 as input ,which you hvae include manually in the Individual/Field Routine.
    In Result for Field 1= Field2(First Cube) - Field3(FirstCube)
    In Result for Field4= Field5(FirstCube)/1.5
    In Result for Field 6 = (Field2(First Cube) - Field3(FirstCube) / Field5(FirstCube)/1.5)
    Hope you got it ....
    Rgds
    SVU123

Maybe you are looking for