Time-frame calculation
Hi all,
I want to know if a date lies within a given time-frame (marked by end date).
The problem is, that the user can give the check time frame in days, weeks, months or jears.
The calculation is actually similar to the best before date calculation in Material Master.
But how do I calculate with these units.
Greetings Fred
Hi Fred!
First you should convert your input into a date or a number of days. Here a case on the input type should help (if type = weeks, then multiply input * 7...)
With the number of days you can calculate your ending date (e.g. end_date = start_date + l_days). Then a simple if p_date > start_date and p_date < end_date. should do the job.
Regards,
Christian
Similar Messages
-
Hi All,
Can any body tell me if i want to set the time frame in the budget profile, which are the fields which affect this ??
Thanks
Ankurhi,
The time frame you are refering in budge profile is not releated to this. It allows you to create budgets in system 1yr past and 3 years future
Example
Current year 2009
So system will allow you to create budget from 2008 till 2012. Budget is for a fiscal year and this setting doent control that.
Entering a budget will allow you to do the variance calculation but does not restrict you from posting invoices. If you want to restrict then you need to create validation.
This may help
Regards
Shantanu -
After ios7, My iphone4 has gone dead twice in a time frame of around two months...even though its not happening very often but a two month Old phone going dead just after a New update is not acceptable.probably ios7 still has sum bugs dat need to be fixed...Can this bug expected to be fixed in the next update...
Hi 1283ar.
Unfortunately, iOS 7 is too hard to push for the iPhone 4 and therefore has a lot of effects turned off to try to get it to run as smoothly as possible.
However, it becomes better and better with each update coming but it's hard to do anything about the hardware on an already released phones.
If you still have trouble or think they are too hard. My tip is, if so, to restore your iPhone 4 and make a clean setup with no iCloud backup. But all your photos in a photostream so you can access it later. -
Warning "Time of Calculation 'Before Aggregation' is obsolete" in BI 7.0
Hi Friends,
We have recently upgraded our BW system from BW 3.1 to BI 7.0. While executing one of the query in BI 7.0 i am getting the Warning Message "Time of Calculation 'Before Aggregation' is obsolete". I can run the query by ignoring the message and get the results. But I am not getting the correct result for some of the calculated key figures which has setting for Time of calculation as "Before Aggregation".
After doing some research i found that before aggregation is not allowed in BI 7.0. We are using queries created in 3.x environment. There is some work around which talks about creating new calculated key figure with after aggregation setting and all. But in my case it not feasible as there are so many queries based on those calculated key figures.
Does any one had the similar situation? Is there any other way to correct this problem?
I would appreciate your help in this regards.
Thanks,
ManmitHi
Try SAP notes 935903.
Symptom
Calculated Key Figures "Existance Indicator" with aggregation behaviour "Before Aggregation" will get now with NW 2004s warning popup "Time of calculation 'Before Aggregation' is obsolete" during execution.
this may be helpful.
Also Check the below thread
/message/2986338#2986338 [original link is broken]
Regards
Shilpa
Edited by: Shilpa Vinayak on Oct 10, 2008 4:23 AM -
How can I execute a command every 10 seconds in a specific time-frame
Hello,
I would like to create a script which in a specific time-frame collects some outputs and also pings every 10 seconds.
To collect the outputs every minute from 22:00PM to 22:10PM I have the following:
event manager applet snmp_output
event timer cron cron-entry "0-10/1 22 * * *" maxrun 30
action 010 cli command "enable"
action 020 cli command "show clock"
action 030 cli command "terminal exec prompt timestamp"
action 040 cli command "show snmp stats oid | append bootdisk:show_snmp_stats_oid.txt "
action 045 wait 5
action 050 cli command "show snmp pending | append bootdisk:show_snmp_pending.txt "
action 055 wait 5
action 060 cli command "show snmp sessions | append bootdisk:show_snmp_sessions.txt "
acionn 065 wait 5
action 070 cli command "end"
To confirm connectivity to the device doing the SNMP polls I would like to execute a ping every 10 seconds in the same timeframe.
Cron seems only to support minutes. Is it possible to combine a watchdog timer + a cron timer?
Can this ping function be incorporated in the SNMP output applet or will I have to write a new one?
Will I need TCL here (I have no experience in TCL)?
Best regards,
TimIf you wanted the pings to run in parallel, you could have this applet configure another applet to do the pinging, then remove it on the last run. This will require an amount of programmatic logic, though. If you wanted to keep things a bit simpler, add another applet that runs at 22:00 that configures a watchdog pinging applet, then a third applet that runs at 22:10 that removes the pinging applet.
When it comes to embedded quotes when you configure your nested pinging applet, you'll need to use $q to stand for the embedded quotes. You'll also need to configure:
event manager environment q " -
Manuals users should not be able to submit a concurrent program at a specific time frame:
Hi
Please let me know is it possible to restrict some users to submit a Concurrent program during a selected time frame .
Eg we have an issue in which Process Lockboxes concurrent Program is submitted by the batch user and is also by the Users manually from Front end .What I want is that during a particular time frame everyday say from 12:00 AM to 6 PM I want to restrict manual users to submit this program ,whereas the Program can be submitted by the Batch user any time .
Please let me if its possible to achieve this and how .
Thanks
RishabhPlease don't post duplicates -- restrict user to submit concurrent Program
Continue the discussion in your original post.
Thanks,
Hussein -
Date and time diffrence calculations
Dear Experts,
I have a doubt regarding the date and time diffrence calculation please help me out.
This is regarding the report called u201CVehicle tracking systemu201D. The purpose of this report is to give the user information like how many vehicles have come in and how much time each vehicle has parked in the filling in the refinery and also the average time taken for a customer.
For this we have created 4 info objects called
1) Park In Time
2) Park In Date
3) Gate Out Time
4) Gate Out Date
We have created a routine which calculate the difference in Vehicle Park In Date & Time to Gate Out Time and Date
The Time difference is number format.
Example: For Vehicle1
Park in Date and Park in Time are 27.11.2008 and 17:43:35
Gate out Date and Gate out Time are 29.11.2008 and 09:36:16
Here routine will calculate the difference in the above date and time and the output is like this 1,155.138,000 (i.e. 1day, 15 hours 51 mins and 38 seconds) that means the vehicle has parked for 1 day and 15 hours etc.
But we require the output like 1 day, 15:51:38
Please give us the solution how to go about it.
Thanks in advance,
venkatHi,
I think in regard to your problem, the solution will be to make the variables in the query runtime by the replacement path variable.
Please find the below link, its very much self explanatory and in regard to your problem.
Hope it helps!
[http://sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html]
Regards,
Neha. -
after renting a move and starting viewing I can not stop it and come back to in within the time frame. If i stop it it goes away not able to find it. Just like I did not rent it at all.
Hi,
We have rolled out a fix for this issue.
Please log off and log back in to your machine and the issue should be resolved automatically. In case that does not work, please manually run the msi installer posted here (may require reboot).
For details, please refer to the KB article here: Multiple RunOnce keys created 11.0.10 and 10.1.13 Acrobat | Reader
Please let us know if you still face any issues.
Thanks,
Ashu Mittal -
FTP Adapter restrict polling frequency active time frame in a day
Hi All,
Is there anyway I can restrict FTP adapter polling frequency to be active during a particular time frame of the day. Say, my service should poll the incoming location for Sales order data for every hour during business hours of the day.
Thanks,
AGHi
SOA Suite 12c will expose Oracle ESS as the scheduler.
ESS will allow you to schedule soa composites / OSB services etcand allow you to enable / disable them based on jobs, which is what you desire.
12c SOA Suite is expected later this Summer.
Cheers
iain -
Query to calculate time frames
hello,
id like to write a query that will calculate time frames ;
my source table looks like this:
company category date
ORACLE A 1/01/2012
ORACLE A 2/01/2012
ORACLE B 3/01/2012
ORACLE C 4/01/2012
IBM A 1/01/2012
IBM A 2/01/2012
IBM A 3/01/2012
IBM A 4/01/2012my desired result:
company category from to
ORACLE A 1/01/2012 2/01/2012
ORACLE B 3/01/2012 3/01/2012
ORACLE C 4/01/2012 31/12/2999
IBM A 1/01/2012 31/12/2999can you please guide me with use of which functions i can achieve that?
id appreciate any tips
thank you
rgds
Edited by: UserMB on Jan 11, 2012 5:14 PMOne way...
ME_XE?with t as
2 (
3 select 'ORACLE' col1, 'A' col2, to_date('1/01/2012', 'dd/mm/yyyy') col3
4 from dual
5 union all
6 select 'ORACLE', 'A', to_date('2/01/2012', 'dd/mm/yyyy')
7 from dual
8 union all
9 select 'ORACLE', 'B', to_date('3/01/2012', 'dd/mm/yyyy')
10 from dual
11 union all
12 select 'ORACLE', 'C', to_date('4/01/2012', 'dd/mm/yyyy')
13 from dual
14 union all
15 select 'IBM', 'A', to_date('1/01/2012', 'dd/mm/yyyy')
16 from dual
17 union all
18 select 'IBM', 'A', to_date('2/01/2012', 'dd/mm/yyyy')
19 from dual
20 union all
21 select 'IBM', 'A', to_date('3/01/2012', 'dd/mm/yyyy')
22 from dual
23 union all
24 select 'IBM', 'A', to_date('4/01/2012', 'dd/mm/yyyy') from dual
25 )
26 select
27 col1, col2, min(col3), case when max(col3) = max_company_date then to_date('31/12/2999','dd/mm/yyyy') else max(col3) end
28 from
29 (
30 select col1, col2, col3, max(col3) over (partition by col1) as max_company_date
31 from t
32 )
33 group by col1, col2, max_company_date;
COL1 COL MIN(COL3) CASEWHENMAX(COL3)=MAX_COMP
ORACLE B 03-JAN-2012 12 00:00 03-JAN-2012 12 00:00
ORACLE A 01-JAN-2012 12 00:00 02-JAN-2012 12 00:00
ORACLE C 04-JAN-2012 12 00:00 31-DEC-2999 12 00:00
IBM A 01-JAN-2012 12 00:00 31-DEC-2999 12 00:00
4 rows selected.
Elapsed: 00:00:00.01
ME_XE? -
A company I work for has a number of CSM modules (WS-X6066-SLB-APC) installed in 6513 chasis switches. The CSM modules are running version
4.2(14)
These CSM modules are configured to load-balance a number of vservers via serverfarms, each serverfarm containing multiple real servers.
Here is some example configuration:
vserver SITE
virtual 10.1.2.3 tcp www
serverfarm SERVERFARM
persistent rebalance
inservice
serverfarm SERVERFARM
nat server
no nat client
predictor leastconns
failaction reassign
retcode-map RETCODE-MAP
real 10.2.3.4
inservice
real 10.2.3.5
inservice
map RETCODE-MAP retcode
match protocol http retcode 503 503 action remove 5 reset 300
The company is facing a problem with what seems to be related to return code checking. Every once in a while a server will suddenly not receive any traffic for 5 minutes. This always occurs right after the server has sent a HTTP 503 return code. However we cannot see in the CSM logs that the CSM module has actually disabled the real server. For other serverfarms which are running regular HTTP and/or ICMP health checks to real servers we can clearly see in the CSM logs when a real server has been temporarily disabled due to health check failures.
The return code checking is set to disable a real server for 300 seconds after the CSM has received five HTTP 503 responses from the real server. If we check the real server log however we cannot find more than that single 503 return code right before the server stops seeing any incoming traffic unless we move back at least hours in time.
I have tried to figure out what time frame those 5 return codes must be received within for them to count towards the maximum allowed return codes, but nowhere in no documentation can I find any information about this time frame.
For all I know the CSM could keep track of every incoming 503 forever, until the maximum of five 503's is reached, and then the server is disabled for 300 seconds.
Does anyone have any information about the time frame within which those return codes must be received by the CSM to count toward the maximum configured number of return codes before the configured action is taken?Hi Christopher
EDIT: It might actually be me who misunderstood your reply. You probably gave me the correct answer already, that there is no time limit at all to the counter, and the counter will increase until it reaches 5 even if those 503's are spread out over several months time. Could you please confirm that this is what you meant? I'll leave my original reply down below for you to look at.
ORIGINAL MESSAGE:
Thanks for your reply, but I think you might have misunderstood my question, and I don't exactly blame you because I had some difficulty explaining what I meant.
I know what each and every key word in the following line mean, and I understand the command.
match protocol http retcode 503 503 action remove 5 reset 300
We match the protocol http, and look for when/if the server sends a return code 503 back to a client. Each time a 503 return code is returned from the real server a counter is increased by one. When the counter reaches 5 we take the action to remove (disable) the server. 300 seconds after the server was disabled it will be enabled again, and the counter will also be reset to zero at this point.
But I'm asking about the time frame for the counter, or rather if there is a default timer that resets the counter back to zero after a certain amount of time. Let me give you an example.
I enable return code checking for HTTP 503 and configure it to disable a server after five HTTP 503's have been seen by the CSM
1 minute later the server sends three HTTP 503 messages to a client. Now the return code check counter is at 3. This is where the "time frame" that I speak of begins.
Another 6 minutes later the server sends one HTTP 503 message to a client. The time frame within wich the CSM has seen HTTP 503's is now 6 minutes, so the CSM has seen four different HTTP 503's within 6 minutes. The counter would now be at 4.
5 months later the server sends a fifth HTTP 503 message to a client. The time frame is now five months and six minutes. Will this fifth HTTP 503 message increase the return code check counter to 5? If it does, then the server will be disabled for 300 seconds, even though it was 5 months since the previous four 503's were seen by the CSM.
What I'm wondering is basically if there is a limited time frame (like a sliding window) after which the return code check counter is reset back to zero? I cannot find any information about this, and as far as I can see there is no command I can use to see what the return code counter is currently at either, so I cannot manually verify this.
It would have made sense if the feature worked like this instead, and I'm still hoping that someone can provide documentation that says this is the way it is supposed to work (because if the above example is true, then the feature is broken and useless)
I enable return code checking for HTTP 503 and configure it to disable a server after five HTTP 503's have been seen by the CSM
1 minute later the server sends three HTTP 503 messages to a client. Now the return code check counter is at 3. This is where the "time frame" that I speak of begins.
5 minutes later the counter is reset to zero, because no 503's have been seen for over five minutes.
2 months later the server sends a HTTP 503 message to a client. This increases the counter to one. The server is never disabled. After another 5 minutes the counter is reset back to zero again.
I hope that the above examples make it a bit clearer what I meant with my original question. -
i'm using LV7.0 and what i need to do is to be able to set the time frame or range of a waveform chart programmatically before i start taking and plotting data. sometimes this window needs to be 30s wide and sometimes it needs to be 24 hrs wide. (in the first reference, i need the chart to fill up with 30s of historical data then the whole chart scrolls with each new data point). the data acquisition records data at a rate of once per second. i've tried to use the chart properties of XScale.offset, XScale.Range.Minimum and XScale.Range.Maximum but no matter what i do the time-stamp on the x-axis is always "00:00:00 PM" and "MM/DD/YYYY" even though values are seen being plotted on the right side of the chart as expected.
Attachments:
BX0265 ShelfLife DAQmx.vi 120 KBOkay, there seems to be some confusion here -- the X axis values are of type double, but they can be represented in the HH:MMS MMD:YYYY format if you want in which case it interprets the floating point as the number of seconds since 6pm Dec 31, 1903.
You can programmatically set this value using the XScale.Minimum and XScale.Maximum properties, but note that if you wire a waveform to the chart after setting these values the t0 parameter will override what you set using the property node for XScale.Minimum. If instead you leave the t0 parameter empty you can use the XScale.Offset property and wire the same value in that you wire to XScale.Minimum. Changing the amount you add to XScale.Minmum to obtain what you wire into XScale.Maximum will determine the time window size.
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me -
Any time frame for when we will be getting the Android 5.0 upgrade to the G3 on Verizon?
No one from Verizon can or will give you a timeline. They have no idea. Verizon can't even test 5.0 until they get it from LG first so perhaps you should be asking them.
-
Time frame for SAP implementation query
Hi guys,
I am a university student and am currently trying to collect some information for my paper on development of ERP systems in industrial companies, particularly SAP. I'm meant to do some field research, but it is proving to be rather difficult, which is why I wanted to ask for some help from people who have experience in the implementation of the SAP system.
What I'm looking for is the time frame that the SAP system takes to integrate into an industrial firm. Also, the scope of integration (ie how many and which modules were added on top of the core SAP system) and the number of users after the full implementation of the system.
I don't need the name of particular companies, as I understand that that may be disclosing too much corporate information, but it would really help me if someone could give me a realistic time frame of the implementation process for SAP.
Thank you, in advance!
AnyaAnya,
Update to your queries:
size of the company that this SAP implementation took place at:
Answer : In terms of revenue $200 million +
Interms of employees 6000+
HR module in particular - whether it can be fully implemented separately and how long would it take?
Answer:
Definately, it can be fully implemeted and other modules may not be used
Time period - 3+ months as Business packages are available in SAP.
Regards,
Ganga -
Expecting a response within a specified time frame
I need urgent help please.
I am expecting some data from the server within 20 seconds.
If I dont receive this data within the time frame,I exit from
the application else If i receive this data I will display it.
Please can any write a small example for this threading concept.
I am very new to this.
AjayLet suppose this is your communication dialog window:
call createTimer(int sleep) after you send a request to the server
class MyDialog extends JDialog implements ActionListener
private javax.swing.Timer m_timer = null;
public MyDialog(*********)
super(*********);
addActionListener(this);
private void createTimer(int sleep)
m_timer = new javax.swing.Timer(sleep, this);
m_timer.setRepeats(false);
m_timer.start();
public void actionPerformed(ActionEvent e)
if(e.getSource() == m_timer)
// check your "response flag"
}lic void actionPerformed(ActionEvent e)
if(e.getSource() == m_timer)
// check your "response flag"
Maybe you are looking for
-
Eventually denied permission to write in home directory
Hello, My wife is using a Mid-2007, 2.4GHz Intel Core 2 Duo iMac (iMac7,1) with 6GB RAM and more than 1TB of free available HD space. She is running Mountain Lion (10.8.3) and has administrator privileges. After she has been using the computer for a
-
[SOLVED] urxvt + screen + zsh, title is not displayed correctly
I use urxvt and screen inside it. The screen's title is set up to display the current program and the window number. However after changing from bash to zsh, it always display "zsh" instead of "vim" or "top" which is currently running. my screenrc:
-
Mass upload of employee photos in OAOH
Dear all, In OAOH transaction, if you type in the business object PREL, and doc type HRICOLFOTO, a small dialog box appear and you type in the employee no. Afterwards, another window dialog box appear prompting the file name/path.... I would like to
-
Error creating home directory - Access is denied.
Hi, I am getting one issue on the task while provisioning homedrive and homedirectory on AD resource. Error creating home directory '\\rusehf06\home\rc9782rf': ': Access is denied Please help. Thanks in advance.
-
Personalize link doesn´t work
Hi Everybody, I´m getting an access denied error when I click on the Personalize link in the portal masthead iview. This is what I did: 1) I copied the eu_core_role. 2) I copied the personalize workset. 3) I deleted the home content in the new eu_cor