Schedule Shipment Date on Saturday or Sunday
I created a defaulting Rule such that if the system date is between 4th to 18th of the month, the schedule shipment date will be 20th of the month. if the date falls
on 19th-3rd of the month the schedule date will be 5th (of the same month if 1-3 and next month if 19 onwards).
however, after assigning the April 20 to the schedule shipment date, the Oracle Order MAnagement screen is setting April 19 to the schedule ship date. I guess because April 19 is a working day and April 20 is a Saturday. I set my calendard to have 7 days as working days but still the system is using April 19 and overwriting my defaulting rule of April 20.
Please help on how to ignore the non-working days and treat my calculated schedule shipment date as IS.
Can you change the 'request date' at line level 'one day' earier and schedule it.. ? Are you getting same reflection on 'Schedule ship date' ?
Similar Messages
-
Schedule line delivery date on saturday and sunday its confirm for monday
HI Experts
in cash sales process or normal OR also when i create sales order monday its work fine system take todays (current date) as delivery date and i can do delivery on same date
but if i create sales order on saturday system take coming monday as delivery date and give goods confirmation on monday date but iif i change manually system allow me to change the date for saturday and i can do delivery but i want it system should take delivery date as saturday (same date only )
because in my client there is no holiday all 365 as working day
in VOV8 its blank no lead time
factory calendor and logistic i define as all 7 days as working day
and sales org and plant i assign calendor
Please guide me where i miss and how can i solve this issue
thanks in advanceHi,
Check "OVLY" and "OVLZ" and If the sceduling is active for he shipping point /sales document type. Check "OVXD" and see If the Loading time/ Pick/pack time is determined from it. If they are getting determined from shipping point check the shipping point calender in "SCAL" .If it has saturday and sunday as holidays ,then you may have to change them. And check If the customer has goods recieving hours assigned to him (In customer master unloading point). If he has only 5 working days and If he accepts only goods at 8 am in the morining then system would propose like this.Kindly please let me know If you need any more Information on this.
Regards
Ram Pedarla -
Day between two dates excluding Saturday and Sunday
Hi,
I have the Requirement like : there are two inputs in query 1)startdate and 2)end date when end user enter the start date and end date the sql query has to retrive the number of days between given start and end dates, and it should be retrivied with two condition 1)all sundays between the above dates excluded 2)second and fourth Saturday of the month in between the start and end dates has to be excluded .
example start date:01-may-09
end date: 16-may-09
expected output:13Balaji.M wrote:
Hope this will be helpful for you.
SELECT dates,
TO_CHAR(dates, 'D'),
TO_CHAR(dates, 'DAY'),
TO_CHAR(inner.dates, 'W')
FROM (SELECT TO_DATE('01-may-09') + LEVEL - 1 dates
FROM DUAL
CONNECT BY LEVEL <= (TO_DATE('16-may-09') - TO_DATE('01-may-09')) + 1) inner
WHERE ( ( TO_CHAR(inner.dates, 'D') = 7
AND TO_CHAR(inner.dates, 'W') NOT IN(2, 4)
OR TO_CHAR(inner.dates, 'D') not in (1,7)
You can replace the start date (two place) and end date (one place) by variables and check.Of course we have to be aware of local NLS settings:
SQL> SELECT dates,
2 TO_CHAR(dates, 'D'),
3 TO_CHAR(dates, 'DAY'),
4 TO_CHAR(inner.dates, 'W')
5 FROM (SELECT TO_DATE('01-may-09') + LEVEL - 1 dates
6 FROM DUAL
7 CONNECT BY LEVEL <= (TO_DATE('16-may-09') - TO_DATE('01-may-09')) + 1) inner
8 WHERE ( ( TO_CHAR(inner.dates, 'D') = 7
9 AND TO_CHAR(inner.dates, 'W') NOT IN(2, 4)
10 )
11 OR TO_CHAR(inner.dates, 'D') not in (1,7)
12 );
DATES T TO_CHAR(D T
01-MAY-09 5 FRIDAY 1
02-MAY-09 6 SATURDAY 1
03-MAY-09 7 SUNDAY 1
05-MAY-09 2 TUESDAY 1
06-MAY-09 3 WEDNESDAY 1
07-MAY-09 4 THURSDAY 1
08-MAY-09 5 FRIDAY 2
09-MAY-09 6 SATURDAY 2
12-MAY-09 2 TUESDAY 2
13-MAY-09 3 WEDNESDAY 2
14-MAY-09 4 THURSDAY 2
15-MAY-09 5 FRIDAY 3
16-MAY-09 6 SATURDAY 3
13 rows selected.
SQL>Day 1 on my local database is Monday, not Sunday. -
Hi All,
I have a simple query which is below:-
Declare @reportdate date
set @reportdate= (DATEADD(dd,-5,getdate()))
select * from dbo.Table
where date IN (@reportdate)
I need this query to pull the data for the last 3rd business day .So lets say today is monday then i need the data for last week wednesday which is 3 business days back from monday, if today is a tuesday it would be for last thursday ( as 3 business days for
tuesday would be thursday). But if today is wednesday then i need to be last 3rd business day which is last friday and i also need to get the data for saturday and sunday.
Can someone please help me how cani change my filter to do this?
Please let me know if i am still unclear.
ThanksHi SqlDev12,
Based on my understanding on your requirement, you can reference the below sample.
CREATE TABLE BusinessTable
Bdate DATE,
Wd VARCHAR(10)
;WITH Cte(DT,WD) AS
SELECT CAST('20150401' AS DATE),DATENAME(WEEKDAY,CAST('20150401' AS DATE))
UNION ALL
SELECT DATEADD(DAY,1,DT),DATENAME(WEEKDAY,DATEADD(DAY,1,DT)) FROM Cte
WHERE DT<GETDATE()
INSERT INTO BusinessTable SELECT * FROM Cte
SELECT * FROM BusinessTable
SET DATEFIRST 7 -- Set Sunday as the first day of a week
DECLARE @givenDay DATE ='20150415' --Wednesday
SELECT * FROM BusinessTable
WHERE Bdate BETWEEN
--For Monday and Sunday, select last wednesday
(CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
--For Tuesday and Wednesday, last week's Thursday and Friday
WHEN DATEPART(WEEKDAY,@givenDay) IN(3,4) THEN DATEADD(DAY,-5,@givenDay)
--For Thursday and Friday, current week's Monday and Tuesday
WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
--For Saturday, current week's Wednesday
ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
AND
(CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
WHEN DATEPART(WEEKDAY,@givenDay) IN(3) THEN DATEADD(DAY,-5,@givenDay)
WHEN DATEPART(WEEKDAY,@givenDay) IN(4) THEN DATEADD(DAY,-3,@givenDay)
WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
DROP TABLE BusinessTable
If you have any feedback on our support, you can click
here.
Eric Zhang
TechNet Community Support -
Hi Guys
I have an issue with the scheduled delivery date being determined incorrectly.
If an order is created with the required delivery date of saturday or sunday, the system is confirming the schedule lines for that day/date. The factory calendar has been setup with working days (Mon, Tue, Wed, Thur and Fri), plant and shipping point have been assigned the same factory calendar. Based on the calendar the system should not confirm it for the weekends.
Also if i create the order for the current week with the delivery date of weekend(saturday/sunday) then the system pushes it out to to monday but if i create it for the next weekend or following month weekend then the system confirms it.
Can someone suggest the possible solution??
ThanksDear Comes,
Kindly check whether the factory calender maintained for your plant and shipping point is maintained for your Sales organisation and i think you can also assign it for storage location. So make sure all the factory calender are same.
regards,
Sudhir -
Function Module to convert date to week from Sunday to Saturday
Hi,
In BW the convertion date to week always give week from Monday(1) to Sunday(7)
I'm looking for a function module to convert date to week from Sunday(1) to Saturday(7)
Thanks
SebastienHi,
I think this SAP standardized. Maybe you need to create custom FM.
You can copy SAP FM DATE_GET_WEEK. in the FORM FIRSTWEEK, I see below case,
CASE start_weekday.
WHEN if_calendar_definition=>c_monday.
start_weekday_number = 1.
WHEN if_calendar_definition=>c_tuesday.
start_weekday_number = 2.
WHEN if_calendar_definition=>c_wednesday.
start_weekday_number = 3.
WHEN if_calendar_definition=>c_thursday.
start_weekday_number = 4.
WHEN if_calendar_definition=>c_friday.
start_weekday_number = 5.
WHEN if_calendar_definition=>c_saturday.
start_weekday_number = 6.
WHEN if_calendar_definition=>c_sunday.
start_weekday_number = 7.
ENDCASE.
Maybe you can play something here. -
Billing date is for Monday for the orders created on Saturday and Sunday
Hi Friends,
I have an issue,that for the orders that are created on weekdays, the Billing date is for the same day.
But for the orders that are created on Saturday and Sunday,the Billing date is being determined automatically for Monday.
The goods are service material and ther is no delivery being created for these goods.Still the requested delivery date is being determined for Monday for the weekend orders.
Any idea where i can check these settings or which program or userexit can be looked into for this.
Thanks in advance...
Sultan KhanHi,
How about using BBP_DOC_CHANGE_BADI ?
Regards,
Masa -
Does the date entered fall on a Saturday or Sunday?
Has anyone had to verify the date, entered by the caller, doesn't fall on a Saturday or Sunday? If so how did you do it? We are running UCCX 5.0(2) premium edition. Thanks.
Jump into the Expression Editor and create a GregorianCalendar class. It will tell you all these things, and more. It will deal with leap years and other tricky little things.
Now if you don't know how to use the Expression Editor, please read the manual. It's a bit tricky to describe, but you can actually double-click on where you see the class and type your own class there, and it will make one for you, and then you can use the methods on that class that the editor can see through reflection.
GregorianCalendar is a standard Java class in java.util.* so you will be able to use it.
You basically take their date entry, make a GregorianCalendar, and then check to see if it's the weekend.
NOTE: Month is 0-11, so subtract 1 from what they entered!!! Tricks people up.
GregorianCalendar gc = new GregorianCalendar(int year, int month, int dayOfMonth)
if (gc.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY ||
gc.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY)
// off you go
Regards,
Geoff -
Identifying Saturday and Sunday from calender dates
Hi all,
i have a table with all the date of year from 200 to till date.
now i want to identify all those dates from this table which are saturdays and sundays,
how can i do this?
please advice...
thanks.Depends on what the nls_territory parameter is set to:
alter session set nls_territory='UNITED KINGDOM';
select to_char(sysdate, 'd', 'nls_date_language=american') monday,
to_char(sysdate -1, 'd', 'nls_date_language=american') sunday
from dual;
M S
1 7
alter session set nls_territory='AMERICA'
select to_char(sysdate, 'd', 'nls_date_language=american') monday,
to_char(sysdate -1, 'd', 'nls_date_language=american') sunday
from dual;
M S
2 1Edited by: Boneist on 06-Jul-2009 12:01
BluShadow is too fast for me! -
Get a saturday and sunday dates
HI,
i need a days which are sunday and saturday, when i given a range of period i want to get days which are saturday and sunday within that range.
if any fm just suggest me.
Tahnks a lot.Hi,
Please find below an example on how to get the Weekend in shorttext, the dates and the total of weekend for the input date. I used only the FM ''DAY_ATTRIBUTES_GET'' . Please reward if you found useful. Thanks
REPORT zastest.
Data Declaration
TABLES : scal.
DATA : itab TYPE TABLE OF casdayattr,
wa_itab LIKE LINE OF itab.
DATA : l_line TYPE i,
l_wkend TYPE i.
Selection Screen
SELECT-OPTIONS p_date FOR scal-date.
START-OF-SELECTION.
CLEAR : l_wkend.
CALL FUNCTION 'DAY_ATTRIBUTES_GET'
EXPORTING
FACTORY_CALENDAR = ' '
HOLIDAY_CALENDAR = ' '
date_from = p_date-low
date_to = p_date-high
language = sy-langu
NON_ISO = ' '
IMPORTING
YEAR_OF_VALID_FROM =
YEAR_OF_VALID_TO =
RETURNCODE =
TABLES
day_attributes = itab
EXCEPTIONS
FACTORY_CALENDAR_NOT_FOUND = 1
HOLIDAY_CALENDAR_NOT_FOUND = 2
date_has_invalid_format = 3
date_inconsistency = 4
OTHERS = 5
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN '3'.
WRITE : 'Date has Invalid Format'.
when '4'.
WRITE : 'Date Inconsistency'.
WHEN '5'.
WRITE : 'Other exceptions'.
ENDCASE.
ELSE.
DESCRIBE TABLE itab LINES l_line.
IF l_line GT 0.
LOOP AT itab INTO wa_itab.
WRITE : / wa_itab-day_string.
CASE wa_itab-weekday.
WHEN '6'. l_wkend = l_wkend + 1.
WHEN '7'. l_wkend = l_wkend + 1.
WHEN OTHERS.
ENDCASE.
ENDLOOP.
WRITE : / 'l_wkend - ', l_wkend.
ENDIF.
ENDIF.
END-OF-SELECTION.
Regards,
Loo -
Reg: Schedule Line Date-confirmation
Hi Frds,
In my IDES system
1. The schedule lines are preparing after two days from the date of sales order for every sales order.But I want to prepare on the same it self bcoz immediately I want to deliver.
For this I have checked the Lead Time in Sales order & Load & Pick times in Shipping Point(OVXD) also. There is enough material in the plant.
2. when I'm trying to create sales order on saturday or sunday it is displaying that no goods are accepted on the specified date.
For this I have changed the days in factory calender in SCAL.
Plz revert back me with new settings which I should check.
Thanks in advance
Regards,
RamHi,
Check if in material MRP view some lead time is entered like: GR Processing Time, Planned Deliv. Time, Tot. repl. lead time, etc.
Further also check some safety stock quantity is entered in MRP 2 view, even though enough stock is available system will not allocate it in sales order & give further schdule line.
Also check in the scope of availibility check in combination of "02 + A", the tick "include safety stock".
If required you can tick it.
Hope this helps you.
Regards,
Dhananjay -
Plan order is considering saturday and sunday as working day.
Hi All,
I have a problem where saturday and sunday is being conidered as working day when a plan order is created (Either manually or Automatically). But in calender assigned to this plant, saturday and sunday is assigned as holiday.
But when we convert the same plan order which has Saturday as Order start, the Basic start date of production order is moved to Firday.
EG. Plan order - XXXXXX has order finish date as 22-Aug-2011. Inhouse lead time is 2 days. So system takes 20-Aug-2011 as order srat date in plan order.
But when same Plan order is converted to Production order, then the Basic order start date is moved to 18-Aug-2011 and it says that 20-Aug-2011 and 21-Aug-2011 is maked as holiday in calender.
Can some one please suggest why is plan order considering Saturday and Sunday as working day.Hi,
Check the factory calendor assigned to plant which is referenced in plan order and teh factory calendor assigned to work center which is used in elad time scheduling in production order.. are they same?
Check how they ahve maintined..? -
Mail Escalation only on working days i.e except saturday and sunday
Hi Experts,
I have a scenario that mail should be escalated to 5 levels.
First Level condition----
> complaint date + 2days.
Second level condition if 1st is not satisfied Compalint date + 4 days.
next is complaint date + 6 days.
Problem is when saturday or sunday comes then complaint should not be escalted iam doing this also by getting out of program but iam unable to trigger that complaint which was caught on sat and sunday....
Small Hint shall be highly appreciated and rewarded..
Regards,
BohraHi,
You can do this by changing the Day Types Selection Rules.
Time Management->Work Schedules->Day Types->Define Selection Rules
Rule - <same as existing>
D.Ty.Wkdy - <same as existing>
D.typ.Sat - 1111
D.typ.Sun - 2222
Thanks.
Edited by: Ilyas Shaik Md on Jan 16, 2012 10:13 PM
Edited by: Ilyas Shaik Md on Jan 16, 2012 10:13 PM -
Schedule Line date is considering Sat and Sun
Our facoty calendar (US) does not include any Saturday or Sunday as a workday. However, when we enter an order for 3 day delivery, Saturday and Sunday are counted. The schedule line date changes ONLY if the 3rd day falls on a Saturday or Sunday. For instance, and order entered on Friday, the 18th will bring in a schedule line date of Monday, th 21st. This is 3 days, but we don't work on Sat or Sun, so we really need to the schedule line date to be Wednesday, the 23rd. Now if we enter the order on Thursday, the 17th, the schedule line date will still be Monday, the 21st because the 3rd day fell on a Sunday. Is there any way NOT to count Saturday and Sunday at all as workdays? Thank you for your help.
What function you choice? please show with me, my company has the same trouble, I think SAP not good in this function (Propose the delivery date)
Thanks so much.
Edited by: hieulm_VietNam on Feb 24, 2010 8:07 AM -
We are currently not able to manage schedule ship date proposed by ATP when our warehouse is closed. For example , we would like that ATP doesn't propose any schedule ship date for the first of May , which is a non working day in France. The constraint is that we don't want our purchase need by date to be impacted by the process.
I tried to closed one day in FR1 calendar and, after testing with order management, it appears that ATP didn't propose the closed day, so that's fine, but, our purchase order lead time was increased of 1 day and this is not what we expected.
Can you help us to find the right process.
ThanksHi Sandeep,
when we try to Rescheduled out the PO and the request is errored out the with the error:-
Start of log messages from FND_FILE
reschedule fails
old date in planner workbench: 19-MAY-11
new date: 07-JUN-11
header: 417474
line: 605652
po number: 2049031859
shipment no: 1
The need by date/promised date in the source instance is not the same as the need by date/promised date in the destination instance.
In the source instance,
The need by date is 19-MAY-11, and the promised date is 19-MAY-11
End of log messages from FND_FILE
---------------------------------------------------------------------------
Maybe you are looking for
-
Filesystem not accessable after ios 8 upgrade
Hey experts, i have recently upgraded my iPhone 5 to IOS 8. Now it is not possible to access the filesystem for e.g. copying photos from the iphone. The iPhone simply doesn't show up on my Windows 7 PC as a drive. I have tested it on several PCs. Is
-
Itouch 2G WiFi disconnects after 1/2 hrs of no use
I have a ipod touch 2G...it's updated to the latest version. For the last month if I don't use it for couple of hours...the WiFi gets lost (there's no wifi signal icon). So, I to go to networks and although its still connected to my home network, I h
-
ACS 5.5 SFTP repository non-standard TCP port
is it possible to change the TCP port in a SFTP repository from 22 to something different ? like this is not working repository sftp1 url sftp://10.10.0.8:22222/user1 user user1 password hash bc14bc179d2708cc31cbc22ee6a679cd22c095a1
-
Linksys E4200 - has to reboot to connect again with the internet
I bought the E4200 a month ago (replaced D-link DIR-655) and since then I have to reboot it twice. I have a NAS connected to the router (and router to cable modem) and sometimes I have to FTP files from abroad. If I use the FTP too much time the E420
-
I have almost 800GB of hard drive space, so it cant be an issue there. I read that it could be problems with the system and virtual memory and swaps, but dont know how to diagnose.