06-12-2008 2:29 PM
Hi everyone,
Is there any function module available that returns Factory week start date & end date? I am ready to key-in Factory week (Eg. 200801 or 01...) and I am expecting it to return 12.29.2007 (Factory calendar 1st week start date) as week start date.
Thanks in advance.
Regards,
Balaji Viswanath.
Edited by: Balaji Viswanath on Jun 12, 2008 7:01 PM
06-12-2008 2:33 PM
Hi Balaji,
Use the FM: WEEK_GET_FIRST_DAY to get the weeks first day.
Regards,
Ravi kanth Talagana
06-12-2008 2:38 PM
Use WEEK_GET_FIRST_DAY and then use DATE_CONVERT_TO_FACTORYDATE.
Regards
06-12-2008 2:55 PM
Hi,
Function module WEEK_GET_FIRST_DAY returns the calendar first day of the week. For example: If I input 200801 it's returning 12/31/2007 i.e. week starting date, whereas I am expecting result something like 12/29/2007 i.e. factory calendar's first day it might not be normal week starting day.
Regards,
Balaji Viswanath.
07-31-2008 1:33 PM
Hi Balaji,
Did u get any solution for this... if yes, pls reply with solution
and how do we get factory calender week for particluar date.
Thanks in advance
Sandeep
07-31-2008 1:39 PM
hi
use
this Fm
frist use this FM
to get Week date as per ur need
DATE_GET_WEEK : Returns week for a date
WEEK_GET_FIRST_DAY : Get the first day of the week
then use this FM
HRIQ_DATE_CONVERT_TO_FACTORYDT
DATE_CONVERT_TO_FACTORYDATE Calendar function: Returns factory calendar date for a date
FACTORYDATE_CONVERT_TO_DATE Calendar function: Returns date for a factory calendar date
LAST_FACTORYDATE_GET Calendar function: Return last factory date for a factory calendar
Cheers
Snehi
Edited by: snehi chouhan on Jul 31, 2008 2:44 PM
07-31-2008 2:56 PM
Hi
We are talking about factory calender week starting and ending date....pls answere for that...
there will be lot of diff between factory calender and calender... we can not just convert date to factory date and find week using FM given by u and find first date for that week... because this is not from factory calender....
hope u understand oru question now
07-31-2008 3:03 PM
hi
using WEEK_GET_FIRST_DAY this fm get first day of week and then u will add that date + 6 . u will get end date
07-31-2008 3:07 PM
Hi
Pls understand our question.... we are talking about factory calender.....
WEEK_GET_FIRST_DAY this will not return first day of week from factory calender....
Hi all.... pls try to understand our question.....