How to judge working day.
Hi friends,
How to check the date which is the working date or not? Is there FM or codes for that?Thank you.
Best regards,Gavin
Hi,
Use this Function Module: DATE_COMPUTE_DAY
This takes I/P as the date and returns o/p as the Day count in the week.
Also check this FM: DATE_TO_DAY which gives the Day of the Entered.
Hope this Helps.
Reward if useful.
Regards
Vinayak
Similar Messages
-
How to deduct working days according to factory calender
Hi All,
I have one date and and I want to calculate the exact date before 'N' working days according to the factory calender.
e.g. Suppose the date is 13.07.2010 and N = 10 then generally we would get date as 03.07.2010.
But my requirement is that, it should give me the exact date 10 working days back according to the
factory calender. i.e. 28.06.2010 .
Could anybody suggest me a FM or an alternate soln for the same.
Thanks in anticipation.
UbhakaHi Ubhaka,
have a look at FM
BUSINESS_DATE_CREATE
you enter the following:
- a date (DATUM_EIN), from which you start
- the number of business days (GESCHAEFTSTAGE)
- the calendar ID (KALENDER)
- the direction (RICHTUNG): "-" for subtracting ode "+" for adding the business day based on the calendar
I suggest you make a copy of the FM and adapt it for your needs.
Regards,
Peter -
Use of "Rounding work days" in shipping point?
Hi, Could someone please explain to me how the "rounding work days" in shipping point is used for ATP purpose (within R/3 itself)?
Let's assume that the Delivery date is coming up as 18th Nov, 2011 08:00:00 hrs in schedule line, and the rounding work days is maintained as 0.2 days. Assume that the route has 1 day for transport, and this route time is relevant as per shipping point configuration.
What would be the value of GI date/time that I should expect for the schedule line?
Do I simply convert 0.2 days to hrs in 00:00:00 format, and subtract this time for delivery date to arrive at GI date, or could any other master data come into picture for GI date calculation?
I am currently seeing GI on 17th Nov, 2011 00:00:00 hrs, and not able to understand this value of GI time.
PS: Calendar for route is a custom calendar with working time from 00:00 to 24:00 hrs on all weekdays (monday to friday), and no working hrs are maintained at the shipping point.Hi,
If the current date is 03.11.2011.
you have maintained rounding work days 2 days. days specifyied in route is 1day.
then if you raise an order for current date.system will propose schedule lines after 3 days it means 07.11.2011.
Thank you, -
Hi,
anyone kwown how to manage work days in notification timeout ?
There is a way to avoid that notification timeout was calculated in days like saturday or sunday and holidays ?
Thank you in advice.
CosimoPatch 116568-99 is available:Hmm, I thought that's the last patch I put on - I'm pretty sure that's what I ran....
There are some autoreply fixes in there.
Also, "autoreply" is different from "vacation reply".
Autoreply will reply each time a message comes in.
. "vacation reply" will pay attention to the timeout
you set. Perhaps the user is simply setting the
wrong option?So, are you saying that when someone checks the "enable automatic vacation reply" in the webclient (messenger express not UWC), that does not write the maildeliveryoption=autoreply? I thought that attribute had to be there for the vacation message to work? -
How to learn how many the working days in a month?
The best way to do this is to maintain this in your time/date dimension table if you have one. It would be advisable to create one anyway and us it in your universe.
Below I created a sample MS SQL script to determine at the monthly grain how many week days there are in each month to help you out.
DECLARE @sdte datetime,
@edte datetime
SET @sdte = '2008-01-01'
SET @edte = '2008-12-31'
SELECT @sdte CAL_DATE,
datepart(year,@sdte) CAL_YEAR,
datename(month,@sdte) CAL_MONTH,
datename(dw,@sdte) CAL_DAY_NAME
INTO #T1
WHILE @sdte < @edte
BEGIN
SET @sdte = dateadd(day,1,@sdte)
INSERT INTO #T1 (CAL_DATE,CAL_YEAR,CAL_MONTH,CAL_DAY_NAME)
VALUES (@sdte,datepart(year,@sdte),datename(month,@sdte),datename(dw,@sdte))
END
SELECT CAL_YEAR,
CAL_MONTH,
SUM(CASE WHEN CAL_DAY_NAME = 'Saturday' OR CAL_DAY_NAME = 'Sunday' THEN 0 ELSE 1 END) NUM_OF_WEEK_DAYS
FROM #T1
GROUP BY
CAL_YEAR,
CAL_MONTH
DROP TABLE #T1
Edited by: Jacques du Preez on Aug 7, 2008 1:51 PM -
How to set the payment Due date calculation as per working days.
how to make changes in the vendor Payment terms so that while calculating the Payment due date as per Payment terms, system calculates it based on Working Days & not the Calender days ?
Help is much appriciated.
Thank you,
AmitHi,
This is the standard settings by SAP, normally we couldn't change it to working day.
Good luck
Tao -
I installed lion on my MB '08. Since then, the machine stocks form time to time. sometimes three or four times a day. Due Lion is an app as well I would like to uninstall it to try how the machine works. How can I uninstall Lion from my MacBook '08 ?
Restore the backup you took before the upgrade.
Allan -
How can i get a number of working days in a month PL/SQL
How can i get a number of working days in a month(excluding Saturday and Sunday) in a query in PL/SQL ?
Please do a search before posting
sql>
select count(*)
from(
select trunc(sysdate,'month')+rownum-1 dy
from all_objects
where rownum <= last_day(sysdate) - trunc(sysdate,'month')+1)
where to_char(dy,'fmday') not in ('sunday','saturday');
COUNT(*)
23
Message was edited by:
jeneesh
Please try yourself to change the query to one that doesn't use a subquery.. -
Dear Experts
We are doing Negative Time Management where we record only deviations
But customer has third party time machine which required to be integrated with SAP system
As I know, from the time recording terminal, i should map SAP number to all employees and then get a text mail the details with employee attendance for the respective dates and times. Then, have to create a ABAP report which will read the text file and update clock in/out with date into SAP system. After this we can check employee attendance infotype 2011.
But, Before going for above, time administrator wants to set IT0007 as 7- time evaluation without payroll integration, then maintain data in IT0050 & IT2011
Then run Time Evaluation then the out put will be according to the data maintained in IT 2011. Now the requirement is, time administrator wants to change eg. the day is suppose to be working day for any employee but based on adjustments that day became weekly off, another employee suppose to work but again due to some adjustments that day became weekly off, so how this time administrator can change this and where. This is like, time administrator need to see the total work schedule for an employee and needs to change whichever data and whenever or after time evaluation, he could see the total work schedule as desired.
And also, time administrator wants to change schedule manually for any of the employee during that particular period and view the same.
Please note that, ESS/MSS haven't implemented yet.
Appreciated all your prompt responses to this.
Thanks
SSNo
I have created a workschedule on wednesday In a year there can be weekly off 5 or 6 times on Saturday or Sunday So in that case there is no need to create three workschedules we can create one workschedule and change the days Again we need to regenerate the workschedules inorder to take 'off's" in to account. that is what iam thinkinng at the moment. Yes there is no need to do anything in IT 007 If there is any change in Shift in that Case User has to change workschedule in IT 007.
If there is weekly off he can select the dates on which day it is falling and generate the workschedule.
for changing shifts he should change work schedule in IT 007
Is this is right approach please throw some light on this
My client requirement was Sometimes there can be weekly off in the company It can be either wednesday off or saturday off or
unday off or it can be any day.
Edited by: My SAP Cronies on Feb 2, 2012 5:17 AM
Edited by: My SAP Cronies on Feb 2, 2012 5:22 AM -
How to create a working day/holiday attribute in Time Dimension with OWB ?
Hello everybody,
I am trying with no success to create a Time Dimension (with the wizard it would be easier...) with a working day or holiday attribute (0 or 1) to be able to calculate measures only on working time !!! I am totally sure it's possible, obviously, but I found nothing on forums... Could you help me ??
I use OWB 11g, I need all fiscal year/quarter/month/week and all calendar year/quarter/month/week attributes so without any wizard it would be quite impossible... thank you for your help !
NB: of course I know how to define if a day is a working one or not, but I currently can't add any columns in Time dim created with wizard...
Francois
Edited by: [email protected] on Jun 15, 2009 8:24 AMHi,
First of all, thanks everyone for your help.
I did several tests this morning.
First of all, i've tried with time_from = 000000 and time_to = 235959 (23:59:59 CET) and the activity has been created with Time From = 04:00:00 and Time To = 03:59:59
Strange no ??
I've also tried with 230000 for time from and time to but the activity has been created with Time From = 03:00:00 and Time to = 03:00:00
I cannot understand the logic behind....
Thanks,
Johnny Baillargeaux -
PCR - RPTIME00 - TM00 - how to find of exceeding of the working day
Hello,
I'm new in RPTIME00 I need to write a PCR - schema ZM00 (TM00) that find of exceeding of the working day and generate wage type 1506 for cluster B2?
For example employee works:
MO: DWS=06:00-14:00
TU: DWS=06:00-14:00 but TI2011=04:00-14:00
The point is that I must generate wage type only for time par 04:00-06:00 without generate of WT for overtime (M)
I though that I need generate WT from PCR with ADDZLS1506 for example... but in this case I need to find exceeding of the working day
Any ideas?
I tried with this:
APD1 * **** HRS=D0061
APD1 * **** HRS?S
APD1 * **** > GCY APD2
APD2 * **** OUTWPTIMER
APD2 * **** 1 HRS=SNTB
APD2 * **** 1 HRS?PBEG
APD2 * **** 1 > HRS=PNUM
APD2 * **** 1 > HRS?CTEPOL
APD2 * **** 1 > > HRS=PNUM
APD2 * **** 1 > > HRS?0
APD2 * **** 1 > > > ADDZLS1506
APD2 * **** 1 > > > COLOP*
Thanks a lof for help.
BR,
M
Edited by: mn-sdf on Jul 6, 2011 10:59 AM
Edited by: mn-sdf on Jul 6, 2011 11:20 AMThanks for answer but I don't need generate overtime beyond the planned working hours in the end of month. I have WT in PY for additional pay for "exceeding of the working day" (this is not overtime but ... salary supplement? My english is not good enough, sorry).
I don't need approval for overtime (via 2007 and GOT...) which give me "M" pair type for this case (WT1506). I don't need them. Opposite this I need to find:
previous day was free or not?
when was a free day, I don't have to generate 1506
when is a working day, I have to generate 1506
My PCR generate WT1506 correctly but on every day where I have start hour (2011) before start working time from DWS.
Maybe the point is how to find the previous day was free or not?
Do you know how to do it?
Thanks a lot!
BR,
MN
Edited by: mn-sdf on Jul 6, 2011 12:41 PM -
How is lead time in working days calculated in 2LIS_05_QVUDN
I was wondering if someone knows how lead time is being caclulated for 2LIS_05_QVUDN. I've found the tables associated and the function module but I can't find the actual calculation
ThanksHello
The lead time in working days works like this
If you have 1 inspection lot for a material -the time from Lot creation to Usage decision given is the lead time.
Lot created Usage Decision made Lead Time
for eg Material X , inspection lot no 14/05/2008 10: 00 14/05/2008 14: 00 4 Hours
it converts the hours in to days . =4/24= 0.16 days
For total lead time individual lot's lead time sum is calculated
Hope this clarifies your doubt
Regards
gajesh -
How working days is treated and counted as leave day.
Q. What is working Days & How working days is treated and counted as leave day.
Case 1-suppose Absence is registered on 15.11.2010- 18.112010.but on 17.11.2010 is a public holiday.in as IT2001 it is showing as Absence hrs =24 days,Abs days = 3 days and Cal days = 4 days .Quota used= 4.
why it is not showing 32 hrs .
ThanksThe counting rule for absences takes care if the public holiday or non working days as to be counted when absence is entered or not.
If you tick on (not a public holiday) then only days which are not public holidays wll be counted in absence counting. If you dont check saturday sunday in the rule then sat sunday will be counted towards leave...Other options are also there for eg. Holiday classes. You can make appropriate settings and include or exclude the working/non working days from absence counting. -
How to schdule my job on 16th working day of the every month?
hi frnz
I have a big task in my end, i have created one package ,i want to execute that every month of 16th working day i want to run my job with schdule,how should i schdule my job using
SQL AGENT IN SQL SERVER
Can some one please help me out .......
ThanksTo add to Visakh's response, another method is to add the T-SQL script as the first job step to identify non-run days and raise an error when the job is not to be run. Set this first job step on failure action to "Quit the job reporting success".
Personally, I would use a full calendar table with an indicator of whether a given date is a working day or not. I thing you will find such a table useful beyond this scheduling requirement. For example:
CREATE TABLE dbo.Calendar(
CalendarDate date NOT NULL
CONSTRAINT PK_Calendar PRIMARY KEY CLUSTERED
,CalendarYear int NOT NULL
,CalendarMonth int NOT NULL
,CalendarDay int NOT NULL
,BusinessDay bit NOT NULL
See
http://weblogs.sqlteam.com/dang/archive/2010/07/19/calendar-table-and-datetime-functions.aspx for an example of a more extensive calendar table along with a script to load US holidays. The code below shows one method to use it for your scheduling
requirement:
DECLARE @RunDay bit = 0;
WITH this_month_business_days AS (
SELECT
CalendarDate
,ROW_NUMBER() OVER(ORDER BY CalendarDate) AS BusinessDayNumber
FROM dbo.Calendar AS c
WHERE
CalendarYear = DATEPART(year, GETDATE())
AND CalendarMonth = DATEPART(month, GETDATE())
AND BusinessDay = 1)
SELECT @RunDay = 1
FROM this_month_business_days
WHERE
BusinessDayNumber = 16
AND CalendarDate = CAST(GETDATE() AS date);
IF @RunDay = 0
BEGIN
RAISERROR ('Today is not a run day', 16, 0)
END;
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
How to Calculate the Actuall work days ....
Hi Friends,
how to calculate the Actuall Working days Based on the Joining date for 5day work and 6 days work?
is there any FM to calculate this?
Thanks in Advance,
sudha.Hi Sudha,
In your company , If they are maintaining Time Events then you can get the information of Employee's Presense or Absense from infotype 2011 (Time Events) and Absense from 2001 (Absense)..
Also Consider Factory Calender for it.. and check out working days..
Table TEVEN
Try below FM as well..
HR_DV_TIMEEVENTS_GET
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
Maybe you are looking for
-
How do I deactivate fonts in Adobe applications, CS6, Mac OS 10.6.8?
After years using font management applications (Suitcase, FontExplorer) a couple of years ago suspicion of corrupt fonts led me to strip down to using just FontBook as a minimalist font management tool. It is very cumbersome though that even though i
-
Hello I am trying to create a one way hash password encryption...here is what I have developed so far..... Login class (contains GUI) import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.awt.image.*; import
-
BO Explorer - Possibility of importing a Crystal Reports - report ?
Hi, im trying to find out if it's possible to import a report made in Crystal Reports 2008 SP2 into Polestar / BO Explorer. As i could see in the newest Version of the Crystal Reports Viewer there is a option to export the report into the "Bo Explore
-
Not able to do Net8 Easy config Please Help!!!
I have installed oracle 8i and oracle designer 6i on my pc with win98. when i try to use net8 easy config, it asks for Host Name, i tried to give the name of the machine and database name, i receive message ora-12224 error message. I would like to kn
-
What is VB6's EventParameters in C#
Hi, What is VB6's EventParameters equivalent class/method in .NET framework? and how to get the event's parameters in C#. Thanks,