System time field is giving the date as hhmmss
i want to have the time format like this (09.00.57 AM )seperated by dot and am amd pm according to the time.
i am using sy-uzeit for the time.
please let mekn
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 )
Hope this will help.
Regards,
Nitin.
Similar Messages
-
A simple list with seven time buckets starting from the date report is run.
Hi All,
I am new to ABAP.Recently i have planned to write a progam which will help in planning the delivery of scheduled items.For a given sales Org. it will display all the undelivered,delivered items in a simple list and sort them with delivery dates.it will also provide a summary report at material group.For that i have used selection screen(LIKP-VKORG-Obligatory).when i enter VKORG Details i should get all the delivery docs for which delivery is not done or partially done.For this i have taken one more table LIPS
(LIPS-MATKL,LIPS-MATNR,LIPS-VBELN,LIPS-POSNR,LIPS-WERKS,LIPS-LFIMG,LIPS-MEINS) for tables LIKP and LIPS VBELN is the key field.when i enter VKORG Data in the selection screen ,how can i get the data from LIPS Table.Please explain?
Also report should be simple list with seven time buckets starting from the date when the report is run.The amount of quantity to be delivered should be displayed under appropriate bucket i.e within the bucket where its delivery date falls in.for ex:If the report is run on Tuesday 15th march 2010 then the start date 1 should be starting date of the week which is Monday 14th March.
The report will be summarized at Material Group and Material Number.
Appreciate your help
Thanks and Regards,
Shakeer HussainSorry, sounds too much like a complete requirement you want done for you by the community.
Please work on it yourself and search for available information before posting specific problems only.
Thread locked.
Thomas -
Time field also displaying current date
Hi there
I have two databound fields (to a Sybase back-end) - one is a date field, the other a time field!
The date field works fine, but the time field is displaying the current date as well as the data retrieved time!
The field is set to:-
Data pattern: HH:MM::SS
Data Format: Time
Type: Date/Time Field
Validation Pattern: HH:MM:SS
The field is defined as 'time' in Sybase, and displays just the time in other objects (.NET fields...).
Anyone any ideas?not the cleanest code, but i had this laying around in an old
project...
date = new Date()
month = date.getMonth() + 1
today = date.getDate()
fyear = date.getFullYear()
hours = date.getHours()
minutes = date.getMinutes()
seconds = date.getSeconds()
if(month <10){
month = "0"+month
if(today<10){
today = "0"+today
if(hours <10){
hours = "0"+hours
if(minutes <10){
minutes = "0"+minutes
if(seconds <10){
seconds = "0"+seconds
CurrentTime.text = month+"/"+today+"/"+fyear+"
"+hours+":"+minutes+":"+seconds -
Set the custom timer job that copy the data in the same list
Hi
How to set the custom timer job that copy the data in the same list
Thanks,hello
please it is wrong to copy all of the list3 item in list1 as the example as below is a copy of one item.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
//This namespace is used for the SPJobDefinition class
using Microsoft.SharePoint.Administration;
namespace GENERAL_CustomTimerJob
//To create a custom timer job, first add a class to your SharePoint project and
//inherit from SPJobDefinition. Implement the constructors and override the Execute
//method as shown below. To install your timer job, and set the schedule, you must
//add a Feature and a Feature receiver.
class GENERAL_CustomTimerJob :
SPJobDefinition
#region Constructors
//You must implement all three constructors
public GENERAL_CustomTimerJob()
base()
public GENERAL_CustomTimerJob(string jobName,
SPService service,
SPServer server, SPJobLockType targetType)
base(jobName, service, server, targetType)
public GENERAL_CustomTimerJob(string jobName,
SPWebApplication webApplication)
base(jobName, webApplication,
null, SPJobLockType.ContentDatabase)
//Set the title of the job, which will be shown in the Central Admin UI
this.Title = "Simple Example Timer Job";
#endregion
//Override the Execute method to run code.
public override
void Execute(Guid targetInstanceId)
//Get the Web Application in which this Timer Job runs
SPWebApplication webApp =
this.Parent as
SPWebApplication;
//Get the site collection
SPSiteCollection timerSiteCollection = webApp.ContentDatabases[targetInstanceId].Sites;
//Get the Announcements list in the RootWeb of each SPSite
SPList timerJobList =
null;
foreach (SPSite site
in timerSiteCollection)
timerJobList = site.RootWeb.Lists.TryGetList("List3");
if (timerJobList != null)
string sourceUrl = "http://aydi-pc";
string destinationUrl =
"http://aydi-pc/sites/Site1/";
string sourceList = "List3";
string destinationList =
"List1";
using (SPSite sourceSite =
new SPSite(sourceUrl))
using (SPWeb sourceWeb = sourceSite.OpenWeb())
using (SPSite destSite =
new SPSite(destinationUrl))
using
(SPWeb destWeb = destSite.OpenWeb())
SPList ObjSourcelist = sourceWeb.Lists.TryGetList(sourceList);
SPList ObjDestinationlist = destWeb.Lists.TryGetList(destinationList);
SPListItem newItem = ObjDestinationlist.Items.Add();
SPListItemCollection items = ObjSourcelist.Items;
if
(items.Count > 0)
foreach (SPListItem item
in items)
newItem["Title"] = item["Title"];
newItem["Nom"] = item["Nom"];
newItem["Prenom"] = item["Prenom"];
newItem.Update(); -
Why does my mac mini's mouse show a pinwheel every time I hover over the date area? Also, sometimes the date/time shows up incorrectly. It started happening after I updated to OS X Mountain Lion.
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
Click the Clear Display icon in the toolbar. Try the action that you're having trouble with again. Post any messages that appear in the Console window – the text, please, not a screenshot.
When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
Please do not indiscriminately dump thousands of lines from the log into a message.
Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting. -
Is the data transfer used in the backup with airport time capsule included in the data allowance with my service provider?
gheefromsa wrote:
I am using Ethernet cable to connect TC to the modem. I am only backing up my mac book air within range of the TC. So I guess it will be OK from your reply. As a trial I did interrupt the back up by turning off the TC, disconnecting the Ethernet cable, turning TC back on. The mac would not connect wirelessly with the TC without the Ethernet connection.
It is not using ISP .. absolutely for sure. Well 99.999%.. absolute tends to be only in maths.
But you did the test wrongly.. I said to disconnect the modem.. during the backup.. not turn off the TC.. obviously once interrupted the TC will not work again until everything is plugged in.. but it will work even bridged for a short time.. just unplug the WAN port from the modem.
The test is moot now.. as I can give you a 99.999% promise it is not using ISP. -
In AP invoice i need to make "Terms date " field to calculate the date automatically when i select the payment terms.
How can i do this?Hi,
You can select the Payment Term at PO Header Level.
When you book an invoice, that Payment Term will automatically defaulted to Invoice.
You can define Payment Term in AP.
Payment terms have one or more payment terms lines, each of which creates one scheduled payment. Each payment terms line and each corresponding scheduled payment has a due date or a discount date based on either a specific day of a month, such as the 15th of the month, or a number of days added to your terms date, such as 14 days after the terms date.
Payment Terms (Oracle Payables Help) -
How to enable/disable the input fields based on the data entered in the web dynpro application abap? If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.
Hi,
Try this code.
First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
Next go to Init method.
Set the readonly value as 'X'.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = 'X').
After that Go to the Action ENTER.
First read the input field ( first input field, which is value entered field) , next give a condition
if input value is not initial then set the readonly value is ' '.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->element_input.
DATA lv_vbeln TYPE wd_this->element_input-vbeln.
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* @TODO handle non existant child
* IF lo_nd_input IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
* @TODO handle not set lead selection
IF lo_el_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `VBELN`
IMPORTING
value = lv_vbeln ).
if lv_vbeln IS not INITIAL.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = ' ' ). -
If the connecting fields are missing the data from knvh should be u00BBnullu00AB
Could you help me I would like to have all fields from kna1 (if the connecting fields are missing the data from knvh should be »null«)in following code
select * from kna1 .
select * from knvh where kunnr = kna1-kunnr and vkorg = '0200'.
itab-mandt = kna1-mandt.
itab-stceg = kna1-stceg.
itab-hkunnr = knvh-hkunnr.
itab-datab = knvh-datab.
itab-datbi = knvh-datbi.
append itab. clear itab.
endselect.
endselect.HI,
use the following code
select * from kna1 into table it_kna1.
if sy-subrc = 0.
select * from knvh into table it_knvh
for all entries in IT_kna1
where kunnr = it_kna1-kunnr
and vkorg = '0200'.
if sy-subrc = 0.
loop at it_kna1 into wa_kna1.
itab-mandt = wa_kna1-mandt.
itab-stceg = wa_kna1-stceg.
loop at it_knvh into wa_knvh where kunnr = wa_kna1-kunnr.
itab-hkunnr = wa_knvh-hkunnr.
itab-datab = wa_knvh-datab.
itab-datbi = wa_knvh-datbi.
append itab.
clear itab.
endloop.
endloop.endif.
endif.
I hope this solves your problem
Regards,
Vara -
I would like to check my history for time of day, as well as for the date. Is this a feature that is common? How do I set it to work showing the time, as well as, the date? Thank you.
Thank you. I went to the Show All History library and under "View" I selected for time and date. Thank you for the link to how it is done!
-
How can i make it so every time i save something the date is included in the title?
how can i make it so every time i save something the date is included in the title?
More information would be helpful. Are you doing this in an application? If so, what application.
-
I have a iphone5. I went to dubai there it was working properly. On my way back in the plane i turned the manual time zone selection in the date & time setting and changed it to new delhi. when i landed back and tried to use the vodafone network whose sim is installe in te mobile NO SERVICE showed up. I tried to select the time zone & network selection from the carrier but manual selection is not accepted . I got a tiick mark at the service provider name but still no service status remains. After 2 days In the time zone automatic selection has started working and is showing new delhi but still automatic & manual network selection is not working. NO SERVICE is still shown . I m not able to make any calls. Internet through WIFI is working. Kindly help.
Hello, swatiy.82.
Thank you for visiting Apple Support Communities.
I would recommend trying the steps in the article below when experiencing this issue.
iPhone: Troubleshooting No Service
http://support.apple.com/kb/ts4429
Cheers,
Jason H. -
Does time machine back up the data in the PC part of my intel MacBook?
I'm backing up my MacBook to an external hadr drive using Time Machine in the apple part of my partioned MacBook.
Does time machine back up the data in the PC part of my intel MacBook at the same time or do I have to do a separate backup for it? Does it have to be on a different external hard drive?Franklin Osgood wrote:
I'm backing up my MacBook to an external hadr drive using Time Machine in the apple part of my partioned MacBook.
Does time machine back up the data in the PC part of my intel MacBook at the same time or do I have to do a separate backup for it? Does it have to be on a different external hard drive?
TM only backs up the BSD portion of your HD.
If you partition your external HD you can have a FAT32 or NTFS partition for Winders and another for HFS+.
Naturally if you choose to repartition the drive, you should backup everything on it or you may lose it. -
JS - Save File as Field Name in the Data Merge Source File
Hi All - I need some help...
I'm trying to figure out the JavaScript code to save an indd file using the data merge source file field value.
As an example...
Let's say I have an invoice template called template.indd that is linked to invoice.txt.
To make it easy, let's say the text file has 1 field called "invoice number" with a value of 123
I run data merge.
Now I want to save the merged indd file as 123.indd
I've got everything figured out in JS except getting the source text file data into a variable to use when saving. This one's been giving me fits for hours!
Is this possible??
Thanks very muchDid you ever get this to work?
-
Date/Time Field but not a date field type..
I am dealing with a table that was already created and filled/filling with data.. so don't have an option to have someone go back and fix.
The field i am dealing with is a varchar2 not a date field.
it has values like
12/31/1899
2/17/2010 10:00:00 AM
2/24/2010 9:00:00 AM
2/17/2010 8:30:00 AM
2/24/2010 9:00:00 AM
12/31/1899
Basically the 12/31/1899 dates are supplied the data source as an indicator that the real date/time is unknown until it gets updated later in the day or next day. (why its like this i don't know)
anyways.. I need to drop records that are 7 days old.
So for say the 2/17/2010 ones, when its 2/24/2010 when the process is ran, those records will get deleted but with the '12/31/1899' ones staying as they are awaiting to be given a date/time '12/31/1899' date is always used for the 'unknowns' so that is constant. The other 'valid ones' always have a date and a time given.
I've tried a few things today, but kept blowing up.
Edited by: CPSteven on Feb 11, 2010 6:04 PM>
ORA-01830: date format picture ends before converting entire input string
With that command
The time in their messing with it?
>
You'd have that problem if the date format picture ends before any of your your strings end....
Eg.. your date field has "time component" and you just use... "DD-MON-YYYY" as the format picture.
However, If your format picture includes the maximum possible detail (of any of your strings) , you'll not see that error. Check this code below.
sql> select * from temp;
ID DATE_STRING
1 02/11/2010 03:10:26
2 02/10/2010 03:10:26
3 02/09/2010 03:10:26
4 02/08/2010 03:10:26
5 02/07/2010 03:10:26
6 02/06/2010 03:10:26
7 02/05/2010 03:10:26
8 02/04/2010 03:10:26
9 02/03/2010 03:10:26
10 02/02/2010 03:10:26
11 12/31/1899
ID DATE_STRING
12 12/31/1899
12 rows selected.
sql> delete from temp
2 where date_string != '12/31/1899'
3 and to_date(date_string,'MM/DD/YYYY') < (sysdate-7);
and to_date(date_string,'MM/DD/YYYY') < (sysdate-7)
ERROR at line 3:
ORA-01830: date format picture ends before converting entire input string
sql> delete from temp
2 where date_string != '12/31/1899'
3 and to_date(date_string,'MM/DD/YYYY HH24:MI:SS') < (sysdate-7);
4 rows deleted.
----In your case.. your format mask would be to_date(date_string,'MM/DD/YYYY HH:MI:SS AM')
Maybe you are looking for
-
Strange freezing/force quit doesn't work 100%
hey all... for the past few weeks, i have been having this strange problem... starting with EXCEL, but now on other programs like iphoto, itunes, and even finder... sometimes programs just freeze... spinning beach ball forever... when i go to force q
-
ABC Analysis - Report Requirement
Hello Experts, There is a requirement for report on ABC analysis like this: I)ABC analysis on STOCK VALUE: 1)Report should provide the total stock value 2)Stock values of individual A class, B class & C class items 3)Number of items of A class, B cl
-
Hi, I have created KM Document iview.In that Document i have given a link,but that link is displaying in new window.I want that link to be displayed in same area instead of seperate window,replacing the original document iview.Plz help to sort out
-
I need to reinstall Windows XP. How do I save my library and the playlists (they are important to me). Thanks team
-
No Lock entries for structure Lock in project
Hi I had uploaded the blueprint first time with wrong logical components from standard excel template from SOLAR_PROJECT_ADMIN. Second time, I am trying to upload with correct logical components. but its end up in the below error. The batch job is e