Contract Value Calulation based on Start & End Time

Hello Friends,
My client is into Vessel Hiring & the Vessels are given on hire for fixed period (with clear start & end dates & time). 
For the above scenario we have a Periodic Contract to BIlling cycle which generates Invoices for every month. while creating the Contract we enter Basic Price as Day-Rate (Calculation type in Condition - O - Quantity - Daily Prices)
Thus the system automatically calculates the Basic Price Condition value based on number of days in any month.
Now the issue here is the client wants system to take Start & End time into consideration. In the Contract header - Contract Data tab we have developed two additional fields (Z-Fields) that capture start time & end time for every Contract.
So, we want system to calculate the Basic Price Condition value based on the Contract start date + Contract Start time.
Example :
1. Contract start date - 25.03.2010 & Start time = 12:00 noon. Basic Price = Rs. 10,000 per day.
2. In the Monthly Invoice, system would calcualte the Basic Price as Rs. 70,000 (7 days i.e. 25.03.2010 to 31.03.2010)
But here the client wants system to consider Start Time & determine Value as Rs. 65,000 as the Contract started on 12:00 noon on 25.03.2010.
Can anyone tell me how to achieve this?
I guess we should develop some routine (in VOFM) & apply it in Pricing Procedures.
But can some expert guide me on the logic of the routine & exactly where to apply the same in Pricing Procedure...
Thanks,
Jignesh Mehta

Hi,
Develop routine and make combination
if start date is xyz  and start ime is less that 12 then price is so on so
if date start date is xyz and satrt time is more that 12 then price is so on so.
Hello I am not ABAPer, still tried to suggest you,don't mind for my suggestion
Kapil

