Date field in create record has time =00

I have set
PLSQL_DATE_FORMAT, 'MM/DD/YY HH24:MI'
BUILTIN_DATE_FORMAT, 'MM/DD/YY HH24:MI'
I do not want to change defaults on App Server.
Then I have date & time in 2 fields for ease of changing.
After User Changes 03:20 to say 04:15, I want to create the record by contacenating the new time to current date and store record.
As Add date is not allowed.
So I have displays of global.mydate which shows
correctly as MM/DD/YY 04:15 etc, so the concat is working ok.
But when I equate my block field to this field
in say :Block.var := to_char(:global.mydate,'MM/DD/YY HH24:MI')
My created filed var still has 00 in the date and time field.

If :global.mydate is a text string and :Block.var is a datetime datatype, then your command should be:
:Block.var := to_date(:global.mydate,'MM/DD/YY HH24:MI')
Note that by using only a 2-character YY for year, your century will always be '20'.

Similar Messages

  • Multiple Date Fields (Fact Table) - Linking with Time Dimension

    I have a fact table that has multiple date columns.
    I can make a time dimension, but it has to be joined to a particular date column. This becomes difficult because of the limit in having multiple date fields reference one time dimension. I can see possibly
    creating a date table which contains all dates, link to fact as well as time dimension table. I am trying to better visualize the table layout on this one. Or are there possibily better ways of looking at this senerio
    Any idea's

    Figured this one out; going to use one time dimension - what looking too much into the details in regard to this scenerio

  • Error with date field when inserting records into sql server from webdynpro

    Dear SDN's,
    I am trying to insert the records into sql server through my webDynpro program.
    I have created a date field in a dictionary with the datatype date.
    In my webdynpro program to insert the date i am following the below format.
    String dateString = "2006/12/10";
          java.util.Date d=new java.util.Date(dateString);
          java.sql.Date <b>date</b> = new java.sql.Date(d.getTime());
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,<b>REQDT</b>,ADVCE,ETADV,PURTR) values(21, '555-1212', '" + <b>date</b> + "', 5000, '20060501','hi')");
    when i try to execute it, it gives the following error.
    <b>com.sap.sql.log.OpenSQLException: The SQL statement "INSERT INTO "TRAVEL_HEADER" ("TRQID","PROJECTID","REQDT","ADVCE","ETADV","PURTR") VALUES (21,'555-1212','2006-12-10',5000,'20060501','hi')" contains the semantics error[s]: - type check error: new value (element number 3 (CHAR)) is not assignable to column  >>REQDT<< (DATE)</b>
    Please correct me.
    Your help will be appreciated.
    Regards,
    Sireesha.B

    Hi,
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,REQDT,ADVCE,ETADV,PURTR) values(21, '555-1212', 'date', 5000, '20060501','hi')");
    try like this.
    I Think in SQL the general format to take date as input like this.
    INSERT INTO X VALUES ('10/30/56')
    thaks,
    Lohi.

  • Calculate Days between same date field in multiple records, looping for each record

    Be patient as I am a newbie to Sql Server (using 2008 R2) and SSIS.  I have looked at multiple solutions in this and many other forums before submitting the question.
    I am looking at records to identify the number of days between two dates.  We review drug information.  A member uses drug A (Code identifies this called GPI) and has refills throughout time.  The goal is to calculate the days between Refill
    1 and refill 2, then refill 2 to refill 3, etc.  When that member record set is complete, we move to the next member record set.
    The basic data would be as follows.  Each record shown below would be a separate record in a single table :
    Member
    Drug Code
          DateService
             Days Between
    1
    A
    3/1/2012
    0
    1
    A
    3/27/2012
    27
    1
    A
    4/21/2012
    26
    1
    A
    6/15/2012
    56
    1
    F
    2/25/2012
    0
    1
    F
    3/20/2012
    25
    1
    F
    4/17/2012
    29
    1
    F
    8/1/2012
    107
    5
    B
    2/15/2012
    0
    5
    B
    3/10/2012
    25
    5
    B
    4/10/2012
    32
    5
    B
    6/28/2012
    80
    5
    B
    7/10/2012
    13
    5
    B
    8/20/2012
    42
    The days between is the value I am looking to calculate.  The First record for the grouping of Member and Drug Code will be zero ( 0 ) as there is no preceding date to calculate against.  The process would then loop through the records at the grouping
    (Member and Drug Code) until those records are calculated.  It would then move on to the next group of Member/Drug records.
    Any assistance would be greatly appreciated.  Any clarification I can provide, I would be more than happpy too.  Thank you in advance!

    TSQL- Finding the difference in days of multiple records in SQL ServerWITH OrderDates AS (
    SELECT
    ROW_NUMBER() OVER (ORDER BY OrderDate DESC) AS RowNumber,
    OrderDate
    FROM OrdersTable
    WHERE SKU = 'AA0000'
    SELECT
    AVG(DATEDIFF(DD, O2.OrderDate, O1.OrderDate)) AS AverageFrequency
    FROM OrderDates O1
    LEFT JOIN OrderDates O2
    ON O2.RowNumber = O1.RowNumber + 1
    Fabio Bilicki

  • How to create a Date field with specific date limitations

    Hello, im new to creating forms in Acrobat.
    My question is, how do i create a date field and at the same time have a restriction on which dates to put.
    ie; i want the date field to only enter dates from Jan 01 2015 - Dec 31 2015.
    Thanks for your help.

    Thanks!
    I tried and it worked.
    but what are these numbers after the 2015?
    var minDate = new Date(2015, 0, 1, 0, 0, 0, 0); 
    var maxDate = new Date(2015, 11, 31, 23, 59, 59, 999); 

  • How to create a date field which is 16 months before today(current day)

    Hallo,
    I made a report and i want to set date limits. My data contains a date field so in record selection filter i like to set that the date field is between date1 and date2.
    As date2 i set and as date1 i what to set a date which is 16 months before today(first of that month)
    For example today is 08/05/2010 so,
    date2 = 08/05/2010(August 2010)  and  date1 = 05/01/2009(May 2009)
    Any idea?

    Ian,
    Here's a little formula for getting to the first of the month, that's easier than what you've been using...
    To find the beginning of the current month
    DateAdd("m", DateDiff("m", #1/1/1900#, CurrentDate), #1/1/1900#)
    ... or to find the begining of the month. 16 months ago
    DateAdd("m", DateDiff("m", #1/1/1900#, CurrentDate) - 16, #1/1/1900#)
    Jason

  • Work flow help - forward a date field by a specified call frequency

    Hi There, I have a 'Last Call Date' field and a 'Call Frequency' picklist with values 'Monthly, Quarterly and Yearly'. I would like to forward another field called 'Next Call Date' according to the call frequency chosen.
    Is it also possible to automatically create a task to make that 'Next Call' and populate my calendar?
    Thanks

    Domenic,
    It won't do what you want it to do, the task due date will only forward from the date the workflow ran. But i do vaguely remember finding in the help files somewhere a way to add to a date. So you could possibly create a new field called forward call date and have the workflow update this date with last call date + x days.
    I found this in the help file under Expression Builder - Today ()
    Today's date and time (for example, 01/02/08 11:15:22).
    It is possible to perform calculations with date-time fields in
    calculated fields. When a number is entered in a date-time
    field, days are represented by integers; hours, minutes and
    seconds are represented by fractions.
    For example, to add one minute to the current date and
    time, use the following expression, which is derived from
    the fact that one day has 1440 minutes:
    Timestamp() + 1/1440
    Can't help any more than this as I've not tried to add to a date field, maybe someone else has another idea?
    Good luck
    cheers
    Alex

  • Loading Date fields from flat file to Oracle tables

    Hi,
    I have a flat file with a few date columns. I have given the format for the date field while creating the data store for the flat file. The format I used is 'YYYY-MM-DD'.
    But I get an error when I execute it after associating the module with LKM & IKM.
    The error message is as follows:
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 3, in ?
    OS command has signalled errors
    Can anyone help me out.
    Thanks

    At the time of DataStore creation. You take that date field as string.
    After this, in interface, when you map this date field with table field. You should use CONVERT(<field name>,DATE) in expression editor.

  • Search Page by date field not showing up results

    Hi,
    I am using Jdev 11g and new to adf.
    My applciation needs a search page based on a date field.
    I created a viewcriteria for the object which expects a date field from the user.( the bind variable is of type Date)
    After this i dragged the viewcriteria as af:query (panel with table) on the jspx page.
    Now when i run the application, that is when i enter the date (calendar autogenerated by query component),
    it does not show up any results.
    My date field in the database has a timestamp attached to it, somewhere i read that the timestamp may be causing the problem.
    But i have not found any solution for this one.
    This looks very basic to me, i am sure i am missing soemthing important.
    Besides i even tried the approach of programmaticlly populating the Viewobject(by not using the any query component),
    i can see the Viewobject being populated in the logs( the row count) but on the display page, no rows are shown.
    I am sure i am doing something wrong for this one.
          AppModuleImpl am = this.getAm();
           ViewObject submittalVO = am.findViewObject("AcrSubmittallogView1");
           System.out.println("after getting VO");
           String subDate = this.getSubDate().getValue().toString();
           String query = " to_char(SubmitDtTm,'mm/dd/yyyy') = '"+subDate+"'";
           submittalVO.setWhereClause(query);
           System.out.println("QUERY>>>> "+submittalVO.getQuery());
           submittalVO.executeQuery();
          System.out.println("after executing query "+submittalVO.getRowCount());
           this.setRenderLogTable(true);But i actually want to use the built in query component instead of programmatically doing it.
    Can someone please guide me further.
    Any help will be grt.
    Thanks in advance
    ash
    Edited by: user1175461 on Jul 15, 2010 1:18 PM

    Still not working for me either, here's exactly what I'm doing.
    My query is as follows:
    SELECT
    RO.repair_line_id,
    RO.repair_number,
    SR.customer_po_number, segment1,
    trunc(RO.creation_date) as creation_date,
    I've created a Bind Variable for the creation_date as follows:
    <Variable
    Name="createDate"
    Kind="viewcriteria"
    Type="oracle.jbo.domain.Date"/>
    Which is linked to a view criteria:
    <ViewCriteria
    Name="RepairSearchVVOCriteria"
    ViewObjectName="com.services.cs.vvo.RepairSearchVVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteriaRow
    Name="vcrow1"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="CreationDate"
    ViewAttribute="CreationDate"
    Operator="="
    Conjunction="AND"
    Value=":createDate"
    IsBindVarValue="true"
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    I then dragged the criteria into the page. When running it I get the following:
    AND SR.customer_id =:psCustomerId) QRSLT WHERE ( ( (CREATION_DATE = :createDate ) ) )
    <ViewObjectImpl><bindParametersForCollection> [3510] Bind params for ViewObject: [com.xxx.services.cs.vvo.RepairSearchVVO]RepairSearchAM.RepairSearchVVO1
    <OracleSQLBuilderImpl><bindParamValue> [3511] Binding param "psCustomerId": 34758
    <OracleSQLBuilderImpl><bindParamValue> [3512] Binding param "createDate": 2010-02-18
    Which never brings back any data. My date's look as follows in the database:
    '18-FEB-10'
    I never get any results for the date. I've also tried using the to_char to format the date as the same format, but that always gives a variety of errors. This is driving me batty =0 Any ideas on why it never pulls back data?
    Thanks, Graeme.

  • CATT Record Working Times ESS

    Hi everyone,
    What I need to know is if there is any possibility to add by customizing without any development new fields in the Record Working Times Table. The fields I want are from(hours) / to (hours) for each work day in the weekly view, like it is displayed in the SAP GUI transactions. The hours are available in the daily view and also in the SAP GUI for the weekly view, so I hope its just customizing but I would like to know if anyone has done this as we need our employees to enter time in and time out. Any help as soon as possible will be greatly rewarded...

    In the old ITS transaction CATW you cloud display the hours in the weekly view, but the window got so wide that you lost overview. A lot of customers did complain about that. Therefore SAP developed the weekly overview and the daily detailed view, which is a lot better that the old ITS CATW.
    Our time-people raised the question, but SAP did reply that it is not possible to show hours in the weekly view, and they has no intension of developing this function.

  • BEX REPORT:DATE  FIELD THROWING "X"

    Hi,
           We have a report which is being executed on an infoset.The data is being pulled from ECC and SRM systems.There are primarily 2 issues with this report
    1)Purchasing Group descriptions are not being pulled.Instead an abbreviation is being seen in the report.It looks like currently ony short description is being pulled.Is there a way to pull the long description/medium description for this particular infoobject "Purchasing Group ".Please advise on this  issue.
    2)We have date fields, SC create date(Shopping cart),First Approval date and Last Approval date and Requested Delivery date in the report.
    But the issue is First Approval date and Last Approval date fields are throwing up"X" in the report.Also,Some times ,it appears that ,the date field is being populated in the underlying ODS but in the report ,it is throwing up"X"
    Also, some information on the date fields at infoobject level.
    The date field is defined as a keyfigure
    Type/data type is  Date
    Data Type is u201CDEC-Counter or amount field with comma and signu201D
    But whether it should be u201C DATS Date field (YYYYMMDD)stored as char(8) .
    Please provide some resolutions to work around this particular issue.
    If you require further information,I will provide it.
    Thanks,
    Amar

    Hi Amar,
    As far as 'text' is concerned, check the following changes.
    -ensure that medium or long text is maintained for that field.
    -in Bex, under th display tab for that field, select 'text view' as Medium length text or Long length watever is maintained. (its standard by default).
    this should solve your text problem.
    Regards,
    Pritesh

  • CR XI uses the wrong data field after save/close-open

    I have a quite complex CR XI report (35 sections).  It has 2 embedded sub-reports, connects via ODBC to Sybase, and uses a long and complex SQL statement as a Database Command.  After a fairly small number of edits and saves (I guess between 10 and 20), I can no longer save it correctly.  For example, if I add a particular text field from the command to be displayed.  Run the report in the designer then all is well.  But if I save the report and re-open it then the data field that I added has been replaced by another, totally different field.  This process is repeatable!
    I tried removing some unneeded fields from the Command SQL and that causes a DIFFERENT field to replace the one I select.
    If I re-create the entire report from scratch (copy and paste from the u201Cbadu201D one) then the problem goes away for a few edits and saves; but then returns.
    This is getting very frustrating, because it takes me the best part of a day to copy the report to a new one, including copying all of the formatting and formulae, and ensuring that every field and every section has the correct properties (suppress, new page etc) applied to it.  In order to minimise the risk of it becoming corrupt I u201Csaveu201D infrequently, which can add to the frustration when things go wrong!
    Has anyone got ANY ideas? 
    What can I do to prevent the corruptions?
    Is there a better way to clone the report?
    Does anyone know if CR 2008 would be any better?

    Don,
    Thanks again for your help.  I think that you are misunderstanding the problem a bit.  When I have the report open in the designer I can put the correct field on the designer surface (eg by dragging a field called u201CCustomerNameu201D from the Command in the u201CField Exploreru201D to an appropriate location).  The report then functions perfectly when I refresh (F5) and view it in the u201CPreviewu201D tab, and I see the appropriate names.  However If I close the designer and then re-open it, a DIFFERENT field, u201CCustomerBalanceu201D, is displayed both in the design view and the preview tab, and of course I see the numeric data for that incorrect field in the preview, where I expect to see a name.  The same (incorrect) data is shown when the report is run and displayed via the web browser interface (not within the CR designer).
    I have run and edited the same report on different PCs with the latest CR XI installed and on my PC with many different loads (eg just after re-boot and later in the day with many applications running) all with identical results, so I am confident that it is not resource related.
    Similarly I donu2019t think it can be ODBC related, because it appears to occur when the report is saved, closed or opened.  I am not saving data with the report.  I have now tried using the DataDirect driver, but it will not connect to the Sybase ASA database on a remote server, because it complains that procedure sp_server_info is not found.  This is only supported by Sybase ASE (not ASA).
    There are a lot of conditional fields and sections and page breaks  within the report, these are suppressed with an appropriate formula, but the underlying SQL is just passed one parameter and this is used to select an appropriate single data set (there is no hierarchical grouping or drill-down in this report).  The error is there consistently whatever parameter value is used (i.e. it always displays a value in place of a name in the example above).
    I have still not tried your stored procedure idea, partly because that will require another day to re-write the report.  I might combine that with Jasonu2019s idea and make all display all data via formulae as a first step and then replace the underlying data with a stored procedure.
    I have discovered a temporary work-around though.  I have added more sub-reports (all take the same parameter value) and replaced whole sections with those sub reports, so I was able to remove quite a few data fields from the main SQL query, because these are now queried separately in the sub-reports.  Itu2019s all working at the moment!
         Jonathan

  • Difference in Record Working Time in ESS

    Hello,
    We are implementing ESS on EP7.0 and when I go into the Record Working Time with one user I see the "Profit Segment" field and not for the other user....I feel it's in the Data entry profile of the users but when I compare the profiles I don't find any difference .....
    Any help would be highly appreciated.

    Anil,
    Did you do IMG step Define Field Selection under Record Working Time?  Select Data Entry Section then the Influencing button, and you'll be able to entry the profile name so that you can hide or unhide specific fields.
    Hope that helps.
    Brenda

  • Importing word documents -  data fields

    Hi..
    When trying to import a word document with bookmarks and datafields the bookmarks came correctly but the data fields did not.
    the data fields were created in the word document using an executable file where the fileds in the excel sheet were picked up and filled to the word document. (the descriptions in the relevent fields table in the attached document) when they are imported to robohelp the bookmarks are missing. let me know how i should correct it.

    I'm not surprised about the data fields. That data isn't actually in the Word document, only a reference, so there isn't anything to import to RH. This can't be fixed from RoboHelp; the answer (if there is one) lies in Word, or possibly the executable that gets the data from Excel.
    If you find an answer, please post it - I am having a similar Word problem. I am trying to convert cross-references to regular text - a little bit like "Paste Special > Values" converts formulas to their resulting values in Excel.

  • Update Date Field in Table Row to SysDate

    This appears to be an easy thing to do, but I can't figure out the best way to do it.
    I have a table with 2 input text boxes and some output text boxes.  When either input text box changes for a row, I need to update the date in one of the output text boxes in the same row to the current date. Then, when I commit the changes, the database should show the current date for that date field in that record.
    I'm using JDev 11.1.1.6
    Thanks,
    Ray

    Any help would be appreciated.
    I figure the RowImpl class is being instantiated when the table loads.  Is there a method in the RowImpl class that gets called when a row is changed?  Should I have an action on my submit button that scrolls through all rows to see if any are dirty and update the date from there?
    Please help.

Maybe you are looking for

  • How to get the link between mara, ausp, cawn and cawnt tables

    hello ABAPERS i have got a requiremet in that i have to get the relation . how to get the link between mara, ausp, cawn and cawnt tables and also type how can we get link between  char value and char description in cawn and cawnt tables through ausp

  • How to use global session in ADF

    Hi all, My problem is that I have several sessions that connect to a table in an ADF application. If I update some data in one session and commit, the other sessions do not see it until they requery the data because they are using their own local ses

  • Report footer

    can any one please guide me how to adda filed say "date" o soem text filed in a report footer. through Scripting only.<BR>thanks for hte help

  • How to pause a imported .swf logo?

    I've exported a 3 seconds turning Logo (.swf file, done by After Effect) Pls tell me how to pause the logo after it had fly out (in a 10 seconds slide)? I've tried to pause the logo in After effect till 10 seconds but the .swf export file size is HUG

  • Script busy when downloading files, or just opening up the downloads window

    All of FF locks up until a pop up appears and says that this script chrome://mozapps/content/downloads/download.xml:68 is busy. There is another suppport entry like this, but it was for the MAC, and I did not see a way to add "Me too" but with a diff