on 12-21-2012 11:08 AM
Hi Experts,
How to calculate no of days in a month based on Calendar Year/Month.
my source is DSO iam getting Calendar Year/Month from source,based on this i want to calculate no.of days in a month while loading data to next staging.
can anyone suggest how to achieve this.
Regards,
Naveen
Hi,
I would suggest you to use standard attributes of 0calmonth which is 0NUMDAY.
This gives you number of days in a particular month.You will find this under the attributes tab of 0calmonth, in case you don't find them then you can install the same from BI content.
Hope that helps.
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naveen,
There are loads of FMs related to the calculation of date. You can use them to get the number of days in a month.
To suggest, the following two FMs claculate the last date of a month. You can use this and get the number of days in a month.
LAST_DAY_OF_MONTHS - Returns the last day of the month.
SLS_MISC_GET_LAST_DAY_OF_MONTH- Returns the last day of the month.
This thread is more related to BW, hence this should have been posted in BW, this will help you get better suggestions.
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.