on 02-03-2010 7:56 AM
Hi
I have a requirement like i need to find the no of days in a week and in that days i need to find thursday.
I see there is macro function to find no of days i,e BUCKET_WDAY(), also there is macro function WEEK() which returns nos 1 to 7 where 1= monday etc.
can any one help me on how to build up the logic.
your immediate response is highly appreciable.
Regards
Vijaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vijaya,
You can use Bucket_WDAYS as below for finding the number of workdays in the week.
BUCKET_WDAYS( CALENDAR( ACT_LOCATION ; 'SD' ; ACT_VERSION ); Row: DRP/COBRA Net Demand "FA" ( Frm 03.02.2010 ) ). The data source for the choosen row e.g. DRP/Cobra here should be column attributes.
This is available in standard planning book SNP94(1)_Batch processing also as determine workdays macro.
Regarding your query for finding Thrusday, can you tell me if you are looking for finding the date as an output within the weekly horizon on which thurday lies ?
Regards
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
Thanks for your quick respone.
I need to find if thursday is there in that weekdays.
i want to build up a logic like
for example:
using BUCKET_WDAY() i will find no of days in that week.
calculation: Q = no of days x P i,e Q = BUCKET_WDAY() x P
Now i should write a condition that if WEEKDAY( each day) in that week days[which we have arrived from above using BUCKET_WDAY() ] is = 4(i,e thursday)
then calculation: X = Y
Please let me know if you need some more input.
Regards
Vijaya
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.