How to calculate net price based on customized formula

Hi  all expert,
I have a requirement in a rental process:
The price of a rental is defined as daily rate (e.g. 100/day) and monthly rate (e.g. 2500/month).
when I create a rental contract, I'd like SAP to calculate net price based on contract duration with both rate and use the lower one.
e.g. rental 5 days. use daily rate = 500; monthly rate = 2500; So use 500.
e.g. rental >=26 days. use daily rate >= 2600; monthly rate = 2500; So use monthly rate 2500.
I was think to use price condition scales to set:
1 - 25 days: 100/day
>=26 days: 2500/month
But the problem is there are 30day a month and 31 days a month. When the contract has to calculate partial month, daily rate has to be calculated as monthly rate/actual days in the month.
How to handle it?
Thank you in advance!    

There might be more than one method to resolve the requirement.
You can develop a routine in t.code VOFM and add it in the column  AltCTy. The logic in the routine can be if the netvalue exceeds 2500, then the net value should be 2500.
The second option is you can try with using standard. In VK12, after maintaining the pricing as 100/day, go to details. Then in upper limit add value as 2500. Then create a test sales order for 25 days and more than 25 days, then check the values. I think this can help with your scenario.
Regards,

Similar Messages

  • How to calculate Total Price based on a sqm rate with different price points?

    Hi,
    I'm guessing this is a script solution but I've never done any scripting so though I'd ask you guys...
    I have a form where I'd like to calculate the total price of some carpet based on the price per sqm.
    - The user enters the carpet quanitity required.
    - There are different price points for 1-20, 21-60, 61+sqm (each with their own hidden fields containing the price value).
    - The Total Price field assesses the quantity ordered, and multiplis it by the relevant square metre rate.
    Is this achievable?
    I'm guessing any solutions are placed into the "Custom Calculation Script" field too?
    Thanks in advance!

    Yes. You can use something like this as the custom calculation of the total price field (you might need to adjust the field names):
    var sqm = Number(this.getField("SQM").value);
    var rate = 0;
    if (sqm>0 && sqm<=20) rate = Number(this.getField("Rate1").value);
    else if (sqm>20 && sqm<=60) rate = Number(this.getField("Rate2").value);
    else if (sqm>60) rate = Number(this.getField("Rate3").value);
    event.value = sqm * rate;

  • How to calculate Opening balance for a customer?

    Hi Experts,
    How to calculate Opening balance for a customer? I am trying to develop a report where in i have to get opening AR balance,current sales,adjustments etc of a customer. Please let me know how can i do this. I have some tables with me KNC1, BSAD, BSID.
    Thanks in Advance.
    Sharat Chandra.

    Say for example ..
    Get the opening bal for Customer 'K' in CCode 'C1' in 2008 ..
    First get all items from BSEG ..
    Select * from BSEG where KUNNR eq 'K'
                                     and BUKRS eq 'C1'
                                     and GJAHR eq '2008' .
    Sum all the DMBTR values (This is the total value).
    Second get the cleared items form BSAD for the above entries;
    Select * from BSAD for all entries in BSEG where KUNNR and BUKRS and XBLNR eq BSEG-XBLNR.
    Sum all DMBTR values ( this is cleared value).
    Third substract the cleared value from total to get Open value.
    This is a overview .. you should go to the tables and look for fields and etc.. and then define the logic meeeting your requirements .... this is a genric undersatnding ....
    Thanks,
    Aditya. V

  • HOW TO CALCULATE NET SALES AND CONTRACT PRICE?

    Dear experts,
    I have the requirement of sales price report
    the report layout should be
    Prod descr    material Number   Contract type  contrcat name     rebate  net sales  contract price  units
    we have the master data information is reside already in multiprovider and transaction information how to calculate in frond end ?
    for sales  pricing report how to manipulate teh net sales and contract  price
    value?
    any standard formulaes is there?
    plz suggest  me
    regards

    Hi,
    For quick and best response unless someone answer's in this forum, post your question in SAP Community Network Forums » SAP Solutions » ERP - Sales and Distribution (SD) General   or something related to your question.
    Check this link if it helps -
    http://help.sap.com/saphelp_46c/helpdata/en/93/74353e546011d1a7020000e829fd11/frameset.htm
    Thanks,
    Shambhu.

  • How to get net price of a given material(Just like in VA01)

    Hello Experts,
    How do I get the net price of a given material? Just like when entering a
    material in VA01(sales order creation). Hope you can help me guys.
    Thank you and take care!

    This is a million dollar question.
    It depends on how the pricing have been configured in your system and only your SD consultant can answer it correctly. Price in VA01 could be determined by using the pricing conditions or, if allowed, a manual user entry (i.e. when users just type in the price). Discounts, taxes, etc. are calculated in a similar way, also based on the configuration.
    Pricing conditions are displayed in transaction VK13. You might want to take a look at an order in VA03 -> double-click on a line and go to Conditions tab. There are buttons Analysis and Condition Rec. that might be useful for your research. It is possible to configure different price for the same material and different customer, distribution channel, etc., so you will have to ask your SD consultant how to get the correct number in each case.
    Just FYI the net price on the order/contract is in VBAP-NETWR and condition are stored in the tables Annn, e.g. A901, etc. The tables are generated according to the configuration and are different in each system.

  • How change plant, net price, OPu, and Material Number from ME32K

    Hi GURUs,
    May let me know how I should configure ME32K in order to allow users to change:
    - Material Number
    - Net Price
    - Order Purchasing Unit
    - Plant
    I have tried setting up field selections layout properly, even debug PBO, it is still greyed out for those fields.
    Please help.
    Thanks,
    Tony Yuwono

    there is no way to change the price in item overview in the contract.
    The reason is explained in OSS note 685117.
    ........The problem is that Scales and/or validity periods may exist for the conditions, because contracts have time dependant conditions, just like info records do.
    This is in contrast to e.g. Purchase orders which have Time independant conditions and so, NO scales nor validity periods.
    A Purchase order has A price! The price maybe determined based on a source; a contract or an info record. Depending on the order quantity and the date, the PO price is determined.
    The contract does not have A date, it might have several; indicated by the validity periods. Furthermore the price is dependant on eventual scales. Therefore it does not have A price either..........

  • How to populate net price on delivery

    Hi All
          We are running closed order reports on sales overview cube with the selection on Actual goods issue date. But we are not getting Net price and ordered quantity in the report. The reason is Net price is coming from sales order but when we extract using Actual goods issue date data is populating from delivery line only.
      Anyone have idea on this how to extract delivered orders with netprice and also we need ordered quantity.
    Thanks
    Vani

    There might be more than one method to resolve the requirement.
    You can develop a routine in t.code VOFM and add it in the column  AltCTy. The logic in the routine can be if the netvalue exceeds 2500, then the net value should be 2500.
    The second option is you can try with using standard. In VK12, after maintaining the pricing as 100/day, go to details. Then in upper limit add value as 2500. Then create a test sales order for 25 days and more than 25 days, then check the values. I think this can help with your scenario.
    Regards,

  • How to make net price field in Purchase Order Uneditable

    Hello all,
    I am facing a problem. During creation of purchase orders the material price is picked up from the Info Record, but the net price field is editable. Please guide me how through standard SAP can i make this net price field uneditable.
    Thanks in Advance,
    Ritesh.

    Hi Ritesh,
    You can goto:
    SPRO-MM-Purchasing-Purchase Order-Define Screen Layout at Document Level
    from here you select ME21N-Selection group-Quantity and Price.
    Make the price and price unit as DISPLAY.
    By this it will show only display for price, but you have to take not that there is also condition tab which user can change the price, this price is from INFOREC.
    Goto to M/06 select your Condition type, In Manual entries maintain "D"-Not possible to process manually
    Regards,
    Maia

  • How to change net Price by using BAPI_PO_change

    Hi experts..
    How i can change net price by using bapi_po_change.
    What parameters i have to pass in this fm.
    if possible please tell me , which table this FM will update.
    Thanks.
    I will award points for all help.

    See the below code and have tested and it works great..
    REPORT  ZTEST_PG_07 NO STANDARD PAGE HEADING
                        MESSAGE-ID z9_msg_prash.
    Tables Declaration  ****
    TABLES: ekpo.
    Variables Declaration  ****
    DATA: v_purchaseorder TYPE bapimepoheader-po_number.
    DATA: v_ebelp TYPE ekpo-ebelp.
    Constants Declaration  ****
    CONSTANTS: x VALUE 'X'.
    Internal Tables Declaration  ****
    DATA: it_return  TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: it_poitem  TYPE STANDARD TABLE OF bapimepoitem WITH HEADER LINE.
    DATA: it_poitemx TYPE STANDARD TABLE OF bapimepoitemx WITH HEADER LINE.
    DATA: wa_return  TYPE bapiret2.
    Selection Screen  ****
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_ebeln LIKE ekpo-ebeln OBLIGATORY.
    PARAMETERS: p_ebelp LIKE ekpo-ebelp.
    PARAMETERS: p_menge LIKE ekpo-menge.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON p_ebeln.
      IF p_ebeln IS NOT INITIAL.
        SELECT SINGLE ebeln INTO v_purchaseorder FROM ekpo
        WHERE ebeln = p_ebeln.
        IF sy-subrc <> 0.
          MESSAGE e002.
        ENDIF.
      ELSE.
        MESSAGE e005.
      ENDIF.
    AT SELECTION-SCREEN ON p_ebelp.
      if p_ebeln is not initial.
      IF p_ebelp IS NOT INITIAL.
        SELECT SINGLE ebelp INTO v_ebelp FROM ekpo
        WHERE ebeln = p_ebeln AND ebelp = p_ebelp.
        IF sy-subrc <> 0.
          MESSAGE e003.
        ENDIF.
      ELSE.
        MESSAGE e006.
      ENDIF.
      endif.
    START-OF-SELECTION
    START-OF-SELECTION.
      v_purchaseorder = p_ebeln.
      it_poitem-po_item  = p_ebelp.
      it_poitem-quantity = p_menge.
      it_poitem-net_price = '20.00'.
      APPEND it_poitem.
      it_poitemx-po_item  = p_ebelp.
      it_poitemx-po_itemx = x.
      it_poitemx-quantity = x.
      APPEND it_poitemx.
    *&----Calling BAPI function module
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
         purchaseorder                = v_purchaseorder
        testrun                      = x
       TABLES
         return                       = it_return
         poitem                       = it_poitem
         poitemx                      = it_poitemx.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT          = space
         IMPORTING
           RETURN        =
    END-OF-SELECTION
    END-OF-SELECTION.
      LOOP AT it_return INTO wa_return.
        WRITE:/ wa_return-message.
      ENDLOOP.
    Thanks
    Seshu

  • How to pick the data based on customer number

    Hi All ,
    greets....
    i have a requirement to select  the data based on customer number and then do furthur processing .
    example:
    this is some 10 dcouments in customer nr:v1000
    and 20 documents in customer v2000 in a internal table how to select that,
    thank s in advance.

    thier is an internal table which is having some 1000records.
    and their is 6 customers.
    in which i should pick the data based on customer number.
    how to write a code for that?

  • Price based on Customer's Material

    Dear Gurus,
    Pricing can be maintained based on the combination of customer and material.But, my client wants to maintain price
    based on the combination of customer, material and customer material info.
    Pls adivce.
    Regards,
    Leela Krishna. R

    HI
    1. Insert that field (KDMAT) in Table KOMKAZ (T-Code SE11)
    2. Insert the Field in Field catalog (KDMAT)
    3. Maintain Logic in MV45AFZZ , User Exit : USEREXIT_PRICING_PREPARE_TKOMP
    4. Maintain Logic in RV60AFZZ , User Exit : USEREXIT_PRICING_PREPARE_TKOMP
    Check and Revert
    Regards,
    Prasanna
    Edited by: prasanna_sap on Jan 10, 2012 8:55 AM

  • To calculate net price of a material for a Sales order

    Hi gurus..
    I'm usin Sales_order_simulate bapi to caluculate the net price of the the new sales order..
    This is workin fine if the pricing procedure is not havin any manual conditions..
    If it has a manual condition type it is not calculating the new value of material.
    Please help me out...

    Hello,
    Using transaction VK33, enter Customer, Material and Condition type PR00 in the selection screen and execute.
    Thanks,
    Venu

  • A new schedule line with net price zero but custom duty non-zero value

    Hello,
    I have a special requiremnet in MM scheduling agreement, for a specific type of scheduling agreement, I am copying a schedule line to a new schedule line. The new schedule line should have all the pricing and duty values from the old schedule line, except the net price of the new schedule line should be zero.
    I am able to make the net price zero in the new schedule line, but not able to copy the custom duty values from the old schedule line. Since my netprice is zero in the new line, it automatically set all other follwoing duty values also to zero.
    Say example a scheduling agreement: A has two line:
                                                                                    Condition Type           %                    Total Value
    scheduline line 1 -  with pricing values                  PB00                                                  200  USD                                                                               
    Cond1                         5                       10  USD
                                                                                    Cond2                        10                      20  USD
                                                                                    230  USD
    expectedd result i the new schedule line
    scheduline line 2 -                                                  PB00                                                  000  USD                                                                               
    Cond1                         5                       10  USD
                                                                                    Cond2                        10                      20  USD
                                                                                    30  USD
    I am trying to overwrite the condition values using the FM RV_CONDITION_COPY, but  I am not getting the desired result.
    Please let me know if you have any solution to my requirement.
    Best Regards,
    Amarjit Singh

    Hello Colleague;
                                                                                    In Standard the schedule lines cateogory CV is activated for 'Req./Assembly' and 'Availability'.                              
    Please, make this adjust and re-test you process.
    Regards
    Ruy Castro

  • Doubt  in  how to   calculate  net  due date

    Hi..
    Experts   i have   doubt  in my  salesmen  ageing  report  i have to  display
    netamout    day  wise  in the range of   0-30 days , 30-60  days and  > 60 days
    how to calculate  the date difference between  to  date  one is invoice creation  date  and another  one is  system date.
    Give  me  any   function  module  available  to count  the  date  difference
    and how  i filter  the  amount  date  wise.
    Thanks Regds
    Prabir Kumar Dandpat

    Hi,
    check fm;
    SD_DATETIME_DIFFERENCE
    regards,
    Navneeth K.
    Message was edited by:
            Navneeth Bothra

  • How to add net price in BAPI BAPI_PO_CREATE1

    hi all:
    when i use bapi BAPI_PO_CREATE1, i cannot add net price in PO. code is as follow.
    *POPULATE ITEM DATA.
            clear t_po_items.
            t_po_items-po_item      = v_poitem * 10.
            t_po_items-material     = SEQ_FILEH-matnr.
            t_po_items-SHORT_TEXT   = SEQ_FILEH-MAKTX.
            t_po_items-plant        = p_RESWK.
            t_po_items-quantity     = SEQ_FILEH-MENGE.
            t_po_items-PO_UNIT      = SEQ_FILEH-MEINS.
            t_po_items-TRACKINGNO   = SEQ_FILEH-BEDNR.
            t_po_items-ACCTASSCAT   = SEQ_FILEH-KNTTP.
            t_po_items-ADMOI        = SEQ_FILEH-ADMOI.
            t_po_items-NET_PRICE    = SEQ_FILEH-netpr.
            t_po_items-PRICE_UNIT   = SEQ_FILEH-peinh.
            t_po_items-FREE_ITEM    = ' '.
           t_po_items-IR_IND       = c_x.
            APPEND t_po_items.
    *POPULATE ITEM FLAG TABLE
            clear t_po_itemsx.
            t_po_itemsx-po_item     = v_poitem * 10.
            t_po_itemsx-po_itemx    = c_x.
            t_po_itemsx-material    = c_x.
            t_po_itemsx-SHORT_TEXT  = c_x.
            t_po_itemsx-plant       = c_x.
            t_po_itemsx-quantity    = c_x.
            t_po_itemsx-PO_UNIT     = c_x.
            t_po_itemsx-TRACKINGNO  = c_x.
            t_po_itemsX-ACCTASSCAT  = c_x.
            t_po_itemsx-tax_code    = c_x.
            t_po_itemsX-item_cat    = c_x.
            t_po_itemsx-ADMOI       = c_x.
            t_po_itemsX-IR_IND      = c_x.
            t_po_itemsx-NET_PRICE   = c_x.
            t_po_itemsx-PRICE_UNIT  = c_x.
            t_po_itemsX-PO_PRICE    = c_x.
            t_po_itemsx-FREE_ITEM   = c_x.
            APPEND t_po_itemsx.
    any advice?

    Hi Gang LI,
    Try by adding this to
    t_po_items-po_price = '2'. ( 1 = Gross,  2 = Net price )