Similar Messages

  • Calculate report execution start & end time (Not use SE30)

    Dear all Abaper,
    I am writing a report which recorded the execution start & end time
    The following is a part of my coding.
    Data : GV_ST_TIME LIKE SY-UZEIT.  "START TIME
    Data : GV_EN_TIME LIKE SY-UZEIT.  "END TIME
    START-OF-SELECTION.
    GV_ST_TIME = SY-UZEIT.
    END-OF-SELECTION.
    GV_EN_TIME = SY-UZEIT.
    WRITE: / 'START TIME:', GV_ST_TIME.
    WRITE: / 'END TIME:', GV_EN_TIME.
    Suppose the report has executed 5 second
    from time : 00:00:00 to 00:00:05.
    But in the output screen, the start time and end time always display the same time(00:00:05) if following the above coding.
    However, if in the debugging mode, the start time and
    end time will be different and really counted.
    Does anyone know the reason and how to fix it if I don't wanna use SE30?
    Thx in advance~

    Hi boris,
    1. minor problem
    2. we have to REFRESH the time value
    3. using GET TIME.
       (Then it will work correctly)
    4.
    START-OF-SELECTION.
    <b>GET TIME.</b>
    GV_ST_TIME = SY-UZEIT.
    END-OF-SELECTION.
    <b>GET TIME.</b>
    GV_EN_TIME = SY-UZEIT.
    regards,
    amit m.

  • Logging start & end time of map execution

    Hello,
    I want to log start & end time of execution of my map (OWB 11g), so I've created a table for this purpose and I used it in every map that I want to log time, twice; First for logging start time, and second for end time.
    I pass a constant with SYSTIMESTAMP value through my log table and also name of my map. but the problem is, both of my records' time (start & end) are very near to each other (difference is in milliseconds!) however my map takes time for more than 2 minutes! So, I've changed my map Target Load Order to: [log table for start time] + [Main tables of my map] + [log table for end time]. I've set my map Use Target Load Ordering option True, too.
    Why it doesn't work? Is there any better solution for logging every map execution time in a table, or not?
    Please help me ...
    Thanks.

    To do that, I have created a view that lists all processes that are running or finished. The view contains fields:
    process_name
    process_type (plsqlmap, plsqlprocedure, processflow, etc)
    run_status (success, error, etc)
    start_time
    end_time
    elapse_time
    inserted
    updated
    deleted
    merged
    You could insert into your log table using select x from this view after every map, or, how I do it, is to insert into log table after every process flow. That is, after my process flow is complete I then select all of the details for the maps of the process flow and insert those details into my log table.
    Here is the SQL for my view. This is for 10.2.0.3. For
    CREATE OR REPLACE FORCE VIEW BATCH_STATUS_LOG_REP_V
    AS
    (SELECT PROCESS_NAME,
    PROCESS_TYPE_SYMBOL,
    (CASE
    WHEN RUN_STATUS_SYMBOL IN ('COMPLETE_OK', 'COMPLETE') THEN 'SUCCESS'
    WHEN RUN_STATUS_SYMBOL IN ('COMPLETE_FAILURE') THEN 'ERROR'
    WHEN RUN_STATUS_SYMBOL IN ('COMPLETE_OK_WITH_WARNINGS') THEN 'WARNINGS'
    ELSE 'NA'
    END
    ) RUN_STATUS_SYMBOL,
    START_TIME,
    END_TIME,
    ELAPSE_TIME,
    NUMBER_RECORDS_INSERTED,
    NUMBER_RECORDS_UPDATED,
    NUMBER_RECORDS_DELETED,
    NUMBER_RECORDS_MERGED
    FROM OWB_RUN.RAB_RT_EXEC_PROC_RUN_COUNTS
    WHERE TRUNC (START_TIME) >= TRUNC (SYSDATE) - 3)
    ORDER BY START_TIME DESC;

  • Adjusting Start / End Time on Apple TV

    Hello everyone,
    In iTunes, we have the ability to adjust the Start / End time of a song or video by right-clicking the media > Get Info > Options. Then when we playback the media the next time, it will use the settings to determine how far into the media it should start and stop. Is there any way for these settings to get passed through to the AppleTV?
    - Thanks

    I would also like an answer to this! The original Apple TV applied the custom Start and Stop times, however the new one ignores them and plays the whole video file! Very annoying! Any solutions out there?

  • Room Booking - unavailable if start / end time is :15 or :45

    Hi all,
    First apologies if this is in the wrong forum.
    Due to the way our school day runs, we need to be able to book rooms from :15 and :45 (e.g. 10.15 to 11.15, 11.45 to 12.45).
    You can change the start / end time manually but if you do the rooms do not show as available and the suggested times only work for :00 or :30.
    Is there a way to change it so the rooms can be booked for a wider variety of times?
    I've googled this endlessly and the only thing I can really find that might be applicable is changing the timeincrement but I think that only applies to the calendar view and the start / end time showing 15 minute increments instead of 30 as default but
    does not have any impact on room availability.
    Hopefully someone can help.
    Thanks a lot

    Hi Chris,
    It is by design and we cannot change the time slot displaying. Your understanding would beappreciated.
    Besided, it is recommended to add an End date for a recurrent meeting.
    Refer to:
    http://office.microsoft.com/en-us/outlook/HA011276781033.aspx
    http://office.microsoft.com/en-us/outlook-help/best-practices-for-outlook-2007-HA010371521.aspx
    Fiona Liao
    TechNet Community Support

  • Can't view time or change start/end time of clip

    Using imovie '09 and have several events that I imported from .mov files. imovie displays the total length of the clip but when I run the cursor over the clip in the browser the little timer window that pops up says "Created:" followed by the date/time that it was originally imported from a camera into .mov format. Every other file that I've imported directly into imovie from a camera gives me the running time of the clip as I run the cursor through the clip. I've tried to adjust the clip's date/time but it won't let me create a start/end time - regardless of what date/time I put in it assigns the same date/time to the start and end of the entire clip and doesn't show any running time so I can't mark/note specific times in the clip that I want to later select. Not sure why this is happening with these specific clips that were imported from existing .mov files - possibly because these clips were originally imported onto a pc and converted into .mov files, then imported into imovie after that? I still have the original tapes so I could import to imovie from scratch but would prefer not have to to do that as this makes up 20 hours of vid. Any solutions?

    You might get a better response to your question over in the iLife > iMovie community. This forum is iMovie for iOS so most visitors here are working on a different platform, and while some may know about both products, many won't, me included.
    tt2

  • ITunes Match on Apple TV ignores my custom start/end times on tracks

    Some of my tracks in iTunes have custom start/end times set (to cut out skits and stuff). These set start/end times are respected by all my iTunes Match devices (iPod and desktop iTunes) except my Apple TV.

    Hey guys,
    I ended up here for having the same issue. iTunes Match playing the song for 20 seconds or so on Apple TV and then giving me error message saying iTunes is currently unavailable. Try again later. No trouble shooting worked for me as it didn't for you either. After using my apple tv for several months and experiencing occasional glitches that are somewhat similar to this probelm I boiled it down to 2 possible reasons. 1) some kind of bug that is fixable with latest firmwares Apple releases. 2) problems with Apple's servers. My best guess for this particular problem is the server problems because everything was playing fine until yesterday (Saturday) and the current frmware was released few weeks ago. It is strangely coincedental that most glitches seem to appear over the weekends. About couple of months ago I tried to watch an episode from a show and it would tell me the show would be available to watch in 24 hours. The loading was painfully slow. The problem only lasted a weekend. I wouldn't be surprised if the problem disappears tomorrow although I might be wrong.

  • Moved media files relink with different start/end times

    Hi all,
    I'm really stuck here so any help would be greatly appreciated.
      I've got a number of FCP projects which use media from one drive.
    The drive containing this media is soon to be in use by another project so I have done a direct copy of all the media onto another drive using finder. Literally a drag and drop copy of the files.
    However, when I re-open the project and relink to the 'new' files on the new drive I am getting multiple "different start/end times" errors causing all the edited clips to play from the wrong times.
    How can I stop it changing the time code when doing this?
    Thanks
    YD

    On closer inspection, this only seems to be affecting BWavs, if that helps at all?

  • Start/end times of songs

    When listening to and/or shuffling music on my iPod, the songs randomly start in the middle and not in the beinning. Note that iTunes (7.5) automatically disables (unchecks) the start/end times of songs in their respective dialog boxes after "ok" is selected.

    Dave,
    You're stuck.
    Unless you want to duplicate the song and then make your adjustments.
    If it were me, I'd put the track I'm interested into GarageBand and cutting it down to just the bit I want and the send that version back to iTunes.
    Matt

  • Start/End times in Custom Formula - OTL

    Hi,
    Is it possible to access the start,end times of a particular day in a custom OTL Fast-Formula ?
    Can someone point me to any links for writing custom Fast-formula.
    The [user/Impl Guide|http://download.oracle.com/docs/cd/B53825_07/current/acrobat/121hxtig.pdf] has very limited information on OTL custom Formula.
    TIA,
    VB

    VB,
    Look at the seeded time entry rule FF and that will provide you with a sample code which provides access to all the attributes of timecard.
    --Shiv                                                                                                                                                                                                                                                                                                                       

  • Auto populate system time for start/end times in OTL Time card

    Hi,
    Is there an option of defaulting the time-card entry/exit times to system-time.
    Say on the time-card a press of a button will default the start-time and end-time(and have these as read-only).
    Is this possible in OTL with any preferences ?
    The client wants to do-away with the time-clocks all together. If such a feature is available in OTL.
    TIA,
    VB
    Edited by: VB on Jun 13, 2011 5:39 PM

    VB,
    You can't add logic in layouts to auto populate the time based on clock. You will have to depend on a custom process to do it.
    Also least time period of entry is day, not week. Look at the preferences setup of your test employee.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Calendar View: Unable filter Recurring Event by Start/End Time and Group by Recurring Event View

    Hi All,
    I have just found several issues with Calendar View from WSS 3.0:
    Unable to filter by [Start Time] and [End Time]
    I am not sure why these 2 columns doesn't appear in the Filtering column in the View Settings. The workaround found in the internet is to create calculated column for Start Time and and End Time. However, it doesn't work for Recurring Event, the calculated column will show only first recurring event Start Time.
    Unable to use "Group By"
    When I create new view in Calendar using format: "Standard View, with Expanding Recurring Events", there is no option to specify "Group By". Anyone knows how to show all recurring event in List view and grouped by Start Time (or any other column).
    Thank you and apprecate for any idea.

    Hello,
    I got this from a colleague of mine so I can't take credit for it but here might be a possible workaround:
    1. Create two new Columns called Start Filter and End Filter.  Make these columns Calculated Columns with formulas of [Start Time] and [End Time] respectively.  The columns should be of the Date and Time\Date and Time type and should not be displayed on the Default View.
    2. Click Advanced Settings and choose Yes to the question "Allow management of Content Types" in the Content Types section.  Click OK.
    3. Click on the Event Content Type.  Open the two columns created in step 1 and select "hidden" for both of them.  Click OK.
    4. Back at the list settings create a new view or edit an existing view.  When you get to the filter section choose "Show items only when the following is true" and select the following:
    Start Filter
    is less than or equal to
    [Today]
    And
    End Filter
    is greater than or equal to
    [Today]
    5. Click OK to save the view.
    6. Open the List view web part that is displaying the recently changed calendar and change the view to the newly created or newly edited view.  Click Apply, OK.
    -Aseem Nayar
    This posting is provided "AS IS" with no warranties, and confers no rights

  • Start/End Time zone question

    Good afternoon:
    This I understand: If I have time zone support enabled in iCal and I have an event in the Chicago at 10:00 am, I enter it in as 10:00 am and mark the time zone as CST. That way, when my Treo and I are in Chicago, the event appears on my Treo at 10 as it should and not at 9. (EST, where I live.)
    When I travel, I use my calendar to enter the flight times.
    For example, I might enter an event like this. "USAir Flt. 235, PHL to LAX" I would use 11:00 am as the start time and set the end time as 2:30. The 2:30 is PST and not EST.
    Is there a way to show that an event can start and end in different time zones?

    Good Afternoon:
    Yes, I can enter a travel time as a beginning and and end seperately, but that doesn't allow me to see the duration as occupied.
    I know I must sound like a loon, but I like that if you designate an event as taking two hours, those two hours are "marked or occupied" on my calendar and scheduling something else during the occupied period is easily seen as a conflict. It may seem odd, and I guess it is, that I might accidently schedule an event at the same time I was going to be in the air, but it is really a matter of wanting all the events in iCal to be treated the same way....as events/activities/meetings that consume time instead of a singularities that take place in an instant.
    Does that make sense?
    USAir Flt. 235, PHL to LAX is a six hour event...not something that happens only at the instant of 11:00 am. I would like to be able to see it as that and have it make sense.
    Perhaps I should turn time zone support off, then it wouldn't matter, it just seems like ti should.

  • ITunes start end time to apple tv?????

    I made start and end time in iTunes for video files, but it don't work in atv!
    What should I do?
    Same question is here: http://discussions.apple.com/thread.jspa?threadID=2623755
    Message was edited by: tinnih
    Message was edited by: tinnih

    Go here and report it:
    http://www.apple.com/feedback/appletv.html
    Another feature that worked on AppleTV 1 that doesn't on AppleTV 2.
    I used it for music videos to cut the annoying 'film like' dialogue before and after many music vids these days, and to just get the song.
    AC

  • Is there a way to set/change default event start/end time?

    Is there a way to set or change the default start and end time for events? 

    This question/problem applies to OS X Mavericks as well. I wish I could change it.

Maybe you are looking for

  • How to Hide Form Field If the data null

    Hi All, I have an issue in the RTF, i am working in XMLP 5.6.2 Desktop Edition. I am developing template for Dunning Letter report. I have four fields in the footer like collector name,mail id, tele number and then fax. Here some collectors may not h

  • Firefox updater unable to update with message saying ensure that I do ot have more than one version of firefox running

    As I start up firefox, I'm prompted to update but it fails saying that it cannot update and that I should make sure that there is not more than one version of firefox running

  • ORA-01403: no data found ---- FRM-40735: WHEN-VALIDATE-ITEM trigger raised

    Scenario: I have one Master Detail form. after entering values in master Form, Navigate to Detail form, there I have to enter more that 5000 lines, it's very tough for user to enter huge amount of data. Workaround: Give one button on Master form and

  • Safari won't open in ml

    Crash report: Process:     Safari [266] Path:        /Applications/Safari.app/Contents/MacOS/Safari Identifier:  com.apple.Safari Version:     5.1.7 (7534.57.4) Build Info:  WebBrowser-7534057004000000~7 Code Type:   X86-64 (Native) Parent Process: 

  • Exporting video through quicktime to iPod

    When I try to export a home video to my iPod using quicktime, it pops up a box asking me to purchase quicktime which I already am using. Under "file" I open the file and then when I chose "export" is when it pops up this box. Can someone please advis