Billing plan value with reference to start & End date

Hi Experts,
Request your earliest support for the achieving the below requirement.
Scenario:We have Billing plan set up for the all contracts - valid for one year.Monthly rental amount for each contract item is maintained as base price for the contract. When the billing plans starts in the middle of the month then, the billing value need to be calculated only for the relevant no of days in 'settlement' and 'To' date of billing plan. How to achieve this?     
Net value of the contract item
Net value of the item   102.00  GBP     
Tax  for the item         15.30          
Net value of billing plan for the contract item                                                                                .
Item Net value  408.00                GBP                                                         
Billing plan and contract validity details for contract item                                                                               
Billing Plan Type - PM- Monthly in Advance                                    51- Monthly on First of                                                   
  Contract Start date       07/15/2009 (02)-Contract Start Date        Billing plan Dates from  07/16/2009  02                                    
  Contract plan End date 10/14/2009 (09)-Contract End Date          Billing plan Dates until 10/14/2009 09                                    
  Horizon -                                                                                Cal-Id - 01                                                                               
Dates                                                                               
Settlement       To                      Billing date         Bill.value    Crcy  Block  BillSt  Man.  Cor  PayT  DCat  Billing Ty  Price cal           
   07/16/2009      07/31/2009        08/01/2009         102.00       GBP   FA     A                                   01      ZC           01 -
> This needs to calculated upon net value for 16 days only   
   08/01/2009      08/31/2009    09/01/2009              102.00       GBP   FA      A                                 01      ZC            01--->           between 07/16/2009 to 07/31/2009=102/31*16 = 52.65
   09/01/2009      09/30/2009   10/01/2009               102.00       GBP   FA      A                               01      ZC            01                  
   10/01/2009      10/14/2009    11/01/2009              102.00       GBP   FA      A                               01      ZC            01                                                                               
Please suggest if this can be achieved through Billing plan configuration or any user exit that can be used to resolve the issue.
Thanks,
Priyabrata

as far as I know there is NO such standard report.
you would try to build sap query based on VBAK/VBAP using VBFA checking LIKP/LIPS and VBRK/VBRP...
but you may request abaper for more professional report with MKPF/MSEG and BKPF/BSEG

