How to Calculacte Age based on DOB
Hi Experts
I am getting Emplloyee Date of Birth and Employment Start Date from Source System....
My requirment is to Calculacted Age and Emp Service in my report
How can i achieve this....
Is there any Function Module avaliable in BW which will calculacte No of Years between given date and Sys Date
Please update me on how can i achieve this
Thanks
Hi ,
Pls DOB load to cube & convert the DOB of employee as KF (ZDOB) using replacement path and also create variable for employee no. (ZEMP) using replacement path by replacing with attribute value and in drop select Characterstic reference (constant 1) and then create a formula (Todays System Date - ZDOB) * ZEMP.Here Todays System Date is system delivered variable.
Also chk this links;
Age
Age & Caste
age in bw
Calculated Age and Age Ranges in a Query
Calculated Age and Age Ranges in a Query
Calculated Age and Age Ranges in a Query
https://forums.sdn.sap.com/click.jspa?searchID=9537718&messageID=4976797
Regards,
CSM Reddy
Similar Messages
-
How to CalculacteAverage Age based on DOB
Hi,
I got Employee & DOB.
How can i calculacte average age of an employee
I can make an enhancements if necessary at cube level
Thanksyou can do that at query level.
using DOBs you can calculate the age of all employees.
Age = Sy-Datum - DOB
then you could use fun AVG.
I think you want to calculate an avg age of employees.
there is no significance of calculating an avg age of an empoyee.
let me know whats yr requirement.
thank you -
How to calculate age based on current month and over the next 12 months in Webi 4.1
Hi,
I am working on a report where I need to show employees who turned 65 from the time the report is run to over the next 12 months.I have the 'Date of Birth' field available. I am using Bex Query as a data source and webi 4.1. How do I calculate this in Webi 4.1. I appreciate any help.
Thank you,
Charvi.Hi Charvi,
Get the all employees who are all in 64 age bucket till yesterday. Keep indicator for these employees.
Then obviously these employees will be falling in 65 age in coming 12 months/365 days.
Same you can get at Bex level also. Create formulae :
if employee age = 64 then 1 else 0.
(AGE = 64 * 1 + 0)
Then create condition on this formulae as Value = 1.
Revert back your feedback.
Regards, Vijay -
How do i calculate the age given the dob?
How do i calculate the age given the dob?
Date dateOfBirth = yourObject.getDateOfBirth();
float ageInMillis = System.currentTimeMillis() - dateOfBirth.getTime(); -
How to do aging in Receivables 0FI_AR_4
Hi to all,
Can any one tell me the logic to calculate aging in Receivables?
Requirement is like that I have to create a query which has 7 buckets.
1 u2013 10 11 u2013 30 31 - 60 61 u2013 90 > 90 NotOverdue Overdue
And to calculate aging based on condition:
(SY-DATUM u2013 VBRK- FKDAT = number of days,
If number of days > 0NETDUEDATE (Due date for net payment) = Overdue
If number of days < 0NETDUEDATE (Due date for net payment) = notOverdue
I have created 2 DSO, from one DSO VBRK- FKDAT is coming and from other DSO for AR from where 0NETDUEDATE is coming.
Do I need to do logic in transformation from DSO TO CUBE via routine or formula?
Or do I need to do logic at Query level.
Also For rest bucket how i will find Receivables according to date range
or any thing else i need to do.
Please can any one suggest me the solution?
i will be great thankful to you.
Regards
Pavneet Rana
Edited by: pavneet rana on Jan 4, 2011 6:11 AM
Edited by: pavneet rana on Jan 4, 2011 8:42 AMThanks for Reply,
But there i am using 2 I have created 2 DSO, from one DSO VBRK- FKDAT is coming and from other DSO for AR from where 0NETDUEDATE is coming.
and Logic is like that.
SY-DATUM u2013 VBRK- FKDAT = number of days,
If number of days > 0NETDUEDATE (Due date for net payment) = Overdue
If number of days < 0NETDUEDATE (Due date for net payment) = notOverdue
Do I need to do logic in transformation from DSO TO CUBE via routine or formula?
Or do I need to do logic at Query level.
Requirement is like that I have to create a query which has 7 buckets.
1 u2013 10 11 u2013 30 31 - 60 61 u2013 90 > 90 NotOverdue Overdue
Also For rest bucket how i will find Receivables according to date range
or any thing else i need to do.
Please can any one suggest me the solution?
i will be great thankful to you.
Regards
Pavneet Rana -
Fixed-Rate Age-Based Insurance Plan
Hi SAP Benefits experts,
We have a new insurance offering this year wherein employee rates are determined by the employee's age at the time of initial enrollment. If an employee enrolls at, say age 25, his or her rates will not increase as the years roll by, even though the employee is now 65. Our other age-based plans allow for moving rates, so that as the employee ages, his or her rates will adjust.
How do I configure a plan to hold the initial rate that an employee qualifies for to be constant as time advances? I thought I would be able to use the Age Basis fields in the Cost Variant screen in IMG. However that only allows for a day and month. I think it would require a year as well for this to manage a fixed cost.
Thanks in advance.
YvonnePlz check below function
create or replace function cacl_roi
(p_dep_prd number, ----- deposit amount in years
p_unit varchar2 default 'D', -------unit of time (years/days)
p_mode varchar2 default 'X', ------Renew mode
p_gen varchar2, ------geneder M/F
p_work varchar2, --------working/non-working
p_age number , --------Age
p_anninc number ------Annual income
return number is
num_prd number;
l_roi number;
begin
select decode(p_unit,'Y',p_dep_prd*365,p_dep_prd) into num_prd from dual;
if p_age < 65 then
if num_prd >= 120 and num_prd <=240 then l_roi := 6;
elsif num_prd >= 241 and num_prd <= (2*365) then l_roi := 6.5;
elsif num_prd >= (2*365)+1 and num_prd <= (4*365) then l_roi := 7;
elsif num_prd >= (4*365)+1 then l_roi := 8;
end if;
If p_mode ='R' then l_roi := l_roi+0.5;
end if;
if p_gen = 'F' then l_roi := l_roi + 0.5;
end if;
if p_work = 'W' then l_roi := l_roi - 0.5;
end if;
end if;
if p_age > 65 then l_roi := 9;
end if;
if p_anninc > 10 then l_roi := l_roi + 0.1;
end if;
return l_roi;
end;
/ -
How to calculate age in oracle
Hi,
T was trying do calculate age as on todays date in ORACLE but after a lot of brain storming i didn't get it.
Kindly tell me how to calculate age as in years month days.
For ex.. My DOB- 02-feb-1984 so my age should get as 27 Years 2 months 8 days
How to do it.
I tried this
select
TRUNC( months_between( sysdate, TO_DATE('02-02-1984','DD-MM-YYYY') )/12 ) Year,
TRUNC( mod(months_between( sysdate, TO_DATE('02-02-1984','DD-MM-YYYY') ),12) ) Month,
mod(months_between( sysdate, TO_DATE('02-02-1984','DD-MM-YYYY') ),12) /30 Days
from dual
but days are not calculating correctly...
RGds,
PCsorry..i didn't chck your query..it is right but give wrong answer..
WITH got_months AS
SELECT TO_DATE('02-02-1984','DD-MM-YYYY')
, FLOOR (MONTHS_BETWEEN (SYSDATE, TO_DATE('02-02-1984','DD-MM-YYYY'))) AS months
FROM dual
SELECT TO_DATE('02-02-1984','DD-MM-YYYY')
, TO_CHAR (FLOOR (months / 12)) || ' years, ' ||
TO_CHAR (MOD (months, 12)) || ' months, ' ||
TO_CHAR ( CEIL ( SYSDATE
- ADD_MONTHS ( TO_DATE('02-02-1984','DD-MM-YYYY')
, months
) || ' days'
FROM got_months
o/p
TO_DATE('02-02-1984','DD-MM-YY TO_CHAR(FLOOR(MONTHS/12))||'YE
1 2/2/1984 27 years, 7 months, 9 days
1 day more..1 it sud be.. 2/2/1984 27 years, 7 months, 8 days
if i make correction with add_months like below..
WITH got_months AS
SELECT TO_DATE('02-02-1984','DD-MM-YYYY')
, FLOOR (MONTHS_BETWEEN (SYSDATE, TO_DATE('02-02-1984','DD-MM-YYYY'))) AS months
FROM dual
SELECT TO_DATE('02-02-1984','DD-MM-YYYY')
, TO_CHAR (FLOOR (months / 12)) || ' years, ' ||
TO_CHAR (MOD (months, 12)) || ' months, ' ||
TO_CHAR ( CEIL ( SYSDATE
- ADD_MONTHS ( TO_DATE('02-02-1984','DD-MM-YYYY')
, months
)-1
) || ' days'
FROM got_months
then o/p is..
TO_DATE('02-02-1984','DD-MM-YY TO_CHAR(FLOOR(MONTHS/12))||'YE
1 2/2/1984 27 years, 7 months, 8 days
correct but cdnt understand why sud -1? -
AR aging basing on Invoice date
Currently client gets AR aging based on Due Date. For audit purpose they need AR Aging based on Invoice Date. During SAP implementation they were instructed to use document date as invoice date and generate a dump from FBL5N and do the aging. However this does not work for balancing items as the document date changes to the date on which the partial clearing of that item was done. This is not acceptable to auditors.
Please help.
Any useful answer will be rewarded with points.Hi
Please try to use the field Baseline date for this purpose as this field will not be disturbed even when we do partial clearing of invoices.
Reward points if found useful.
Regards,
K Lakshmanan -
How to do aging for Net Debit for 0DEB_CRE_LC
Hi to all,
i am doing aging for receivables(0FI_AR_4) for Net debit > 0.
I have created CKF excaption aggregation at query level to get Net debit greater than zero, via ( 0DEB_CRE_LC > 0 ) * 0DEB_CRE_LC for every customer.
it gives correct result .
but when i used aging via used of 0NETDUEDATE, for 1-10 and 11-30 bucket and i have restricted bucket with this CKF.
for some customer i get correct result if both debit and credit come is 1-10 bucket and net debit of this > 0.
But if customer debit come in 1-10 bucket and credit in 11-30 bucket it gives incorrect result.
how to do aging for such conditions.
Please can any one provide me solutions.
I shall be thankfull to you for this.
Regards
Pavneet RanaThanks for reply ,
my query format is like that
query rows = region and restricted with region value
query column = aging bucket 1-10 , 11-20, and every bucket is restricted with CKF 0DEB_CRE_LC > 0 and 0NETDUEDATE and division value
and drill down by customer and region
format looks like that
division1 division1 division1 division2 division2 division 2
1 - 10 11 - 20 21-30 1 - 10 11 - 20 21 - 30
Region1
Region2
so report purpose is to calculate aging for NET DEBIT VALUE .
so if i drill down by customer for net debit value, net debit value according to bucket is correct if debit and credit of customer lies in same bucket
and if customer credit and debit comes under different bucket net debit value is incorrect for bucket wise.
and if dont use aging bucket net debit value according to customer and region wise is getting correct , but i need aging also for net debit value.
please can you provide me solutions to get netdebit according to bucket wise for every customer , when drill down.
I shall be thankfull to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Feb 7, 2011 3:02 PM -
How to block calls based ANI for individual user?
I want to know how to block calls based on ANI for individual user in CUCM? Lets say if the individual wants to block calls from certain number.
Malicious call id - softkey will not work for our purpose.
calls come to cucm via mgcp gateway. cucm 9.x
thanks,How to block calls has been asked hundreds, and hundreds of times at CSC, a simple search would have provided you with all the necesarry information. Please search before you ask
https://supportforums.cisco.com/docs/DOC-19628
HTH
java
if this helps, please rate
www.cisco.com/go/pdihelpdesk -
How Redirect browser(client) based on non-negotiable SSL/TLS protocol or cipher
Hi guys,
we have a security requirement wherein we have to force the browsers accessing our asp.net application hosted on windows server 2012 to have atleast tsl 1.1 , but we don't want to simply block the request, instead we would like to redirect the request
to a unsecured static html page with the instructions on how to get them onto tsl.
can any one help me here?>? actually i found a similar and exactly same thread on stackoverflow but i think that is probably directed towards linux family. http://serverfault.com/questions/591188/redirect-browser-based-on-non-negotiable-ssl-tls-protocol-or-cipher
please help me guys..
ps: i have posted the same question on IIS forum (http://forums.iis.net/t/1223352.aspx?How+Redirect+browser+client+based+on+non+negotiable+SSL+TLS+protocol+or+cipher+from+IIS)
and got a reply saying that it can be done at windows kernel level(possibly).Hi,
As far as I know, once SSL handshake fails, no subsequent communication would occur between the server and client.
Therefore, as the way I see it, the goal cannot be achieved.
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] -
CFM /TR - how system calculate amount based on rate FX 60A
Hi all,
i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
steps input:-
1. header - comp code, product type, trans type
2. partner
3. purchase curr & amount (eg. IDR 8,345,545,500)
4. sale currency only (amount system will auto calculate) USD
5. rate field = 11.553
6. spot rate will auto pick up from rate
7. value date
8. contract date
upon TBB1 no error. posting log as follows:-
FX1000+ : 40 8,345,545,500 IDR bank GL acc
50 8,345,545,500 IDR clearing acc
FX2000- : 40 722370.42 USD clearing acc
50 722370.42 USD bank GL acc
but upon TPM18 error occurred as follows:
DBT_C009 - GL not maintain in acc symbol 5.3.4
DBT_E039 - no posting spec assigned to update type
DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
50 0 USD, 431,977,511 IDR clearing acc
so, after maintained DBT_C009 as follows still error for DBT_E039:
40 0 USD, 38 IDR clearing acc
50 0 USD, 38 IDR P&L gl acc
what i don't understand is how system calculate and get DBT_C009 & DBTE039.
what is the function of TPM18?
thanks.Hello Prarnod,
I have done the first node only for actuals that come from the integration to the internal order.
I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
Thanks,
Paul -
How to create Formula based value field in COPA
Hi,
I want to know how to create formula based value field in COPA
My Requirement is i want to collect some value in formula based value field and want to use in copa allocation cycle as a tracing
factor.
anybody give some light on the same topic or requirement ?
Thanks
Nilesh RThe key figure you are creating in KE2K is not a value field, i.e. you can't post to it and you can't use it in a report. It is a caluculated value that can be used only in assessment and top-down-distribution.
In Ke2K, enter a name for your key figure, then click on the the white sheet button to create it. Now the formular area is open for input. Input your formular (e.g. VV001 + VV002 - VV003 .... where VVXXX are the technical names of value fields).
Now click the "check formuar"-button. Then save.
Before you can use the key figure in assessment, execute TC KEUG.
Now the key figure is available as any value field in the tracing factor selection of your assessment cycle.
I hope this made it clearer.
Regards
Nikolas -
hi friends
How to create ageing reports.If any one has documents/links pls provide me..Hi,
Check in..
http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
Thanks
Reddy -
ABAP-HR MODULE(HOW TO CALCULATE AGE & YEARS OF SERVICE)
HI,
HOW TO CALCULATE AGE & YEARS OF SERVICE means for example
I AM USING PNPCE LDB.
(1) whose age is greater than 52.833 years with 7.833 years of service, with annual rate of pay $170,000 or more, or
(2) age plus employment service is 65 or more, with annual rate of pay of $ 170,000 or more.
Note that the $ 170,000 parameter would be a variable that could change annually when this report would be generated. In the past, age and service value were determined as of the run date. The determination date would also be a variable that would change when the report would be generated.
Thanks&Regards
Rahul.Hi Rahul,
This is the 2nd warning !!! Please... use the correct or most appropriate forum.
The ABAP Objects Forum should be used for: ABAP Object definition and implementation including encapsulation, interfaces and inheritance in ABAP Objects.
This thread will be moved from to .
You're asking this question in two thread, so the duplicated thread will be deleted.
Please have a look at [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.
Also read this thread Welcome and Rules of Engagement.
Greetings,
Marcelo Ramos
Maybe you are looking for
-
Error message: Disc Burner is in use by application other than itunes
My burner was working fine a few days ago, yesterday I tried to burn a playlist from itunes and I got the error message in the subject of this post. I checked to see if my burner was working...according to the system it is working properly. Also, I a
-
Why can't I access my 4,600 some ICloud songs from my MacBook?
I recently purchased an Apple MacBook, 10.7.5. I updated the itunes application to the newest version. Then I signed in and made sure that this new device was authorized on my account. Then I proceeded to connect to the cloud to download songs that I
-
Sort negative amount in webdynpro ABAP (EHP5)
Hello, We ahve recently installed EHP5. We are now re-implementing Enterprise Compensation Management (ECM) with the new WebDynpro ABAP MSS iViews. We have the following issue: one of our column in the compensation planing iView displays positive and
-
Suddenly " display does not support HDCP " - March 2014
Hello Sky peoples Having had no trouble with my Sky+ HD and my LG TV for months and months I am now getting this "does not support HDCP" dialog every time I switch on. The TV was on then suddenly it blacked out and wouldnt restart - so I had to de-po
-
Java program that create a graphic interface of the WGET program
Hello, How can I make a Java program that create a graphic interface of the WGET program. Please post something already developed. No Applet. Thank you.