Change of time format for conctenation

i have time from sy-uzeit.
i want to split it into hhmmss.
how to split it.
kindly expain.
what are to be the lengths of variable.

HI Tanisha,
Use the Function Module
HRVE_CONVERT_TIME
data: time type sy-uzeit,
out_type(2) TYPE c.
CALL FUNCTION 'HRVE_CONVERT_TIME'
EXPORTING
TYPE_TIME = 'A'
INPUT_TIME = sy-uzeit
INPUT_AM_PM = 'AM'
IMPORTING
OUTPUT_TIME = time
OUTPUT_AM_PM = out_type
EXCEPTIONS
PARAMETER_ERROR = 1
OTHERS = 2
Write: time,
out_type. ( Or concatenate both the fields in a single field )
for more info
Refer this link http://help.sap.com/saphelp_nw04/helpdata/en/2c/d987b705b411d2a96c00a0c9449261/frameset.htm
hope this will helps you.
Thanks!!

Similar Messages

  • Change date/time format in Screen Shot file name?

    I capture Screen Shots all day long.  But when I go to look for the one I just took, it's not always at the bottom of the list.  That's because Mac names them as e.g.
    Screen Shot 2014-04-29 at 1.19.04 PM.png (and the order gets screwed up).
    Can I change to make save as e.g.
    Screen Shot 2014-04-29 at 13.19.04.png (this way they'll always stay in order).
    Thanks for any help.

    You may have to change system time format globally. Is it worth ?
    http://support.apple.com/kb/PH14227
    Best.

  • Change of Time Format

    hi
    I need to change the time format from 17:00 Hrs to 5:00 PM. Right now the form is showing time like 17:00 HRS. it should be 5 PM.
    your help will be extremely appreciated.
    Regards
    Waseem

    Hi Waseem,
    then try the code Ferry posted.. in ur print program... if u cant access print program then u need to write a PERFORM routine in script.
    /: PERFORM TEST IN PROGRAM Z_PROG
    /: USING &TIME&
    /: CHANGING &TIME_PM&
    /: ENDPERFORM
    in ZTEST report program for routine.....
    FORM test TABLES in_par STRUCTURE itcsy
    out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'TIME'.
      CHECK sy-subrc = 0.
      l_time = in_par-value.
    CALL FUNCTION 'HRVE_CONVERT_TIME'
      EXPORTING
        type_time             = 'A'
        input_time            = l_time
       INPUT_AM_PM           = 'AM'
    IMPORTING
       OUTPUT_TIME           = o_time
       OUTPUT_AM_PM          = o_stamp
    EXCEPTIONS
      PARAMETER_ERROR       = 1
      OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      READ TABLE out_par WITH KEY 'TIME_PM'.
      CHECK sy-subrc = 0.
      out_par-value = o_time.
      MODIFY out_par INDEX sy-tabix.
    ENDFORM.                    "TEST
    Regards
    SAB

  • Time format for  BBPMAININT transaction?

    Hi,
    I am using BBPMAININT  transaction for editing vendor data.
    1. When I edit address, telephone, email data it is entering data format as Central time in CDHDR table.
    2. But when I edit other than this data ... like BANK, TAX and BIDDER tab  data ... it is entering GMT time format in CDHDR table.
    Can any one tell me why it’s behaving like this?
    Is it possible we can make consistence in time format for this application.
    Thanks for ur time.
    Murali.

    Hi
    Which SRM version are you using ?
    What is the purpose behind all this ? What's the requirement ?
    <b> Anyways, Try checking the (In Transaction SU01 ) User attributes from which you are modifying the BBPMAINT transaction. What timezone, date format is mentioned there ?
    Change it accordingly and then try out again. Does it results in any changes ?</b>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Hello! please change the time setting for Russia in the hour ahead. Unas in the country while now and there is one year, or winter.

    Hello! please change the time setting for Russia in the hour ahead. Unas in the country while now and there is one year, or winter. 

    It is November 9, and the problem still persists.  The Time in Russia is reported by OS X as one hour behind... Apple, Please fix this problem.

  • Can I change the time format of incoming mails, in Mail? Now I have AM/PM, but I live in Denmark where we don't use that format. We have a 24-hour clock format i.e. 14:52 instead of 2:52 PM.

    Can I change the time format of incoming mails, in Mail? Now I have AM/PM, but I live in Denmark where we don't use that format. We have a 24-hour clock format i.e. 14:52 instead of 2:52 PM.

    Is the time format of your Mac in 24 hour?

  • Change number / date format for the user at run time

    Hi,
    Can I configure a report in Oracle Answers to display a column in a particular format for one group of users and a different format for another group of users?

    Hi,
    Yes this is possible.
    In the BMM layer duplicate column which is to be formatted for different group of users. And pull it into the presentation layer.
    Suppose Column 1 for the Group 1 users
    and Column 2 for the Group 2 users
    In the presentation layer, double click on the column and give permission for the column 1 for the group 1 users and group 2 users for column.
    First create a report with all the desired columns with Administrator or Presentation Server Administrator Role. And format the columns according to the different group of users.
    In, NQSConfig.ini change the parameter PROJECT_INACCESSIBLE_COLUMN_AS_NULL which is under security section. By default it is set to No. Set it to yes. And restart the services.
    Now logon with the group 1 users and you can see only the column1 and when logged on with group 2 users, you can see the column2.
    And will solve your problem.
    Please let me know if you need step-by-step process for solving.
    Please award if you found this useful/helpful
    Regards
    MuRam

  • How to Change the default format for differnt language both in java and SQL

    Hello,
    I am using SQL Anywhere in my application.And in my java client application user can log in with their preferred language like English,French,German,Chinese,etc....When even the user log in to the application the data from the database will be displayed with respective to the language.But when i tried to see the dates in Interactive SQL all the dates r in the format of '2008-12-5 16:44:10:673' but say for example for Chinese it will be displayed as '08-12-5 16.44.10' and for some other language it will come in some other format(which is standard format for those language).
    Mean while i am using java client.When ever i am displaying a date it will be with respective to the language using Locale and date format classes.When i am displaying the date for Chinese in GUI it will show the date as '08-12-5 &#19979;&#21320;4:44'. In summary
    1. For Chinese,the default date pattern from SQL Anywhere date base is '08-12-5 16.44.10'
    2. For the same language date using java code is displaying as '08-12-5 &#19979;&#21320;4:44'. and i am getting the time format pattern as 'ah:mm'.I tried to change the display format in regional settings but no change in display.
    Is there any way to make both the time format as same?
    Please help me to solve this issue!!!
    Thanks in Advance!
    Arun

    pon_arun wrote:
    Hello masijade,
    I did as u said but still the date display is not the same......And I'm telling you that it doesn't matter. What "format" the DB likes to display a Date in when it displays it, is completely irrelevant to how you display it in your GUI.
    A Date does not have a format. A String representation of a Date does.
    As long as you use getDate from ResultSet and setDate from PreparedStatement you do not have to worry about this. Those methods will handle dates to and from the DB themselves. You can then use SimpleDateFormat to display the Date anyway you want to.
    Just because you show the Date one way, and the DB shows it another, does not mean that it is not the same date. Don't get hung up on how the String representation of the Date looks.
    Edit: If you simply want to be able to do "Human Comparisons" then look at the SQL TO_CHAR function (for Oracle, for other DBs the function name may vary). And for Java, read the API docs for SimpleDateFormat (as already intimated above).

  • Changing date/time format

    Hi there,
    I live in the United States but prefer my dates to be in the dd/mm/yy format as opposed to the US mm/dd/yy format. I also like 24-hour time rather than AM/PM. I System Preferences>Language & Text>Region, I found the tool to modify my preferred date/time formats. However, I notice that the format of the date in my menu bar does not change (it still reads Sep 25 when it should read 26 Sep). All other dates/times appear to function correctly. I briefly switched the Region of the computer to the United Kingdom but quickly switched it back because of how autocorrect handled words like "color."
    Ideas?

    That did the trick - sometimes the easiest thing to do is hard to see. Seems I have been working too long on a Windows machine (unfortunately, I have to do so at work)...
    Thanks for the quick help!

  • How do I change the time format in the menu bar?

    I've gone to system preferences - language - date and time, and customized the time for 24 hour time with no colon between HH and MM.  The menu bar time display doesn't reflect this:-(
    There are some 5 year old posts about this not working, but nothing recent.

    You may have already these suggestions....
    See KB Article:  http://support.apple.com/kb/PH11250 
    YouTube tutorial:   How to change your time and date preferences | Mountain Lion
    http://www.youtube.com/watch?v=6HkKZU8Mfmg 
    You can search YT for others.

  • Image date/time format for import naming

    When naming images with the image date & time during import, it uses the format of YYYY-MM-DD HHMMSSAP
    Is it possible to reconfigure this so
    1) the space in between the date and time is gone
    2) the hyphens in the date are gone
    3) it uses 24 hour time not am/pm?
    I didn't see anything in the preferences, nor did I see anything appropriate in the plist.
    Unfortunately using that format and then exporting an image from it for the web leaves it with an ugly file name that needs manual editing - I hate seeing URLs with a %20 in them because of spaces in file names.
    Chris

    Although I agree that I would like more ability to customize the date and time format (Have you seen the renaming feature in Graphic Converter? It's great!), there is a quick workaround for at least eliminating the space in the name:
    1. Open the name format editing window by selecting Edit from the name format pull-down.
    2. Select Image Date/Time.
    3. Look in the Format field. See how the two ellipses with Date and Time are separated by a little space? That's actually a space character and can be edited.
    4. Put the cursor in that field and replace the space with whatever character you want (like _ for instance).
    5. Now filenames will look like: 2006-04-03_121212PM which is a bit better.
    6. And Aperture very cooly remembers this edit, so on the net import you only have to select Image Date/Time from the pull-down and you still have you edit.
    Now, what I want to do is get rid of the -'s in the date and have the time be 24hour format. Sequential and unique names that are as short as possible!
    Will
    Late 2005 Dual 2.3 GHz PowerMac G5   Mac OS X (10.4.6)  

  • How does one change the date format for PlayMemories Home folders?

    I am using PlayMemories Home Version 2.0.00.11271 and have many folders within it which contain only photographs imported from my Sony DSC-H9.  Unfortunately, PlayMemories Home insists upon dating all folders in a month/day/year manner; and this makes little sense if one wishes to have the folders listed in logical chronological order.  How can I change the date format to year/month/day?  Changing the name of each folder, one by one, will take a very long time!  Your helpful advice in this matter will be greatly appreciated.  Thank you. System information:
    Operating system: Microsoft Windows XP Professional
    Service pack : Service Pack 3
    Memory: 1.5 GB
    Processor:         Intel(R) Pentium(R) M processor 1.86GHz
    Max. clock speed: 1.86
    Manufacturer: IBM
    Model: 1847W76
    System language setting: English (United States)
    User language setting: English (United States) 

    I too thought that the folder naming format was obviously wrong and couldn't find a way to change it. I do agree that placing photos in folders according to when they were taken is a great idea. I had been considering writing some software to do just that. After discovering that PlayMemories does it, I had it re-import all my photos. Then I wrote a small Perl script to rename all of the folders into year-month-day format. Included here is the Perl script. It only acts on a single folder - use it on the root folder where all the PlayMemories folders are. It will rename all folders currently in a month-day-year format. I used it without problems but of course there is no guarentee that it is error free. This should work with any common version of Perl. Tom # There should be one command line argument: the directory to act upon
    if ( scalar(@ARGV) == 0 ){
     print "Usage: RenameDirs <dir>\n";
     print " Where dir is the directory containing the directories to rename.\n";
     exit;
    $mydir = $ARGV[0];
    chdir $mydir or die "Couldn't chdir to $mydir: $!";
    opendir(ROOTPHOTODIR, ".") or die "Failed to open the pictures directory $mydir: $!";
    @allphotodirs = readdir ROOTPHOTODIR;
    closedir ROOTPHOTODIR;
    foreach $dir (@allphotodirs) {
     if ( -d $dir ) {
      print "$dir is a directory";
      if ( $dir =~ /^(\d{1,2})-(\d{1,2})-(\d{4})$/ ) {
       print " and has the proper format: month $1 day $2 year $3 and will be renamed to ";
       $newname = sprintf "%4u-%02u-%02u", $3, $1, $2;
       print "$newname\n";
       rename $dir, $newname or die "failed to rename $dir to $newname: $!";
      else {
       print " but is not of the proper format\n"
     elsif ( -f $dir ) {
      print "$dir is a file\n";
     else {
      print "$dir is neither a directory nor a file\n";
    }

  • How can I change the time zone for a calendar entry with iOS 7?

    I want to make a new entry in my calendar (iOS 7) using a different time zone as the one I'm located in. There isn't any option to choose the time zone like there is in OS X.
    I know I can switch off the option to automatically change the time zone in the preference pane of Mail, Contacts and Calendar to get the option in calendar but I want to use this automatic switch.
    Is there any option to change the time zone of a calendar entry without loosing this automatic switch?

    Got it!
    In your backing file you'll need the following in your handlePostbackData method:
    BookBackingContext bookCtx = BookBackingContext.getBookBackingContext(arg0);
    bookCtx.setupPageChangeEvent("PageLabel");

  • Change date/time format in XML

    Hi,
    I have changed the date format in KM, by adding 'customFormat=d MMM yyyy HH:mm'in the Additional Metadata field of a property (e.g. app_date). The change is properly displayed in KM Folders.
    However when I change app_date into a custom format and then try to use it in a XML form, it doesn't work. It still uses the general settings, thereby ignoring my additional metadata.
    Does anyone know how I can solve this issue?
    Kind regards,
    Joost

    hi Christenhusz,
      Check the links,
    Documentation:
    http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormat.html
    customFormat
    To set a customer pattern according to documentation:
    http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    hope it helps,
    Regards,
    Vinoth

  • Change Date Time format in Iplanet Access logs

    Hi,
    We are currently using iplanet web server. The default date format in the access logs is dd/mmm/yyyy:HH:MM:SS GMT. How can we change this format to yyyy/mm/dd:HH:MM:SS GMT.

    You should not change this format. The default date format complies with the "common log format" which is readable by many log analysis tools.
    That said, if you still want to change the date format, you can replace %SYSDATE% with %LOCALEDATE% in your flex-init line. LOCALEDATE will cause the WS to use the date format set by your OS.

Maybe you are looking for