Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Factory week start date & end date

Former Member
0 Kudos

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

8 REPLIES 8

former_member181962
Active Contributor
0 Kudos

Hi Balaji,

Use the FM: WEEK_GET_FIRST_DAY to get the weeks first day.

Regards,

Ravi kanth Talagana

raymond_giuseppi
Active Contributor
0 Kudos

Use WEEK_GET_FIRST_DAY and then use DATE_CONVERT_TO_FACTORYDATE.

Regards

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.....