Wrote the current Date and Time in the backend

HI everyone,
I created a table view, where I display several records. Right now I will add an record to this table, which should be written back in the backend and automaticaly add the current date and time.
But I don´t know to make this. I tried several time with the funktion  "now()", but it doesn´t work. So any help for me, to explain how I can display the actual time and then write it back to the backend?
Thanks

we use a crm system. but the BAPI I mentioned was
just to play with. My basis will develop a new API
for the project, that have the requested Inputfields.
But what I tottaly forget was, that there has to be a
field for the time, so thanks for the advice.
No Problem.
I´m still of the opinion , that it should be possible
to add the curret time in a field with the
funcionality of the VC, even there is a way to show a
clock with the current time. My problem is that I
can´t figuer out how to do this.
Therefore you can use the TNow() function (Time functions) and the Now() Function (Date functions). You can cast them to a string and concatenate the string, then you have the date of today with the current time. This string you can format and transfer it as input for your BAPI_ADD_BP for example.
Hope that helps.
Best Regards,
Marcel

Similar Messages

  • How to display the current Date and time in xslt version 1

    i am using xslt version 1 .i want to display the current date and time in the output xml using xslt(Jdeveloper) ..i just added the namespace xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
         xmlns:ns1="urn:oracle:integration:b2b:7D30046DC68A4FA689956D8241FA3B99">
    and used thsi function <xsl:value-of select = "xp20:current-date()"/>
    but it does not works for me ..help needed????
    Edited by: user9519185 on Jan 20, 2009 3:04 AM

    Use a formula: =NOW()
    Format the cell for Date and Time, with both the Date part and the Time part displayed. Format the two parts as you wish, using the choices in the Inspector's menus.
    The cell will update each time the table is recalculated.
    (Description is for Numbers '09 (Mac), Numbers for iOS will be similar, but not necessarly identical in details.)
    Regards,
    Barry

  • 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

  • I Need to Write the current Date and Time

    I need to write the current date and time to calculate the spend time in each instruction.
    What is the instrucion?
    Thanks.
    MIGUEL ANGEL CARO
    [email protected]

    The current time can be determined with a Date object:
    Date now = new java.util.Date() ;or if you are interested in the seconds since the epoch:
    System.currentTimeMillis() ;If you wanted to print them out:
    System.out.println( new java.util.Date() ) ;
    System.out.println( System.currentTimeMillis() ) ;Kenny

  • Put the current date and time in a string

    I am having trouble trying to put the current date and time from my Calendar object into a string
    any ideas?

    Calendar timeCal = Calendar.getInstance();
    timeCal.setTime(new Date(System.currentTimeMillis() - startTime ));
    String date = formatToTwoDigits(timeCal.get(Calendar.HOUR_OF_DAY))     + ":" +
    formatToTwoDigits(timeCal.get(Calendar.MINUTE))          + ":" +
    formatToTwoDigits(timeCal.get(Calendar.SECOND));
    private String formatToTwoDigits(int i) {
    String ret = null;
    i = i % 100;
    if (i < 10) {
    ret = "0" + Integer.toString(i);
    } else {
    ret = Integer.toString(i);
    return ret;
    You can figure out yourselve how to display the date, use other Calendar.XXX properties.
    Good luck!

  • I'm trying to display the current date and time on my iPad.

    First, I'm not sure this is a valid post to this forum.  If not, I'd appreciate knowg in where I can get help. 
    I have tried several ways to display the current date and time on my iPad.  None  work.  Most things I try give me complier errors but the latest code compiles but won't display the correct time. 
    Here's the dispatch code in my ViewController.m file:
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);
        dispatch_async(queue, ^{
            [NSTimer scheduledTimerWithTimeInterval:NSTimeInterval)1.0f target:self selector:@selector(updateLabel:) userInfo:nil repeats:YES];
    Here's the updateLabel code: (which never gets executed).
    - (void)updateLabel:(id) sender {
        dispatch_sync(dispatch_get_main_queue(), ^{
        NSLog(@"Datefield Update Called");
        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"EEEE, MMMM dd, yyyy 'at' HH:mm  ZZZZ"];
        NSDate *dayTime = [NSDate date];
        NSString *formattedDateString = [dateFormatter stringFromDate:dayTime];
            _dateField.text = formattedDateString;
        [self.view addSubview:_dateField];
        NSLog(@"Datefield %@",_dateField.text);

    Your code is needlessly complicated and has a few problems:
    // These objects should be created only once.
    NSTimer *dateAndTimeTimer; (You might need to make this a property with a strong reference).
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"EEEE, MMMMM dd, yyyy 'at' HH:mm ZZZZ"];
    // The subview should only be added once.
    [self.view addSubview:_dateField];
    [self performSelectorOnMainThread:@selector(startDateAndTimeTimer)
                            withObject:nil
                         waitUntilDone:YES];
    -(void)startDateAndTimeTimer
        NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:1
                                                          target:self
                                                        selector:@selector(updateLabel)
                                                        userInfo:nil
                                                         repeats:YES];
        dateAndTimeTimer = timer;
        [[NSRunLoop mainRunLoop] addTimer:dateAndTimeTimer forMode:NSRunLoopCommonModes];
    -(void)updateLabel
         NSDate *dateTime = [NSDate date];
         NSString *formattedDataString = [dateFormatter stringFromDate:dateTime];
         _dateField.text = formattedDateString;
         NSLog(@"_dateField.text=%@", _dateField.text);

  • Get the Current Date and Time of a Location

    I have created a windowsPhoneApplication in silverLight 8.1.In my application,I have to upload videos on some server.The Uploading get failed If the Date and Time settings of my device is not the current Date and Time.So How can I get the current date
    and time even if the device settings is wrong?

    Hi shifana,
    Do you know server's time zone? If yes, you can manually translate to the correct time zone.
    Otherwise try some online time acquire API.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I add the capture date and time to the bottom corner of a photo?

    How do I add the capture date and time to the bottom corner of a photo?

    Not to the bottom, that I'm aware of, but to the top right or left in Grid view or to the top left in Loupe view. It is in the View Options.

  • Sample XSLT code to Display the Current date and time

    Hi all,
    Please Let me know code to display the system date in my target in xslt mapping.
    I am trying fn:current-datetime() function for the same.but could not get how to use it .Is it  function right  function.If so please send me the examples on the same.
    Thanks and Regards,
    Srini

    hey
    use this date:date-time()
    also have a look at this
    http://www.w3.org/TR/xpath-functions/#func-current-dateTime
    thanx
    ahmad

  • How to print the current date and time?

    Hi Friends!
    I have tried this program to print the current time and date,
    #include <iostream>
    #include <time.h>
    using namespace std;
    int main()
    time_t tim;
    time(&tim);
    cout << ctime(&tim);
    return 0;
    But it show the warning as;
    warning C4996: 'ctime': This function or variable may be unsafe. Consider using ctime_s instead.
    Can anyone suggest whats wrong with this?

    i also got many warring when i use old version keyword. as i note on think thatin new vc++ has many keyword change with _s. the old keyword works even get warring.or you can change to as it suggest.For About ctime_s
    Check this link for more detail (RefLink)
    No, it shows error, when you use ctime_s instead of ctime.
    error C2660: 'ctime_s' : function does not take 1 arguments

  • Query to deduct the time from current date and time

    I want to get the query to deduct time(180 mins) from the current date and time.
    Regards
    Pavan

    SQL> select to_char(sysdate,'dd.mm.yyyy hh24:mi:ss') curr,
      2         to_char(sysdate - interval '180' minute,'dd.mm.yyyy hh24:mi:ss') past from dual
      3  /
    CURR                PAST
    24.08.2007 16:18:37 24.08.2007 13:18:37
    SQL> 

  • How to get the client date and time ?

    Dear Sirs...
    Using jdeveloper 10.1.2.0
    How can i get the client date and time using the HttpServletRequest ?
    thanks for any help in advance
    best regards

    If your code is running on the client pc you can just create a new instance of the java.util.Date class. That class automatically defaults to the current time of the client machine. Otherwise if you're running the code on the server, you could insert/post the client date/time by adding its string representation as a parameter to the HTTP request object.
    Ronald

  • Finding the initial date and time of a modified instance of  reccurnt evnt

    The problem situation is as given below:
    I have created an event recurrent using the outlook client. I them modified one
    of the instance in it to occur in a data and time different from the existing
    date and time.
    Using the CAPI i wish to retrieve the initial date and time when the instance
    occured. According to documentation i should have the initial date and time in
    the Recurrence ID parameter. When i look at the icalendar i see that the
    recurrenceid matches the start date of the current instance and not the initial
    date and time. I am using the fetchEventByUID in the CAPI API set.
    Is this behaviour of changing date and time of the recurrence-id the expected
    one or is there any problem in the configuration on my machine.
    Counting on some insight into the parameter where the initial date and time of the event are stored.
    Best Regards
    Joyce

    Hi Joyce,
    The sdk always sets the recurrence-id to be the starttime of the instance.
    So the behavior you encountered is what one should expect with the sdk.
    There were some changes in a 10G to correct this situation for a given service. (i.e. have the initial date and time in the Recurrence ID parameter, for instances of the recurring set).
    This fix would not be available for the public sdk version, but given that this feature is important for your application, you could log a tar and it might become available in some 10G patch.
    Regards,
    Jean-Philippe Guguy

  • Ipod Touch shows two dates and times on the sleep screen/locked screen

    First off i have the new ipod touch and i got it this christmas.since a couple weeks ago on the sleep screen/locked screen(the screen that appears when you hit the button on top of ipod) it shows the current date and time but in the background of that time it also sais 7:12 January 6 2010. It has said that for about two weeks. Also i noticed that when you slide the unlock bar over you can still see the slider in the background at the original position. One last thing has been happening with the volume when listening to music. When i try to turn it up i slide the volume button to the right to make it louder and when i let got it just slides back and does not get louder. What is going on.

    I had the same problem with double image of date and time and also the unlock arrow. I found out that the problem was that I had, without knowing it, taken a snapshot of my wallpaper screen and saved it back to my saved photos. When I used that wallpaper image again, there was the dual image of time and date. All I had to do was change wallpaper! Good luck!

  • Burning photos onto dvd, loses the original date and time of photo

    I'm trying to burn some photos onto dvd, but it marks all the files 'created date' and 'modified date' as today, rather than keeping the original date and time that the picture was taken. Is there a way around this?

    Looks like that error is associated with bad or incompatible media. See this thread:
    http://discussions.apple.com/thread.jspa?messageID=1738737
    Regards,
    Captfred

Maybe you are looking for

  • How can i install Windows XP on IBM T43 from recovery partition ?

    I have a secret recovery partition with some GB in size on my IBM T43 laptop and i want to install Windows XP from it. How can i do that? I will loose all my data from HDD or I can keep D: partition intact ? What are the steps i should follow to inst

  • Query SAP BW via XMLA Webservice and save response to HD

    Hi, I´m currently working for an QM Project to create an Overview-page with figures from various BW-Querys. Unfortunatly the the BW-Performance isn´t fast enough to execute a lot of Querys in realtime, so I can´t use the Web App Designer. To improve

  • How to turn off the 32-bit bridge interface dialogue?

    Hi guys, is there a way to open 32bit plugins in logic 64bit mode without having to confirm that annoying plug-in interface dialogue each time? Thanks Eddie

  • External mapping context

    Hello. I have one problem. I have 2 components? for example compA and compB. In compB I used compA. From compB I give parameters to compA throuth Context mapping and in compA execute RFC using this parameters. After execute I want to mapping result c

  • Flash Animation Question: Newbie

    How do you animate only the gradient of an object? Let's say you create a Square window and want a sunset in the background by using a radial gradient effect, it can be achieved, then I want to only move the gradient from one side of the object to th