Timestamp fields format  in IDOC

Hi,
We have to create iDOCs to export data from our system to SAP R/3.
Few of the iDOCS files contains Timestamp fieldsa as this one:
CHECK_TIMESTAMP : RA: Time Stamp: Date/Time for Check-Out/Check-In (UTC)
internal data type : DEC
Internal length : 000015 characters
No decimal places, without sign
Position in segment : 004, Offset : 0100. external length : 000016
I can not find any documentation about the timestamp format.
I assumed the following: YYYYMMDDHHMMSS
... but this is 14 caracters and the field is 15 of length.
Is my assumption is right or am I wrong?
And ... is it documented?
Thanks for help

Yes, it's documented in the ABAP help files.  There's a short form and a long form.  See the help files for GET TIME STAMP or CONVERT TIME STAMP.

Similar Messages

  • 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

  • How to store timestamp in format 'DD-MON-YY HH:MI am/pm'

    Hi,
    I am using a table having one field with timestamp datatype. in this column sysdate is inserted.
    i have used datepicker and converted to text(disabled saves state)
    in default i have used pl/sql function.
    begin
    return to_char(sysdate,'DD-MON-YY HH:MI');
    end;
    But value getting stored is *'02-oct-08 10:00:00:000000000am'* and it is changing pm to am.
    what i need is to store *'02-OCT-08 10:00 am'* hope you got my problem.

    Hello,
    If you make it a DATE field instead of a timestamp field it's stored more in the way you would expect.
    Nevertheless it doesn't matter that much as you can change how it get displayed.
    Your format mask should be something like DD-MON-YY HH:MI AM or without AM it would be DD-MON-YY HH24:MI
    Test: select to_char(sysdate, 'DD-MON-YYYY HH:MI AM') from dual
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • 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

  • Determine Date field format dynamically

    Hello friends,
    I'm writing some database access code in java. The biggest problem I face is date fields. Because I don't know the date field format (For example, in SQL Sever we can have dd/mm/yy or mm/dd/yy, etc), I can't format dates for insert/update statements.
    Is there a way to determine the date field format dynamically? Regardless of database, for ex. MS SQL, Oracle?
    Thank you.

    Hey!
    There is a way to do this! The Oracle Database understands SQL92 Syntax. So you can use
    - {d ?yyyy-mm-dd?} for date representation,
    - {t ?hh:mm:ss?} for time representation,
    - {ts ?yyyy-mm-dd hh:mm:ss.f...?} for timestamp rep.
    Here is a small example:
    // Connect to the database
    // You can put a database name after the @ sign in the connection URL.
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@", "scott", "tiger");
    // Create a Statement
    Statement stmt = conn.createStatement ();
    // Select the ename column from the emp table where the hiredate is Jan-23-1982
    ResultSet rset = stmt.executeQuery
    ("SELECT ename FROM emp WHERE hiredate = {d ?1982-01-23?}");
    // Iterate through the result and print the employee names
    while (rset.next ())
    System.out.println (rset.getString (1));I hope this is what you wanted to know!

  • Regd: date format in idoc

    Hi,
    I am writing a custom inbound function module for processing an inbound idoc. The idoc has date format as 061201(yymmdd). Do i need to handle this explicitly?
    If so, How do i handle this date field in an idoc to update the date field while posting to a ztable?
    Please give me suggestions.
    Thanks,
    Das.

    Hi,
    Check this..
    data: v_char(6) value '061201'.   "yymmdd
    data: v_date type sydatum.
    CONCATENATE '20' v_char(2) v_char2(2) v_char4(2) into v_date.
    write: / v_date.
    Thanks,
    Naren

  • 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

  • TIMESTAMP field is not available in BW for the datasource 3FI_GL_P1_SI

    Hello,
    We have created a datasource 3FI_GL_P1_SI using transaction FAGLBW03 for the Regulatory Ledger i.e. P1.
    Now, when we check data in RSA3, we see that the TIMESTAMP field is available. This field is not hidden. When we replicated this datasource in BW, the TIMESTAMP field is not present. Has anyone faced such issue before?
    One more issue with this datasource is that, though the TIMESTAMP field is present in R/3, its data is not correctly populated.This field should store the data in the format (YYYYMMDDHHMMSS) but it stores the hexadecimal data. However, when we check the data of the datasource 0FI_GL_14, the data is correctly populated. Could you please let us know how to overcome these issues?
    Thanks and Regards,
    Nitin Chopade.

    Hi,
    In RSA6 check the selection option then try to replicate and Activate....
    Regards,
    Satya

  • Writing the value from an unbound Date picker field to a timestamp field.

    Hi,
    I am having a frustrating time trying to write the results of a date field to a Timestamp field in an oracle10 table in APEX 3.1. The Date Picker correctly returns 01-JUN-2008 23:59 into the date picker page item :P60_EXTENTION_DATE (As a varchar I believe).
    Using a plsql function similar to the following I am trying to write the date to a timestamp field eg.
    begin
    update customers set extention_date = :P60_EXTENTION_DATE where ROW_ID = 34;
    end;
    This without fail this gives me stupid errors it wants 2 digit years, it wants AM/PM.
    I have tried this:
    update customers set extention_date = to_date(:P60_EXTENTION_DATE) where ROW_ID = 34;
    and:
    update customers set extention_date = to_date(:P60_EXTENTION_DATE,'DD-MON-YYYY HH24:MI') where ROW_ID = 34;
    How can the date picker return a date that oracle "ORA-01821: date format not recognized" ? It just seems un-intuitive (fricken retarded) to me.
    I have tried about 30 combinations date picker, to_date formats etc. and it is driving me nuts, can someone please tell me which combination of date picker and to_date function I need to make this work.
    1 free internets to anyone who can help.
    Cheers
    Message was edited by:
    cl3ft typos

    Hello,
    >> …trying to write the results of a date field to a Timestamp field …
    can someone please tell me which combination of date picker and to_date function I need to make this work.
    If the target is a timestamp column, did you try to use the to_timestamp function? http://www.techonthenet.com/oracle/functions/to_timestamp.php .
    Regards,
    Arie.

  • How to get  generic delta using timestamp field

    Hi All,
    i have created a generic datasource using tables vbrp,vbrk.mara,marc,knvv.. to get the sales data for planning.Here i have document created date and time.So i'm concatinating these 2 date and time fields into timestamp which is of format yyyymmddhhmmss.Finally i'm using this timestamp to extract data .
    So is it the right way to pull the data using timestamp and what is the timezone i need to specify as the servers are in india only.
    or any other way to proceed.
    Thanks
    Rao.

    Hi Rao,
    Delta based on timestamp based on generic datasource only works if any one of the tables contains timestamp field(not time and date fields separately).
    I dont think by combining date & time fields will give you correct results.
    Regarding time zone: Use SAP system time zone.
    Srini

  • How to find out the manditary fields in an IDOC

    Hi,
    How to find out the manditary fields in an IDOC.
    For example MATMAS05 .
    For this 2 segments I want to find out the manditary fields.
    E1MARA
    E1MAKTM

    Hi,
             go to transaction WE30 and give the corresponding IDoc type and enter. Then you will get all segments for that IDoc type then double click on segment. A popup box will come in that it will show a check box whether it is a mandatory segment or not. And segment editor button will give all the field details.
    Regards

  • 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.

  • Passing Changed  extended fields using ALE-IDOC to receiving system

    Hi all,
    Please tell me how passing changed  extended fields using ALE-IDOC to receiving system can be achieved. Is it possible by Chnage pointer concept.Do i need to do some coading after data enters into receiving system as it is required while creating the entries in database table.
    For ex. in matmas05 extended for classification and inspection view and then created using 'CREATION'
    related bapi.Do i also need to incorporate the changes by change related bapi or ir can be handled by change pointer concept.
    Thanks.

    Hi Sanu
    1) Please tell me how passing changed extended fields using ALE-IDOC to receiving system can be achieved. Is it possible by Chnage pointer concept.
    => Looks like you have extended standard IDOC here. so you need to find User Exit or BADI for the Push program to populate the additional fields. Yes, it is possible thru change pointers as well.
    1) Do i need to do some coading after data enters into receiving system as it is required while creating the entries in database table.
    => Yes, as suggested in 1 try finding User Exits/BADIs.
    Regards
    Shital

  • How to know where the value of a field in an IDoc is saved?

    Hello SAPients!
    I'm working in ECC 6.0. I have an Inbound Idoc of type WPUBON01. In the segment E1WPB01it has a field named BONNUMMER. My question is: How can I know what TABLE-FIELD is being populated with the value of that field? I mean, is there a way to know the mapping of the fields of an IDoc?
    Thank you in advance for your kind help.

    Hi,
    The table name is WPLST
    I did the following..
    Go to the segement structure in SE12..
    Double click on the data element for that corresponding field..
    Then put a where used-list for that data element...To search in tables..
    I got the table WPLST.
    Thanks,
    Naren

  • 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.

