Day is working day
Hi,
Is there any FM existing to find today is working day or holiday?
kaki
hi kaki,
just check this ..i got it from SAP help.
DATA: DATE1 LIKE SCAL-DATE,
DATE2 LIKE SCAL-DATE,
CORRECTION LIKE SCAL-INDICATOR,
CALENDAR LIKE SCAL-FCALID,
FACTORYDATE LIKE SCAL-FACDATE,
WORKDAY LIKE SCAL-INDICATOR.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING DATE = DATE1
CORRECT_OPTION = CORRECTION
FACTORY_CALENDAR_ID = CALENDAR
IMPORTING DATE = DATE2
FACTORYDATE = FACTORYDATE
WORKINGDAY_INDICATOR = WORKDAY
EXCEPTIONS CORRECT_OPTION_INVALID = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
FACTORY_CALENDAR_NOT_FOUND = 5.
check the workday and analyze...
the documentation says..
<b>Flag whether date is a workday
Possible values are:
' ' the specified date is a working day.
'+' the specified date is not a working day,
the following working day is returned.
'-' the specified date is not a working day,
the previous working day is returned.</b>
Similar Messages
-
Carrying scheduling cosidering all 365 days are working days
when I am carryying out scheduling for a process order in which resource is assigned with 365 days as working days calender, it is displaying saturday and sunday as non working days and no operations being planned on those days. Even plant is assigned with factory calender 0f 365 working days. Can you please anybody let me know what may be the problem.
Dear,
Factory calendar is maintained in SCAL transaction and assgined in the capcity tab in resource. or Whether you have maintained the shift sequence in resource?. ie for each dates have you maintained the shift pattern with all days are working days.
Please refer thess threads for details,
Re: change the Factory calendar in work center
Re: Factory calendar in work center
Regards,
R.Brahmankar -
Editing Working Days/Non Working Days in the base Project Calendar PWA
Hello Experts,
I am attempting to edit working days/non working days in the base project calendar PWA 13. I receive an error message when I attempt to open the base project schedule.
I click the "edit" button under "Enterprise Calendars" page. The error message states:
"This Project Web App feature requires at least Microsoft Internet Explorer 8.0" (using Chrome)
Attempting to Opening PWA in I.E. I receive a different error message stating that I need Project Professional installed on my computer and it cannot find the current project.
I have Admin rights, I have project pro, and Im able to access any project or function using PWA and Project Pro. Can you tell me what I am missing (detailed steps--kinda new to PWA)
Thanks so much.If you allow me to jump in, I'd advice you to first open MS Project Pro and then try again.
Also check that your MS Project Pro URL account do not finish with /default.aspx.
Finally ensure that your PWA URL is in the trusted site and eventually add it to the compatibility sites.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Where to go to see Lead Time settings? Calendar days vs working days
Hi everybody,
II'm trying to find the screen where details regarding Lead Time settings are shown. I'm looking specifically for information on the type of days we're using to identify Processing LT's. I'm not certain whether we're using calendar days or working days.
I'm sure there is a simple way of finding this information out, but just don't know where to look/change the setting.
Thanks,
BGThis is NOT a setting that you can view.
Oracle always behaves like this.
Best way to verify this is to create an item with PreLt=5, Processing LT=7 and Post-processing lt=5.
Then create a sales order with a due date of say 9/21. Make sure 9/1 to 9/21 is regular 5 days week.
Assuming no holidays, it will mean that you need material on the dock on 9/15 (5 days of PPLT = 7 calendar days.)
So when MRP/ASCP creates a Req/PO, the promised date will be 9/15.
Also, the Days from today will point to 9/1 - which includes 7 days of processing + 7 days of preprocessing (5 working days)
Hope this answers your quesiton. -
Calculating the planned delivery time in calendar days or working days
Hi,
It seems that there is a way to calculate the planned delivery time in calendar days instead of working days.
When I use the "Planned delivery time calculation" (WPDTC), in Evaluation Options, I got the message :
"Note that follow-on applications are currently interpreting the planned delivery time as calendar days.
If they should be interpreting the planned delivery time as working days, you need to modify these applications. If the planned delivery time should be calculated in working days, there needs to be a factory calendar in Customizing with the calendar ID Country of vendor."
When MRP create a PR -with MDBT, MD03 or MD01- I want my Planned delivery time to be in working days.
I can't manage to make that "If the planned delivery time should be calculated in working days, there needs to be a factory calendar in Customizing with the calendar ID Country of vendor."
I would appreciate your help.
Thanks
PYRHi,
I understand that it makes sense that vendors calendar has to be different (compared to my plant).
But, I still don't understand why in the SAP help, they say "If the planned delivery time should be calculated in working days, there needs to be a factory calendar in Customizing with the calendar ID Country of vendor."
It seems that planned delivery time may follow a calendar.
Thanks,
PYR -
Hi all,
I am searching for a FM which will say 3rd work day of a factory calendar or 4th work day of a factory calendar etc. I could see there are few FMs to say first work day - last work day but not the Nth work day. If we input some date and factory calendar, we should get which work day it is. For example if we give 09/02/2010 and factory calendar name it should return as 2nd workday etc. Any help will be appreciated..
Thanks in advance.
Moderator message: date calculation questions = FAQ, please search before posting.
locked by: Thomas Zloch on Sep 15, 2010 4:39 PMhi,
Please check with this fm DATE_CONVERT_TO_FACTORYDATE.
Keerthi -
I have a date, let's say 01.01.2007, and I want to postpone the date by 12 working days.
"working days" in my case shall mean only monday to friday, not saturday and sunday, and I do not case about public holidays.
Is there are function module or something like this to do this calculation?check this below link
Factory Calendar
u can also have a look into these links
Getting a date based on factory calendar
Function module to get the no.of working days between START and END dat
I want to find the No.of working days between the two dates
i think it is useful for u
SANTOSH.. -
Query for geetiing no.of working days
Hi All,
How can we write a query for geetiing no.of working days in Oracle Apps.
Basically we need to mention no.of working days in the Work-Flow Form but not the no.of days.
So how can we write a query for getting no.of working days.and Where can we get the tables?
Is there any need of calendar in WIP(Work in Process) Module?
Can any one please help me out.
Thanks in Advance,
DhanaHi,
Please see if these documents help.
Note: 43276.1 - Calculating the Number of Working Days
Note: 1018913.102 - How to Find Number of Days - Valid Working Days - Between Two Dates
Regards,
Hussein -
Hi i have a calendar table
Has Year , Month, Week, Date and a flag for a working day or not..
Is there anyway i can use this working day flag in my Time Dimension Hierarchy so that under Date i can have another drill Working Days ...
(Non working day is where flag = 'Y')
Year - Month - Week - Day - Working Day
or Even
Year - Month - Week - Working Day
Cheers
BibiYear - Month - Week - Working Day
You could acheive this by putting a filter on your logical table source to exclude non-working days. Or maybe just remove the non working days from the source table
The trouble with trying to put an extra level in beneath Day is that your primary key, I.e. your lowest level for the date dimension in this case is Day. Working Days won't roll up into Days as they are at the same level. -
Sales Order confirmed date in work days
Is there a way to change configuration so a Saler Order will confirm based on the Factory Calendar??
I created a new Order Type (VOV8) but see no option to change from calendar days to work days.
Bascially, I need the sales order confirmation date to be based on work days and not calendar days.
Is this possible???Hi,
Sales Order is created for particular Sales Area i.e. SO + DC + Div. And Sales Org. is the highest org unit in SD.
At Sales Organizational level you maintain Sales Org calendar and not factory calendar.
Factory Calendar is basically used at plant level which comes under MM module.
So, by SAP std practice i dont think it will be possible..............
Or you can do one thing that is,........maintain the same sales org calendar as factory calendar..........so i think it will help you....
But can you elaborate you point so that we can understand properly.............
regards,
Sagar -
Hey huys,
I have a problem with the count of working days in the report I am developing.
I make the count of days with TIMESTAMPDIFF but this return all days between Start Date and end date and I Want only working days. I have a column that says if the day is a work day or not.
I don´t have any idea how I make the comparison day by day.
Can any suggest how I do it.
CumpzWe can try to create a function in DB which returns the Number of Working Days on passing the Start Date and End Date of Campaign Calendar
By you saying there is a column "Work Day" with flag "Yes" or "NO", I assume there is a table called Campaign Calendar which may provide this info like if each and every day is working day or not.
For ex:
Work_Day Flag
02-SEP-13 00:00:00 YES
03-SEP-13 00:00:00 YES
04-SEP-13 00:00:00 YES
05-SEP-13 00:00:00 YES
06-SEP-13 00:00:00 YES
07-SEP-13 00:00:00 NO
08-SEP-13 00:00:00 NO
If the above is the case, then try to create a function as below which return number of working days between two dates
CREATE
FUNCTION DATE_DIFF(ST DATE, ED DATE) RETURN NUMBER
IS NO_OF_WDAYS NUMBER;
DT1 DATE := ST; ---VARIABLE TO HOLD START DATE
CHR1 VARCHAR2(10); ----VARIABLE TO HOLD FLAG FOR EACH DATE
HOLIDAY NUMBER := 0; ----COUNTER WHICH GIVES US NUMBER OF HOLIDAYS BETWEEN TWO DATES INCLUDING SATURDAYS AND SUNDAYS
BEGIN
NO_OF_WDAYS := TRUNC(ED - ST);
LOOP
SELECT Work_Day /* THE COLUMN WHICH HOLDS THE FLAG*/
INTO CHR1
FROM CAMPAIGN_CALENDAR /* THE TABLE WHICH HAS THE INFO */
WHERE DATE_COLUMN = DT1;
IF(CHR1 = 'NO') THEN
HOLIDAY := HOLIDAY + 1;
END IF;
DT1 := DT1 + 1;
EXIT WHEN DT1 > ED;
END LOOP;
NO_OF_WDAYS := NO_OF_WDAYS - HOLIDAY;
RETURN NO_OF_WDAYS;
END DATE_DIFF;
Once the above function is written, use Evaluate function in the RPD and pass both the columns as parameters.
EVALUATE('DATE_DIFF(%1,%2)' ,Campaign Start Date,Campaign End Date)
Whenever the column gets pulled in the report, the above db function will be fired hence resulting in Number of Working days.
Hope its helpful
Srikanth -
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. -
Working hrs and days in work schedule rule forIT 0007
Hi All,
One clarification on IT 0007
We have a shift of 6x4 (6 days working and 4 days off)
So how we maintain Working hrs and days in work schedule rule
Weekly workdays?
Monthly working hrs?
Annual working hours?
Appreciate immediate response
Thanks
SDHi Sik and all,
Ya that i know , but my doubt is if 6 x 4 shift what will be the hrs maintained in t508 A table
for 5x 2 (5 days working and 2 days Off) working days i maintained like below
Table:V_T508A
Daily working hours 8.00 Monthly working hrs 176.00
Weekly working hours 40.00 Annual working hours 2088.00
Weekly workdays 5.00 Addnl monthly hours
Kindly suggest
Thanks
SD -
We've recently adopted BOBJ/Webi at my company and I find the software to be rather easy to use in some instances and mind-wreckingly hard in others. One roadblock myself and other users are bumping into is calculating work days. A definition of a work day in this instance would be Monday through Friday. The monkey wrench is that we would also like to subtract out holidays, such as July 4th and Thanksgiving. Then end product would be calculating out what work day the current date is and how many days it is out of so that a simple straight-line extrapolation can be made (Metric/Current Work Day)*Total Work Days. Also, what we invoice/ship is not accounted for until the following day... for example, today (2.22.10) would be the 15th workday in February out of 20 total work days.
Appreciate any and all help/assistance/counsel I can get on this.
RyanHi Ryan,
If I have understood your question then I think following solution may help you.
Do you have your Universe created on the top of BW query or is it some other Database?
If it is some other database then create couple of Filter at Universe level: Such as Holidays so that you can use this one to subtract holidays:
For Example:
ucase(Calendar_year_lookup.Holiday_Flag)
ucase(Calendar_year_lookup.Holiday_Flag) = 'Y'
Then you create another Dimension for Work days that would be between Monday to Friday.
Once they are created in Universe you export Universe.
Now create a formula where you would use month minus custom dimension workdays and minus holidays to get actual work days which would be from Monday to Friday and son on.
Basically we can achieve this by using filters and formulas.
Wish you good luck.
Bashir Awan -
Holiday as Working day - Marked as leave is not deducting from Quota
Hi Experts,
Please help me with below mentioned scenario.
We have one holiday calendar for two personnel areas however holidays are different in both personnel areas, and as it is middle of year so I can't create a new holiday calendar for other personnel area so we maintain special day as working day in factory calendar to change holiday as working day for one personnel area.
Holiday Calendar :- HA (haryana) , Personnel Area (A) Personnel Area (B)
Holidays :- 25th Till 28th Oct Diwalii, 25th till 28 Holiday 26 & 27 Holiday only (25 & 28 working in special day rule)
Issue :- personnel area (B) Now if Employee is getting leave for 25th (which is holiday in calendar and maintained as working day in special day rule) it is not deducting leave from quotas.
Issue :- Half Employee on 25th are marked as Holiday (HH) in system however half have Absent (AA) in report.
**(Should I try to make a deduction rule and counting rule for 25th & 28th as it is holiday & working togather... if yes thn what needs to be selected in counting rule)**
Please provide inputs in this regards as it is urgent.
Thanks you!!
AnshulHi Swapnil,
Thanks man, I understood now, Yes you are right as but it is not working when I am trying to solve this issue after maintaining IT 2003. Now I have to go with second solution however I made Counting rule and deduction rule but facing issue assigning counting rule to Absence Type so the question is Do i need to make new absence type then counting rule and deduction rule or I can just make a counting rule and assign it to the existing Absence type?????
Please help me through the process as I am little confused, just explain a bit like.. I need to make counting rule and assign it from <so & so> place.
Thank you so much for your precious time,
Anshul Upadhyay
Maybe you are looking for
-
I recently purchased a mini dvi to s-video/RCA cable and hooked up my macbook to my sharp lcd tv using a RCA video cable. At first I had nothing but static but after messing around with the display settings i got the tv to display the right half of m
-
Microsoft Outlook 2011 for Mac sync Contacts and Calendar issues
OK, so I have a Macbook Pro with OS X Mountian Lion. I have Microsoft Outlook 2011 for Mac installed. Asked @BlackberryHelp on Twitter how to sync my Blackberry Torch with Outlook as it seems to default to using the builtin Apple Contacts and Calenda
-
Is this an Internet Bug/Virus/Malware that bypasses Safari's popup blocker?
I did a google search to find out if a specific product was manufactured in America with American parts (no luck) when I was immediately redirected to a site emulating some kind of Windows Virus scanning software. I clicked cancel to not allow anythi
-
Alternative for Google Sync for BlackBerry Storm 9500
Hi, recommend an alternative for Google Sync for BlackBerry Storm 9500 without BES / BIS, thank you!
-
Anyone able to share photos to AppleTV from Lion Server?
I cannot get my AppleTV to see my photos in iPhoto (using iTunes photo sharing capabilities) running on Lion Server. Called Apple - no solution. tried various reinstalls, configs, permission and access changes - no go.