About OUTZL LLW - Last wagetype of the week.
Hi All,
I am using this function OUTZL LLW in a Payroll PCR to check for the last wagetype of the week.
In my requirement the week is defined as Sat- Fri but according to this function it takes the week as Mon to Sunday.
I had faced a similar issue in OUTZL NWKy, but there we can define the week by giving the required value of y in the check.
So is there any way to define the week for this function? I am really stuck at my logic because of this.
Yeah I tried changing the return value of LDAYW under my country grouping i.e. 99 to "5" but still in OUTZL LWW for payroll it takes defaults weeks. I also tried the same function in Time payroll, here it took the week as defined by my Work schedule i.e. Sat-Fri.
Similar Messages
-
How to get last date of the week
hi,
how to get last date of the week like FM WEEK_GET_FIRST_DAY gives the date of the first day of the week i need the date of the last day of the week..
thnxdata : p_week type KWEEK,
p_Date type SYDATUM.
p_week = <incoming value in week of year>
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
EXPORTING
week = p_week
IMPORTING
DATE = p_date
EXCEPTIONS
WEEK_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To get the last day of the week.
p_date = p_date + 6.
You can find the available fm in the system from se37 transaction code. -
Generating the last day of the week
HI All,
I have the Year value (for eg 2002, 2006) and the week number value in the year ( for eg : 32, 52) . Based on this information, how can I get the last day of the particular week.
for eg What is the last day of the week - 2002,32
Any pointer would be great.
Thanks and Regards
VenkatOr try this:
SQL> WITH t AS
(SELECT 2006 YEAR, 1 week
FROM DUAL
UNION ALL
SELECT 2002 YEAR, 32 week
FROM DUAL
UNION ALL
SELECT 2005 YEAR, 52 week
FROM DUAL
UNION ALL
SELECT 2006 YEAR, 52 week
FROM DUAL)
SELECT YEAR,
week,
CASE
WHEN TO_CHAR (TRUNC (TO_DATE (YEAR, 'RR'), 'RR'), 'IW') != 1
THEN TRUNC (TRUNC (TO_DATE (YEAR, 'RR'), 'RR') + 7, 'IW')
ELSE TRUNC (TRUNC (TO_DATE (YEAR, 'RR'), 'RR'), 'IW')
END
+ 6 + (week - 1) * 7 LAST_DAY
FROM t
YEAR WEEK LAST_DAY
2006 1 08-JAN-06
2002 32 11-AUG-02
2005 52 01-JAN-06
2006 52 31-DEZ-06
4 rows selected. -
How to get the last day of the week?
Hii
i can get the calender week number for any given date using
SELECT to_char(to_date('04/04/2011','MM/DD/YYYY'),'WW') FROM dual
can any body tell me, how to get the last day of that week ?
and the answer should be 04/08/2011(8th april )
thanks
San
Edited by: sandeep9 on Apr 4, 2011 3:50 AMHi, San,
Here's one way:
WITH sample_data AS
SELECT DATE '2011-04-04' AS dt
FROM dual
SELECT dt
, TO_CHAR (dt, 'WW') AS week_num
, NEXT_DAY ( dt - 1
, TO_CHAR ( TRUNC (dt, 'YEAR') - 1
, 'Day'
) AS end_o_week
FROM sample_data;Another way is to use date arrithmetic:
WITH sample_data AS
SELECT DATE '2011-04-09' AS dt
FROM dual
SELECT dt
, TO_CHAR (dt, 'WW') AS week_num
, TRUNC (dt, 'YEAR')
+ (7 * CEIL ( (dt - (TRUNC (dt, 'YEAR') - 1))
/ 7
- 1 AS using_date_arithmetic
FROM sample_data; -
I purchased about 14 songs last night. Computer & IPod both said "syncing". iTunes shows that they were purchased. Computer was showing "downloading",
but the songs are not on the IPod.They show up under "Purchased". Also one of the the songs I purchased looks like it's stuck on "play" when I look at the list of songs. Any suggestions?Use the Transfer Purchases command in iTunes prior to syncing.
(59411) -
Find first & last day of the week from given date
Hi All,
I have the below input query,
WITH TEM AS ( SELECT '11-JAN-13' DT from dual union SELECT '16-JUN-12' from dual union SELECT '04-JUL-12' from dual union SELECT '09-JAN-13' from dual union SELECT '10-JAN-13' from dual union SELECT '04-JAN-13' from dual union SELECT '07-JAN-13' from dual union SELECT '04-JUN-13' from dual union SELECT '08-JAN-13' from dual ) SELECT TO_DATE(DT) D1,'WEEK '||TO_CHAR(TO_DATE(DT),'IW-YYYY') WK from tem;
I would like to get the below output i.e. Starting date of the week(Saturday) & end date of the week(Friday)
DT
WEEK Period
Max Date in this week
Min Date in this week
16-Jun-12
WEEK 24-2012
16-Jun-12
22-Jun-12
04-Jul-12
WEEK 27-2012
30-Jun-12
06-Jul-12
04-Jan-13
WEEK 01-2013
04-Jan-13
29-Dec-12
07-Jan-13
WEEK 02-2013
05-Jan-13
11-Jan-13
08-Jan-13
WEEK 02-2013
05-Jan-13
11-Jan-13
09-Jan-13
WEEK 02-2013
05-Jan-13
11-Jan-13
10-Jan-13
WEEK 02-2013
05-Jan-13
11-Jan-13
11-Jan-13
WEEK 02-2013
05-Jan-13
11-Jan-13
04-Jun-13
WEEK 23-2013
01-Jun-13
07-Jun-13
Also suggest if any function available in oracle for this one.Like this? I think in your required output, 3rd row data, MAX_DATE should be 29-DEC-12 and MIN_DATE should be 04-JAN-13.
WITH TEM AS
( SELECT '11-JAN-13' DT from dual union
SELECT '16-JUN-12' from dual union
SELECT '04-JUL-12' from dual union
SELECT '09-JAN-13' from dual union
SELECT '10-JAN-13' from dual union
SELECT '04-JAN-13' from dual union
SELECT '07-JAN-13' from dual union
SELECT '04-JUN-13' from dual union
SELECT '08-JAN-13' from dual )
SELECT D1 DT,
WK WEEK_PERIOD,
CASE WHEN (TRIM(TO_CHAR(D1,'DAY'))='SATURDAY') THEN D1
ELSE NEXT_DAY(D1,'SATURDAY')-7
END AS MAX_DATE_IN_THIS_WEEK,
CASE WHEN (TRIM(TO_CHAR(D1,'DAY'))='FRIDAY') THEN D1
ELSE NEXT_DAY(D1,'FRIDAY') END AS MIN_DATE_IN_THIS_WEEK
FROM (
SELECT TO_DATE(DT) D1,'WEEK '||TO_CHAR(TO_DATE(DT),'IW-YYYY') WK from tem)
ORDER BY DT;
OUTPUT:
DT WEEK_PERIOD MAX_DATE_ MIN_DATE_
16-JUN-12 WEEK 24-2012 16-JUN-12 22-JUN-12
04-JUL-12 WEEK 27-2012 30-JUN-12 06-JUL-12
04-JAN-13 WEEK 01-2013 29-DEC-12 04-JAN-13
07-JAN-13 WEEK 02-2013 05-JAN-13 11-JAN-13
08-JAN-13 WEEK 02-2013 05-JAN-13 11-JAN-13
09-JAN-13 WEEK 02-2013 05-JAN-13 11-JAN-13
10-JAN-13 WEEK 02-2013 05-JAN-13 11-JAN-13
11-JAN-13 WEEK 02-2013 05-JAN-13 11-JAN-13
04-JUN-13 WEEK 23-2013 01-JUN-13 07-JUN-13
9 rows selected. -
Get the first and the last date of a week
Hi all
I need to get the first and the last date of a specific week.
I need a function that returns two date passing it just one date.
The function has to calculate the first and the last date of the week of the argument date.
hope to be clear
regardsgoiters,
I need to get the first and the last date of a specific week.Yup, and what's the first day of the week in your part of the world, is it Sunday or Monday?
I need a function that returns two date passing it just one date.No you don't, just add 7 days to the start of the week.
hope to be clearWell, you can hope.
Keith.
Message was edited by: corlettk - now I hope to clear ;-) -
How to calculate start date and last date for current week
Dear All.
i want to calculate the start of the current week as well as the last date of the current week, our week start from Saturday and ends of Friday i.e. Saturday is the first day of the week and Friday is the last day of the week.
How can i acheive this in universe Designer?.
Please help...Hi
the formulas in webi will be as follows
for startdate
=RelativeDate(LastDayOfWeek(CurrentDate());-8)
for enddate:
=RelativeDate(LastDayOfWeek(CurrentDate());-2)
Regards,
Ranganath -
ICal printing days of the week
Have just up upgraded to Yosemite and have a problem when printing the calendar. Set start day of week in preference to Monday, which is fine on screen. When you print Monday is the last day of the week???
Icheney,
1. Open System Preferences...>Language & Text>Formats>Region: and set/re-set the appropriate region.
2. Find and resolve duplicate fonts with Mac 101: Font Book -
Current date - End of the week
Hi Masters,
By using <b>GET_WEEK_INFO_BASED_ON_DATE</b> this function module we can find the last day of the week.
That is it's giving SUNDAY. But my case SAT DAY is the last day of week. Please can any body give me the proper code..It's very urgent..
I realy appricate..
Thanks!
SReddytry this ( I am in ECC 5.0 just check it in your version)
data : vdate like sy-datum,
vsatday like sy-datum.
vdate = sy-datum.
CALL FUNCTION 'HR_GBSSP_GET_WEEK_DATES'
EXPORTING
p_pdate = vdate
IMPORTING
* P_SUNDAY =
P_SATURDAY = vsatday
* P_DAY_IN_WEEK =
* P_WEEK_NO =
write : / vsatday.
regards
shiba dutta -
We have been loyal Verizon customers for about six years and need someone to investigate the amount of stress we have been put through by them in the last two or three weeks!HELP!Who do we go to?
What problem are you having with your service or device? (Removed)
Message edited as required by the Verizon Wireless Terms of Service
Message was edited by: Admin Moderator -
How to get the date for the last day of a week?
Is there a easy way to get the date for the last day of week?
eg a week starts on monday and end on sunday
January 11, 2005 is the start date for the week
January 17, 2005 is the end date for the week
or
say
February 26, 2003 is the start date for the week
March 5, 2003 is the end date for the week
I just need a simple way of figuring that out....
I figured out how to get the start date for the week but just can't get the latter..
formatting of the date is not of a concern.. that I know how to do
thanks in advanceHow about something like the following?
Calendar someDay = new GregorianCalendar(2005,0,11);//2005 Jan, 11
//Note above that January is 0, not 1, as counting starts from 0.
someDay.add(Calendar.DAY_OF_MONTH,6); //add 6 days
java.util.Date lastDayOfWeek = someDay.getTime();
//If someDay was the start of a week, lastDayOfWeek should now be
//the last day of that week.
System.out.println(lastDayOfWeek.toString() ); -
ios 5 Update New Features says that calendar now has a week view but after updating my iPhone 4 last weekend, I don't see any week view for iCal--just List, Day and Month as in the past. Is the weekly view available for iCal and if so, how do I access it?
Rotate your phone to landscape.
-
*** PLEASE NOTE*** - This is a query about an INTERNAL HDD not an external one. Thanks.
My Mac is a late 2009 model and the current hard drive recently failed. So I bought a new one, exactly the same, albeit 750gb instead of 500gb. The HDD is a Seagate Momentus 7200. Before the my current drive failed I made a time machine back up to an external USB HDD. I've inserted the HDD into the bottom of my Mac, plugged in the USB and started my machine pressing the 'Option' ([ALT]) key. I go into Disk Utility to try and format the new HDD by creating a new partition but I keep getting the messages,
"Error: -69760: Unable to write to the last block of the device"
or
"POSIX: could not allocate memory"
This is actaully the third HDD I've tried. The first was another Seagate Momentus 7200 500gb, but this time it was a newer model (model number ended in 423AS instead of 420AS - the new one I am trying ends with 420AS, which is the same as the current HDD). I then tried a Western Digital drive but that one didn't even show up in DU. Forums and tech support are suggesting it's faults with the HDDs but surely not three in a row?
Could this be an issue with another part of my Mac?
Is there anything else I can do to format the HDD, have I missed a crucial step?Did you ever get a resolution to this issue?
I am having that exact error with a new 512GB SSD from Crucial, in a 15" MBP mid-2010.
I really wonder now if the stupid SATA cable could be bad - causing the initial SSD fail. I am replacing it with the EXACT same drive, and getting that "last block" error when i partition in the GUI or from command-line.
thanks! -
Weekly schedule line should pass to last working day of the week in SAg
HI,
In a scheduling agreement when we have weekly or monthly schedules the system displays the date in the screen as 12/2010 or 13/2010 for say a weekly schedule.
However when the data is stored in the table the delivery date is always the first working day of the week. In this case when the week is 13/2010 the data is stored in the table as 22/03/2010.
Is there any way to change this to the last working day of the week?
We have some config related to define delivery intervals in IMG--> Sales and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Define Delivery Intervals. Will this help solve my issue? If it solves what is the procedure behind this?
Request you to provide your inputs.
Thank You, LakshmikanthHi,
Seems the delivery split concept is different from this requirement. Can Delivery intervals concept help us or not? IMG--> Slaes and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Control EDI Inbound Processing --> Define Delivery Intervals.
What is the procedure and assignment details for delivery intervals concept?
Thanks, Lakshmikanth
Maybe you are looking for
-
Just upgraded to iTunes 10.5.3 and cannot sync my iPhone 4s
All the other features of iTunes seems to work but all I get is the spinning beach ball when I try to sync my iPhone 4s . I'm running an iMac with the latest version of Lion. Anyone else having this problem or have a solution?
-
Dear All I have an XML file which I need to convert to a flat file and send as a mail attachment. The problem is that I dont want the payload of the file to be a part of the message text. Please suggest a solution Sourabh
-
Add a new component in Production order while not being in BOM
Hi all, I would like to know how to forbid the addition of a new component in a Production order that doesn't exist in the BOM. Currently when we create a Production Order, the components of its materials are read from the BOM. If we add a component
-
Monitoring Managed servers if Admin server is unavailable in Weblogic
Is it possible to find managed servers state ( example: RUNNING, FAILED, UNKNOWN etc..) if Admin server is unavailable( may be down) in Weblogic. We can search the state of managed server using keywords in managed server logs. But we don't want to do
-
I am currently running Firefox 15.0 I need to install and run version 13.0. Where can I download this?