Maybe you are looking for

  • How many memory slots on mac mini 2010?

    I have a Mac Mini 2.4 (mid-2010) I bought used with 4GB of RAM. The previous owner upgraded from the standard 2GB. I have the chance to get 2X more 2GB cards that are compatible. I am curious if I can do that. Are there 4 memory card slots? Or would

  • Acrobat 9 Pro Extended - Print to PDF setup on Windows 7 64bit???

    Hello, I recently purchased a high-end laptop, running Windows 7 64-bit OS. I've installed my Adobe Acrobat 9 Pro Extended software but it will not be recognized as a print option under the printers setting. Is there an update to Acrobat 9 Pro Extend

  • Can I use the LAN port out of the network?

    I just bought an Express to use with a neighbor. They have a desk top PC and a DSL modem. If we plug the modem into the extreme, can I just plug his PC into the LAN Port without having to configure it to the Extreme (we don't want to create a linked

  • Custom Component using Rights Management

    Hello! I'm trying to build a custom component that interact with LiveCycle Rights Management. In my implementation I need to use the: import com.adobe.livecycle.rightsmanagement.client.RightsManagementClient; in order to call a policyManager object.

  • Creating a slideshow in iweb

    i noticed a topic on slideshows where the user was having problems with the pixilation and was wondering how to do this on iweb. it is something i would like to include on my website if possible