Accomodating date and time in a single Info object

Hi Gurus,
We are getting an R/3 field(2 fields) as "YYYY.MM.DD HH:MM:SS". And we have mapped that fields to a Two IO (CHAR).Data is getting loaded fine,but not getting it in the same format (with required DOTS and COLONS).Is there any routine that I can write for this IO.If any one have it ,please pass it on.
The two info objects are : ZCREATE & CHANGEDAT are mapped to "created_at" & "changed_at".
Please tell me step by step code.
Points wil be assured.
No idea on how to write a routine .
Urs,
Rakesh.

Hi
i am getting an error after doing that.
E:Field "COMM_STRUCTURE-/BIC/ZCREATE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
Below is my Code.
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
DATA:   ...
data l_ZCREATE LIKE COMM_STRUCTURE-/BIC/ZCREATE.
data l_ZCREATE1 LIKE COMM_STRUCTURE-/BIC/ZCREATE.
data : l_year(4) type c,
l_mon(2) type c,
l_day(2) type c,
l_hh(2) type c,
l_mm(2) type c,
l_ss(2) type c.
$$ end of global - insert your declaration only before this line
$$ begin of routine - insert your code only below this line -
IF NOT COMM_STRUCTURE-/BIC/ZCREATE IS INITIAL.
l_/bic/ZCREATE = COMM_STRUCTURE-/BIC/ZCREATE.
l_year = l_ZCREATE+0(4).
l_mon = l_ZCREATE+4(2).
l_day = l_ZCREATE+6(2).
l_hh = l_ZCREATE+8(2).
l_mm = l_ZCREATE+10(2).
l_ss = l_ZCREATE+12(2).
concatenate l_year '.' l_mon '.' l_day ' ' l_hh ':' l_mm ':' l_ss
into l_ZCREATE1.
RESULT = l_ZCREATE1.
ELSE.
RESULT = COMM_STRUCTURE-/BIC/ZCREATE.
ENDIF.
RETURNCODE = 0.
Please Correct me where its wrong.
Urs,
Rakesh.
null

