First and last frame disappearing off every clip

Hi,
Every clip I import in Final cut pro 6.0 loses its first and last frame.
The clips I import are in photoJpeg / 24p (verified with the -get info- of Quicktime Pro), but once in FCP they are marked as 23.98 ?!?!
In the browser the info of the clip says 23.98 and also indicates that the clip is 2 frames shorter.
When opened in the viewer the first and last frames are really missing.
It gets worse, when a clip is longer (ie: 500 frames), the first and last TWO frames are missing ?!?!
Am I alone with this problem?
Please help!!!

How are these clips getting created? Quicktime does not necessarily associate each frame with a certain TC, and the frame rate is dynamically calculated, rather than simply being hard-coded into the QT metadata. This results in Quicktimes that get created outside of FCP often showing up with different frame rates than you expect.
You might try exporting movies back out of FCP, ether from the master clips, or from sequences. I have noticed that when I export from a sequence at the correct frame rate, the missing frames come back. Other tools that might come in handy are Compressor for converting batches of files to QTs that FCP will like better, and Cinema Tools for conforming clips to a particular frame rate (like changing them from 24 to 23.98)
You might also try Dumpster which is a bare-bones utility that will allow you to view and edit the QT metadata directly.
Try some experiments and post back and let us know what you find out. I found that placing the clips in sequences at the proper frame rate and exporting new movie files worked well, but I have seen timing and frame rate shifts with some clips using this method...
Hope this helps -
Max Average

