Need Time stamp like yyyymmddThhmmssGMT

Hi Friends,
i am doing file to file scenario.
i am getting file with time stamp as 20081020-062614-501.txt. 
But i want Time stamp as yyyymmddThhmmssGMT.txt.
please give me replies.
Thanks
Anil M

Hii
You can solve this by using dynamic configuration.
Please follow the below blog for reference.
The specified item was not found.
Implement the below code to achieve the same.
Create UDF with Date(pre-defined function) as input parameter.
Map the UDF to the root node level of the target message.
//Get Current time
Calendar cal =new GregorianCalendar();
int hour = cal.get(Calendar.HOUR);
if(cal.get(Calendar.AM_PM) != 0)
hour+=12;
int min=cal.get(Calendar.MINUTE);
int sec=cal.get(Calendar.SECOND);
String cur_time=hour""min""sec;
//Get Input Date in the reqd format
String Datetime= Date+""cur_time"GMT";
//I hope file name is constant
String Filename ="ABC";
String extension =".txt"
String dynaname = FilenameDatetimeextension
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
“http://sap.com/xi/XI/System/File”,
“FileName”);
conf.put(key,dynaname);
return "";
Rgds

Similar Messages

  • Need time stamps on browsing history which no longer show after firefox reset

    Reset Firefox after Flash problems. Now browsing history does not show time stamps, which it did before. Could find no means on library screen to produce time stamps or alter the page in any way.
    Thanks

    You can copy the places.sqlite file from the Old Firefox Data folder on the desktop to the current Firefox profile folder.
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • With in smart forms   i need time format like 12:26:37

    hi,
    in smart forms time format is coming to one variable time in this format 122637, but i need this format  12:26:37
    plz tell me the answer.
    thanks.

    Hi
    Check this:
    REPORT  ztest_time_conv.
    DATA: hour(2) TYPE n,
          min(2) TYPE n,
          sec(2) TYPE n,
          tim TYPE i.
    DATA: time TYPE p DECIMALS 2.
    DATA: timeformat TYPE sy-uzeit.
    time = '1.38'.
    tim = time * 3600.
    hour = tim DIV 3600.
    tim = tim MOD 3600.
    min = tim DIV 60.
    sec = tim MOD 60.
    CONCATENATE hour min sec INTO timeformat.
    WRITE timeformat.
    BREAK-POINT.
    PS:Code given by Vijay Babu Dudla in other thread..in ABAP general..when I pasted the link,it did not work..so I am giving it here like this.
    Regards,
    VIshwa.
    Edited by: Vishwa Sri Hari on Nov 5, 2008 1:01 PM

  • Formatted Search - Date Time Stamps

    Hi,
    We are trying to use a Date & Time Stamp for two udf's of which I will then calculate the difference in a report. I have a couple of issues. Ideally the user would enter the Start field (udf1), click Shift-F2 and that udf would be populated with a Date/Time Stamp like: 07/12/09 14:30:00 or 07/12/09 02:30PM. The user would also do the same thing for the End field (udf), so I end up with two udf's that both hold a Date/Time Stamp described above.
    1 - It looks like I will either need two udf's each for both stamps, one for the Date (date field type) and one for the Time (hour field type)...or I will need to use an alphanumeric field type to hold the whole timestamp. When using the hour field type I still have some issues.
         and
    2 - I can't seem to get the right sql (sbo query) function to return the date/time stamp and / or I can't cast it or format it the way I would like.
    -If the udf is date field, I can use the GetDate function, but it doesn't seem to get the time with it or the field isn't big enough or formatted properly.
    -If the udf is an alphanumeric field, I cast the GetDate function as nvarchar and it returns the date/time stamp, but it is an alpha field and the date is Jul 21 2009  4:41PM. I don't like the Jul 21 2009 formatting
    -If I use two fields, one for date (date type) and one for time (hours type), the date is formatted the way I like, but the hours field doesn't display the AM or PM and my formatted search doesn't return military time (14:00 instead of 2:00PM), so I can't tell if 2:00 is morning or afternoon.
    So I guess my questions are pretty general...Am I using the correct field types? Any suggestions on what to use? Are there any other ways to format this data? Not all date functions or casts (time, smalldatetime) work in the sbo query so I am looking for options. Any suggestions on what functions or cast to use?
    Thanks

    Hi,
    As you already aware, within B1 you may not treat datetime field easily.  For one of your request: I don't like the Jul 21 2009 formatting.  You could use function such as
    Select CONVERT(nvarchar(30), GETDATE(),106)
    to change it to 21 Jul 2009.
    Thanks,
    Gordon

  • Add time stamp in Final Cut?

    In Final Cut is there any way to add a time stamp, like what you get on a consumer camcorder? The customer wants the date and time to show on the final video. The time and date was not recorded when I recorded the event.

    In the mean time, to get this project done, it looks like I'm editing 60 tiny titles for my one hour video.
    I'm not expert in Motion, but if you already have it, give yourself 5-10 minutes to try and publish the Time Date generator. The basic steps are (I'm doing this from memory so the names of things might be wrong):
    1. Sart up Motion and choose a new FCPX Generator template project. Set the project settings that match your own project settings in FCPX.
    2. Drag the Time Date Generator into the project.
    3. Publish all the parameters you might want to change in FCPXby right clicking on them and selecting publish parameter.
    4. Save the project. this will ask you for a name and category, which once saved, automatically appear in FCPX.
    5. Drag that one new generator to your project, change the duration to fill your whole timeline, and set the parameters to your starting date/time.

  • How to provide date and time stamp to the extracted file.

    I 'm downloading data from DB to Flat file using GUI_DOWLOAD. whenever it is executed it is creating with a file name.
    if i rerun the program the file is overwriting with the same name.
    now based on the requirement how many times i executed, that many times file should be individually created and should be added with date and time stamp.
    like
    if when i executed  at the very first time it should saved with filename, date and time.
    say "Address.txt 04/05/2007 07:55:10"
    When i executed it for second time it doesn't overwrite the file.
    it should create a new file.
    like "Address.txt 04/05/2007 07:59:20".
    Please guide me the way if possible code.
    Thanks in advance.

    Hi Vamsi,
                   Use FM 'F4_PROGRAM' to take file from the user .
    In this case user will enter the file name. u can append date & time to that file path.
    Refer this code.
    CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SY-REPID
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_P_FILE.
    concatenate P_FILE '04/05/2007 07:59:20' into V_FILE.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_file
         filetype                        = 'ASC'
          write_field_separator           = 'X'
        TABLES
          data_tab                        = i_tab
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF sy-subrc = 0.
        MESSAGE i002.
      ENDIF.
    Reward points if helpful.
    Regards,
    Hemant.

  • Stored procedure time stamp

    I have 6 blocks of code that needs to be in a  stored procedure. Now, I need time stamps at the beginning of the stored proc and after executing every single block. I need the time stamp stored within a table.
    If any of the block fails, then the failed block column should not add time to that column.
    Table_To_Store_Time
    Col1                                       Col2                         
    Col3              Col4 (Failed)          ......
    SP_Start_Time               First_Block End Time     2Block_Time            0

    Something along these lines?
    DECLARE @timestamp DATETIME = GETDATE(), @i INT = 0
    DECLARE @tableToStoreTime TABLE (spName VARCHAR(20), blockName VARCHAR(20), startDateTime datetime, endDateTime DATETIME, failed BIT)
    WHILE @i < 10000
    BEGIN
    SET @i = @i + 1
    END
    INSERT INTO @tableToStoreTime (spName, blockName, startDateTime, endDateTime,failed)
    VALUES ('testProc','block1',@timestamp,GETDATE(), 0)
    SET @timestamp = GETDATE()
    SET @i = 0
    WHILE @i < 10000
    BEGIN
    SET @i = @i + 1
    END
    INSERT INTO @tableToStoreTime (spName, blockName, startDateTime, endDateTime,failed)
    VALUES ('testProc','block2',@timestamp,GETDATE(), 0)

  • Time Stamp in millisecond?

    I need Time Stamp data in the Build Table VI to be in ms(millisecond) precision. Right now I get values in second precison only. can I format the cell of the table in any way to display milliseconds?

    You may also ask why you need this kind of resolution.  Be aware that Windows systems (and probably Mac and Linux as well) are multi-tasking and have many active processes when can interrupt yours at any time.  What this means is that something you thought should be occurring at neat 20ms intervals will do so for a few iterations, then suddenly give you a 500ms interval because an e-mail arrived.  If you need millisecond accuracy on a non-RT system, you should ensure it happens in hardware and get the timestamps from hardware as well.
    On the other hand, if you just need to know when things happened, the millisecond resolution will work quite well.  There was a weird bug in LV8 (?) used on Pentium 4 (?) processors where the timestamps were always rounded to even millisecond multiples.  I cannot remember the details, but you can probably find them by searching in this forum.  There was a long thread on the subject.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to setup Time stamp for CO-PA.

    Hello Friends,
    I have created CO-PA datasource in KEB0. Defaultly, the delta method has been selected as
    'Generic delta'. But, I need time stamp for delta process.
    Where can I setup time stamp for CO-PA data source?
    Thanks
    Sumanth

    Hi,
    You need not maintain the timestamp for COPA separately.
    A generic data source for which delta based on the timestamp is automatically created.
    By default the delta for CO-PA is based on timestamp and you need not do it manually.
    Once you do an init for this and see an entry in RSA7 for the COPA data source then you check the option delta status in front of the data source...just click on it and it will tell you upon which field the delta for data source is based...you will find that for CO-PA its by default always timestamp.
    Thanks
    Ajeet

  • Need to add date/time stamp to file name without time change creating new files

    We have setup our application to save data once a trigger event occurs. We also need the date/time stamp as part of the file name. We used Format Date/Time String and concatenated it into the file name. It all works good, but as the time changes (seconds, minutes, etc.) it causes the Write to File to create a new file with the new filename. Is there a way to create the file and save/latch/buffer the time in the file name so that it doesn't create a new file for every second?
    I've attached a shot of the relevant part of our VI. It's all in a big while loop. The data save is in a case/switch so that when it is triggered it starts saving. (The for loop is to split the data up
    into 4 different files). Like I said, it all works except new files are created every second as the time changes instead of just putting it all in one file with the initial time in the file name.
    Attachments:
    TimeInFileNameQuestion.jpg ‏46 KB

    I need a loop in order to use a shift register. I cannot stop the outer while loop (because it would stop the hardware from collecting data), and I cannot add loops inside which bogs down the processor to where the app stops. I've attached a simpler version of my VI which illustrates the problem. While the button is pressed (the trigger) it should save the data (in this case just cycle numbers) into one file with the initial date/time. But, you can see that it creates 1 file/second. I tried using shift registers, but without adding extra loops I can't see how to do it. Thanks
    Attachments:
    FileNameTest.vi ‏29 KB

  • I used "Get Waveform Components" to separate waveform data. I need to get the time stamp and write it on file as an header.

    I am not able to solve the problem because I can't find an I/O vi that writes on file time stamp data. An error occurs, because of connecting different data types. How can I convert time stamp data so that I can use it as input in a write on file vi? Please, help me!

    The problem with the selection seems to be that you are using two different indexing tunnels on the for loop. One of them loops over every value of the first incoming waveform, the other one over all waveforms in the incoming array. The value you wire to the N terminal will be ignored, the number of loop executions will be the minimum of your indexes. Anyway, the loop doesn't seem to do what you wanted:
    - If you want to store the complete waveform: loop over all waveforms, check for the maximum of each of them and write it just like you do now.
    - If you want to store only the values of each waveform that actually exceeded the threshold: You can either use 2 nested for loops to iterate over each value of each waveform. Use shift registers t
    o create new arrays of timestamps / values for the values you want to store. You need to either convert the waveform to x-y-pairs (VI on analog waveform palette) or calculate your own timestamps. You might as well want to check out the "Search waveform" VI. Configure it so that value+-tolerance covers the band between your expected minimum value and your threshold value. The VI will give you the indices and timestamps of all fits.

  • HT2513 Is there a way to see who made an appointment and at what time/on what date they made it? Kind of like a date/time stamp for our network calendar?

    Is there a way to see who made an appointment and what time/on what date they made it? Kind of like a date/time stamp for our network version of iCal? Everyone has all rights and privledges to everyone else's calendar, and sometimes we need to know who did what to whose.

    Christine,
    You can also ask in the Typography forum,
    http://forums.adobe.com/community/design_development/typography?view=discussions&start=0
    The guy running whatfontis is a regular poster there.
    And apart from
    http://www.whatfontis.com/
    there are
    http://www.identifont.com/
    http://new.myfonts.com/WhatTheFont/
    and especially for script,
    http://www.bowfinprintworks.com/ScriptIDGuide.html

  • How do you date and time stamp iCal entries?  We share an event calendar and need to know when a new event was entered into iCal.

    How do you date and time stamp iCal entries?  We share an event calendar and need to know when a new event was entered into iCal.

    BKBK,
    Thank you for your response. That does adequately cover the
    client-originated sessions, but still leaves the ability I am
    looking for unavailable.
    It did serve to definitively answer my most pressing
    question, however, with this statement:
    Note: ColdFusion cannot create a session if an initiator
    application uses a SendGatewayMessage method to start an
    interaction with a client, such as an SMS user. In this case, the
    sending code must keep track (for example, in a database) of the
    messages it sends and their destinations. When a response event
    arrives, it can look up the origniatorID to determine whether it
    was in response to an outgoing message.
    I will play around with the Application scope to see if there
    might be a workable solution there.
    RLS

  • Using Numbers, I need to time-stamp each line in a table for when it was entered

    I need to time-stamp each line in a table for when it was entered.
    I have a formula which is
    "=IF(F18="","",NOW())"
    it gives me the answer I want, but every time I edit any data in the formula is recalculates the date/time to reflect the most recent edit. I do not want to do this. I am open to any and all solutions including using a script. I do not really know anything about scripts except that they are really easy to use once it's written.
    I have a formula i use in excel but it requires circular references in excel. I tried using this formula in numbers but I get the error that says I cannot reference a cell that references back to the cell i’m inputting the formula into (circular reference. It is easy to use in excel just by limiting the # of iterations in preferences. I can’t seem to find any such preference in numbers. Do you know of one? here is the formula:
    "=IF(D4=”",”",IF(B4=”",NOW(),B4))"
      I use it to time stamp each line in a spreadsheet. It is the only way to keep all the previous line from recalculating everytime I add a new line. If I can’t use this formula, do you know of a way to timestamp each line without having it update everytime I add a line or edit the form?
    Thanks in advance- I know this isn’t exaclty an easy question but I have honestly looked everywhere
    emely

    Hi Emely,
    Check the Insert menu:
    The highlighted item is slightly misnamed, requiring a bit more than a simple selection (or keypress combination*) to act as a time stamp.
    Simply choosing the menu item willproduce the result shown in A2: A time and date value is entered, but only the Date part is displayed.
    Setting the cell format to Date and Time, with both parts displayed (as I've done in column B) does show both parts of the Date and Time value, but as you can see, the time part is set to midnight, as it is in any cell where you have entered only the Date part of a Date and Time value. The date was entered here in the same manner as in A3.
    To enter both the current Date and current Time, the process has a few more steps:
    Select the cell
    Go Insert > Date & Time
    Before confirming the entry, double-click the cell (now showing the Date) to open this small dialogue:
    Click the pop-up menu under Choose Date format:
    Choose the last item in the list.
    Results as shown in A4 and B4 of the table above.
    Regards,
    Barry
    •Regarding the KB shortcut shown: The Mac OS lets you define a KB shortcut for any top-level menu item. The one in the menu is a user-defined keypress combination, made to be easily remembered, not to be physically convenient to use. If doing your own, you may want to try for something eassier to get your fingers on.

  • I have an Iphone 4S and I would like to print my text messages, including the thread and the Imessage date and time stamps.  How would I do this?

    I have an Iphone 4S and I would like to print my text messages, including the thread and the Imessage date and time stamps.  How would I do this?

    settings - message - imessage - OFF

Maybe you are looking for

  • Corrupted files upon mounting to install.

    While I had 10.5 installed before on this powerbook, due to some inexplicable freezes I decided to erase-install and ended up having to downgrade to 10.3.9, because each attempt resulted in error and a failure to install properly. Freezes on 10.5 wer

  • Windows 8.1 Pro with Media Center - Problems with Activation

    Hello. I was one of those who tried Windows 8 early and got a Windows Media Center key for free. Today through Dreamspark Premium I got a Windows 8.1 key. I normally used my new Windows 8.1 key and Windows 8.1 were activated successfully and because

  • Hand made or generated GUI code, what do proffesional use?

    Hello! I am currious about what programs people that work as a programmer use? Is it common that they use programs that generats code like Netbeens for instance? I tryed that program in design mode to make a gui, but when I looked at the code it had

  • BANK PAYMENT VOCHER

    Hi All. I have an issue in the FI. in the SPRO , settings where we will give the BANK PAYEMENT VOCHER form. (script/smartform). And what is the corresponding form and driver program. can any body help me to solve this issue. Thanks in advance, Regard

  • 'dd-mm-yyyy hh24:mi:ss ' convertion

    '20061106024500' i want to convert it into 'dd-mm-yyyy hh24:mi:ss format how will i do this.