How get the duration in days of 2 key figures with use of factory calendar
Hi all,
in a query i have two key figures (dates!). Now i want to get the duration in days between the two dates with the use of one factory calendar.
FYI
I made this in the past in the update rule (...DURATION_DETERMINE..) but now in this situation i have two cubes and i want to make an report on a multicub.
Thank you very much for any help.
Frank
You would probably accomplish this with a virtual key figure. I did this and the performance was not bad. I developed a class with a signature for 2 dates and a calendar to return the number of business days.
Hope that helps...
Similar Messages
-
I guess the title says it all. So am i correct that I will need to wipe my phone and loose all my contacts that I have spent years accumulating along with all my other data? There were no passwords on this phone before downloaded the updated operating system. This makes no sense. Find my phone is very sporatic with this new operating system. Jumps back and forth between phones on its own. I am so frustrated with Apple!
When I downloaded the new softwared to my iphone, it put a password on my restrictions
No it didn't. You did, whether you realize it or not. Restrictions can only be enabled by user interaction. They don't just turn on by themselves.
So am i correct that I will need to wipe my phone and loose all my contacts that I have spent years accumulating along with all my other data?
Why do'nt you just restore the latest backup that was made prior to you applying the update? Problem solved? -
How to get the number of days in a month?
hi all
is there any way to get the number of days in a given month with a given year? for instance, if year is 2004 and the month is July or February, how can i get the number of days? thanks.Gee, I don't know ... Maybe this:
Calendar cal = Calendar.newInstance();
cal.set(Calendar.YEAR, 2004);
cal.set(Calendar.MONTH, Calendar.FEBUARY);
System.out.println("max days in month: " + cal.getActualMaximum(Calendar.DAY_OF_MONTH));
Do you not bother reading what people have already posted? Read the API docs on the Calendar class. -
How to get the number of days of February.....
Hi ,
how can I get the number of days (28 or 29) of February of the current year or the next...????
Or is there any other way to find that a year is a leap or not (i mean the year has 365 or 366 days).??
Thanks
Simonselect add_months(to_date('&v_year', 'YYYY'), 12) -
to_date('&v_year', 'YYYY') from dual;Jens, it seems we have made the same mistake, trunc usage seems mandatory :
SQL> ed
Wrote file afiedt.buf
1* select add_months(to_date('2007', 'YYYY'), 12) - to_date('2007', 'YYYY') from dual
SQL> /
ADD_MONTHS(TO_DATE('2007','YYYY'),12)-TO_DATE('2007','YYYY')
366
SQL> ed
Wrote file afiedt.buf
1* select add_months(trunc(to_date('2007', 'YYYY'), 'YYYY'), 12) - trunc(to_date('2007', 'YYYY'), 'YYYY') from dual
SQL> /
ADD_MONTHS(TRUNC(TO_DATE('2007','YYYY'),'YYYY'),12)-TRUNC(TO_DATE('2007','YYYY')
365
SQL> Just to clarify my past doubt.
Nicolas. -
I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with administration permissions?
If your intention is to use the trial again it will not reset if you reinstall. It will remain in its ran out state.
-
How to get the duration of the flv video in AS3
please help. thanks
Why are you posting this question in the ActionScript 1 and 2
forum? :P At any rate, it's not too hard to get the duration
property from the metadata in AS3. Before I write some code
samples, are you using your own custom NetStream code, or are you
using the FLVPlayback component? -
Get the values from Day 1 of the Month
Hi Friends,
I have a requirement in which I have to Get the values from Day 1 of the Month.
Ex : If I enter 19 - 07 - 2007.......the report should display Values from 01 - 07 - 2007.
How to Code ?
Please provide the Code.
Thank you.Hello ,
Check this code,
DATA: test_datum1 LIKE sy-datum,
test_datum2 LIKE sy-datum.
WHEN 'TEST1'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'TEST2'.
test_datum1 = loc_var_range-low.
CONCATENATE test_datum1(6) '01' INTO test_datum2.
CLEAR l_s_range.
l_s_range-low = test_datum2.
l_s_range-high = test_datum1.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
hope it helps,
assign points if useful -
Use apple script to get the duration of soundfiles and send the info to FileMaker
I have close to 6000 soundfiles in approx. 20 subfolders of a folder called soundarchive and a FileMaker DB of all those files. Here's what I'd like to do. Get the duration of each file and send it to the "duration" field of the matching FMrecord. I don't know a lot about AppleScript (or programming anything apart from my HD recorder), what I do know is that a script will save me from a week of copy-pasting the info manually. I found a script by hubionmac that does the first part (for one file) it goes like this:
set aFile to choose file
tell application "Finder" to set filename to name of aFile
set AppleScript's text item delimiters to " = "
set duration to text item 2 of (do shell script "mdls -name kMDItemDurationSeconds " & quoted form of (POSIX path of aFile))
set AppleScript's text item delimiters to "."
set total_seconds to text item 1 of duration
set AppleScript's text item delimiters to ""
set showsec to (total_seconds as integer) mod 60
set showmin to (total_seconds as integer) div 60
display dialog filename & return & return & "Duration:" & return & showmin & " min " & showsec & " sec"
So this is for one file. How do I get the information for the other 5000+ files and send it to the FileMaker DB. Obviously the "display dialog" won't do so it'll have to be changed to something like "get". How do I proceed from here?Hi Preetha7,
I found one automated SQL Server Health Check Solution which may meet your needs. The daily health checks include checking CPU utilization, database status, available disk space, network packet errors, database backup status, and more. For more detail about
this solution, please refer to the following article:
http://sqlmag.com/database-administration/automated-sql-server-health-check-solution
In addition, if you want to write your own script to perform a quick health check of SQL Server using PowerShell, please refer to the following article:
http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/25/use-powershell-to-monitor-your-sql-server-performance.aspx
If you have any question, please feel free to let me know.
Regards,
Jerry Li -
FM to get the number of days in Year,month and days by giving number of day
Hi ALL,
This is quit differnt.
I need to give input the 'start date' and the 'number of days' and get the total days from the start date in year,month and day format.
for example.
start date :01.01.2009
number of days as 32
then i should get
years:0
months :1
days :1
Pleas help me out.hi Anusha,
first u pass the date and the days to the following fm you will get the result date....
data:date type sy-datum,
r_date(10) type c.
date = sy-datum.
CALL FUNCTION 'CALCULATE_DATE'
EXPORTING
DAYS = '32'
MONTHS = '0'
START_DATE = date
IMPORTING
RESULT_DATE = r_date
write:/ r_date.
then you need to pass the result date and the date to the following fm to get the required output...
CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
EXPORTING
date1 = r_date
date2 = date
IMPORTING
years = v_years
months = v_months
days = v_days
EXCEPTIONS
invalid_dates_specified = 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.
here u will get the difference in days, months and year...
i hope u wil get help from this...
regards
Ashu Singh -
how to install when I keep getting the following massage on windows 7 64 bit with or with firewall on and with or with virus protection on here is post " This installation package could net be opened verify that the package exist and that you can access" same when trying to install quicktime
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/quicktime/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
How to get the fixed result in a DES/CBC mode with fixed input data and fix
How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
below is my code:
byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
cipher.init( Cipher.ENCRYPT_MODE, skey );
byte[] result = cipher.doFinal( DESInputData );Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
// Create CBC-mode triple-DES cipher.
Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
// Specify IV.
IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
// Initialize cipher with proper IV.
c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
// Encrypt and decrypt should work ok now.
For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
Regards,
Ronald Maas -
How do I get the Interval to keep from repeating after it's used once?
How do I get the Interval to keep from repeating after it's used once? Because I tried clearInterval but I couldn't get it working.
When my code looks like this, with ClearInterval, it refuses to execute my action, which is to change scenes after a short interval:
(Pardon if there is some formating errors, I had to reformat it for the Internet)
Code with clearInterval command
stop();
Kollektiv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);
function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void{
gotoAndPlay(29);
var myInterval:uint = setInterval(fl_ClickToGoToNextScene_14,3000);
clearInterval(myInterval);
function fl_ClickToGoToScene_14(event:MouseEvent):void{
MovieClip(this.root).gotoAndPlay(1, "Testside");
However, when my code looks like this it refuses to stop looping:
Code without ClearInterval command
stop();
Kollektiv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);
function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void{
gotoAndPlay(29);
setInterval(fl_ClickToGoToNextScene_14,3000);
function fl_ClickToGoToScene_14(event:MouseEvent):void{
MovieClip(this.root).gotoAndPlay(1, "Testside");
Any ideas? Also, feel free to dumb your answer down, because I am completely new to Flash, Actionscript and coding.If you insist on using setInterval - you need to declare interval id in a higher scope so that you can clear it later:
stop();
var myInterval:uint;
Kollektiv.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);
function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void
gotoAndPlay(29);
myInterval = setInterval(fl_ClickToGoToNextScene_14, 3000);
function fl_ClickToGoToScene_14():void
clearInterval(myInterval);
MovieClip(this.root).gotoAndPlay(1, "Testside");
I suggest you use Timer instead:
stop();
import flash.events.TimerEvent;
import flash.utils.Timer;
var timer:Timer = new Timer(3000, 1);
timer.addEventListener(TimerEvent.TIMER, fl_ClickToGoToScene_14);
function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void
timer.start();
gotoAndPlay(29);
function fl_ClickToGoToScene_14(event:TimerEvent):void
timer.stop();
MovieClip(this.root).gotoAndPlay(1, "Testside"); -
How get the user initiador in gp?
hi all
How get the user initiator of a process GP with a Web Dynpro Callable Object?
because with this code I get the current user...
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
String userid = user.getUniqueID();
thanks!Hi,
processId is the design time template id of the process. This you can find in the instantiation tab while designing the process.
Code for getting user context:
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IGPUserContext userContext = GPContextFactory.getContextManager()
.createUserContext(user);
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
Hope it helps.
Regards,
Srinivasan Subbiah -
I try to update my apps but I get the following message: 'Your account is not valid for use in the Ireland store. You must switch to the Polish store.' I've never been using Polish store only Irish.. How to solve the problem?
Try going to the bottom of the Featured tab in the App Store app on your device and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section and select Ireland.
-
How can I get the shutter count for my Canon 7D Mark II using Windows XP?
How can I get the shutter count for my Canon 7D Mark II using Windows XP? I've been looking lots of places and doing some file uploads, but I can't seem to find anything. I'm wary of downloading software I know nothing about. Any help is greatly appreciated.
Solved!
Go to Solution.Nevermind, just, sort of answered my own question. Doesn't work on XP, but using a Win 7 'puter I was able to use Shutter Count, which now works w/ the 7D Mark II.
Maybe you are looking for
-
Manual Creation of Production(confirmed) in Planning book
Hi Experts, I just want to ask if in case I manually enter a production order quantity for a certain material location in Production(Confirmed) key figure, would it automatically populate dependent demand quantity on components? I understand that if
-
Hi Experts, I am new to BPC and was just wondering if there will be any adverse affects if we add a dimension to an application while the BPC system is in the production mode. Can it even be done? If not, I would like to know if there is a work aro
-
Need certificates for employee error.
I went to the midnight release for call of duty. I preordered the game weeks in advance. The employee told me I couldn't have gamers club unlocked and preorder bonuses. She then said she cancelled my preorder. Which she did not. I need $15 in reward
-
Mouse quits w/printer connected to airport extreme
After 2+ yrs w/ no problems, now, mice will not move cursor when HP PSC2410 is connected to Airport Extreme, internet is OK. If I plug the printer directly into the mini, mice work fine. What the........!&%$
-
I have factory reset the extreme base station and updated firmware, however, now there do not appear to be dual networks. Why is that