Change days to seconds
Hi Experts,
Is it possible to change days to be seconds in the lead time field of item master data --> planning tab ?
if not, how could we include the cycle time of production machine in the MRP wizard ? We would like to know how much the production orders created from the MRP in one day and then we want to use MRP as controller of the capacity of production.
E.g. we have maximum 1,000 ton of FG in our shopfloor and we want that MRP can check how much current capacity and then MRP can recommend the production order to fill the remain available capacity. We use B1 2007A SP01 PL10. Pls adv.
JE
Hi John,
Try this...
SELECT CONVERT(VARCHAR,((leadtime*24)*60) * 60) + ':' + RIGHT('00' + CONVERT(VARCHAR,((leadtime*24)*60) % 60),2)
from oitm
Thanks
Sachin
Similar Messages
-
How to Create payment term for -Net Due 1st Day of Second Month Following
Hi,
We need to add a payment term for "Net Due 1st Day of Second Month Following Delivery". We need this to be in the system as soon as possible as we just were told of a change in terms for our client effective May 1st.
Kindly advice me how to select the dates in OBB8?
Thanks
SupriyaHi Supriya,
In OBB8, create a new payment term with the following settings -
Default for baseline date = No default
Payment terms/Term 1/Fixed date = 1
Payment terms/Term 1/Additional months = 2
This payment term will ask you for a baseline date on document entry. You can give the delivery date as the baseline date. If required, this date can be changed after posting the document also.
Hope this helps.
Regards,
Mike -
How to import from CSV file into INTERVAL DAY TO SECOND column?
Hello,
I need to import data from a csv file that has a column that stores time-intervals (e.g. 2:06:02 Hours:Minutes:Seconds) into a table column INTERVAL DAY TO SECOND.
Does any of you know what format I should apply?
I tried HH:MI:SS but it didn't work.
Any suggestion is welcomed (including changing the column type to something else that might hold time-intervals in it....).
Thanks,
AndreiAndrei,
There is no native support for the INTERVAL datatype in the Text loading facilities of Application Express.
To work around this known limitation, I suggest either creating a temporary table or a shadow column in your existing table. You could then upload your data for the interval as a VARCHAR2 and then use SQL to convert to an appropriate interval value.
For example:
1) Create a table with:
create table foo (id number primary key, i interval day to second, shadowi varchar2(4000) )2) Using your sample data set, load this data into table FOO, loading the second column of this data into column SHADOWI
1 01:06:02
2 02:06:02
3 03:01:013) Issue the following SQL to convert the value in your shadow interval column to your actual interval column
update foo set i = to_dsinterval( '0 ' || shadowi )Note that you'll need to prepend the '0' to formulate a valid interval literal value.
Joel -
Problem when summery the data type of interval day to second
hi
i write a program calculate periods of time and summary it then i used interval day to second data type
oracle support basic 4 math operation (+,-,*,/) on interval
but although oracle does not support summary function like sum() ,avg(),count()!! this is a problem here
the walkaround it by use oracle data cartdrage advanced future like follows steps :
*1- i create type and i call it for ex: DAY_TO_SECOND_SUM_TYPE*
CREATE OR REPLACE DAY_TO_SECOND_SUM_TYPE /*TYPE as object
+(TOTAL INTERVAL day to SECOND , /* type header*/+
STATIC FUNCTION ODCIAggregateInitialize(SCTX IN OUT DAY_TO_SECOND_SUM_TYPE) return number,
member function ODCIAggregateIterate( self in out DAY_TO_SECOND_SUM_TYPE,value in interval day to second) return number,
member function ODCIAggregateTerminate(self in DAY_TO_SECOND_SUM_TYPE,returnvalue out interval day to second , flags in number) return number,
member function ODCIAggregateMerge(self in out DAY_TO_SECOND_SUM_TYPE,ctx2 in DAY_TO_SECOND_SUM_TYPE) return number
+)+
+/+
CREATE OR REPLACE TYPE "DAY_TO_SECOND_SUM_TYPE" as object
+(TOTAL INTERVAL day to SECOND ,+
STATIC FUNCTION ODCIAggregateInitialize(SCTX IN OUT DAY_TO_SECOND_SUM_TYPE) return number,
member function ODCIAggregateIterate( self in out DAY_TO_SECOND_SUM_TYPE,value in interval day to second) return number,
member function ODCIAggregateTerminate(self in DAY_TO_SECOND_SUM_TYPE,returnvalue out interval day to second , flags in number) return number,
member function ODCIAggregateMerge(self in out DAY_TO_SECOND_SUM_TYPE,ctx2 in DAY_TO_SECOND_SUM_TYPE) return number
+)+
create or replace type body DAY_TO_SECOND_SUM_TYPE as /* type body*/
static function ODCIAggregateInitialize(sctx in out DAY_TO_SECOND_SUM_TYPE) return number is
begin
sctx := DAY_TO_SECOND_SUM_TYPE(numtodsinterval(0,'second'));
return odciconst.Success;
end;
member function ODCIAggregateIterate( self in out DAY_TO_SECOND_SUM_TYPE,value in interval day to second) return number is
begin
self.total := self.total value;+
return odciconst.Success;
end ;
member function ODCIAggregateTerminate(self in DAY_TO_SECOND_SUM_TYPE,returnvalue out interval day to second , flags in number) return number is
begin
returnvalue := self.total;
return odciconst.Success;
end;
member function ODCIAggregateMerge(self in out DAY_TO_SECOND_SUM_TYPE,ctx2 in DAY_TO_SECOND_SUM_TYPE) return number is
begin
self.total := self.total ctx2.total;+
return odciconst.Success;
end;
end;
+/+
*2- i create artificial function to summary using that type let as called for ex: ds_sum as follows :*
create or replace function ds_sum( input interval day to second ) return interval day to second
parallel_enable aggregate
using DAY_TO_SECOND_SUM_TYPE
+/+
at last i used the function to summary intervals and its work so good but when the result of calculated summary value exceed the default precision of interval : INTERVAL DAY(2) TO SECOND(6)
i get an error :
ORA-01873 the leading precision of the interval is too small
Cause: The leading precision of the interval is too small to store the specified
interval .
Action: Increase the leading precision of the interval or specify an interval with
a smaller leading precision
although i can determine the precision of interval the declaration of the new type to maximum like :
+...........+
CREATE OR REPLACE TYPE "DAY_TO_SECOND_SUM_TYPE" as object
+(TOTAL INTERVAL day(9) to SECOND(6) ...........+
+.......................+
but the problem remain (in fact the error move from one functions of type to another function )
due i can't determine the precision of data type when i define function in PL/SQL it is illegal*
HOW CAN I SOLVE THIS PROBLEM AND BE ABLE TO SUMMARY INTERVAL DATA TYPE WHAT EVER THE RESULT OF SUMMARY IS HUGE
Edited by: user1193723 on Jun 18, 2009 4:35 AM
Edited by: user1193723 on Jun 18, 2009 4:36 AM
Edited by: user1193723 on Jun 18, 2009 4:37 AM
Edited by: user1193723 on Jun 18, 2009 4:38 AM
Edited by: user1193723 on Jun 18, 2009 4:38 AM
Edited by: user1193723 on Jun 18, 2009 4:40 AMhi,
Instead of 'interval day to second' in method declaration use internal datatype 'DSINTERVAL_UNCONSTRAINED'.
There are more unconstrained types in oracle.
Bartek -
Oracle's 'Interval day to second' data type in Hibernate
Hi!
Has anyone implemented Hibernate access to a column in Oracle using 'Interval day to second' data type?
I've seen this link while searching Google.
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/intervaldaytosec/intervaldaytosecond.html#how1
But I'm clueless about how to implement it using Hibernate.I guess this just worked:
<property name="sampleTime" type="oracle.sql.INTERVALDS">
<column name="acct_life_time" sql-type="interval_year_to_month" />
</property>Edit:
Uh oh. It works on an empty column. I got this error while trying to access one that's not:
INFO SerializableType:178 - could not read column value from result set: acct3_7_; could not deserialize
Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize
Caused by: org.hibernate.type.SerializationException: could not deserialize -
Inconsistent datatypes: expected INTERVAL DAY TO SECOND got DATE
Hi All,
I am developing a Java application in which I construct a query and pass some values to get the results from the Oracle db.
The code block is:
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(30000);
Date threshold = new Date(calendar.getTimeInMillis());
And when the threshold value is passed, I am getting the following error:
ORA-00932: inconsistent datatypes: expected INTERVAL DAY TO SECOND got DATE
How to convert the threshold value into INTERVAL DAY TO SECOND in java?
Thanks in advance.
Regards,
Bh.So presumably LASTUPDATE is a timestamp column and you pass THRESHOLD as a date, and get something like this:
WITH work_reservations AS
( SELECT TIMESTAMP '2007-07-10 01:23:45' AS lastupdate FROM dual )
SELECT *
FROM work_reservations
WHERE (sysdate - lastupdate) > DATE '2007-01-01';
ERROR at line 5:
ORA-00932: inconsistent datatypes: expected INTERVAL DAY TO SECOND got DATEWhy not just compare lastupdate with threshold? Subtracting a date or timestamp from a timestamp gives an interval.
It might also be marginally more efficient to compare a timestamp with another timestamp, rather than mixing dates and timestamps and incurring an implicit conversion. -
Change color on second display
Hi folks,
I have some trouble setting up a different color on my second display.
I am using a mac mini (late 2012) with mountain lion.
My main display is plugged via hdmi and the second is via thunderbolt with a hdmi adapter.
So, when I open the color settings I see a color window on both displays. The problem is that if I change on the second screen the color profile it changes on my first screen.
I somehow think its because of that the other display is connected via thunderbolt.
The displays are both Samsung SyncMaster S22B350
Has anyone else had this issue before?
Thanks in advance,
AlexSorry, I don't have te luxury of 2 monitors anymor, hopefully some other helpers pipe in!
-
How do you change the 4 seconds preset duration when selecting clips?
When you select piece of clip in an event, how do you change the 4 seconds preset duration?
Hi
in iMovie'11 (as I don't have any iMovie'13 (v10)) and You note that You also use iM11
Go up to the top row Menu and select "Setings" (Inställningar)
and here select Browser (Bläddrare)
and at bottom of this You got three options
and can select ALL or up to 10 seconds
I use click + alt (option-key) to select all of the Clip in Events - then fine tune it in my project.
Good Luck
Yours Bengt W -
9 seconds is too much, I want to change it to 5 seconds by replacing the "9" in the script by "5" but it is still 9 seconds as it is..
I am not a developer at all so thats why I am having some difficulties. Apprecaite any help please
I ran some applications debugs on the GW but still did not help that much..
Any help will be much appreciated. thanks.9 seconds is too much, I want to change it to 5 seconds by replacing the "9" in the script by "5" but it is still 9 seconds as it is..
I am not a developer at all so thats why I am having some difficulties. Apprecaite any help please
I ran some applications debugs on the GW but still did not help that much..
Any help will be much appreciated. thanks. -
Creating video in CC, wanting to change auto 4 seconds given to each photo
I am creating a video in CC (motion) and looking to change how much time each photo is given when dropped into the timeline.
Currently it's set at 4 seconds and I'd like to change that to 2
Any thoughts?Ahh, that would pose a problem.. Other than that, there is really no other way. You could export the frames as a video then re-import it and mix together with your other video clips. I suggest going to this link and adding your vote for the feature. No guarantees though. Photoshop: Ability to set the default frame duration for newly added clips in the video timeline
You might be better off using actual video editing software.....
Benjamin -
ICal: Hot to change "Day starts at" (iPad)
Hey there,
asked a couple of times before, still couldn't find any help where so ever
Do you guys know where I can change the "Day starts at:" preference on the iCal for iPad? It doesn't work setting it up on the mac and then syncing it, unfortunately!!
I'm very looking forward to your responses and thank you very much in advance, highly appreciated!
Best,
RafaelYou can't change the start day of the calendar, the app has no setting to make the change. The only way that you can do this is by changing the region format to a country where the calendar starts on a different day, but that is not a viable solution since it will change your time and other things associated with the country.
-
I can insert data into the iCal quite easily at the right time and day, but when I come to look at it the day has gone back by one, and often the data is duplicated. So for instance an appointment at 1 on Jan29 becomes duplicated an appointment at 1 on Jan 28th.
Is there anything I can do to stop this. I have checked my Time and Date settings and they are all right.
Any help or suggestions would be greatly appreciated. I use both Tiger and Leopard.
Thanking you in advance,
Monty Williamssisters4,
I too get the Confirmation of the 30 days after I check the box. However after I say "Yes" I can change the number to whatever I would like.
Hope that helps with your issue. -
I live in Saudi Arabia and our weekend is a Friday and Saturday. Can I change the ipod settings to reflect this? I have tried changing the international format but that changes the language to arabic. I don't think it actually changes the days of the working week. Anyone have any ideas?
No. As yo found out, it is linked the Region setting/selection.
You might be able to find a Calendar app that allows you do do what you want. -
Power Supply Status Changed - every 12 seconds
Server Monitor shows all green for all components, but the log shows a red message every 12 seconds "Power Supply Status Changed". The power is coming through an APC UPS device, which also appears to be working fine. Any ideas?
Xserve G5 Dual Mac OS X (10.4.5)Last night I got an Email:
Subject: Server Problem Notification
A problem has been detected on this server.
============================================================
Status Summary
Reason(s) for notification:
Power
Server:
Host : geekho
Model : RackMac3,1
Uptime : 17952 minutes
OS version : Mac OS X Server 10.4.6 (8I127)
Processor : 1 x 2000 MHz
Memory : 2048 MB
BootROM : $0005.17f2
Serial : QP6170FQSLX
Memory:
Memory Slot "DIMM0/J11" : 1024MB, ECC DDR SDRAM, PC3200U-30330
Memory Slot "DIMM1/J12" : 1024MB, ECC DDR SDRAM, PC3200U-30330
Drives:
Drive 1 (disk0) : Normal
Drive 2 (disk1) : Normal
Network:
en0 ( active) : Normal
Sensors:
CPU 1 Power : 12.55 watts
1.5v : 1.49 volts
3.3v Trickle : 3.30 volts
5v : 5.04 volts
12v Trickle : 12.06 volts
1.2v : 1.18 volts
Behind the DIMMs : 52.00 C
1.8v : 1.80 volts
System Bus IO VDD : 1.46 volts
PCI Slots : 45.00 C
DDR IO : 2.63 volts
DDR IO Sleep : 2.63 volts
3.3v : 3.30 volts
3.3v Sleep : 3.28 volts
5v Sleep : 5.07 volts
12v : 12.00 volts
System Controller Vcore : 1.71 volts
1.5v Sleep : 1.51 volts
1.2v Sleep : 1.18 volts
Between the Processors : 34.00 C
CPU 1 Internal : 46.02 C
CPU 1 12v : 0.94 amps
CPU 1 Vcore : 1.27 volts
CPU 1 Core : 9.89 amps
System Controller Internal : 55.75 C
CPU 1 Ambient : 38.00 C
System Controller Ambient : 44.00 C
CPU 1 Inlet : 30.00 C
CPU 2 Inlet : 27.50 C
Controls:
CPU A1 : 3973 RPMs
CPU A2 : 3988 RPMs
CPU A3 : 4002 RPMs
CPU B1 : 3992 RPMs
CPU B2 : 4017 RPMs
CPU B3 : 3982 RPMs
System Controller : 5585 RPMs
PCI Slot : 3890 RPMs
Clock Slew :
Security:
Enclosure Intrusion : No
============================================================
I don't see anything wrong (CPU power?), and the Server Monitor app shows all green lights and everything "Normal" except CPU Core amps at 7 amps peaking to 10.25 or so, which it calls "High".
What (if anything) is wrong, and what (if anything) should/could I do to fix it? Is this related to the original problem?
Thanks! -
Change day range in Calendar to end at 3am?
Hello, I am a night-owl. It would help when planning my day if the day hour range spanned from something like 11am to 3am, rather than 12am to 11pm. I don't think this is possible but thought I should ask, anyway.
Thank you.I think you want to know, days & time picked by which machine, locally or from server? It does take from server where the application is running.
Maybe you are looking for
-
I must have deleted something. My firefox cannot open. I get the following message: "Profile Missing" Your Firefox profile cannot be loaded. It may be missing or inaccessible.
-
JDev 9.0.3.3 Data not saved to DB when using Non-Transaction DataSource
Hi, Env: JDev 9.0.3.3/WL 6.0 sp1/Oracle 8i We have successfully deployed our application in 3-tier(remote mode) in JDev 9.0.3.2. using JClient, EO/VO, EJB Session Facade (BMT). Now we are planning to use JDev 9.0.3.3 (build 1205) We are using ejb.txn
-
Fieldpoint error 4294933096 ?
Hi Folks, I'm working on a small RT application residing on a cFP-2010. It communicates to a host VI on a PC via a Datasocket (LOGO's). The problem is when I build and compile the installer. On the host PC I get an error 4294933096 from all of my Rea
-
In movie sub titles don't disappear
If a film has any in movie subtitles as part of a foreign language being spoken the las set of subtitles stays on screen. Can you help?
-
Database migration from 8.1.7 to 11.2.0.1
Dear All, Is it possible to upgrade database from 8.1.7 to 11.2.0.1 on windows server directly. If yes could please share Master note for the upgrade. With Regards T.K