Due date column to calculate 7 working days
Can you help me with formula to calculate the Due date default to 7 business days from created date. and due date should not be in weekend.
Refer to the following post, hope it helps
http://sharepoint.stackexchange.com/questions/88149/formula-to-show-differens-between-dates-without-weekends-and-holidays
Cheers,
Similar Messages
-
Calculate the working days having the start and end dates only
Hi,
Can BIP be able to calculate the working days having the start and end dates only? It is like the NETWORKDAYS function in Excel. (i.e. excluding weekends and holidays).
Thanks.Not out of the box.
But You could extend your BIP functions
Look at here:
http://blogs.oracle.com/xmlpublisher/2009/05/bip_by_extension.html
Based on that what you need is similar to the following Java code:
http://objectlabkit.sourceforge.net/
regards
Jorge A. -
Calculate x working days before date
Dear experts,
I am trying to find a date that is x working days before another.
Is that a function module about this?
Thank you in advance,
RoxaniHi Roxani,
You can use FM END_TIME_DETERMINE.
There:
- Insert in duration the number of days that you want to subtract with the minus sign (ex: -1 for previous working day)
- Also, insert your factory calendar that you want to be the source of your working days.
- And, of course, the desired starting date.
Hope that helps!
Kind regards,
Garcia -
Calculate next working day in future
Hi,
I hope somebody of you could help me here. I have the requirement to find the next working day 2 days after the visit. I need to join two tables which have an N to N relation.
This is the first source table tbl_cust with customer and visiting day:
customer_id Name visit_day company_id
1 Tobias 27.08.2011 100
2 Hans 30.08.2011 100
3 Lars 27.08.2011 200
4 Dave 29.08.2011 200The second table tbl_comp_days includes the days where the different companies work:
company_id company_day working_day (yes/no)
100 27.08.2011 no
100 28.08.2011 no
100 29.08.2011 yes
100 30.08.2011 yes
100 31.08.2011 yes
100 01.09.2011 yes
200 27.08.2011 yes
200 28.08.2011 yes
200 29.08.2011 no
200 30.08.2011 yes
200 31.08.2011 yes
200 01.09.2011 yesNow I want to calculate the second next work of the company joined with the customer visit_day
Means: tbl_cust.visit_day + 2
when tbl_comp_days.working_day is yes
if tbl_cust.visit_day is not a working day find the next possible working day + 2 working days
Output example:
customer_id Name visit_day visit_day_plus_2
1 Tobias 27.08.2011 31.08.2011
2 Hans 30.08.2011 01.09.2011
3 Lars 27.08.2011 30.08.2011
4 Dave 29.08.2011 01.09.2011Thanks for your help
TobiasHi, Tobias,
Here's one way:
WITH got_r_num AS
SELECT c.customer_id, c.name, c.visit_day, d.company_day AS visit_day_plus_2
, ROW_NUMBER () OVER ( PARTITION BY c.customer_id
ORDER BY d.company_day
) AS r_num
FROM tbl_cust c
JOIN tbl_comp_days d ON c.company_id = d.company_id
AND c.visit_day < d.company_day
AND c.visit_day >= d.company_day + 10 -- See note
WHERE d.working_day = 'yes'
SELECT customer_id, name, visit_day, visit_day_plus_2
FROM got_r_num
WHERE r_num = 2
;If you'd post CREATE TABLE and INSERT statements for the sample data, then I could test it.
The last join condition ( c.visit_day >= d.company_day + 10) isn't strictly necessary. Depending on the size of the company_day table, it may make execution faster, by limiting the join to days soon after visit_day, rather than any time after visit_day. As I wrote it, it assumes that there will always be at least 2 working days in any period of 10 consecutive days. (In my company, there are always at least 2 working days in a period of 5 consecutive days.) You cam change the "magic number" 10 to anything else, or you can omit that condition altogether.
Edited by: Frank Kulash on Aug 23, 2011 10:49 AM
Added note. -
Showing current date and the last 250 working days
Hi,
we need to report the current day and the last 250 working days. How can I implement this into the BEx by using a variable for the current day selection. How can the selection of the last 250 working days work?
Thanx
RenéHi Rene,
I think that you have to go for a customer exit variable with multiple selections. The exit will calculate all these work days and place them into output for restriction.
Best regards,
Eugene -
GL Opening Balance Due Date Column not Editable
Hi Experts,
I am about to enter GL Opening balances for a new company I just created,I have created posting periods from January 2007 to date, I want to post an opening balance to 31 december 2007, I am able to enter the posting date but the due date (01.01.08 by default) is not editable,I want to change the due date to be the same as posting date(31.12.07) how can I achieve this ?
Thanks in anticiption of your prompt response.
RegardsHi Chiko,
Opening balance is for new period. Therefore, the due date should be in new period. If you can change it to last year, that should be called ending balance for 2007.
Thanks,
Gordon -
AP Invoice Due Date column R12
Hi,
Could you tell me from which table i can get AP Invoice Due_Date in R12.
xla_trial_balances_gt
,fnd_application_vl
,xla_entity_types_vl
,gl_code_combinations_kfv
,gl_balances
Thanks
PravinYou can get the invoice due date in AP_PAYMENT_SCHEDULES_ALL table.
-
Date/Time difference based on working days
Hi Guru's,
I am having a problem getting the difference between two timestamps. A normal difference between 2 timestamps is possible however i would like to calculate the hour difference between 2 timestamps excluding public holidays, weekends and also after office hours. Is there a series of FM or a logic to extract this kind of info. Hope you guys can shed some light into the matter.
Thanks in advance.
AnandHi,
Use FM DATE_COMPUTE_DAY. DATE in MM/DD/YYYY format.
This FM returns the date in form of weekday number ie the date which you give is tuesday then it will return 2.
Give call log date and call handled date.
eg A call is logded on tuesday 3.00 pm and handled on Thursday 10.a.m.
First check the days difference from the return of this FM.
IF the call handled date return - call loged date return is positive means no sat sun , if negative means sat and sun.
then from call logged date time start counting the office hours till call handled time.
Office hours can be easily calculated using 24 hours clock.
For public holidays have to check whether between the twodates any public holiday if is there then subtract that much office hours.
Hope this helps.
Thanks,
Niketa -
E71 date problem with alarm on working days
I've a E71 (firmware : 110.07.127)
I use the alarm function to wake up me during the week. There is no alarm on week-end. I switch of my phone off every night and on the week end when on saturday i switch it on the date is the friday date. The time is the good one.
It's a problem because this morning my phone alarm does't work and when i turn my phone on the date was the last sadurday one
Solved!
Go to Solution.Yes, this is a known problem on S60 3rd Edition. Have a look at this thread.
FreeBird -
Hi,
We want the system to pick the date of next working day if the payment due date is falling on non working day during billing.
There is a functional module 'DATE_CONVERT_TO_FACTORYDATE' available. I donu2019t know where to use this FM so that it can work accordingly.
Can some body plz give some input here.
Thanks in advance.Invoice user exit: RV60AFZZ
USEREXIT_ACCOUNT_PREP_KOMKCV
USEREXIT_ACCOUNT_PREP_KOMPCV.
Also please check this link: https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
Regards
Sai
Edited by: Sai on Apr 9, 2010 10:41 AM -
Shift to working days not working
Hi,
I've set the interest due date payment into "shift to working days" mode but the system does not adjust the due dates. I've already assigned the calendar but it's still not performing the working days check. Has anyone encountered the same problem? How do I make it work?
Thanks,
ChaikaruDear Chaikaru,
The only other option I had in my mind. Good then, you might like to close the thread then.
Regards,
Jitesh -
Calculate number of days based on System Date and a date column!
Hi everyone,
I have a query to run a report where the results has a column named “Due Date” which holds a date value based on the project submission date.
Now, I need to add 4 columns named, “45 Days Expectant”, “30 Days Overdue”, “60 Days Overdue” and “90 Days Overdue”.
I need to do a calculation based on the “Due Date” and “System (I mean default computer date) Date” that if “System Date” is 45 days+ to “Due Date” than put “Yes” in “45 Days Expectant” row.
Also, if “Due Date” is less than or equal to system date by 30 days, put “Yes” in “30 Days Overdue” and same for the 60 and 90 days.
For example the output should be like:
Is this possible? Can someone help me how to write this Case Statement please? I have some answers how to do it in SSRS (Report Designer) but I want to get the results using T-SQL...Thanks heaps...cheers...
artistdedigitalHi Jay,
Thanks but those dates are just a reference. The actual table contains hundreds of date rows... so I guess this technique will not work (not sure though)...
I am quite cool with this bit:
select duedate,
case when days > -45 and days < 0 then 'YES' else '' end as '45 Days Expectant',
case when days between 30 and 60 then 'YES' else '' end as '30 Days overdue',
case when days between 60 and 90 then 'YES' else '' end as '60 Days overdue',
case when days > 90 then 'YES' else '' end as '90 Days overdue'
from cte--------------------------------------------------------------------------------------------------But can you please explain this bit a more? Thanks for being so prompt though : )declare @tab table (duedate datetime)
insert @tab select '04/25/2014'
insert @tab select '02/10/2014'
insert @tab select '01/10/2014'
insert @tab select '12/10/2013'
;with cte
as
select duedate,datediff(dd,duedate,getdate()) as days
from @tab
artistdedigital -
Calculate number of days based on Computer System Date and a Due Date row!
Hi everyone,
I have a query to run a report where the results has a column named “Due Date” which holds a date value based on the project submission date.
Now, I need to add 4 columns named, “45 Days Expectant”, “30 Days Overdue”, “60 Days Overdue” and “90 Days Overdue”.
I need to do a calculation based on the “Due Date” and “System (I mean default computer date) Date” that if “System Date” is 45 days+ to “Due Date” than put “Yes” in “45 Days Expectant” row.
Also, if “Due Date” is less than or equal to system date by 30 days, put “Yes” in “30 Days Overdue” and same for the 60 and 90 days.
For example the output should be like:
Is this possible? Can someone help me how to write this case please? Thanks heaps...cheers...
artistdedigitalHi artistdedigital,
Based on your description, you have an exist column “Due Date” in the report. Please refer to the following steps:
Add a table in the report body. Right click one column select “Insert Column” option to add other two columns of the table.
Drag the Due Date field in the second column.
Right click the text box in the first column of the second row, click the Expression option to add the expression Visakh posted above.
=IIF(DateDiff(DateInterval.Day,Now(),Fields!DueDate.value) > 45, "Yes",Nothing)
Use the same method to add other three expression in the table.
This screenshot is for your reference:
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
How do you add a due date 2 days from today in a workflow
So I'm creating a workflow that creates a task in a task list after I've added a new item to my clients list. So for example by adding a new client to the client list, a task will be set to 'Complete all contact details'. All I want to do is set a predetermined
due date, so instead of picking the current date or a specific date I want the workflow to work out the due date 2 days from today. How can I do this? Please note that I want to be able to change the predetermined due date in the same work flow, so for another
task I'd like it to be 4 days or a week from today.
Thanks in advance! :)Hi Sarah,
Thanks for posting your issue,
Go to your Tasks List and go into the List Settings. Click on the Due Dat column and tick the Calculated radio button. In the formula, put [Today]+2 and click OK. Go back to the list and select New and you'll see the Due Date is 2 days in the future.
If you need to do this within the workflow, you'd use an Add Time to Date action, setting it up to add 2 days to the Current Item created by field. Then, you'd use an Update item action to update the Due Date field to the date variable the Add Time to Date
action output.
Also, browse below mentioned URL for more details.
http://dlairman.wordpress.com/2010/10/14/limiting-sharepoint-workflow-due-dates-to-business-days/
http://www.documentmanagementworkflowinfo.com/sample-sharepoint-workflows/4-ways-set-date-value-sharepoint-designer-workflow.htm
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
F110 payment only possible 8 days after net due date, why?
Hi all,
When we try to post a payment in F110 by choosing a next p/date as for example 24 April all invoices with net due date up to that date will be included. In payment proposal only invoices with net due date up to 15 April is included, not invoices with net due date 16 April and after. There is something with a tolerance of 8 days but I don´t know where this configuration is set. Payment terms is 30 days net and there I can´t find anything about any tolerance days and i can´t find anything in FBZP either. Does anyone know where I can find these days set?
We want to create the payment per net due date. We don´t work with payment order.
BR LHi,
Check in transaction code FBZP, all company codes. Double click on the company code, you will the find the tolerance days for payable.
Thanks
Aravind
Maybe you are looking for
-
Error in Module pool/Screen while passing value as Decimal value
Hi Experts, We have designed one customized screen with CHAR as input option to pass on Tax Percentage. We have defined as CHAR in screen logic as well as program also. Where as while we enter value with decimals like 2.5 or 5.4 its throwing a error
-
Hey, I have created a form and everything works on it, but the send to email part. I know the mailto: function is working because when I hit it on my desktop it goes through the steps to send the email. However when I upload it online the button does
-
Has anybody experienced the monitor flickering?
My 27" screen on my iMac began to flicker about 2 weeks ago and now the left side of the screen goes dark intermittently. My iMac is a late 2011 model.
-
PO Release strategy on Overall Limit
HI All, Presently release strategy in R/3 Purchase order is triggered on Total net order value ( i.e. CEKKO - GNETW ) > 250. For limit PO it triggered on Exepected value but we want to trigger it on Overall Limit value. ( If Overall limit = 1000 and
-
Transferring itunes to a new computer
i am transferring itunes from my windows xp to my new windows 7. how do i do it? thank you all very much for your time