Similar Messages

  • Can only see first and last frame of clip in the timeline HELP PLEASE

    Hi, my first time and I did look for an answer, but can't find one. I have premiere elements 4 and I am trying out ver. 9. In ver. 4 the clips in the timelin shows all the frames, but in ver. 9 it only shows the first and last frame of the clips. Is there any way to make all the frames show. By "all the frames", I mean the clips fill with frames.I liked to see all the frames in the timeline, it is easier for me to select and trim the bits out.
    My specs are Core 2 Duo 6750, Nvidia 8600GTS, 4G Ram, Vista Home Premium. 3 HDD 3TB.
    Thank you for answering
    Werner

    As for the GUI, PrE had one more like PrPro (the early versions), up through PrE 3. With PrE 4, they streamlined the GUI (and some of the operation), and went with the "dark look." PrPro went in that direction starting with CS3, and now, the two programs' GUI looks more alike - darker. Personally, I like PrPro 2.0's brighter GUI. Now, one can alter the brightness, but the contrast can work against doing much of that - give me the lighter GUI....
    The look of PrE 4 thru PrE 9 is very similar, though things have moved about some. Still the look is similar. Same for PrPro CS 3 through CS 5.5.
    As for the trial, things have changed in PrPro, as of CS 5.5. Once, the PrPro trial was very crippled, but had no watermark. No more. No crippling, and still no watermark. The trial for PrE is far less crippled, but does have the watermark. We do not know what changes might be coming with the trial of PrE10. We will just have to wait and see. One great option that Adobe offers is the 30-day, money-back guarantee. If you buy Premiere (either flavor), and use it for 29 days, but do not like it, then you return it for your money back. This is the full-paid version (both flavors) with nothing crippled, and no watermark. Not that many companies make such an offer. Basically, on can use the trial for 30 days, to see some of the powers of the program, and then buy it, and try it fully for another 29 days. If not completely satisfied, they get their money back - essentially a 59 day trial.
    Were I doing AVCHD, I would definitely look at buying PrE 9, and giving it a 29 day shakedown. The only caveat is that AVCHD requires a lot of computer "horsepower," and not all computers (especially if more than a year, or so old) are up to that task. I find it amazing that a consumer format, like AVCHD, requires more computer power to process, than most professional formats, until one gets up to, say RED 2K/4K. However, that is the nature of the H.264 CODEC, and by that, I mean all H.264, not just the AVCHD version.
    Good luck and happy editing,
    Hunt

  • Why is the green screen visible on the last frame before the next clip?

    Hey guys!
    Maybe I'm ******** but i m having trouble here. I have "key-ed" a bunch of clips and successfully removed the green screen from them. But when placed in the timeline, the green screen of the clip reappears for the single frame before a next clip starts.
    I've re-rendered and chopped ends off but the green screen keeps appearing in the last frame of any keyed clip that is about to cut to a different clip.
    Where am i going wrong?

    Hey! I tried both suggestions but even the self contained quicktime file has the green screen frames popping up.
    I just dont get it, it's infuriating!
    I used "chroma keyer" effect on the clip, only enable "key on saturation", the green screen disappears, I place clip on V2 and image on V1. Image is then visible where the green screen was. All is well until the last frame before a next clip because on that ast frame the green screen appears again. Where am I going wrong? Please help!

  • How to find first and last day of last month?.

    Hello,
    I am using Crystal Report XI.
    Reports will be generated on first of every month for
    previous month. I want to find start and end date of previous month
    dynamic.
    For august, Start date is July 1st and End date July 31st.
    For September, start date is Aug 1st and Aug 31st.
    How can i get first of previous month as start date and last
    day of the previous month as end date?.
    Same kind of thing I want to do for future report ..find next
    month start date and end date.
    Thanks

    Adomacro,
    you could do a function, like this
    <cffunction name="getReportdates" returntype="struct"
    hint="Given an arbitrary month and year, the function returns a
    structure containing the first and last day of the previous
    month">
    <!--- Take current month and current year as the default
    --->
    <cfargument name="mnth" type="string" required="No"
    default="#monthAsString(month(now()))#">
    <cfargument name="yr" type="numeric" required="No"
    default="#year(now())#">
    <cfset firstDayOfGivenMonth = parseDateTime("1 " &
    arguments.mnth & " #arguments.yr#")>
    <cfset lastDayOfPreviousMonth =
    dateAdd("d",-1,firstDayOfGivenMonth)>
    <cfset numberOfDaysOfPreviousMonth =
    daysInMonth(lastDayOfPreviousMonth)>
    <cfset firstDayOfPreviousMonth =
    dateAdd("d",-#numberOfDaysOfPreviousMonth#,firstDayOfGivenMonth)>
    <cfset reportDates = structNew()>
    <cfset reportDates.firstDayOfPreviousMonth =
    firstDayOfPreviousMonth>
    <cfset reportDates.lastDayOfPreviousMonth =
    lastDayOfPreviousMonth>
    <cfreturn reportDates>
    </cffunction>
    <!--- Example usage --->
    <p>
    Given month: <strong>March
    2004</strong><br>
    begin date:
    <cfoutput>#dateFormat(getReportdates('March',2004).firstDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    end date:
    <cfoutput>#dateFormat(getReportdates('March',2004).lastDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    </p>
    <p>
    Given month: <strong>August
    2007</strong><br>
    begin date:
    <cfoutput>#dateFormat(getReportdates('August',2007).firstDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    end date:
    <cfoutput>#dateFormat(getReportdates('August',2007).lastDayOfPreviousMonth,"d
    mmm yyyy")#</cfoutput><br>
    </p>

  • Java 1.6.0_05 does not recognize first and last property in jnlp file

    Hi
    Has anybody else seen this?
    The jnlp file contains five properties, but the JRE does not recognize the first nor the last property.
    It has been working great since 1.4.2, through 1.5 and 1.6 until 1.6.0_05.
    <property name='bog' value='%2fdata%2fkirkeboeger1892%2f'/>
    <property name='opslag' value='aa001/AB/007/0000a-A.Jpg,aa001/AB/007/0002a-F.Jpg,... </property>
    <property name='sessionId' value='ed0l5n55yu2h04alvqxdpbn3'/>
    <property name='service' value='http://ao.sa.dk/LAView/ImageServer/Service1.asmx'/>
    <property name='titel' value='1908+-+1924%2c+Agerskov%2c+N%c3%b8rre+Rangstrup%2c+Haderslev'/>The 'opslag' property is much longer, so I cut it off to make it more readable.
    Pressing 's' in the console gives me this
    Dump system properties ...
    awt.toolkit = sun.awt.windows.WToolkit
    file.encoding = Cp1252
    file.encoding.pkg = sun.io
    file.separator = \
    http.auth.serializeRequests = true
    https.protocols = TLSv1,SSLv3
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = C:\Program Files\Java\jre1.6.0_05\lib\deploy.jar
    java.class.version = 50.0
    java.endorsed.dirs = C:\Program Files\Java\jre1.6.0_05\lib\endorsed
    java.ext.dirs = C:\Program Files\Java\jre1.6.0_05\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home = C:\Program Files\Java\jre1.6.0_05
    java.io.tmpdir = C:\Users\MAJ-BR~1\AppData\Local\Temp\
    java.library.path = C:\Program Files\Java\jre1.6.0_05\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.6.0_05\bin;C:\Program Files\Mozilla Firefox;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;"C:\Program Files\Java\jre1.6.0_05\bin"
    java.protocol.handler.pkgs = com.sun.javaws.net.protocol|com.sun.deploy.net.protocol
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0_05-b13
    java.security.policy = file:C:\Program Files\Java\jre1.6.0_05\lib\security\javaws.policy
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.6
    java.vendor = Sun Microsystems Inc.
    java.vendor.url = http://java.sun.com/
    java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.6.0_05
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 10.0-b19
    javaplugin.proxy.config.type = direct
    javawebstart.version = javaws-1.6.0_05
    jnlpx.heapsize = 64m,128m
    jnlpx.home = C:\Program Files\Java\jre1.6.0_05\bin
    jnlpx.jvm = "C:\Program Files\Java\jre1.6.0_05\bin\javaw.exe"
    jnlpx.remove = false
    jnlpx.splashport = 49557
    line.separator = \r\n
    opslag = aa001/AB/007/0000a-A.Jpg,aa001/AB/007/0002a-F.Jpg,...
    os.arch = x86
    os.name = Windows Vista
    os.version = 6.0
    path.separator = ;
    service = http://ao.sa.dk/LAView/ImageServer/Service1.asmx
    sessionId = ed0l5n55yu2h04alvqxdpbn3
    sun.arch.data.model = 32
    sun.boot.class.path = C:\Program Files\Java\jre1.6.0_05\lib\resources.jar;C:\Program Files\Java\jre1.6.0_05\lib\rt.jar;C:\Program Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C:\Program Files\Java\jre1.6.0_05\lib\jsse.jar;C:\Program Files\Java\jre1.6.0_05\lib\jce.jar;C:\Program Files\Java\jre1.6.0_05\lib\charsets.jar;C:\Program Files\Java\jre1.6.0_05\classes;C:\Program Files\Java\jre1.6.0_05\lib\javaws.jar;C:\Program Files\Java\jre1.6.0_05\lib\deploy.jar
    sun.boot.library.path = C:\Program Files\Java\jre1.6.0_05\bin
    sun.cpu.endian = little
    sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop = windows
    sun.io.unicode.encoding = UnicodeLittle
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = Cp1252
    sun.management.compiler = HotSpot Client Compiler
    sun.os.patch.level =
    trustProxy = true
    user.country = DK
    user.dir = C:\Users\Maj-Britt\Documents
    user.home = C:\Users\Maj-Britt
    user.language = da
    user.name = Maj-Britt
    user.timezone = Europe/Paris
    user.variant = As one can clearly see, the 'bog' and 'titel' (i.e. first and last) properties are missing, resulting (bad code - I know) in a NullPointerException.

    We also have this problem, but it's not first and last property.
    We have 6 properties, and the 3. property is gone.
    If I download the jnlp file, the property is there, if I choose show jnlp file in "javaws -viewer" it's not there. Only difference between this property and the working properties is length.
    The length is char 255, and the data is base64 encoded.
    I worked fine before upgrading to Java 6 update 5.
    Anyone any ideas?

  • Jbo:DataScroller - how to ensure 'First' and 'Last' action links appear

    I'm working in JDeveloper 10.1.3.5.0.
    I'd like to know if there's a way to ensure that the action links 'First' and 'Last' will appear, in addition to the 'Next' and 'Previous' ones (that is, assuming we're not already at the first or last range position).
    It seems as if the thing that determines whether or not they appear is the number of total range positions. I can't be certain, but it seems like the magic number is 1000. If there are fewer, then 'First' and 'Last' will appear, and if there are more, then they will not. It'd be great to be able to have control of this, though. Is it possible?
    Thanks
    Shea

    Encore is being phased out?  I would be surprised if Adobe did not offer some kind of DVD authoring solution in it's place.  I have not heard about this yet myself.
    I have a menu size issue because, despite my reported file size being under 4.7G, Encore continues to report a menu size problem.  Of course it doesn't say which menu or by how much it is exceeded.  When I build it to DVD it waits several hours before reporting that there is a space issue.  See below.
    There is a file called woodstock-1.mp4.  I can find no use of this clip at this point and it's not part of a timeline, yet Encore won't let it be deleted.  Encore reports it's still in use.  Surely there should be some way to track down any dependencies quickly.

  • First and Last Word on Page

    Hi,
    I am trying to create a document that is similar to a dictionary or an index of information.
    I want the first and last word on each page to be displayed automatically at the top corner and bottom corner of each page, to make navigation in the document easier.
    Is there a way to do this in InDesign?
    (If it is not done automatically, then if there is any shift in the lines, everything will be off, so i would Iike to find a way to do this.)
    Thanks

    That can be done with text variables (only in CS3 and later, though).
    Read http://help.adobe.com/en_US/InDesign/6.0/WS6A9BE096-77B2-4721-9736-797C4912B6C9a.html, the section called "Create variables for running headers and footers".

  • Music and videos keep disappearing off my iPhone

    I have an 16GB iPhone 5S running iOS 8.1.3. Seems that either since the last iOS update or iTunes update, music and videos keep disappearing off my iPhone. I'll copy stuff on and now, I'll double check that it's staying on the phone, but the next day, my music or video library will contain 'no content'. I'm not syncing any songs or videos and have 'Manually manage...' checked. I've restarted the iPhone and iTunes. It keeps happening. What I have found is that it seems to happen sometime after the songs or videos are copied onto the phone while the phone is still plugged into my MBP. It doesn't seem, and I may be wrong, to happen when the phone is not plugged in to the Mac. Another issue I've found since the upgrading is that the phone rarely syncs the 'last watched' time on any videos anymore. Any ideas about these issues?

    I have this problem too but movies and music delete a couple days later. I can watch half a movie one day and the next it disappears. I can also load music and listen to it all one day then they disappear in front of my eyes the next. these have all bern downloaded from the cloud on wifi at home.

  • SQL (first and last record)

    Hi All,
    WITH t AS
    SELECT 100 region_id, 1001 Client_Id, 'client 1' Client_Name, 1 Status_id, 'progress' Status_name, SYSDATE + 1 Start_Date, SYSDATE + 1 End_Date FROM dual UNION ALL
    SELECT 100 region_id, 1001 Client_Id, 'client 1' Client_Name, 2 Status_id, 'hold' Status_name ,SYSDATE + 1 Start_Date, SYSDATE + 1 End_Datet FROM dual UNION ALL
    SELECT 100 region_id, 1001 Client_Id, 'client 1' Client_Name, 3 Status_id ,'reject' Status_name, SYSDATE + 1 Start_Date, SYSDATE + 1 End_Date FROM dual UNION ALL
    SELECT 200 region_id, 1002 Client_Id, 'client 2' Client_Name, 1 Status_id, 'progress' Status_name, SYSDATE + 1 Start_Date, SYSDATE + 1 End_Date FROM dual UNION ALL
    SELECT 200 region_id, 1002 Client_Id, 'client 2' Client_Name, 2 Status_id, 'hold' Status_name ,SYSDATE + 1 Start_Date, SYSDATE + 1 End_Datet FROM dual UNION ALL
    SELECT 200 region_id, 1002 Client_Id, 'client 2' Client_Name, 3 Status_id ,'reject' Status_name, SYSDATE + 1 Start_Date, SYSDATE + 1 End_Date FROM dual UNION ALL
    SELECT 200 region_id, 1002 Client_Id, 'client 2' Client_Name, 3 Status_id ,'progress' Status_name, SYSDATE + 1 Start_Date, SYSDATE + 1 End_Date FROM dual
    SELECT * FROM t;Desired output:
    REGION_ID     CLIENT_ID     CLIENT_NAME     STATUS_ID     STATUS_NAME     START_DATE                    END_DATE
    100     1001     client 1                      1                     progress                     9/3/2011 12:26               9/3/2011 12:26
    100     1001     client 1                      3                     reject                     9/3/2011 12:26                     9/3/2011 12:26
    200     1002     client 2                      1                     progress                     9/3/2011 12:26                     9/3/2011 12:26thanks,

    Hi,
    Like Sven, I don't understand why you only want one output row for client_id=1002. Also, I don't understand what order determine "first" and "last". It's hard to guess because so many of the columns have the same value on every row.
    My best guess is that status_id plays a part in deciding who is "first" and "last", and that you don't want to include ties (multiple rows with a equal claim to being "first" or "last") in the output.
    WITH     got_analytics     AS
         SELECT     t.*     -- or whatever columns you want to display
         ,     ROW_NUMBER () OVER ( PARTITION BY  region_id
                             ,             client_id
                             ,             client_name
                             ORDER BY        end_date
                             ,             start_date
                             ,             status_id
                            )     AS a_num
         ,     ROW_NUMBER () OVER ( PARTITION BY  region_id
                             ,             client_id
                             ,             client_name
                             ORDER BY        end_date     DESC
                             ,             start_date     DESC
                             ,             status_id     DESC
                            )     AS d_num
         ,     COUNT (*)     OVER ( PARTITION BY  region_id
                             ,             client_id
                             ,             client_name
                             ,             end_date     -- NOTE: no ORDER BY
                             ,             start_date
                             ,             status_id
                            )     AS cnt
         FROM     t
    --     WHERE     ...     -- if you need any filtering, this is where it goes
    SELECT       region_id, client_id, client_name, status_id, start_date, end_date
    FROM       got_analytics
    WHERE       (     a_num     = 1
           OR     d_num     = 1
    AND       cnt     = 1
    ORDER BY  region_id, client_id, client_name, start_date, end_date, status_id
    ;If client_name and region_id depend on client_id, then you don't need to include them in the PARTITION BY clauses. Depending on your requirements, you may not want them in the PARTITION BY clauses even if they are independent of client_id. Then again, you may not want client_id in th PARTITION BY clauses. It all depends on what you're trying to do.

  • HT202058 iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    So if the solution recommended by Ralph is not working then the other option is this:
    Please make sure that the emails work correctly when signed into, on a computer
    Then delete the account off your phone - you will not lose the emails
    Reset the phone
    Re add the account back in and see if that helps the issue
    Thanks

  • How do I bulk edit contact's nicknames to first and last names?

    i imported contacts to the contacts app and they all say "NoName".
    i click on one of them and the first and last name fields are empty but the nickname field has the first and last name in it.
    how can i bulk edit 1120 contacts to change the full nickname to a first and last name?
    ex: "First"  ~  "Last"  ~  "Nickname"
           "Blank"  ~  "Blank"  ~  "John Smith"
    i want to to be:
           "John"  ~  "Smith"
    help me create an applescript or use a program or something cuz its killing me....thanks
    ohh and i used both of the following applescripts and nothing happened:
    tell application "Address Book"
       set all_Persons to every person in group "Test"
       repeat with per_son in all_Persons
           set nknm to per_son's nickname
           set per_son's first name to word 1 of nknm
           set per_son's last name to word -1 of nknm
       end repeat
    end tell
    ANDDDDDD
    tell application "Address Book"
       set {ASTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
       repeat with onePerson in (get people whose nickname is not missing value)
           set N to text items of (get nickname of onePerson)
           tell contents of onePerson
               set first name to text items 1 thru -2 of N as text
               set last name to text item -1 of N as text
           end tell
       end repeat
       set AppleScript's text item delimiters to ASTID
    end tell
    neither did anything...

    to any1 that wants to use the scripts and have them work just type "save" on the next like after end tell and itll do it........

  • How to find first and last date of a fiscal week using SQL

    Hello,
    I want information about FISCAL Week, means a Week based on ISO standard. I know format strings ‘IW’ or ‘IYYY’ gives fiscal week and fiscal year respectively from a given date. But I want to find the first and last date of a fiscal week. Say suppose I have a fiscal week is 2, and fiscal year is 2008, how to find the start and end date of the given fiscal week.
    Any kind of help would be greatly appreciable.
    Thanks,
    Prince

    davide gislon wrote:
    The following query evaluate the begin of a fisical week, where &year and &week are respectively the year and week you want to calculate.
    To evaluate the end of the week you have to add 6.
    Note that my database is set to have monday as day number 1 of the week, and sunday as day number 7; if your database settings are different you should modify the query accordingly.
    SELECT CASE TO_CHAR(TO_DATE('&year','YYYY'),'D')
    WHEN '1' THEN TO_DATE('&year','YYYY')+((&week-1)*7)
    WHEN '2' THEN TO_DATE('&year','YYYY')+((&week-1)*7-1)
    WHEN '3' THEN TO_DATE('&year','YYYY')+((&week-1)*7-2)
    WHEN '4' THEN TO_DATE('&year','YYYY')+((&week-1)*7-3)
    WHEN '5' THEN TO_DATE('&year','YYYY')+((&week-1)*7+3)
    WHEN '6' THEN TO_DATE('&year','YYYY')+((&week-1)*7+2)
    WHEN '7' THEN TO_DATE('&year','YYYY')+((&week-1)*7+1)
    END BEGIN_FISICAL_WEEK
    FROM DUAL
    Hope this is helpful.
    Cheers,
    Davide
    Edited by: davide gislon on 08-Jan-2009 07:19Your query does nothing you say it does. TO_DATE('&year','YYYY') returns first day of the current month for year &year. And the only reason it returns January 1, &year is that we are currently in January:
    SQL> select TO_DATE('&year','YYYY') from dual
      2  /
    Enter value for year: 2005
    old   1: select TO_DATE('&year','YYYY') from dual
    new   1: select TO_DATE('2005','YYYY') from dual
    TO_DATE('
    01-JAN-05
    SQL> As soon as we roll into February:
    SQL> alter system set fixed_date = '2009-2-1' scope=memory
      2  /
    System altered.
    SQL> select sysdate from dual
      2  /
    SYSDATE
    01-FEB-09
    SQL> select TO_DATE('&year','YYYY') from dual
      2  /
    Enter value for year: 2005
    old   1: select TO_DATE('&year','YYYY') from dual
    new   1: select TO_DATE('2005','YYYY') from dual
    TO_DATE('
    01-FEB-05
    SQL> alter system set fixed_date = NONE scope=both
      2  /
    System altered.
    SQL> select sysdate from dual
      2  /
    SYSDATE
    08-JAN-09
    SQL> But even if TO_DATE('&year','YYYY') would always return January 1, &year, or you would fix it to TO_DATE('0101&year','MMDDYYYY') it still would be wrong. ISO week rules are
    If January 1 falls on a Friday, Saturday, or Sunday, then the week including January 1 is the last week of the previous year, because most of the days in the week belong to the previous year.
    If January 1 falls on a Monday, Tuesday, Wednesday, or Thursday, then the week is the first week of the new year, because most of the days in the week belong to the new year.Therefore, next year:
    SQL> DEFINE YEAR=2010
    SQL> DEFINE WEEK=1
    SQL> ALTER SESSION SET NLS_TERRITORY=GERMANY -- enforce Monday as first day of the week
      2  /
    Session altered.
    SQL> SET VERIFY OFF
    SQL> SELECT CASE TO_CHAR(TO_DATE('0101&&year','MMDDYYYY'),'D')
      2  WHEN '1' THEN TO_DATE('0101&&year','MMDDYYYY')+((&&week-1)*7)
      3  WHEN '2' THEN TO_DATE('0101&&year','MMDDYYYY')+((&&week-1)*7-1)
      4  WHEN '3' THEN TO_DATE('0101&&year','MMDDYYYY')+((&&week-1)*7-2)
      5  WHEN '4' THEN TO_DATE('0101&&year','MMDDYYYY')+((&&week-1)*7-3)
      6  WHEN '5' THEN TO_DATE('0101&&year','MMDDYYYY')+((&&week-1)*7+3)
      7  WHEN '6' THEN TO_DATE('0101&&year','MMDDYYYY')+((&&week-1)*7+2)
      8  WHEN '7' THEN TO_DATE('0101&&year','MMDDYYYY')+((&&week-1)*7+1)
      9  END BEGIN_FISICAL_WEEK
    10  FROM DUAL
    11  /
    BEGIN_FI
    04.01.10
    SQL> SELECT TRUNC(TO_DATE('0101&&year','MMDDYYYY'),'IW') FROM DUAL
      2  /
    TRUNC(TO
    28.12.09
    SQL> 2 user10772980:
    Use:
    SELECT  TRUNC(TO_DATE('0101&&year','MMDDYYYY'),'IW') + (&&week-1)*7 FISCAL_YEAR_&&YEAR._WEEK_&&WEEK
      FROM  DUAL
    FISCAL_YEAR_2010_WEEK_1
    28.12.09
    SQL> SY.

  • How can I display the first and last name using a paramater as employee ID?

    Hi SAP,
    I have a parameter that is called {? Employee ID}.   What I want to do is display the first and last name based on the employee ID value entered in {? Employee ID} in the page header of the report.  Right now, when I put the following formula in the page header only some pages get the right result while other pages dont....
    if table.employeeid = {? Employee ID} then
    table.firstname" "table.lastname
    It appears as though if the first record in the details section on the beginning of each page happens to be the employee under {? Employee ID} then it prints it correctly, if it isn't I get a null value in the page header.
    Anyone have any ideas?
    Z

    Hi Try this,
    Whileprintingrecords;
    if ={?EmpID} then
    Also check the option "Default values for null" in the formula editor.
    Regards,
    Vinay

  • Get First and last day of Month..

    Hi Friends,
    I am trying to fetch First and Last day of a month and would like to implement that in the following code:
    SELECT COALESCE(Date_A, Date_B, Date_C)
    FROM dual
    Here Date A and B are in Format of MM DD YYYY (March 14, 2008)
    and Date C is like MM YYYY (March 2008)
    How can I get the Date_C as March 1, 2008 OR March 31, 2008 format if Date A and B are NULL ?
    Thanks!
    Edited by: user11095386 on Apr 23, 2009 10:45 AM

    Hi,
    In my earlier message, I thought that you were starting with strings like '03 12 2009' and that you wanted to display them as 'March 12 2009'. If what you have is just the reverse, then just reverse the format strings in my first message. Add a comma, if you want one, in the appropriate format string.
    I believe this is what you want:
    COALESCE ( TO_CHAR ( TO_DATE ( Date_A, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( TO_DATE ( Date_B, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( TO_DATE ( Date_C, 'fmMonth YYYY'),    'MM DD YYYY')
             )Notice how, on the 3rd line, TO_DATE is called without DD in the format string:
    TO_DATE ( Date_C, 'fmMonth YYYY')When you do this, the day defaults to the 1st of the month, so this is all you have to do to convert the VARCHAR2 'March 2009' to the DATE 01-Mar-2009.
    If you want the last day of the month, not the first, when Date_C is chosen, then use LAST_DAY:
    COALESCE ( TO_CHAR ( TO_DATE ( Date_A, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( TO_DATE ( Date_B, 'fmMonth DD YYYY'), 'MM DD YYYY')
             , TO_CHAR ( LAST_DAY ( TO_DATE ( Date_C
                                              , 'fmMonth YYYY'
                 , 'MM DD YYYY'
             )

  • Getting first and last day of week

    Dear all .
    Is there any funcion module which gives first and last day of the current week .
    Eg . todays day is 15.11.2006
    start date of week : 13.11.2006
    end date of week : 19.11.2006
    in the same way I want how many days are there in month .
    Eg : for Nov month :
             30 days .
          for dec month 31 days .
    Thank you in advance

    Use FM GET_WEEK_INFO_BASED_ON_DATE
    Import parameters               Value    
    DATE                            15.11.2006
                                                                                    Export parameters               Value    
    WEEK                            200646   
    MONDAY                          13.11.2006
    SUNDAY                          19.11.2006
    Use FM HR_E_NUM_OF_DAYS_OF_MONTH
    Import parameters               Value     
    P_FECHA                         15.11.2006                                                                               
    Export parameters               Value     
    NUMBER_OF_DAYS                    30        
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

Maybe you are looking for