Timestamp field !!!!

Hi All,
In my report output i am displaying a timestamp field...it is coming in this format '20100501134023' .....
its difficult to interpret.....i wanted in this format : '01-05-2010 13:40:23' ........
Regards,
Deadlocks

You can use RKE_TIMESTAMP_CONVERT_OUTPUT or ADDR_CONVERT_TIMESTAMP_TO_DATE or TZ_GLOBAL_TO_LOCAL  function module.
Or use variable offset.
like:
suppose ts = 20100501134023.
Year = ts+0(4).
Month = ts+4(2).
Date = ts+6(2).
Concatenate date month year.
Pravender
Edited by: Pravender on May 28, 2010 6:10 PM

Similar Messages

  • How can I create an index on the date part of a timestamp field?

    is there a way I can create an index on the date part of a timestamp field?

    LONGENECKER wrote:
    Idea:
    If you find no direct command that allows you to create an index on JUST the date portion of a timestamp datatype column then I recommend you consider splitting date and time into two seperate columns.
    If date is column "A" and time is column "B" then you can concatenate them using a view or virtual column (in 11G) to re-assemble them at run time.
    In the solution I describe above you might trade ease of management for better performing queries.
    Additional Info:
    This thread may be of some value.
    Can we create INDEX on TIMESTAMP column???
    And what datatype do you propose for your columns A and B? The only proper datatypes would be DATE or TIMESTAMP. Both of these inherently carry both date and time components, so that would have to be dealt with anyway. The use of any character or number datatype to hold date and/or time should be treated with an application of Billy's lead pipe.
    Perhaps function based indexes would be a better solution.

  • Storing the Timestamp field in the Table

    Hi
    I have a Z program and we need to store the timestamp field in the Z table . I have created the table with the dataelement
    TIMESTAMP . Is there any system field that can be used to store the timestamp field from your program
    say for example we have declared a work area of the structure of the Z table and Appended through the Internal Table and Modified that Z table.
    My intention is store the Timestamp field in the Z table.
    Nadesh

    Hi,
        you can add as below..
    types : begin of st_output.
                             include structure ztaxinvoice.
                             FKIMG1 TYPE VBRP-FKIMG,
                             FKIMG2 TYPE VBRP-FKIMG,
                             types : end of st_output.
        or you can add this field to your structure 'ztaxinvoice'  as below
    'FKIMG1 TYPE FKIMG'
                                       'FKIMG2 TYPE FKIMG'
       Then you can declare internal table and work area as mentioned below..
    data: it_output type standard table of ztaxinvoice,
                            wa_output type ztaxinvoice.
    here in this case no need of types declaration also you can pass the same type (wa_output type ztaxinvoice) in smartform.
    hope this will help you,
    Regards,
    Renuka S.

  • XML Forms. Add a timestamp field

    Hi all
    I have a XML Forms project. I have included the valid from and valid until values and have tbs working.
    Appart from this I want to insert in my form another Timestamp field.
    In the datamodel I can´t create an entry of type timestamp, only date or time.
    If I create it date and bind it to a timestamp reaader object from the toolbar I receive an error requesting to have a timestamp type of data binded to it.
    Any help to do this?
    Let me know if you need more info.
    Regards
    Fernando

    Hi Kevin,
    there is no possibility to provide default values or vairable values for date and time properties in KM.
    The only thing you can specify is the format:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/42/e646150fbc3ee6e10000000a1553f7/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/42/e646150fbc3ee6e10000000a1553f7/frameset.htm</a>
    One thing you could do is modify the xsl file and use some additional programming to fill the date whith the values you like.
    But in the standard it is not possible.
    Not only for XML forms, but in general for KM properties this is not possible...
    Regards,
    Sascha
    Regards,
    Sascha

  • Import Wizard with timestamp fields

    Hi there,
    I'm trying to copy data with time stamp from one server to another, but I'm keep getting the following error.
    Error 0xc0202048: Data Flow Task: Attempting insertion into the row version column "TimeStamp". Cannot insert into a row version column.
    (SQL Server Import and Export Wizard)
    Is there anyway I can deselect the timestamp field when I run the wizard?
    How can I successfully transfer the data?
    Thanks
    regards,
    Mike

    Hi, I'm having the same issue even with the On Error column set to 'ignore" in the Data Type Mapping review screen.
    I've also seen in the Conversion Details the comment about timestamp vs VarChar, but if I uncheck the Convert column I am unable to run the import.
    There must be a way to overcome this?
    Thanks
     Validating (Error)
    Messages
    Error 0xc0202048: Data Flow Task 1: Attempting insertion into the row version column "TimeStamp". Cannot insert into a row version column.
     (SQL Server Import and Export Wizard)
    Error 0xc0202045: Data Flow Task 1: Column metadata validation failed.
     (SQL Server Import and Export Wizard)
    Error 0xc004706b: Data Flow Task 1: "component "Destination - SorContractPrice" (92)" failed validation and returned validation status "VS_ISBROKEN".
     (SQL Server Import and Export Wizard)
    Error 0xc004700c: Data Flow Task 1: One or more component failed validation.
     (SQL Server Import and Export Wizard)
    Error 0xc0024107: Data Flow Task 1: There were errors during task validation.
     (SQL Server Import and Export Wizard)
    [Source Information]
    Source Location : E:\SYSPRO61\Temp\METSUPL.xls
    Source Provider : Microsoft.Jet.OLEDB.4.0
    Table: `METSUPL$`
    Column: TimeStamp
    Column Type: VarChar
    SSIS Type: Unicode string [DT_WSTR]
    Mapping file (to SSIS type): C:\Program Files (x86)\Microsoft SQL Server\100\DTS\MappingFiles\JetToSSIS.xml
    [Destination Information]
    Destination Location : siwerp
    Destination Provider : SQLNCLI10
    Table: [dbo].[SorContractPrice]
    Column: TimeStamp
    Column Type: timestamp
    SSIS Type: byte stream [DT_BYTES]
    Mapping file (to SSIS type): C:\Program Files (x86)\Microsoft SQL Server\100\DTS\MappingFiles\MSSQLToSSIS10.XML
    [Conversion Steps]
    Step 1: DT_WSTR to DT_BYTES
    SSIS conversion file: C:\Program Files (x86)\Microsoft SQL Server\100\DTS\binn\DtwTypeConversion.xml

  • CMP 2 non mandatory timestamp field in Oracle 9 release 2

    Dears,
    My machine holds the following:
    Win XP pro SP 1
    Oracle 9i release 2 DB
    Jbuilder X enterprise Edition with SUN ONE App Server plugin
    SUN ONE Application server platform edition update 2
    They are all in the same machine (so there is no problem as issue 4707531 of using different Oracle drivers)
    I connect using OCI not thin.
    I got the following problem when trying to test my Session EJB that calls CMP.
    SEVERE ( 4716): EJB5071: Some remote or transactional roll back exception occurredcom.sun.jdo.api.persistence.support.JDODataStoreException: Got a JDBC SQLException.
    Please read the remaining error stack for more information.
    NestedException: java.sql.SQLException: Invalid column typeBy tracing the problem I noticed that my code works fine if I set a timestamp field in this table, this timestamp is not mandatory.
    Is it a bug in SUN ONE with Oracle 9i, or anyone have a solution?

    Hi Ash,
    Could you please verify that your .dbschmea file and table creation scripts are in sync. The easiest way to achieve this is to recapture the .dbschema file, repackage and redeploy.
    Thanks,
    Mitesh

  • Adding a timestamp field to a table (MySQL database)

    I've defined a field in a MySQL table as type 'timestamp'
    eg. 2010-05-25 21:36:19
    When I perform an insert using coldfusion, the row doesn't change the value in the timestamp automatically
    Am I better creating my own timestamp field, type varchar and manually insert my timestamp values ?

    No, it is a pretty bad idea to use a text field to store date-time information.  It makes it much harder to do date and|or time calculations on the data.
    A timestamp field does not mean you have a field that automatically inserts a timestamp on record insert and|or update.  Just that you have a field that expects a 'timestamp' value which is usually a date-time value down to the millisecond precision.
    You can set up the database to automatically create this value when data is inserted and|or updated, but that is more then just creating the timestamp field.  And the specifics will change depending on your exact database management system.  Searching the internets for information on your database managerment system of choice and auto and|or default values for fields should guide you in the correct direction.
    Or you can insert timestamp data along with the other data you are inputting into the database.  The now() function combined with the <cfqueryparam value="#timeData#" cfsqltype="cf_sql_timestamp"> is a useful combination to do this.

  • Use of Timestamp field in Syndicator selection.

    Hi Expertes ,
    I have a timestamp field in repository to check the updates for some 2-3 fields & I want to use This timestamp fieldas selection parameter for syndication. ie. basically to syndicate the records only if timestamp = Today or current date . Do you know How this can be done ?
    Thanks,
    K .Anand

    Hi Anand,
    I faced this kind of a requirement. Actually I doubt whether this can be achieved by syndicator.
    However I can give you a Workaround.
    You can write a Validation which will compare the Time stamp value and the System Time. Keep the difference as 1 second.
    Use the Validation in a Workflow.
    So as soon as any of those 2 or 3 fields gets updated, the Workflow will automatically catch them and then you can use the SYNDICATE stencil and the records will get syndicated to the port you mention.
    This is how I was able to do it.
    Hope it helps.
    *Please reward points if found useful.
    Thanks and Regards
    Nitin jain

  • Timestamp field in BAM dataobject

    Hi,
    There is requirement for us to find response time of a service in milliseconds. For this we need to insert two timestamp fields in BAM data object. But BAM is allowing us to include only one Timestamp field in a data object.Is there any other work-around to overcome this problem.

    Hi,
    UPMOD     Record Mode -- check there is a filed record mode which will handle the images.
    Check the help link
    http://help.sap.com/saphelp_nw70/helpdata/en/be/928f40f5767d17e10000000a1550b0/frameset.htm
    In the delta process, the DataSource transfers the record data with the new status in each case. For this reason, the data cannot be updated directly to the InfoCube. The update is only possible using the ODS object (update with MOVE).
    For safety, the delta process uses a lower interval setting of one hour (this is the default setting). In this way, the system always transfers all postings made between one hour before the last delta upload and the current time. The overlap of the first hour of a delta upload causes any records that are extracted twice to be overwritten by the after image process in the ODS object with the MOVE update. This ensures 100% data consistency in BW.
    For deltas settings
    you can make important global settings in SAP R/ in the table BWOM_SETTINGS.
    Check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/41/4b73415fb9157de10000000a155106/content.htm
    Regards
    KP

  • Problem with selecting from timestamp field for a particular date

    We're running 10g and we have a timestamp field whose values look like this:
    SQL> select timeinserted from files where rownum < 3;
    TIMEINSERTED
    16-APR-05 01.08.35.97634 PM
    16-APR-05 01.16.10.00419 PM
    SQL>
    I'm trying to run this query, but it returns no rows even though I know there should be some:
    select timeinserted from files where timeinserted = '27-MAY-05';
    I know I just need to somehow tell it to convert the timestamp to date or something like that. How should I rewrite this query? Thanks...

    select timeinserted from files where timeinserted = '27-MAY-05';
    this is poor coding, you compare a date with a varchar2. Not to mention using 2 digits years...
    try something like
    select timeinserted from files where timeinserted >= to_timestamp('27-MAY-2005', 'DD-MON-YYYY') and timeinserted<to_timestamp('28-MAY-2005', 'DD-MON-YYYY');

  • InfoObject  for Timestamp field??

    Hi Guru's,
                   I'm creating a view for a generic datasource which will feed a DSO. The table I'm extracting data from has a timestamp field. I need help to find out which I/O should I use to map this field in BI. Thanks a lot.

    Hi Akash,
    We resolved this problem by creating a generic datasource and populating it via a simple function module.
    Regards,
    Payal.

  • Definition of timestamp field in the message tracking log

    Hi,
    anyone can help me with the exact definition of timestamp field that I retrieve in the messagetracking log?
    I think that is the exact time by which the exchange server receive a mail and start to elaborate it
    Can you confirm please
    Thank you very much
    Luca Pozzoli

    Hi ,
    Please have a look in to the below mentioned points .
    Anyone can help me with the exact definition of timestamp field that I retrieve in the messagetracking
    log?
    Time stamp in exchange will help us identity at when and what time the message has been received and processed
    from source server to destination server.
    With the help of time stamps we can able to identify the message delay between the hops .
    As an additional info you can review the time stamps in message headers as well on the message tracking logs.
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

  • Working with TIMESTAMP fields in Excel

    Please forgive me if this is a really stupid question.
    I have an Oracle 10g dtabase that i am trying to connect to via ODBC in Excel.
    I can get data from tables into MS Query untill i try and insert a TIMESTAMP field when all fails. The TIMESTAMP field ahave a time zone on them.
    Can anyone point me in the direction of an ODBC driver which works in this situation, i have tried the standard MS driver and also the ODBC driver supplied by ORACLE.
    Thanks in advance for any help.

    It would be interesting to know your ODBC driver version.
    Basic TIMESTAMP is supposed to be supported but TIMESTAMP WITH TIME ZONE,
    TIMESTAMP WITH LOCAL TIME ZONE are not supported.
    Do you get the error ORA-932 inconsistant datatypes or another error when you select your Oracle table?
    So far as I remember, you can download the ODBC driver from DataDirect :
    http://www.datadirect.com/products/odbc/index.ssp
    The Datadirect driver seems to handle Timestamp with Time Zone.
    Please try with this one and let me know your feedback.
    Regards
    Mireille

  • Qualified Update - Timestamp field

    Hi All,
    I'm having a qualified lookup FIELD1 and a timestamp field STAMP1 checking for changes in FIELD1, both in main table.
    When I'm creating/deleting or updating qualified links in MDM Data Manager STAMP1 behaves as expected and displays the time of update.
    BUT: when I'm using the MDM Import Server to create/update the qualified links STAMP1 doesn't get notice of it.
    Anybody experienced this or knows how to fix this?
    Thanks & Best Regards,
    Ingo

    Hi,
    I'm really sure. I can see how the qualified link gets created and the modification date doesn't change. The same happens when I update the link with new values.
    Inbound Port is set to automatic.
    MDS, MDIS and client versions are 5.5.42.92
    [GLOBAL]
    Version=5540
    Server=xx
    Interval=10
    Verbose=0x0020
    Log Dir=C:\PROGRA1\SAPMDM1.5\IMPORT~1\Logs
    SLD Registration=False
    String Resource Dir=C:\PROGRA1\SAPMDM1.5\IMPORT~1\LangStrings\
    MapScanTopToBottom=False
    [xx\MDMMSQL_11_12_4_3]
    Chunk Size=30000
    No. Of Chunks Proccessed In Parallel=3
    Login=Admin
    PasswordE=xx
    Log Protocol Transactions=False

  • Converting a timestamp field from GMT to EST

    Hi
    I have to convert the timestamp field coming from the source from GMT to EST.
    CREATE TABLE X
    TS_FIELD TIMESTAMP(6)
    INSERT INTO X VALUES('07-JAN-13 02.00.06.597000 PM');
    INSERT INTO X VALUES('07-FEB-13 02.00.06.676000 PM');
    INSERT INTO X VALUES('07-MAR-13 12.36.14.260000 PM');
    INSERT INTO X VALUES('07-APR-13 12.36.56.713000 PM');
    INSERT INTO X VALUES('07-MAY-13 03.46.48.800000 AM');
    I need to convert the above timestamp field from GMT to EST in 24hour format.
    I tried it doing,but I am getting hours conflict with the day error.
    I have tried the below one and milliseconds being set to zero's
    select X,
    TO_timestamp(TO_CHAR(CAST(FROM_TZ(CAST(TO_DATE(TO_CHAR(X,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    ,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    AS TIMESTAMP),'GMT') AT TIME ZONE 'US/EASTERN' AS DATE),'YYYY-MM-DD HH24:MI:SS.SSSSS'),'YYYY-MM-DD HH24:MI:SS.SSSSS')
    FROM X
    Please help me in this regard.I am trying in parallel as well.
    Thanks in advance
    KVB

    Not clear what are you trying to achieve..Why are you casting as DATE?
    SQL>  select ts_field,
      2          cast(from_tz(ts_field,'GMT') AT TIME ZONE 'EST' as timestamp) t
      3   FROM X;
    TS_FIELD                                                                    T
    07-JAN-13 02.00.06.597000 PM                                                07-JAN-13 09.00.06.597000 AM
    07-FEB-13 02.00.06.676000 PM                                                07-FEB-13 09.00.06.676000 AM
    07-MAR-13 12.36.14.260000 PM                                                07-MAR-13 07.36.14.260000 AM
    07-APR-13 12.36.56.713000 PM                                                07-APR-13 07.36.56.713000 AM
    07-MAY-13 03.46.48.800000 AM                                                06-MAY-13 10.46.48.800000 PM

Maybe you are looking for

  • Passing parameter between Components

    I have two components in different applications.  One is use to display details to an employee and the other shows a manager a rollup of employee's detail information.  There is a button on each employee in the manager view where the manager can disp

  • Get credit for song purchased twice

    How can I get credit for same song purchased twice?

  • How to integrating php with flex

    hi    iam new to flex i want to check the username and password from database using php and i have written that but iam getting this error [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent

  • When will Camera Raw be available for Canon G7 X??

    Received new G7 X, unable to load in Lightroom 5.6.  Canon DPP not my first choice...

  • Should ClamAV be running while Email & iCal turned off?

    I have a 10.6.5 Xserve with errors logged about the ClamAV installation begin outdated. The server incorrectly had iCal server running (but never used), which I have turned off, expecting it to also stop the ClamAV errors. Even after a reset to ensur