Essbase number of days calc
We have a Time dimension which has the below member.
NumDays
Q3Days
Oct (31)
Nov (30)
Dec (31)
The values for Oct, Nov and Dec are hard coded as 31, 30, and 31 respectively. But I want them to return the actual number of days based on today's date. For example, if today is Oct 03 then Oct should return 2 days, Nov and Dec 0 days. And if today is Nov 05, Oct should return 31 days, Nov should return 04 days and Dec 0 days.
Is there any calc or function that I can use to get the above result.
Thanks.
Got it, thanks. In that case Celvin's solution (or one of the other sample date CDFs available here) will get you what you need.
If you do have a batch process to attach to, you could look at updating the member formula dynamically, or having a static formula point to a specific intersection and then load the values to the cube, or update substitution variables referenced by a static formula...
But if it really must be 100% dynamic and tick over at midnight without any process run, I think a CDF is your only option.
Similar Messages
-
Number of days before user needs to change password
If I enter a value for "Number of days before user needs to change password" will that effect both user and supervisor accounts or just user accounts? I have a supervisor account that we use for a lot of processes and do not want it to expire. However, our corporate security policy is to have user passwords expire at least every 90 days. Has anyone faced this before?<BR><BR>Thanks,<BR><BR>Mburkett
mburkett,<BR><BR>Version 7.X has the external authentication option. The integration with active directory is very easy and can be configured in a few minutes. However, if your Essbase user names are different than MSAD user names, you would have to replace all Essbase users with their domain ID in order to use external authentication. If the user names are the same, it is only a matter of changing the flag to use the external AD password, rather then the Essbase password. <BR><BR>If you are not using Hyperion HUB, you should install it prior to implementing External Authentication.<BR><BR>I don't know the details of your custom job scheduler, but if it is based on ESSCMD, I dont see why it would not continue to work with an upgraded version.<BR><BR>Good Luck,<BR><BR>Chris
-
Number of days before user must change password.
Hi,
I understand how does this Essbase server setting work:
Essbase Server Properties - Security Tab
"Number of days before user must change password"
But my question is:
Does anyone know how "to mark" certain group of Users (mainly system admin accounts) - that this setting will not force periodical passoword change for "marked" users ?
Any ideas ?
Br, ripassoThere are a couple of things you could do to circumnavigate this all or nothing option.
You could write a maxl statement that would update the user profile to force the user to change their password e.g.
alter user Fiona set password_reset_days immediate;
I would write a program using the API that lists all users in the group and then dynamically create the maxl script that uses the statement above.
If you can not use the API then I guess you could do a maxl only solution (using display user command) and do some text file manipulation in perl (or another scripting language).
There are probably more solutions/ideas out there. -
Prorate absence Quota monthly based on number of days worked.
Hi All,
I need to Generate Absence Quota Prorated Monthly on the following criteria.
4.5 days Per month.
0 - 5 day = 0.5
6-10 days = 1.5days
11- 15 days = 2.5 days
16-20days = 3 days
21 - 25 = 3.5 days
26 and above = 4.5 days
54 Quota Yearly entitlement
Negative Time evaluation -
Time evaluation run at end of the month.
If use Base Entilement as .15 / days and daily accural in Table T559L ,
then without any PCR quota is generated but for 31 days it generates 4.65 days and people joining middle of the month is not as per the criteria mentioned above ie as per number of day worked.
Can any one guide me with the steps and PCR's required if any.
Thanks
SethuHi Dinesh,
Thanks for your response. I have already created and assigned it in T559L. The below is the Rounding rule.
Lower inc Upper Target Rollout
0.00000 X 0.75000 0.15000 X
0.90000 X 1.50000 1.50000 X
1.65000 X 2.25000 2.50000 X
2.40000 X 3.00000 3.00000 X
3.90000 X 4.65000 4.50000 X
As per my earlier thread description when i make it daily accural and assign this rounding rule then for 31 days it calculates 4.65 days and for people joining middle or last week of the month it is not prorating as per the requirement,
Thanks
Sethu -
"No limit" not displaying for number of days to sync email
I recently purchased 16GB iPad w/ retina display (MD513LL) running IOS 6.0.1
I successfully set up MS Exchange email account, but it does not give me the option of "no limit" under number of days to sync.
I read in a few prior posts that deleting the email accounting and setting it up again works, but I tried that at least 6 times (it worked for my new iPhone 5, but not the iPad).I might be wrong but I don't think so because I set up the same account on my iPhone 5 which allowed for the "no limit" option.
-
How to get PO and vendor payment term number of days??
Hi Experts,
I want to have a) Purchase order payment term number of days as well as
b) vendor Payment term number of days.
For a) For Purchase order payment term number of days I am using table EKKO and taking ZBD1T field which is giving payment
term number of days.
Is it correct??
b) vendor Payment term number of days I am using table LFB1 field Zterm to take payment term key not number of days.
Based on this key i will go to table T052 and find corresponding number of days as told MM consultants .
But this is not BW work. We need one single table from which we can take the field or enhance the current extractor
with that field.
So is there any other option for (b)
and Whether steps for (a) is correct???
Please confirm this.
Thanks in Advance,
Uday Shankar.For a) For Purchase order payment term number of days I am using table EKKO and taking ZBD1T field which is giving payment
term number of days.
Is it correct??
Payment terms for purchasing doesn't come delivered as part of the R3/ECC tables and is usually is added as a custom field to EKKO and populated via a User Exit. That looks to be the instance in your case because the field that you show as being the payment terms begins with a Z (custom fields begin with Y or Z). That appears, without being able to actually validate in your R3/ECC environment, to be the correct field to use. You would have to validate, however, with the end customer or your MM function consultant to be 100% certain. If this is the correct one to use, you're going to have to enhance the 2LIS_02_HDR extractor by enhancing the extraction structure and creating the User Exit to read it from EKKO and populate into the DataSource.
b) vendor Payment term number of days I am using table LFB1 field Zterm to take payment term key not number of days.
Based on this key i will go to table T052 and find corresponding number of days as told MM consultants .
But this is not BW work. We need one single table from which we can take the field or enhance the current extractor
with that field.
You can enhance the 2LIS_02_HDR extractor with the Vendor Payment Terms by joining the following in your User Exit:
EKKO-LIFNR = LFB1-LIFNR
EKKO-BUKRS = LFB1-BUKRS
LFB1-ZTERM = T052-ZTERM
This could either be done in a SELECT statement in the User Exit to do this equi join, or you could create a view on your R3/ECC environment and SELECT from that view. -
I'm trying to calculate the number of days until your next birthday. Only using current month, day and birth month and day. I can get close but i'm way off. When i enter in the next day, the amount of days is supposed to be 364. This is where I am having problems. I know my code is way off. I just need some guidance please!
Attachments:
D5.7_1.vi 8 KBI just had a little fun with the Time Record...
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
D5.7_1_BD.png 19 KB -
Credit Check on Open Items number of day
Hi
We have setup automatic credit control and all seems to work fine, we now want to expandon this to include open items. So we have created a static block on open items.
The next step was to only include open itesm that have been open for longer than 60 day, sowe have entered 60 in the number of day box. But order are stillgoing on block due to this statoc check.
We have 0 set in the max open items box.
Do we need to enter anything in this box. We want the check to only include open items older than 60 days and the credit limit not to go over the main customers credit limit
Thanks
BarryHi,
Could you please share the answer?
Tawsif Chogle -
Number of days customer is due to be maped in dunning notice PLD
Hi All,
In the Dunning Reprt PLD I want to print the number of days the Customer is due to company as the number of days due varries from customer to customer please give a solution. So that i want to map number of days from dunning wizard report in to the PLD.
Regards & thanks for advance,
Mobin.Hi Mobin
One question first, the due days per customer does not make sense as there may be more than one document owing. I assume then that the oldest invoice must be used to calculate? This would be true at header level, but it will not be possible to place a field here to calculate from the rows. It might be possible to include a BP master UDF field here at print time, but this field would have to be updated manually on the BP masters with a query to get the maximum due date of open invoices and calculate their days overdue.
For row level each document could have a number of days overdue and this should be rather easy to achieve. Add an extra column as formula field and use the following formula:
ToNumber(F_203)-ToNumber(F_089)
F_203 is my own hidden field at row level with the formula Date() in it. F_089 is the value date or due date on the row. You can also add a hidden field and refer to the database field you want to use for this date.
I am still of course assuming that the dunning report you are referring to is the SAP standard dunning letter(s). If you are referring to a custom report, please let me know.
Kind regards
Peter Juby -
Need to add number of days to users end date.
Hi,
I have a code where we are adding number of days(30) to current date and then updating user's end date in IDM DB.
Now we have a requirement where we need to add number of days(30) to existing end date of user instead of adding to current date.
*public String incrementDate(int daysToAdd)
// Start date
log.info("NotifyLastDayOfService::incrementDate(): Enter");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
Calendar c = Calendar.getInstance();
c.add(Calendar.DATE, daysToAdd); // number of days to add
String newDate = sdf.format(c.getTime());
log.info("NotifyLastDayOfService::incrementDate(): Exit");
return newDate;
Have any body implemented this scenario?
Please suggest.
Thanks,
Kalpana.Hi Nayan,
Here is the code:
System.out.println("----inside increment date method-----");
HashMap<String, String> hm = new HashMap<String, String>();
HashMap<String,Date> modifyMap=new HashMap<String,Date>();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
tcResultSet usrList = null;
String enddate = null;
hm.put("Users.Key",usrKey );
try {
usrList = this.usrIntf.findUsers(hm);
usrList.goToRow(0);
Date endDate =usrList.getDate("Users.End Date");
System.out.println("-----users end date-----"+endDate);
String userEndDate=sdf.format(endDate);
System.out.println("-----String value of users end date-----"+userEndDate);
Calendar cal=null;
System.out.println("-----Calender date-----"+cal);
cal.setTime(endDate);
System.out.println("-----end date-----"+endDate);
cal.add(Calendar.DATE, Integer.parseInt(daysToAdd)); // number of days to add
Date newEnddate = cal.getTime();
System.out.println("-----new end date-----"+newEnddate);
//usrList.setEndDate(Edate);
modifyMap.put(userEndDate,newEnddate);
usrIntf.updateUser(usrList, modifyMap);
System.out.println("updated user's end date in OIM DB");
//System.out.println("-----updated user's end date in OIM DB-----");
logger.info("NotifyLastDayOfService::incrementDate(): Exit");
System.out.println("-----new date-----");
} catch (tcAPIException e) {
logger.error("Error in finding end date for user" + e);
} catch (tcColumnNotFoundException e) {
logger.error("Error in finding end date for user" + e);
In th log file, I can see that the code is not executing this line:
cal.setTime(endDate);
end date is of type Date and stores users end date from DB. Please help in resolving this issue.
Thakns,
Kalpana. -
Is it possible to add number of days to date?
I am working on a form where I need to add number of days to a date and come up with a date.
Header 1
Header 2
example date: March 1, 2013
+ 30
= march 31 2013
1. is this possible? Header1/cell 1 is a date field. Header 2/cell 1 is a dropdown field (30, 60, 90,120, custom),.
Header2 cell2 not sure what field to use date or text?
thank youNever mind I figured it out. Thanks
-
How to calculate the number of days worked for a given period
I need to calculate the number of days worked by contractor employees for a time period to be entered by a user. I am building a query on an infoset which contains employee information including contract start date and contract end date for the employee.
Ideally I'd like the user to enter the time period which should be reported on e.g. 01.08.2009 to 31.08.2009
The report should then identify all the contractor employees which were working during this period and to work out how many days they worked during this period. Obviously the contract start and end dates could fall both inside and outside the reporting period.
Can this be done and if so, do you have any suggestions as to how to do it?
Thanks.hi
So here you will first have to load the master data table employee in one internal table and read this table with the variables entries.
Your code in the reporting exit should look like that.
bye
data : wa_employee type /bi0/pemployee.
When 'ZDATE1'
if i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDATE2'.
clear l_s_range.
clear wa_employee
1- select the entries from table employees
select single employee dateto datefrom
from /bi0/pemployee
into corresponding fields of wa_employee
where dateto le loc_var_range-low
and datefrom ge loc_var_range-high.
if sy-subrc eq 0.
CALL FUNCTION 'FIMA_DAYS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_von = wa_employee-datefrom
i_kz_ult_von = 'X'
i_datum_bis = wa_employee-dateto
i_kz_ult_bis = 'X'
i_szbmeth = '1'
IMPORTING
e_tage = no_days.
l_s_range-low = no_days.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
endloop.
ENDIF.
Boujema -
How to avoid crosstab - Show number of days according to groups
Morning all,
I think you all would agree with me that even having crosstab as a great tool in Crystal 2008, there are still quite allot of limitations to it.
I have created a report using crosstab which shows number of days and jobs according to those days grouped by account number, product code, sales area. This report is working fine until my director asked me to further group those days according to sub categories of lenses.
For example
Crosstab shows
Number of days - Day 1,day 2, day 3
Number of jobs - 111----123--1213
Percentage - -
12%---34% 60%
Now if you look at the example it says day 1, 111 jobs went out. What the director would like to see is those jobs being sub divided into types of lenses.
So out of 111 jobs, 25 would be Finished lenses, 30 could be uncut lenses and so on.
The new report should be like this
Number of days -
Day1---Day2---Day3
Number of Jobs:-
Finished -
25--34-----23
Uncut--3045-----23
AR--7056-----76
Total----125135----122
Percentage:-
Finished -
25%--34%-----23%
Uncut--30%45%-----23%
AR--70%56%-----76%
Total----100%100%----100%
Now if we look at the above criteria it seems that I have to use groups even further down the report where I am using crosstab at the moment. This means I have to get rid of the crosstab and run a report manually.
However the big question is, how to get the report calculating number of days and jobs according to customer account number, product code and sales area manually?
I tried the following formula but this requires to write way too many formulas, for example some of the jobs have taken more than 60 days and if i use this formula I have to write 60 formulas for number of days which is not feasable.
**//provided by IIbas in another forum**
whileprintingrecords;
numbervar day0;
numbervar day1;
numbervar day2;
if {@workingdays} = 0 then
day0 := day0 + 1 else
if {@workingdays} = 1 then
day1 := day1 + 1 else
if {@workingdays} = 2 then
day2 := day2 + 1 else //up to the maximum number of days.
Then in the report footer, reference the days in separate formulas, and identify them with text boxes, e.g.,
//{@day0};
whileprintingrecords;
numbervar day0;
I can sort out the Finished, uncut,AR by grouping them however I am wondering how to create a manual running total of jobs complying with number of days without using crosstab.
Any ideas?
Many thanks
Regards
Jehanzebno answer closing
-
How to get "Number of days" in a report on 0PM_DS02
Dear BI Gurus,
I need to build a query on the PM DSO - 0PM_DS02 (MTTR/MTBR).
The query has 0Equipment in the rows
The fields Available Time | Breakdown TIme | Utilised Time in the columns for the time granularity selected.
The field Breakdown Time is the calcaulted key figure Actual Outage Time from the DSO.
The field Utilised Time is a formula = Available Time - Breakdown Time.
The issue I am facing is regarding the field Available Time.
In the report the user needs time granularity in Month and Year.
Basically the logic for the field Available Time = Number of days in the time period selected * 24
where 24 = number of hours in a day.
Now my issue is when the time granularity is month , the field should have the number of days in the month the user selects from the selection screen and when the time granularity is year, the field should have number of days in that year.
Also during the query execution period, when the user changes the time granularity the report should also change the calculation for this field.
(I can bring an extra field to the DSO, which will bring the available number of days in a month for each record)
Can you please guide me how to map this scenario.
Many Thanks in Advance,
With Warm Regards,
VineethHi All,
Waiting for your suggestion on this?
With Warm Regards,
Vineeth -
I want to repeat an event on a set number of days.
I work shift work and my schedule repeats every 28 days. For example, I work day shift today and in 28 days I will work day shift. I want to input my work schedule into iCal, but it doesn't let me create a repeatable event for a certain number of days. I would manually have to enter my work schedule every month. Can we get this changed. I know several of my co-workers have iPhones and would like to have this feature. We would like to deal with just one calander, versus several. Google calender has this feature, and that is what we currently use, but we want to use the iCal app. Thanks for the help and input.
I found a work around. iCal in iCloud will let you customize your iCal entries; so I inputed my custom work schedule and then it just updates your iPhone.
Maybe you are looking for
-
I am looking for this particular add on or app which allows me to hover my mouse over a word or link and a pop up will appear beside such word or link showing either a picture or meaning of the word or a preview of the link. Sometimes it shows sugges
-
Trying to open a 10 year old Appleworks document. Get a dialog box that the Classic Mode is not supported on this machine. Is there a way to work around this problem and open the doc?
-
Note 1307108 - ME5xN: Purchase requsitions not subject to overall release
We have the following : release strategy tab is now showing even the purchase requisition is subjected to a release. we have found note 1307108 but..... we are on 603 and this note is for 604 only. I am sure that others have had the same problem, but
-
How to implement a simple node-edge graph?
Can any one give me some advice on how to implement a simple node-edge graph in a frame? Every node is a rectangle which can be moved by mouse, and every edge is a arc between two nodes. Should the node class extend JPanel, and the edge class extend
-
Reclaim free space in datafiles
Hello: I have taken over management of one of our test servers with Oracle 9i on Windows2000 and have noticed that there are two files that are much larger than the space that is actually being used: D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF - 17964M - (Us