Similar Messages

  • 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

  • Billing plan values

    30.05.2008
    Hi friends,
    I have created a credit memo request with reference to a billing document. In the copying control I have selected 'D'  Copy pricing elements unchanged, but i find the billing plan values in the order created is different than in the billing document. Any clues please.
    Regards,
    udaynath.

    Hi,
    Check if you have any subroutines VOFM (no standard,ie: client development) in your pricing procedure.
    I hope this helps you,
    Regards,
    Eduardo
    Edited by: Eduardo Hinojosa on May 30, 2008 3:43 PM
    Edited by: Eduardo Hinojosa on May 30, 2008 3:45 PM

  • Billing Plan values in the sales order

    Hi,
    After configuring the billing plan for processing in the order i am able to see the billing vlaues as per the values given in the billing plan type when I run the billing due list.  Where as when I tried to create the billing document from the due list it is selecting the total value of the item. It is not copying the Billing plan value instead copying the total value of the item.
    can any one help me
    regards
    AVS

    Hi, Rajesh,
    My issue is with the billing plan values are not getting copied into the F1 invoice.  But when I run the order related billing due list I am able to see all the billing line items with values mentioned in the billing plan.
    regards
    AVS

  • KE28 with" Copy Characteristic Value with Reference Data" doesn't work

    Hi experts:
    We need to make a top-down setting the processing option 'Copy Characteristic Value with Reference Data'. We have the following source data:
    Customer Business Unit  Value field.
    6        #              100
    On the other hand, we have plan data as reference data:
    Customer Business Unit  Value field.
           A              40
           C              40
           D              20
    We need to run a top-down to distribute from client to Business Unit but copying client of reference data. Then, we set 'Copy Characteristic Value with Reference Data' and, in the selection criteria we set '*' for customer.
    After running, the result is that the system can find 1 sender and 3 receivers. It is exactly what we are expecting. However, program doesn't make individual items and anything is distributed.
    We have found notes 1086282 and 1273924 but the result is the same after implementing these notes.
    Thanks in advance for your help.
    Best regards
    Jose

    There are some restrictions on the XML Schema format that you can report off of in Crystal Reports.
    If you're using the ODBC XML driver, you may find this of relevance:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xml_data_sources.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xml_data_sources.pdf]
    and if you're using the native XML driver, the following gives a guide for the accepted formats:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_native_xml_driver.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_native_xml_driver.pdf]
    Sincerely,
    Ted Ueda

  • Billing Plan Values different in VA02 & VA03

    Hi All,
    We have a case where in the billing plan values are different for the same sales order when seen in change mode (VA02) & display mode (VA03). can you please let me know what and where the problem can be?
    Regards
    Sujay

    Hi, Rajesh,
    My issue is with the billing plan values are not getting copied into the F1 invoice.  But when I run the order related billing due list I am able to see all the billing line items with values mentioned in the billing plan.
    regards
    AVS

  • Missing billing plan value in header of contract

    We are using billing plan, but we don't see the value in the header for the contract.
    Though we can see the correct values of the billing plan on item level. Are there any customizing steps we have overlooked?
    Please take a look at picture
    <a href="http://img144.imageshack.us/img144/1849/missingbillingplanxd8.jpg">Missing billing plan value</a>

    Hi,
    We can maintain plans at header level and item level.
    If you enter billing dates/values at item level, system will not copy values to header.
    If you enter billing dates/values at header level, it will copy values to item.
    Eg.
    1) Item level billing plan
    You have 2 items in one sales order, and maintained different  billing dates and values for each item.System will not copy values to header.
    For same scenerio :
    2) Header level billing plan
         If you maintain blilling dates at header level, system will automatically distrubute dates and values  for both the line items.
    Best Regards,
    Chandrasekhar.S

  • Need help in query to display dates as start, end dates

    Hi,
    I am trying the following output from the below table structure, data
    StartDAte Endate Reason          duration
    12-02-09 12:00:00 12-02-09 13:10:20 planned activity 1:10:20
    01-04-09 08:30:34 01-04-09 15:00:20 planned activity 6:30:34
    12-04-09 17:10:45 12-04-09 17:11:04 unplanned activity 0.10
    23-05-09 22:00:11 23:05-09 22:15:09 planned activity 0.15
    Mdate Reason omode host
    12-02-09 12:00:00 planned activity st 366
    12-02-09 13:10:20 planned activity ed 366
    01-04-09 08:30:34 planned activity st 366
    01-04-09 15:00:20 planned activity ed 366
    12-04-09 17:10:45 unplanned activity st 366
    12-04-09 17:11:04 unplanned activity ed 366
    23-05-09 22:00:11 planned activity st 366
    23:05-09 22:15:09 planned activity ed 366
    i tried with individual query but not able to get the output in combined way of start, end dates together with calculation of time difference, i tried using case options but not successful in resolve it.
    select to_char(mdate,'dd-mm-yyyyy hh24:mi:ss')startdate, reason
    from date_md where omode like 'st'
    order by o_char(mdate,'dd-mm-yyyyy hh24:mi:ss')startdate;
    select to_char(mdate,'dd-mm-yyyyy hh24:mi:ss')enddate, reason
    from date_md where omode like 'ed'
    order by o_char(mdate,'dd-mm-yyyyy hh24:mi:ss')enddate;
    any suggestions on type of query should be used is welcomed.

    Or maybe
    SQL>  WITH t AS (SELECT TO_DATE ('12-02-09 12:00:00',
                               'DD-MM-YY HH24:MI:SS')
                       event_date,
                      'planned activity' activity,
                      'st' start_end,
                      366 HOST
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('12-02-09 13:10:20',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'ed',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('01-04-09 08:30:34',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'st',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('01-04-09 15:00:20',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'ed',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('12-04-09 17:10:45',
                               'DD-MM-YY HH24:MI:SS'),
                      'unplanned activity',
                      'st',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('12-04-09 17:11:04',
                               'DD-MM-YY HH24:MI:SS'),
                      'unplanned activity',
                      'ed',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('23-05-09 22:00:11',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'st',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('23-05-09 22:15:09',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'ed',
                      366
               FROM DUAL)
    SELECT MIN (event_date) startdate,
           MAX (event_date) enddate,
           MAX (activity) reason,
           NUMTODSINTERVAL (MAX (event_date) - MIN (event_date),
                            'day')
            duration
    FROM t
    GROUP BY TRUNC (event_date)
    STARTDATE             ENDDATE               REASON             DURATION                                         
    23.05.2009 22:00:11   23.05.2009 22:15:09   planned activity   +00 00:14:57.999999                              
    12.02.2009 12:00:00   12.02.2009 13:10:20   planned activity   +00 01:10:19.999999                              
    01.04.2009 08:30:34   01.04.2009 15:00:20   planned activity   +00 06:29:45.999999                              
    12.04.2009 17:10:45   12.04.2009 17:11:04   unplanned activity +00 00:00:18.999999                              
    4 rows selected.

  • How do you use the "Item Containing Start/End Date" in a Calendar?

    Hi
    I want to do a calendar where the days shown will be conditional to a certain interval. Now I though I could achieve that using the Item Containing Start Date of a calendar. But it doesn't seem to work. In the help it says :
    Enter an item in the application which holds the start date of the calendar. The format of the date in this item must be YYYYMMDD.
    This is what I did here
    http://apex.oracle.com/pls/otn/f?p=34530:1::::::
    I have 3 fields. 2 for the Start Date and End Date and 1 for the "Date Item" parameter. Only the latter has an effect on the calendar display, the calendar only displays the month of the "Date Item" (in monthly mode).
    Wether or not I check "Begin at Start of Interval", it doesn't affect the way those fields are affecting the Calendar.
    So, how do we use that "Item Containing Start/End Date" parameter?

    Hello,
    does yout Script work when you begin with ?:
    Start-Process powershell -Verb runAs
    Best regards,
    Stefan
    German Orchestrator Portal ,
    My blog in English

  • Start/End dates for cProjects

    Hi,
    While creating a Project in PS, if the Start/ End date of the project is a weekend or holiday, the start of the cProject shifts to a working day u2013 is there a config to set this to take the actual date (working or holiday). Waiting for your reply @ earliest.
    Thanks & Regards,
    Gaurav

    Hi Gaurav,
    this shifting of the dates is likely a "feature" of the scheduling process. As soon as a calendar has been maintained for the objects the weekends are taken into account and the dates determined for the object being subject of scheduling and it is enforced that the dates are working days.
    To answer your question, if you maintained a calendar without weekends and public holidays - or no calendar at all - this shift won't occur.
    Hoping this helps...
    Best regards,
    Thomas

  • Report for PGI & billing value with reference to SO Line item

    Dear all,
    Please guide me whether there is any standard report available to check the PGI value and billing at a time with reference to a sales order (line item).
    Thanks & regards.
    Pranab

    as far as I know there is NO such standard report.
    you would try to build sap query based on VBAK/VBAP using VBFA checking LIKP/LIPS and VBRK/VBRP...
    but you may request abaper for more professional report with MKPF/MSEG and BKPF/BSEG

  • Not able to update Start/End Date with updateUser API

    Hello all,
    I am trying to update start and end date using the updateUser API, but the dates are not being set. I know the updateUser call works since I tested by changing the user's first name and it worked fine (verified through OIM web app). Below is the code that I am using to update as well as the sample values I am using. No exceptions are thrown either. I am clueless of what the problem can be. Also, one of my client's request is to also display the time of when those values where updated (through a custom web app that I am building). Is that posible? Before I was getting the time on where the call to userUpdate was made and appending that to the values I was setting in the hash table, but started using 0s for the time since that's what I read on a thread on this forum (Re: (OIM) Timestamp format must be yyyy-mm-dd.....
    Sample Values
    startDate = 2010-11-08
    endDate = 2010-12-09
    String startDateStr = startDate.toString() + " 00:00:00.000";
    String endDateStr = endDate.toString() + " 00:00:00.000";
    printout of the above strings
    startDateStr = 2010-11-08 00:00:00.000
    endDateStr = 2010-12-09 00:00:00.000
    Hashtable<String,String> attrValues = new Hashtable<String,String>();
    attrValues.put("Users.Start Date", activateDateStr);
    attrValues.put("Users.End Date", inactivateDateStr);
    usrOps.updateUser(rsUser, attrValues);
    Please help me out I've been stuck on this issue for too long now.
    Thank you!
    -I
    Edited by: cri_cri_99 on Jun 23, 2009 12:46 PM

    It is working fine for me.
    Map strDate = new HashMap();
    strDate.put("Users.Start Date", "*2009-06-24 12:01:56.000000000*");
    moUserUtility.updateUser(userResultSet, strDate);
    It will show you in DB as *24-JUN-09*. I don't understand what you are asking more in your thread.
    But updateUser API is working with this format. If you are getting time from some application, convert it to this format and run.
    If you need any help, let me know.
    Edited by: Dost

  • Start/End Date parameters that check day of week and using to set default values.

    Hi,
    I've got a report that presents data between a start and an end date.
    I want it to check if it's a monday and present data from the previous week, otherwise present data from this week.
    For the "Default" value of parameter @startdate, I've got the following expression:
    =iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-8,Today()),DATEADD("d", 1 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
    for @enddate I've got default value:
    =iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-1,Today()),DATEADD("d", 7 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
    but it doesn't appear to be working, I've checked 
    WeekdayName(DatePart("w", Today))
    as an expression in a text box and it evaluates to Monday but my IIF statement above always uses the DATEADD line therefore not returning "Monday" as the value (even though it is).
    Is it a problem that the parameters are of Data/Time data type and I'm trying to evaluate as type text?
    Any help would be appreciated.
    Thanks :)

    StartDate
    =IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)-1,CDate("01/01/1900")),DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900")))
    EndDate
    =IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900"))),DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)+1,CDate("01/01/1900"))))
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    Hi, 
    This one works but it results to be between monday and saturday, how to make it between sunday and saturday?

  • Planning attributes in 11.1.2.2 and start/end dates in a cell

    Hi. In Planning 11.1.2.2., can I make use of attribute dimensions as I would in a BSO Essbase cube?
    Also can I enter a start date and an end date entry in two different account members (e.g., start_date and end_date)?
    Thanks

    Hi,
    Yes, I believe you can use it.
    And you can change the Account member Data type as Date. Then use these Accounts in the Planning Web Form. Form will give you facility to select the Date...
    VB..

  • Script is throwing error - Comparing two dates (start/end dates)

    I do have two fields (dateRequested - start date & dateNeeded - end
    date) and I need to basically test to make sure that End date is not
    before the Start date. Also, I want to make sure if they are same
    date, they got this message " Contact Abdi".
    I am getting this error message: "Syntax error near token "=" Line 7
    Column 32.
    ========================================================================
    if(DateTimeNeeded.rawValue <> null and DateTimeRequested.rawValue <> null)
    then if(DateTimeNeeded.rawValue < DateTimeRequested.rawValue) then
    xfa.host.messageBox("It cannot be before the Start date!", "Date Checker", 3)
    $.rawValue = ""
    xfa.host.setFocus (xfa.form.form1.DateTimeNeeded)
    endif
    //This is where I think is the problem..
    if (DateTimeNeeded.rawValue = DateTimeRequested.rawValue ) then
    xfa.host.messageBox ("Please contact Abdi since you're requesting same day")
    $.rawValue = ""
    xfa.host.setFocus(xfa.form.form1.DateTimeNeeded)
    endif
    endif
    ========================================================================

    With your date fields with a display format of "MMM DD, YYYY", you can place the following script in the "DateTimeRequested" field's exit event:
    var msg = Concat("DateTimeRequested.rawValue = ", DateTimeRequested.rawValue, "\u000a")
    var RequestedRV = Date2Num(DateTimeRequested.rawValue)
    msg = Concat(msg, "Date2Num(DateTimeRequested.rawValue) = ", RequestedRV, "\u000a")
    var RequestedFV = Date2Num(DateTimeRequested.formattedValue, "MMM DD, YYYY")
    msg = Concat(msg, "Date2Num(DateTimeRequested.formattedValue, 'MMM DD, YYYY') = ", RequestedFV , "\u000a \u000a" )
    msg = Concat(msg, "DateTimeNeeded.rawValue = ", DateTimeNeeded.rawValue, "\u000a")
    var NeededRV = Date2Num(DateTimeNeeded.rawValue)
    msg = Concat(msg, "Date2Num(DateTimeNeeded.rawValue) = ", NeededRV, "\u000a")
    var NeededFV = Date2Num(DateTimeNeeded.formattedValue, "MMM DD, YYYY")
    msg = Concat(msg, "Date2Num(DateTimeNeeded.formattedValue, 'MMM DD, YYYY') = ", NeededFV, "\u000a \u000a" )
    var Diff = NeededFV - RequestedFV
    xfa.host.messageBox(Concat(msg, "Difference in days: ", Diff), "Difference in Days", 1)
    When you fill in both dates and exit the needed field you will get a pop-up showing the results.
    Note: it is best to set the "Display Pattern" and use the same pattern for the "format" parameter in the Date2Num funciton as this is a value that you can control and know will be correct for the conversion.

Maybe you are looking for