Similar Messages

  • Accomodating date and time in a single Infoobject

    Hi Gurus,
    We are getting an R/3 field(2 fields) as "YYYY.MM.DD HH:MM:SS". And we have mapped that fields to a Two IO (CHAR).Data is getting loaded fine,but not getting it in the same format (with required DOTS and COLONS).Is there any routine that I can write for this IO.If any one have it ,please pass it on.
    The two info objects are : ZCREATE & CHANGEDAT are mapped to "created_at" & "changed_at".
    Please tell me step by step code.
    Points wil be assured.
    No idea on how to write a routine .
    Urs,
    Rakesh.

    Hi,
    Currently what format your getting? Please let me know...... so that i can give the correct ABAP code to you...
    In my perspective, the time will be loaded properly!!!! because it is standard object... it will take automatically its own format..... (if this also not in your format, let me know)...
    I will assume that the time is coming to BW like this : YYYYMMDD.
    Then the ZCREATE info object update rule routine is as follows:
    DATA : date_only(10) type c.
    concatenate COMM_STRUCTURE-ZCREATE+0(4) '.'
                COMM_STRUCTURE-ZCREATE+4(2) '.'
                COMM_STRUCTURE-ZCREATE+5(2)
    into date_only.
    result = date_only.
    Please verify it and let me know!!!!!!!!!!!!!!!!!!!

  • How can I display the date and time from the playhead info as a subtitle ?

    Is there any way it is possible to display the video capture data and time during playback. I have seen some discussion on creating subtitles to do this, it would be nice if one could simply add a Title template with display fields for playhead information so that it automatically gets created during rendering.
    In case you are wondering why on earth anyone would want this, I would like to use this for display on multisport racing videos.
    Thanks

    There is a Date/Time title in the titles browser, does just what it says...

  • Getting Date and Time into a single field

    Hi,
    I am loading from a flat file which has field Start time which comes in the format of MM/DD/YYYY  HH:MM:SS ( Hour: Minute: Second). How can i bring this and store this in BW as one single field. Even in the source it is a single field.
    I would also need to use this info object as a key in my ODS
    Please advise,
    Thanks
    Rashmi.
    Edited by: Rashmi Vellampalli on Oct 8, 2008 7:32 PM

    >
    Rashmi Vellampalli wrote:
    > Hi,
    >
    > I am loading from a flat file which has field Start time which comes in the format of MM/DD/YYYY  HH:MM:SS ( Hour: Minute: Second). How can i bring this and store this in BW as one single field. Even in the source it is a single field.
    > I would also need to use this info object as a key in my ODS
    >
    > Please advise,
    >
    > Thanks
    >
    > Rashmi.
    >
    > Edited by: Rashmi Vellampalli on Oct 8, 2008 7:32 PM
    You should user an infoObject/field for tyoe CHAR, length 24. Once you read this, in transfer rules, write an ABAP Code to seperate Data, time and AM, PM. Once you read all the characters from your source, its very simple ABAP to seperate them in Transfer Rules.
    Uday-Ram Chamarthy

  • How can I put current date and time in Photo Info (Print module)?

    I often use the Photo Info option in the Print Module to caption my proofs with File Number plus the date and time the print is made.  This allows me to match up the print to the History state for the image, so I know which print version I'm looking at.  I've always wanted to get Lightroom to automatically enter the date and time the print is made.  It obviously knows this info, since it stamps the History state with date and time.  Currently I have to modify my caption manually with Custom text each time I make a print.  This is a major PITA.  Has anyone figured out how to get Lightroom to do this?

    There is a Date/Time title in the titles browser, does just what it says...

  • How do i show date and time info of videos in Iphone as they appeare before import in iPhoto?

    How do i show date and time info of videos in Iphone as they appeare before import in iPhoto? or even as they appear on the iPhone itself? The selection on tool bar for show info is greyed out.

    Welcome T G Brown to the  iMovie boards..
    the socalled timestamp is within the imports.. if you select a clip in iM and hit the key combo Apple-I, you can see recording time and date.
    unfortunately, this info isn't delivered to any software. Bruce Gee (geethree.com, excellent plug-in maker) told us, there's no 'API' he could use for such a feature...
    same on the pro side, read this discussion at the FinalCutExpress boards:
    http://discussions.apple.com/message.jspa?messageID=7982935
    Forum member Ian offers a solution with a 3rd party app ....
    so: pen&pencil and typing timestamp manually into any 'Title' seems to be your only option...

  • Parsing date and time info

    Hello,
    Could you please help me find the date and time out of this output :-
    1094130971507 ?
    The following code resulted in this output,
    Date now = new Date();
    DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT,
    DateFormat.MEDIUM, Locale.US);
    String timeFrame = fmt.format(now) + " " + frame; // frame = some data
    try {
    File histFile = new File("logfile" + (new Date()).getTime() + ".txt");
    FileOutputStream histStream = new FileOutputStream(histFile);
    printWriter = new PrintWriter(histStream, true);
    catch(Exception e) {
    System.out.println(e);
    printWriter.println("OUT " + timeFrame);
    I tried to tokenize the logfile and read the date and time value by using the StreamTokenizer and I have the data as 1094130971507 in the double st.nval. I have to extract the time information alone from this double.
    Does some have a smart idea ?.
    Thanks in advance,
    Domnic

    Could you please help me find the date and time out
    of this output :-
    1094130971507 ?
    printWriter.println("OUT " + timeFrame);You are claiming that the first was the result of the second?
    Not with the Sun VM it doesn't.
    The following code...
    DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT,
    DateFormat.MEDIUM, Locale.US);
    String timeFrame = fmt.format(now) ...
    Is going to produce the following output....
    1/27/05 1:28:25 PM

  • Date and Time in the flat file

    Hi All,
    I am trying to design a flow which will get data from a flat file. The file has a field which contains both the time and date. How can I handle this in BW? Do I need to creat 2 infoobjects and split the flat file field in start routine or transfer rule? Or is there any stadard infoobject which can hold both the data and time?
    Also, the client asked me if I want a .CSV file or .XLS file. Which one is better for uploading into BW? Any PROS and CONS?
    Best Regards,

    Hi,
    There is no single Data Type which accepts the Date and Time. Other way is to look the data as CHAR. Else the Update Routine/Formula is the Best
    In the Update Rule or Transfer Rule use the Formula
    Let the Info Objects be
    0date
    0Time
    The Transfer Rule/ Update Rule Formulas Be
    0Date --> LEFT( 8, 'DateTime' )
    0Time --> RIGHT(6, 'DateTime')
    Then CSV is the best Option to accept the Data as it is ready for Upload
    Regards
    Happy Tony

  • CRYSTAL REPORT GRAPH WITH DATE AND TIME

    Post Author: Dino Dentone
    CA Forum: Charts and Graphs
    Dear forum,
    I am developing a Visual Studio .net 2005 Windows Form,i have a sql table with 2 field:1) DATA (date and time)2) Temperatura (numeric)I have to make a line graph with numeric data axes.I have insert two parameters' to customize the filtering, so i can have a graph of the temperature between to date and time.If i choose two date's and time (parameters) like 20/04/2008 00:00:00 trought 20/05/2008 00:00:00 i have no problemBut if a choose a range minor of 1 day (some hours like from 15/05/2008 00:00:00 trought 15/05/2008 08:00:00) i have no graph.It sound like it don't use the time values?Thank's for the Help.

    There is some debugging info on the website. I've had problems getting the text to work. It was generally that I installed either the wrong 'version' of ImageMagick (the recommended one works for me--I'm running Vista x64 and one time installed the x64 version and it didn't work). I also installed Ghostscript to get the font list to work correctly. At one time I installed the x64 version of Ghostscript and it didn't work with the plug-in, either.
    I installed two items:
    ImageMagick: ImageMagick-6.4.9-3-Q16-windows-dll.exe
    Ghostscript: gs863w32.exe
    I don't know if it is necessary but I also added the fonts from
    ghostscript-fonts-std-8.11.tar.gz to the c:\Program Files (x86)\gs\fonts directory. Some, none, perhaps all, may already be installed just by installing ghostscript--it has been so long that I don't remember exactly. I do know that the contents of the gs fonts directory contains all the files in the .gz, I just don't remember if I put them there separately or as part of the gs install :)
    You need to make sure the font size is large enough. I usually use about 2-4% of height and export a single photo to make sure I see the text correctly.
    Tim does respond to email when he can so if you can't get it to work you can always drop him a line.

  • How do I have photos in iPhoto display on their face the date and time?

    How do I have photos in iPhoto display on their face the date and time? Displaying in the camera shows this. When I check edit the info is there. How do I have that displayed on the face of the photo when I view it in iPhoto?

    How do I have photos in iPhoto display on their face
    the date and time? Displaying in the camera shows
    this. When I check edit the info is there. How do I
    have that displayed on the face of the photo when I
    view it in iPhoto?
    Hi! My name is Tom from San Diego, CA. I have the exact same question as you. That is, I would like to be able to print out a photo from iphoto with the date that picture was taken displayed on the face of it. In this way, someone looking at that picture in a photo album years later would know when it was taken. Did you ever find a method to print copies of photos out of iphoto with the date displayed on the print? Thanks for your help!

  • How to enter a new Date and Time each day in a Numbers Spreadsheet...

    Hi... I have finally decided to move away from Excel and really give Numbers a shot... I have an application where each day I first enter the current date and time into a particular cell of a new row and then I enter some data in cells adjacent (in the same row) as that entered date-time. Then the next day I want to again enter the (new) current date and time and add more data next to that new date-time and so forth day after day... You can't use something as simple as =NOW() because then everyday, ALL of the date-times would change to the current time... Nope, now what I want... I just want to be able to EASILY and QUICKLY enter the current date-time value in one call and then have that specific value stay there forever... In Excel, this is accomplished with the keyboard shortcuts of
    <cntl> followed by a semicolon (;) for the date
    then enter a single space (for separation of date versus time) followed last by
    <command> followed again by a semicolon...
    So all together that is,
    <cntl><;><sp><command><;>
    and that puts something like
    4/10/2010 9:49:00 AM
    in a single cell...
    That's what I now want to be able to do in Numbers...
    How do I do that??? Do I use the menubar item "Insert Date and Time" and if so, how exactly do I get the current time to show up in the chosen cell??? With formatting??? Is there a keyboard shortcut method like the one I mentioned that works for Excel?? I've perused the manual and though I found lots on date-time, I didn't see how to do specifically what I want to do... I likely just missed it as surely it must be easy to do...
    Any feedback would be much appreciated... thanks... bob...

    Badunit wrote:
    The result of running that script is "UI Enabled = TRUE".
    I have cells named by the header values.
    This may be the problem.
    The script is an old one which deciphered only the letter+digit cell references.
    Here is a new version which works with every kind of cell reference.
    --[SCRIPT insertDateTime]
    Enregistrer le script en tant que Script : insertDateTime.scpt
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Placez le curseur dans la cellule qui doit recevoir la date_heure
    menu Scripts > Numbers > insertDateTime
    La cellule pointée reçoit la date_heure.
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as a Script : insertDateTime.scpt
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Put the cursor in the cell which must receive the date_time.
    menu Scripts > Numbers > insertDateTime
    The pointed cell receives the current date_time.
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Yvan KOENIG (VALLAURIS, France)
    2009/03/01
    2010/04/11 is now able to treat every kind of cell references
    property theApp : "Numbers"
    --=====
    on run
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    my doYourDuty(colNum1, rowNum1, tName, sName, dName)
    end run
    --=====
    on doYourDuty(c, r, t, s, d) (*
    c = columnIndex
    r = rowIndex
    t = table's name
    s = sheet's name
    d = document's name *)
    local cdt
    set cdt to my cleanThisDate(current date) (* the new date_time as a clean date_time *)
    tell application "Numbers" to tell document d to tell sheet s to tell table t
    set value of cell r of column c to cdt as text
    end tell -- application …
    end doYourDuty
    --=====
    on cleanThisDate(dt)
    (* ugly code but once I got date_time with milliseconds so if necessary, I drop them *)
    local l
    set l to my decoupe(dt as text, ":")
    if (count of l) > 3 then set dt to date (my recolle(items 1 thru 3 of l, ":"))
    return dt
    end cleanThisDate
    --=====
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
    apply to named row or named column !
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    It's available on my idisk :
    <http://public.me.com/koenigyvan>
    Download :
    For_iWork:iWork '09:for_Numbers09:insertDateTime.zip
    Yvan KOENIG (VALLAURIS, France) dimanche 11 avril 2010 14:16:41

  • Date and Time dimensions

    After reading the following article, I have decided to use SSAS dimension wizard for generating our Date dimension, which creates a DATETIME PK.
    http://www.made2mentor.com/2011/05/date-vs-integer-datatypes-as-primary-key-for-date-dimensions/ 
    I have also created a separate Time dimension as granularity of an hour is required.
    The Time dimension is very simple and only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR).
    DimTime(TimeKey, TimeInHours)
    Our Fact table will now have a link to both the Date and Time dimension using the PK's.
    Our analysis is required by hour, day, week, month and year.
    My query is; Will this current structure cause any problems when creating MDX scripts to analyse our data (i.e. drilldown and rollup queries) Hour - Day - Week - Month - Year

    Hi Darren,
    According to your description, there a day and hour granularity in your fact table, so you want to a hierarchy like Hour - Day - Week - Month - Year, right?
    In your scenario, you created a time table that only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR). We cannot create a Hour - Day - Week - Month - Year hierarchy without ant relationship between date table and time table. As per my understanding,
    you need create a foreigner key in time table, and join those table in the data source view, then you can create such a hierarchy. Here are some links about create time dimension, please see:
    http://www.ssas-info.com/analysis-services-articles/59-time-dimension/1224-date-and-time-dimensions-template
    http://www.codeproject.com/Articles/25852/Creating-Time-Dimension-in-Microsoft-Analysis-Serv
    Regards,
    Charlie Liao
    TechNet Community Support

  • How can i see the date and time of iPhone pictures, How can i see the date and time of iPhone pictures

    I would Like to know where i can see the date AND time on a picture i take With My iPhone? AND if not on the phone automaticly,.. Why not?... If even the cheapest phones provide this BASIC info.

    You can get this info if you have iPhoto for your phone (costs $5) - you can also try out the app I made (free) https://itunes.apple.com/us/app/photo-date/id605218393?ls=1&mt=8 Would love to know what you think!

  • How to get the current data and time of SCOM server via SCOM SDK (API) calls?

    Hi,
    I need to read the current date and time of SCOM server via SOM SDK.
    Is there a class in SDK that provides this info ?
    Thanks,
    satheesh

    To get time and date of Alerts of SCOM, You can use following command let "get-scomalert"
    Also, You can refer below links
    http://blog.tyang.org/2013/02/21/using-scom-2012-sdk-to-retrieve-resource-pools-information/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical

  • How do you date and time stamp pictures and videos using a EOS Rebel T3?

    I am needing to utilize date and time stamping on videos and photos in my work.  The pictures and videos must display time, a date, and reference number.  I have gone through the cd, owner's manuel and software manuel and I am unclear if I can perform this function. 

    While this is a relatively common feature on point & shoot cameras -- where the photo is thought of as a snapshot to document a memory in a person's life, among DSLR cameras it's not very common (I don't actually know of a DSLR that does this though I don't doubt that it may exist).  DSLR users are usually expecting a higher quality image -- so now the image is thought of more like art and less like a snapshot and the date/time in the corner distracts from the image.  Also they tend to be more advanced users who would be able to modify the image themselves so they have little need for such a feature.
    The camera does record the date & time... but it's in the EXIF data (information recorded into the image file but not displayed).  
    SO... there are programs that will just do this.  You'll need to do a search (I found several but have never tried one so I can't vouch for them).  I think there are Photoshop plug-ins that do this (assuming you have Photoshop). These programs allow you to define the info you want printed (including EXIF data such as date/time) and you get to pick the location, font, size, color, etc. and ultimately the location on the image where you'd like the info displayed.  They then add the info visibly onto the image for you and most support "batch" use (e.g. drop a whole folder of images on it and they'll do them all.)
    Tim Campbell
    5D II, 5D III, 60Da

Maybe you are looking for

  • Error: "This license has already been fulfilled....."

    This past week I updated my iPad to the new IOS7 software. Immediately after doing so, I tried to download a book through Overdrive...software used by most libraries.  Unfortunately, two problems occurred.  The Overdrive sofware was not compatible wi

  • Form4.5 For update clause in cursor problem

    Hi, I am putting this code in my forms4.5 pl/sql block and get the error when compile the pl/sql block. "Encountered ";" when expecting "of"..... Code is: Select null INTO dummy from mytable where id = 1456 for update nowait; If I remove for update c

  • Password protecting an external drive

    apologies if this has already been asked and answered: I back up my Macbook onto an external La Cie hard drive; my macbook is protected by account and login passwords - how can I password protect the identical data on my backup drive?

  • Already purchased album keeps appearing in download queue

    I purchased an album and downloaded it, but it keeps popping up in my download queue even though the album is already downloaded. How do I get that to stop?

  • Still having problems with images

    I am still having problems putting images into an Oracle 9i database and fetching them back out. I think I have finally managed to force a blob image into the database, but can't seem to get it back out into a byte array. After many iterations, I hav