Maybe you are looking for

  • Processo NFE - Biztalk GRC

    Bom dia a todos, estamos implementando NFE e gostaria de saber se alguem ja passou por algo parecido. Iremos partir de um software em VB que ira enviar para o GRC via biztalk...alguem ja passou por essa situação? Gostaria de saber como o BIztalk irá

  • Missing PARTNO field in Write Optimized DSO

    Hi, I have a write optimized DSO, for which the Partition has been deleted (reason unknown) in Dev system. For the same DSO, partition parameters exists in QA and production. Now while transporting this DSO to QA, I am getting an error "Old key field

  • ABAP or BI for a report?

    Dear All, I've compiled a list below of what to look for when a consultant needs to decide whether to have a report created in SAP BI (as opposed to ABAP/Report Painter in R3). The list also includes points that can motivate a company to purchase a B

  • How do I use spaces in Mountain Lion?

    Is there a way to activate the "spaces" function in Mountain Lion?  I really enjoyed that in Snow Leopard.

  • Delete adobe flash adobe photoshop elements 8 and shockwave. Problem gone!

    I have an iMac 2.66 GHz Intel Core 2 Duo. 10.6.6.  4Gb ram. 320 hard  drive only used about 50GB of it. I've been using it fine until about  november 2010. Spinning BeachBall  - system holds -  cannot close down  force quit - happens constantly and s