Payment term with fixed day but exclude weekends and holidays
Hello,
our customer has a requirement to have payment term that is like this:
Due date: fixed day 15th next month.
If due date falls in weekend or holiday due date will move to next business (working) day.
We have working payment term which is always the 15th on next month but it falls to weekends.
I was searching SDN found something but not working.
Could you please send me a step-by-step configuration how to exclude the weekends and holidays?
Thank you a lot.
Best regards,
Lubos
Dear Lubos,
unfortunately waht You need to have It is impossible into the SAP Standard System.
Please be aware that the vendor invoice has two relevant dates:
Baseline date > INVFO-ZFBDT
Due on > INVFO-NETDF
The Baseline date is managed by the "Term of payment", transaction obb8, frame
"Baseline date calculation" where You can put for example :
Fixed day 30
Additional months 3
This means that if You put as Document date 01.01.2009, the baseline date
will be 30.04.2009 (fixed day 30, additional months 3).
The "Due on" date will start ALWAYS from "the Baseline date"
(that in my example is 30.04.2009) and according to the below
"Term of payment" , the System will add
31 days, so the Due on date will be 31.05.2009.
Term Percentage No. of days / Fixed date Additional months
1. % 31
2. %
3.
You could think to use the FI substitution to reach Your goal.
Mauri
Similar Messages
-
Multiple payment term with different day limit
We have three payment terms with multiple day limit. for example: ED11 (day limit 10), ED11 (25 day limit) and ED11 (32 days).
User enter just ED11 but i dont understand how system understand which out of the three is the require payment term.
Users feel that due date calculated is wrong. In most case it calculate the due date exactly based on the days mentioned in the payment term. In all cases, days mentioned are 90 days.
In one case, due date if it is (just 90 days) 30/04 but user feels it should be 10th May in the following (obviously he is reffering to ED11 daylimit 10). In this case, SAP calculate 90 days. Is it because of too many payment terms which same name.
Best,
BalaHi,
Please go and check the following path.If teh user wants no. of days as 10, then it should be maintained as 10 in the no. of days field in Payment terms. I think in your case it may be maintained as 90.
IMG->Finacial Accounting->General Ledger Accounting->Accounts Receivable and accounts Payable->Business Transactions->Outgoing Invoices/Credit memos->Maintain Terms of Payment->Check No. of days in Payment terms.
Assign points if u consider this to be useful.
Thanks,
Prithwiraj -
Working day formula that excludes weekends and holidays in WEBI
Hi Guys,
Can we calculate a working day formula that excludes weekends and holidays in WEBI OR in Universe?
The universe I am working on is using stored procedures, so there are no joins or modelling done. Although there is a workday stored proc that I can bring in the universe.
I am just thinking if there is no modelling or joins done in the universe how will this help me in webi?
Your suggestions will be very helpful.
Thanks,
JitanOne more suggestion I need from you -
I have a Work_Calendar_VW that has the following columns -
Calendar_Date - 5/1/2014
Calendar_Year - 2014
Calendar_Month - 5
Calendar_Day - 1
Work_Day - 1
Day_Type - WD (Work Day) For Weekends this will be displayed as WE
The columns have all dates for current year in SQL Server.
I am going to pull this into the universe and create 2 derived tables to calculate MTD Day counts.
Derived Table 1 - Calculate Yest Work Day... this will remove all the weekends and holidays and give me the last working day. This includes couple of case statments to check each day if it's a working day or weekend.
For Work Day the above code will be 1 and for weekend 0
Derived Table 2 - This will give me the count of working days in current month using the above view and Derived table 1 Below is the code -
SELECT COUNT(*)
FROM Work_Calendar_VW
WHERE [Work_Day] = 1 AND
(Calendar_Date BETWEEN CAST(CONVERT(VARCHAR(25),MONTH(LastWoringkday()),101) + '/01/'
+ CONVERT(VARCHAR(25),YEAR(LastWoringkday()),101) AS DATE)
AND LastWoringkday()).
I cannot do joins because this universe has been built using stored proc and would like to implement this in BO universe.
let me know if this is the right approach.
Thanks,
Jitan -
Time between dates excluding Weekends and Holidays
I am fairly new to Power Pivot and I am having trouble with this formula. I need my Cycle Time Days column to capture the days between CreatedDataTime and ClosedDateTime excluding Weekends and Holidays. I have a tab that has the holidays but
I can't get the formula correctly? Jill
CreatdDateTime ClosedDateTime Cycle Time Days
12/1/2014 12/10/2014first of all you need a separate time table which holds all possible dates for your model
there should be no gaps, it should contain full years and a column of datatype DateTime as unique key
once you have this in place add a calculated column to this table as
=IF(INT(FORMAT([Date], "w")) >= 6, "Weekend", "Workday")
then go back to your original table and add the following calculation for your [Cycle Time Days]-column:
=COUNTROWS(
FILTER(
'Dates',
Dates[Date] >= DateRanges[DateFrom]
&& Dates[Date] <= DateRanges[DateTo]
&& 'Dates'[IsWeekend] = "Workday"
Holidays are a bit more tricky but you can follow the same pattern but you need to get the holidays from somewhere
hth,
-gerhard
Gerhard Brueckl
blogging @ http://blog.gbrueckl.at
working @ http://www.pmOne.com -
DATEADD excluding weekends and holidays
select getdate(),dateadd(day,15,Getdate())
THis gets me today and 15 days from now. However I need 15 business days. I need to exclude weekends and holidays in here so that is looks like this.
where fulldate between getdate() and dateadd(day,15,Getdate())
I have a dim table for dates and have an isholiday = 0 or 1. I just can't figure out how to include this in the DATEADD expression.Hi,
try this link
http://www.sqlservercentral.com/Forums/Topic1247790-391-1.aspx
Hope will help you,
Questo post è fornito "così com'è". Non conferisce garanzie o diritti di alcun tipo. Ricorda di usare la funzione "segna come risposta" per i post che ti hanno aiutato a risolvere il problema e "deseleziona
come risposta" quando le risposte segnate non sono effettivamente utili. Questo è particolarmente utile per altri utenti che leggono il thread, alla ricerca di soluzioni a problemi similari. ENG: This posting is provided "AS IS"
with no warranties, and confers no rights. Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. Please Vote This As
Helpful if it helps to solve your issue. This can be beneficial to other community members reading the thread. -
Payment Term with fixed 10 days addition.
Hi,
I want to have a payment term KM00 which says "at sight".
But internally i want system to give a 15 days grace to customer. So for example:
If i post a entry today with Payment term KM00, it should give net due date 15 days after.
Plz suggest what needs to be done on Payment term configuration.
regardsOK leave the baseline date.
Against the payment terms "No of days " field enter 10 days
Therefore the due date will be 10 days after the baseline date, which you need to define to be either the entry date, posting date or document date.
Hope this helps
Award points if useful. -
Add working days to a date excluding weekends and holidays
Hi there,
I need to write a function that will take a specified date and number of days to add as input parameters, and return the working day based on the number of days to add parameter, excluding weekends and any holidays held in a holiday table.
Here is my function so far -
CREATE OR REPLACE FUNCTION f_add_work_days(pd_date IN DATE
,pn_add_days IN PLS_INTEGER) RETURN DATE IS
pd_in_date DATE := pd_date;
ld_next_holiday DATE;
ln_days_left PLS_INTEGER := pn_add_days;
CURSOR cu_holiday(pn_date IN ge740.holdte%TYPE) IS
SELECT pck_utility.f_dtcnv(g.holdte)
FROM ge740 g
WHERE g.holdte >= pn_date
AND g.maint <> 'D'
ORDER BY g.holdte ASC;
BEGIN
OPEN cu_holiday(pck_utility.f_dtcnv(pd_in_date));
FETCH cu_holiday
INTO ld_next_holiday;
CLOSE cu_holiday;
LOOP
IF ln_days_left = 0 THEN
EXIT;
END IF;
pd_in_date := pd_in_date + 1;
IF pd_in_date > ld_next_holiday THEN
OPEN cu_holiday(pck_utility.f_dtcnv(pd_in_date));
FETCH cu_holiday
INTO ld_next_holiday;
CLOSE cu_holiday;
END IF;
CASE
WHEN TO_CHAR(pd_in_date
,'fmDAY') = 'SATURDAY' THEN
pd_in_date := pd_in_date + 2;
ln_days_left := ln_days_left - 1;
WHEN TO_CHAR(pd_in_date
,'fmDAY') = 'SUNDAY' THEN
pd_in_date := pd_in_date + 1;
ln_days_left := ln_days_left - 1;
WHEN pd_in_date = ld_next_holiday THEN
pd_in_date := pd_in_date + 1;
ln_days_left := ln_days_left - 1;
ELSE
ln_days_left := ln_days_left - 1;
END CASE;
END LOOP;
RETURN(pd_in_date);
END f_add_work_days;
I think there is something wrong/missing in the logic as I can't get it to cater for say a double bank holiday(25/26th Dec - if the input parameters are 24/12/2007 and 2, which should return the 28th but returns the 26th!!).
I'm relatively new to PL/SQL and Oracle, so any help, advice, ideas would be greatly appreciated!
thanks in advancesmth like
SQL> with holidays as (select to_date('10.06.2007','dd.mm.yyyy') h_dt from dual),
2 par as (select to_date('08.06.2007','dd.mm.yyyy') dt, 2 add_days from dual)
3 --
4 select min(dt) needed_date
5 from (select p.*,
6 h.*,
7 mod(to_char(dt, 'j'), 7),
8 sum(decode(mod(to_char(dt, 'j'), 7), 5, 0, 6, 0, 1)+--get rid of sat and sun
9 nvl2(h_dt, -1, 0)--check if the day is holiday
10 ) over(order by dt) s
11 from (select dt + level dt, add_days
12 from par
13 connect by level <= 100) p,
14 holidays h
15 where h_dt(+) = dt
16 order by 1)
17 where add_days = s
18 /
NEEDED_DATE
13.06.2007
SQL> ?
Message was edited by:
Volder
PS What Oracle version are you on? -
Delivery Date should propose only working days (Excluding weekends and holidays
Hello All
I have one requirement here, where delivery dates should propose only working days and it should not allow to add weekends and holidays during the creation of sales order.
I would like to know if there are any standard settings to be done in plant or shiping point?
Kindly need all your input on this
Thanks
NaveenHello All
Same calendar has already been assigned in shipping point,plant and sales org and also in the calendar holidays been maintained, even though when we create a sales order it will accept weekends and holidays
Thanks -
Calculate the Difference Between two dates excluding weekends and Holidays
Hi,
We need to calculate the difference between the two dates by excluding the Local public holidays (It is global and varies across countries) and weekends should not be included in calculation for a business day in OBIEE.
We have two dates: Open date and close date when ever close date is null we are calculating age based on taking the current timestamp and need to exclude the weekends and Holidays when ever the close date is null.
Ex:
Col1 col2 Total
11/9/2010 2:46:38 PM Null 13
11/2/2010 8:06:26 PM 11/3/2010 5:37:03 PM 1
(In the Total we shouldn't include the weekends,holidays)
Please let me know how to calculate the difference between two dates by excluding the weekends and holidays.
Thanks
Edited by: user10441472 on Nov 22, 2010 3:14 PMYou already asked this question and I answered it...
Re: calculation of Business day in OBIEE -
Dear all,
I want to create a payment term as follows:
100%, 90 Days on the 10th and 25th.
I created a payment term like this:
first entry: 'day limit' - 10 days, 'fixed day' field in the "Base line date calculation" column - 10 days and 'nº of days' - 90 days second entry (for that same payment term): 'day limit' - 25 days, 'fixed day' field in the "Base line date calculation" column - 25 days and 'nº of days - 90 days;
third entry (for that same condition term) 'day limit' - 31 days, 'fixed day' field in the "Base line date calculation" column - 10 days and additional month - 1 and 'nº of days - 90 days;
The system is not giving the expected result. For instance, for a customer with that payment term when document date is 30.09.2012 i should obtain payment date like 10.01.2012 but i obtain 08.01.2012.
I need a field wher to fix day of month for payment. Does it exist?
I hope you can help me.
best regards
Joana TrigoDear Trigo,
Unfortunatelly the System do not manage week day it only manage dates
in specific, but there are some options that maybe helpful:-
1. Using the field FIXED DATE:
Fixed calendar date as part of the date on which the first or second
cash discount period ends and/or the date on which the due date for
date net payment (date on which payment of an open item is due net, that
is with cash no discount deduction) is reached.
2. Could be into Default for baseline date area, not set the indicator
"No default" with this you then have to enter the base date manually
into your document.
3. You have the option "DAY LIMIT":
Day of the month up until which the correspondig terms are valid.
For terms of payment which depend on whether or not the baseline date is
after or before the 15th of the month, you can define a two-part payment
term under the same terms of payment key. The terms of payment key is
expanded by the day limit entered here. Thus there are two
entries in which different terms can be specified.
For Example:
The following terms of payment require you to enter a day limit:
Documents with an invoice date on or before the 15th of the month
are payable on the last day of the next month.
Documents with an invoice date after the 15th of the month are
payable on the 15th of the month after the next month.
Mauri -
Exclude Weekends and Holidays while applying for leave...
Hi,
Could anyone help me out in excluding holidays while applying for leave via absence management (employee self service) in R12? While clicking on calculate duration it includes weekends as well by default. Since updating the formula BG_ABSENCE_DURATION will involve creating UDTs, modify UDF and additional effort; I tried creating workschedulle and updated the profile HR: Schedule Based Absence Calculation to 'Yes' following the metalink note 'Schedule Based Absence Calculation in Self Service' [ID 437083.1] but no luck. Is there any other additional setup that needs to be done or its better to update Fast Formula. Kindly advise on the same. Thanks in Advance!!!
Thanks,
AhmedThanks much Gaurav. I was able to work it out by creating work schedule itself. I reckon I missed out selecting the schedule pattern. We need to ensure that after creating schedule the pattern needs to be selected and launched. After a while it gets effected in the system. Just in case if others are trying to implement work schedule for working days between Saturday to Wednesday following are the step involved. I have created two schedule pattern with day start as 1 and day stop as 4; and another pattern with day start as 7 and day stop as 7. It works like charm....:)
Regards,
Ahmed -
Show Working days transaction on Weekends and Holidays
Hi,
I have an objective to show last working days transaction (consider Friday) on Saturday and Sunday, also
if the next day is also a Holiday then i have to post previous days transactions on Holiday too.
Example:I need to show Friday Sep 1,2006 Transactions on
Sep 2,2006
Sept 3,2006
Sep 4,2006 (Labor Day -- Holdiay)
Restriction:PL/SQL not allowed( i know it is hard to believe ..sorry)
Here is the Query that i have written which takes care of Sat and Sundays.I am having problem with Posting the data on Holidays.
-- This Query selects all working days only
select TRADE_DATE,
Case when PORT_ID = 'FFSEX5' then SUM(PRINCIPAL) End as FFSDirect,
Case when PORT_ID = 'FFSEX5' then trunc(AVG(RATE),2) End as FFSDirect_Avg,
Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then SUM(PRINCIPAL) End as FFSBroker,
Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then trunc(AVG(RATE),2) End as FFSBroker_Avg,
Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then SUM(PRINCIPAL) End as Euro3,
Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then trunc(AVG(RATE),2) End as Euro3_Avg,0 AS FLAG
FROM CV_TRADE_HIST
Group by port_id,Trade_date
Union
-- Accumulates Saturdays
select (TRADE_DATE+1) as Trade_Date,
Case when PORT_ID = 'FFSEX5' then SUM(PRINCIPAL) End as FFSDirect,
Case when PORT_ID = 'FFSEX5' then trunc(AVG(RATE),2) End as FFSDirect_Avg,
Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then SUM(PRINCIPAL) End as FFSBroker,
Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then trunc(AVG(RATE),2) End as FFSBroker_Avg,
Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then SUM(PRINCIPAL) End as Euro3,
Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then trunc(AVG(RATE),2) End as Euro3_Avg,0 AS FLAG
FROM CV_TRADE_HIST Where to_char(trade_date,'dy')='fri'
Group by port_id,Trade_date
Union
-- Accumulates Sundays
select (TRADE_DATE+2) as Trade_Date,
Case when PORT_ID = 'FFSEX5' then SUM(PRINCIPAL) End as FFSDirect,
Case when PORT_ID = 'FFSEX5' then trunc(AVG(RATE),2) End as FFSDirect_Avg,
Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then SUM(PRINCIPAL) End as FFSBroker,
Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then trunc(AVG(RATE),2) End as FFSBroker_Avg,
Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then SUM(PRINCIPAL) End as Euro3,
Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then trunc(AVG(RATE),2) End as Euro3_Avg,0 AS FLAG
FROM CV_TRADE_HIST Where to_char(trade_date,'dy')='fri'
Group by port_id,Trade_date
UNION
-- TO ADD HOLIDAYS TO THE RECORD SET
SELECT HOLI_DT AS TRADE_DATE,
0 AS FFSDirect,
0 AS FFSDirect_Avg,
0 AS FFSBroker,
0 AS FFSBroker_Avg,
0 as Euro3,
0 AS Euro3_Avg,
0 AS Euro4,
1 AS FLAG
FROM V_INTR_SRC_HOLIDAY
WHERE TO_NUMBER(TO_CHAR(HOLI_DT,'YYYY'))=2006 and TO_CHAR(HOLI_DT,'DY') NOT IN ('SAT','SUN')
ORDER BY 1 DESC
Logic i was trying (I NEED TO POST THE PREVIOUS DAYS TRANSACTIONS WHERE FLAG=1 WHICH IS A HOLIDAY.using Lag())
****My constraint is no PL/SQL and no DML is allowed.
Please let me know is there anyway i can achieve this.I tried using Lag(), it did not work for me,Any suggestions?
Thank you,
Jay Brahmanapalli
Message was edited by:
user530625Here's a simple version:
Setup:
drop table trade_history
create table trade_history
( trade_date date not null
, amount number not null
, ticker varchar2(6) not null
declare
tdate date;
tamount number;
begin
tdate := trunc(sysdate);
for i in 1..365 loop
tdate := tdate - 1;
tamount := 200 - i;
insert into trade_history (trade_date, amount, ticker)
values (tdate, tamount, 'ORCL');
end loop;
end;
commit
drop table holidays
create table holidays
( holiday_date date not null
, previous_business_date date not null
, holiday_name varchar2(240)
insert into holidays (holiday_date, previous_business_date, holiday_name)
values ('25-DEC-05','24-DEC-05','Christmas Day')
insert into holidays (holiday_date, previous_business_date, holiday_name)
values ('26-DEC-05','24-DEC-05','Boxing Day')
insert into holidays (holiday_date, previous_business_date, holiday_name)
values ('06-SEP-06','05-SEP-06','A midweek example')
insert into holidays (holiday_date, previous_business_date, holiday_name)
values ('04-SEP-06','01-SEP-06','A Monday example')
insert into holidays (holiday_date, previous_business_date, holiday_name)
values ('07-AUG-06','04-AUG-06','A two day post w/e example')
insert into holidays (holiday_date, previous_business_date, holiday_name)
values ('08-AUG-06','04-AUG-06','A two day post w/e example')
insert into holidays (holiday_date, previous_business_date, holiday_name)
values ('26-DEC-06','24-DEC-06','Boxing Day 2006')
commit
/And a very simple example query
select last_business_day, ticker, sum(amount), count(amount)
from (
select nvl(hol.previous_business_date, trade_date)
- case to_char(nvl(hol.previous_business_date, trade_date),'D')
when '7' then 2
when '6' then 1
else 0
end last_business_day
, ticker, amount
from trade_history th
left join holidays hol on hol.holiday_date = th.trade_date
group by last_weekday, ticker
order by 1,2You should be able to build on that example, I hope. If you can't add the previous_business_date to your holiday table, then it gets slightly more complicated (because you have to skip back through consecutive holidays AND weekends AND any more consecutive holidays - ie in UK you'd have to skip back through Easter Monday, the Easter Weekend and Good Friday - last busines day is what we call Maundy Thursday.
HTH
Regards Nigel -
Date difference function that returns minutes between two dates and excludes weekends and holidays
Is there a way to get this to work as a function?
Currently returns error "Select statements included within a function cannot return data to a client"
CREATE FUNCTION [dbo].[WorkDays](@DateFrom datetime,@DateTo datetime)
RETURNS int
AS
BEGIN
--Working time
DECLARE @WTFrom TIME = '8:00AM';
DECLARE @WTTo TIME = '5:00PM';
DECLARE @minCount BIGINT
--Date ranges
IF (DATEDIFF(HOUR, @DateFrom, @DateTo) > 12)
BEGIN
WITH CTE AS
SELECT @DateFrom AS DateVal
UNION ALL
SELECT DATEADD(HOUR, 1, DateVal)
FROM CTE
WHERE DateVal < DATEADD(HOUR, -1,@DateTo)
SELECT DATEDIFF(minute, MIN(CTE.DateVal), MAX(CTE.DateVal))
FROM CTE
WHERE (CAST(CTE.DateVal AS time) > @WTFrom AND CAST(CTE.DateVal AS time) < @WTTo) AND DATEPART(dw, CTE.DateVal) NOT IN (1, 7) AND NOT EXISTS (SELECT * FROM Holiday AS H WHERE H.holiday = CTE.DateVal)
OPTION (MAXRECURSION 0);
END;
ELSE
BEGIN
WITH CTE AS
SELECT @DateFrom AS DateVal
UNION ALL
SELECT DATEADD(MINUTE, 1, DateVal)
FROM CTE
WHERE DateVal < DATEADD(MINUTE, -1,@DateTo)
SELECT DATEDIFF(minute, MIN(CTE.DateVal), MAX(CTE.DateVal))
FROM CTE
WHERE (CAST(CTE.DateVal AS time) > @WTFrom AND CAST(CTE.DateVal AS time) < @WTTo) AND DATEPART(dw, CTE.DateVal) NOT IN (1, 7) AND NOT EXISTS (SELECT * FROM Holiday AS H WHERE H.holiday = CTE.DateVal)
OPTION (MAXRECURSION 0);
END;
END
Thanks for your help.Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules (you do not). Temporal
data should use ISO-8601 formats (you do not!). Code should be in Standard SQL as much as possible and not local dialect.
This is minimal polite behavior on SQL forums.
We hate functions in SQL. This is a declarative language and you are using it like 1950's FORTRAN. We hate local variables (more FORTRAN!)
The name of a function has to be either a known, common name, like “sine”, “cosine” etc. Or it is “<verb>_<object>”; you think a noun is a verb! Do you really need BIGINT? Why did you invite garbage data with it? Why do you think that SQL
uses AM/PM? Have you never seen the TIME data type?
Think about “date_val” as a data element name. A date is a unit of temporal measurement on a calendar scale. This would be a “<something>_date” in a valid schema.
>> Is there a way to get this to work as a function? <<
Probably, but why do it wrong?
Build a calendar table with one column for the calendar data and other columns to show whatever your business needs in the way of temporal information. Do not try to calculate holidays in SQL -- Easter alone requires too much math.
The julian_business_nbr is how SQL people do this. Here is the skeleton.
CREATE TABLE Calendar
(cal_date DATE NOT NULL PRIMARY KEY,
julian_business_nbr INTEGER NOT NULL,
Here is how it works:
INSERT INTO Calendar
VALUES ('2007-04-05', 42),
('2007-04-06', 43), -- Good Friday
('2007-04-07', 43),
('2007-04-08', 43), -- Easter Sunday
('2007-04-09', 44),
('2007-04-10', 45); --Tuesday
To compute the business days from Thursday of this sample week to next Tuesday:
SELECT (C2.julian_business_nbr - C1.julian_business_nbr)
FROM Calendar AS C1, Calendar AS C2
WHERE C1.cal_date = '2007-04-05',
AND C2.cal_date = '2007-04-10';
See how simple it can be when you stop trying to write FORTRAN and think in sets?
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
The same payment term with two different Day Limit
Hello Experts,
I have the same Payment terme AAAA: 45 days, end of the month for two different Day Limit (15 and 31)
2 calcul mode are possible :
1/ fixed date :31 + additional months :1
2/ fixed date :31 + additional months :2
Actually this is the second method in use and according to the informations I have it should be the first one.
Then the user for the 16/04/2010 as Baseline date, is expecting the end of May ( 16 + 45 days >> 31th of May > 31/05) But the system calculate it for the 30/06/2010.
I want to understand the settings and how to correct.
Thank you in advanceHello,
Need your answers -
Hi All,
Could anybody will give bit explanation how will SAP will work in below Scenario:
Customer: X--- Assigned with Payment Term: ZB08
At OBB8, we defined two Paymet Term with ZB08, day limit are different. While posting document to vendor, which Payment Term i.e Payment term with Day limit will populate at document level.
Thanks inadvance.
Regards,
VenkatDear Srikanth,
Thanks for your immediate reply & valuable time.
I tried as you said, When i try to post Document on 06.05.2009 to vendor getting as below:
Payment Term: ZB08 Days/Percent: 40/2.125 50/ ( Blank)
In OBB8, we define as follows:
ZB08 ( 15 Day Limit)-- Default for Baseline is Posting Date-- 2.125--Fixdays 15 & Adition month 01
31 01
ZB08 ( 31 Day LImit)-- Default for baseline is Posting Date-- 2.125--Fixdays 31 Addtional Month 01
15 02
Could you explain me, Why SAP taking 40 instead of 15 & 30 days based on posting date?
Thanks inadvance.
Regards,
Venkat
Maybe you are looking for
-
Free Goods with Batch Management Activated !!!
Hi Gurus, I have defined a free goods master data for material on which batch is activated. I have defined the it as with a min of 10 qty 1 free good will be delivered as exclusive item Now as the batch management is active and each batch has 1 qty i
-
Hi All, I have to change the market value to a specific base currency. But i need to take the values from the FX_Rate table where we are storing current forex rates. I have edited the column formula of Market_value as: CASE "Currency".INSTRUMENT_CCY
-
Deletion of S-P relation and creation of S-CP relationship in E-recruiting
Hi Experts, We have ALEd the Employee(P) object type from HR system to E-rec. We have activated the BAdI HRRCF00_DELETE_SPREL to delete the existing S-P relationships and to create CP-S relationship in HRP1001 if E-recruiting. The ALE which splits th
-
Can't find Save As Optimized PDF in Acrobat X Standard.
I just bought and installed Acrobat X Standard, but cannot find the Save As > Optimized PDF option. I have seen and used this option before in Acrobat X Pro, and it was one of the reasons I bought Acrobat for myself. Adobe's own website says that t
-
Escaping special characters in RAW/BLOB
Hi! I have a BLOB column that needs to be exported into a CSV Textfile. Sounds a bit scary but works fine when you escape the critical bytes. I need to do the following replacement: 5C -> 5C 5C ( = \ ) 22 -> 5C 22 ( = " ) 00 -> 5C 30 ( = ?? ) 0A -> 5