on 05-23-2011 10:15 AM
Dear All,
I have a requirement in my ess development.I need to calculate prorated amount based on the employee joining date.How can I calculate the number of months between joining date and fiscal year end date in Webdynpro for ABAP.
Thanks,
Reddy.
Hi sudhir,
If you want to findout no of moths betweeb dates, we have different FMs, use FM to get moths.
like HR_99S_MONTHS_BETWEEN_DATES. I dont know this is fulfill your requirement, just go through below link for more..
http://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kris,
The answer is helpful.Previously I am using FM 'MONTHS_BETWEEN_TWO_DATES'.It is not giving the expected result like it is giving zero months as difference between 1st march and 31st march .Where as FM 'HR_99S_MONTHS_BETWEEN_DATES' giving correct results like 1 month between above said dates.
Thnaks,
Reddy.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.