Pricing Formula

Hi all,
I have a requirement where I need to create pricing formula (VOFM -> Formulas -> Condition Value). I have done some coding as per the requirement in RV64A600 and activated it also. I kept a break-point in the program but if I go to VA02 -> Item Conditions it's not stopping. Can you please tell how to debug it. Advance thanks. 
Regards,
Balaji Viswanath.

Hi
Have you created a routine of your own.
We have to create routines after <b>900</b> Numbers only
but as per your program it appears that it is 600 (see the program RV64A<b>600</b>)
Copy a 900 number routine and copy the code from an existing one, save it and Activate it
then check whether it is firing  the break point or not.
Reward points if useful
Regards
Anji

Similar Messages

  • How to change pricing formula using bapi_salesorder_change

    Hi,
    I have a customer  portal web application developed in .Net from which I will be getting different values which are changes related to a particular sales order item in SAP. One among these values is the pricing formula used with the sales order item. I am using bapi_salesorder_change to update all the values other than the pricing formula. My input to the bapi is the formula id. I am not sure about the field which I have to use in the bapi structures to update the same. Also I don't even know whether I can use the same bapi to do the required task.
    Requesting help ....
    Thanks,
    Siva

    Sir,
    Thank you for your immediate response.
    Actually we are integrating SAP with the customer portal web application. The requirement is in such a way that the customer portal provides the option to change the sale order details both at the header level as well as item level. The fields include Order qty,Delivery date,Partner details,Payment terms,Terms of sale, Pricing formula etc. The front end consists of a Pricing formula drop down which consists of  the formula descriptions (for eg: ZFA1015-LAST LME W/DAY OF CONT. MOTH) with its corresponding ID(ID is nothing but ZFA1015). At the SAP side my RFC should pick it up and update it for the given item. The process is like if we go to VA02 we have an option called MAINTAIN FORMULA from where we can change the formula used with an item. There the formula id is obtained from the formula repository. In here the we already have the Formula ID given by the front end.
    Hope you are clear wtith the requirement..
    Requesting help..
    Thanks,
    Siva

  • Error in pricing formula

    Hi,everybody,this one problem that I cannot solve it ,so I post it hope you all can help me:
    After defined one formula in Oracle advanced pricing,and then I cannot Book any order in Order Module,and it shows one
    message as follows:
    Error in Formula processing ..
    and the price become zero.Hope someone could help me and my email:
    [email protected]
    wish you all can contact me.

    When pricing order lines that use a pricing formula, receiving the error
    message: "Error in Formula Processing". When ok is clicked, no price
    is received. Note: This error occurs only if the formula expression
    having the length greater than 200 characters is setup. It also appeared
    first after applying Patch 2425851.
    Apply Patch 2657012.
    Srini C

  • Creating Pricing Formula

    Hi All,
                 I need to create a pricing formula ( through txn VOFM ) but i have a doubt regarding type of formula that i should use. In txn VOFM there are following type of conditions based upon which we can create a formula:
    1) Scale Base
    2) Condition Base Value
    3) Condition Value
    4) Structure of Grp Key
    5) Rounding Rules
    Can you please provide some documentation or explanation on these five types so that i can choose according to my requirement.
    It's Urgent.
    Thanks in Advance
    ~Jasmeet

    closing this thread

  • When Creating Credit memo pricing formula gets triggered even if pri typ D

    Hi gurus,
    We have a copy control set up from billing doc to credit memo doc with all the item catergories pricing type as D (Copy pricing elements unchanged ). We have a discount condition in pricing procedure which is set to statistical based on a condition base formula.
    When I create a credit memo all condition are copied from billing document but the discount condition is set to statistical, which in term throws off the further calculations.
    I found out that this is happening because the condition base formula is getting executed during copy and discount condition get statistical.My understanding was that ,making the pricing type D should not even touch the formula,it should copy conditions as it is.
    Have anybody seen this issue before , is there a way to control it ? Or this is a SAP bug ?
    Please respond,below is the excerpt of our pricing procedure in billing and credit memo
    Billing doc pricing :
    ZVEN Vendor List Price 135,00
    ZVDC Vendor Discount 50,000-    -
    >    not statistical
    Customer Discounted 67,50
    Credit memo pricing :
    ZVEN Vendor List Price 135,00
    ZVDC Vendor Discount 50,000-    -
    > statistical
    Customer Discounted 135,00
    Thanks in advance for your help...
    Swapnil
    Edited by: Swapnil Santosh on Oct 6, 2008 4:09 PM

    Hi Swapnil,
    I dont thik its an SAP bug. In order to answer your query, we need to understand further more on the issue,
    1) IS ZVDC defualted to statistical in the pricing procedure ? or are you explicitly putting to statistical based onthe condition base formula ?
    2 ) if you are putting as statistical explicitly then we need to check the logic in the base formula. Probably you are filtering the document type or category in the logic?
    Can you send me the logic, in the base routine, ?
    sit with an abaper and try to debug the routine.
    the routines should definetly be called even if you are copying.
    the indicator D just copies the unit price thats it, the condition value is calculated from the routines only,
    i feel there is some thing in your routine which needs to be corrected.

  • Problem in Pricing Formula

    Hi,
    For specifyic condition types, i need the condition values to be displayed always in 'INR', i have created a formula routine for this and assigned to my pricing procedure .
    structures i am changing are XKOMV and KOMK.
    using 'CONVERT_TO_LOCAL_CURRENCY' i am converting the amount
    ( xkomv-kwert ) into indian currency value and for currency key
    i have passed 'INR' to komk-waerk field
    here i am facing 2 problems, after coming out of my include xkomv-kwert is getting overridden by old value in some other include, hence i am getting the same old value on the screen and currecny key is getting dislayed as 'INR' for all the records not just only for my condition type.
    Can you pls correct me if what is done by me is wrong
    Regards,
    Sowjanya

    An amount in local currency is calculated from a specified foreign currency amount. For this, you may either specify the translation rate manually (Parameter RATE) or have the system determine it from table TCURR on the basis of the rate type, date and currency key. Because the ratios for the units of the currencies involved in the translation are significant for this translation, table TCURF is always read by the program, and there must be a valid entry there for the data specified. IF exchange rate fixing is defined for the exchange rate type TYPE_OF_RATE or an alternative exchange rate is defined for the currency pair, this information is transferred to the calling program.
    When table TCURR is read, the foreign currency key is always taken as the first part of the key and the local currency as the second part.
    or you can also do the manual conversion by taking the exchange rate from table TCURR for the particular date and multiply this exchage rate to foreign amount then to get the amount in local currency.
    hope this will work.

  • How can I know the funcnality of standard pricing formula?

    Dear Expert,
    There are hundreds of standard formula in CRM system. But how i can know the detail func. of every formula?
    1. Is there anyway i can see the code of these formula?
    2. Is there any doc. explain the usage of each formula?
    Thanks very much!!
    Hedy
    Edited by: hedyee on Dec 2, 2010 3:50 PM

    If you have ECC the formual is there as well.  In ECC it will be abap & not jave but the functionality will be the same on the delivered ones.
    http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf

  • Pricing condition formula on IPC

    Hi,
    Here's the issue -
    The freight for items is calculated using scale based rates for gross weight of the items.
    For example, if the gross wt. for an item is 38 pounds, the rate is determined as $18 from the scale. However, if the quantity is increased to 2, a rate of say, $30 is taken from the scale corresponding to the gross wt. which is now 76 pounds.
    However, the requirement is that the rate of $18 should be chosen and multiplied by the quantity for all quantities greater than 1. So the freight should have been $36 (18 x 2) instead.
    The freight is calculated using a pricing formula in R/3 where the gross wt. is first divided by the quantity to get the base condition. Scale based rates are taken to calculate the freight condition value and multiplied by the quantity again.
    AltCTy
      modify xkomv.
      read table xkomv with key kschl = 'ZABC'.
      xkomv-kwert = xkomv-kbetr * komp-mgame.
      modify xkomv.
      xkwert = xkomv-kwert / 1000.
    AltCBV
      if komp-mgame ne space.
        komp-brgew = komp-ntgew.
        xkwert = ( komp-brgew / komp-mgame ) * 1000.
        komp-brgew = ( komp-brgew / komp-mgame ) * 1000.
      else.
        komp-brgew = komp-ntgew.
        xkwert = ( komp-brgew / komp-mglme ) * 1000.
        komp-brgew = ( komp-brgew / komp-mglme ) * 1000.
      endif.
    The problem arises while implementing this formula in IPC. Unlike on the R/3 side, it is not possible to change the gross wt. of an item in IPC. Also, I couldn't find a way to explicitly specify the gross wt. to calculate the condition.
    The other option was to implement a BADI to change the gross wt. of the items before calculating the conditions. I tried using the CRM_PRODUCT_I_BADI where it is possible to change the gross wt. when an item is entered, however, the quantity for the line item is not available in this BADI so as to divide it to get the appropriate gross wt. for an item.
    Any help would be greatly appreciated.

    Hello,
    If this badi is executed inside order creation you can try call function CRM_ORDER_READ to get the item quantity.
    It might work if the item data is updated before this badi is called.
    Instead of pass the header like in the example below, pass the item guid to the function.
    INSERT gc_object_name-orderadm_i INTO TABLE lt_requested_objects.
      INSERT gc_object_name-schedlin INTO TABLE lt_requested_objects.
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = lt_header_guid
          iv_mode              = gc_mode-display
          it_requested_objects = lt_requested_objects
        IMPORTING
          et_orderadm_i        = lt_orderadm_i
          et_schedlin          = lt_schedlin
        EXCEPTIONS
          document_not_found   = 1
          error_occurred       = 2
          document_locked      = 3
          no_change_authority  = 4
          no_display_authority = 5
          no_change_allowed    = 6
          OTHERS               = 7.
      IF sy-subrc <> 0.
        MOVE sy-msgty TO ev_type.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO ev_message.
        EXIT.
      ENDIF.
      LOOP AT lt_orderadm_i INTO ls_orderadm_i.
        MOVE ls_orderadm_i-number_int TO itens_vlr-numitem.
        MOVE ls_orderadm_i-ordered_prod TO itens_vlr-produto.
        MOVE ls_orderadm_i-description TO itens_vlr-descricao.
        READ TABLE lt_schedlin INTO ls_schedlin
            WITH KEY item_guid = ls_orderadm_i-guid.
        IF sy-subrc = 0.
          MOVE ls_schedlin-quantity TO itens_vlr-qtdprod.
        ENDIF.
        APPEND itens_vlr.
      ENDLOOP.
    Regards,
    Mauricio

  • Now to define new formulas for pricing?

    can any one please tell me a business scenario where one needs to define a new pricing formula, and how can one can do that in the system?
    points will be rewarded immediately.
    thanks
    PR

    Hi,
        As our friends suggested you can create new formulas for pricing with the Transaction code VOFM.
    Process is use VOFM(Transaction code)------>in top menu you can see Formulas, select appropriate option in Formulas lke.. Condition base value, Condition Value etc.,
    Please go through detail information:-
    Formulas are represented as FORM routines. They are used in pricing and influence the determination of prices according to predefined rules. You can specify them in pricing control. The following groups of formulas exist:
    Scale base value
    The scale base value includes FORM routines which determine the scale base value according to criteria that are not defined in the standard system. You enter the scale base value in the Scale formula field. A formula for the scale base value can define, for example, that partial quantities are taken into account.
    Condition base value
    Formulas for the condition base value take into account criteria not defined in the standard system. You enter them in the Alternative formula for condition base value field in the pricing procedure. A formula for the condition base value can define, for example, that the condition determination is based on net value or volume.
    Condition value
    Formulas for determining of the condition value include routines which determine the condition value according to criteria not defined in the standard system. You enter the formulas for the determination of the condition value in the Condition formula for alternative calculation type field in the pricing procedure. A formula for the condition value can define, for example, that the system determines the best price for the customer.
    Structure of group key
    Using this menu entry, you can edit routines that determine the base value for the scale value if group conditions are used in pricing. The system then calculates the base for the scale value from more than one document item. You can enter the routines in the Group condition routine field on the screen for defining condition types. A routine for the determination of the scale valuecan define, for example, that only a particular condition type is taken into acount.
    Rounding rules
    Using this entry, you can create and edit FORM routines that carry out a particular type of rounding in the condition record during a price change. A rounding rule could round a price that was increased by 1% to the last two places behind the decimal point, for example.
    Procedure
    To define your own formulas, proceed as follows:
    1. First check whether you can use the formulas delivered with the standard system.
    2. Either overwrite an existing formula or select a group number from the number range reserved for customer modifications (600-699) and enter the corresponding description.
    3. Program the formula in the editor.
    4. Activate the formula.
    5. Enter a long text that describes the meaning of the formula in more detail.
    6. Enter an application if you want to use the formula in a particular application area only (pricing, for example).
    7. Enter the formula in the appropriate place of the control
    NOTE:- to create new routine get Access key from Basis.
    I hope it will help you to define formulas for pricing.
    Regards,
    Venkat

  • E Sourcing 7.0: Formula Pricing and  Line Item Formula

    Hi
    I am currently working on e sourcing 7.0. Here there are new features provided in Rfx->Line Item setup called Formula Prcing and Line Item Formula
    I was trying to use Line Item Formula feature to provide pricing formula for line items.I chose pricing structure as Formula Prcing and tried to advance the phase of Rfx, System gave an error that I need to create unit price formula if I choose Formula Pricing.But once I create unit price formula it makes the Line Item Formula redundant.
    Moreover the problem with unit price formula is Unit Price field is only available with Line Item Formula.It doesnot allow me to create an effective unit price formula beacuse of limitations of field at exposure.
    Has anybody used this feature? Kindly help me understand
    Regards
    Shobha
    Edited by: Shobha M Narayanaswamy on Aug 12, 2011 11:02 AM

    Hi Shobha,
    I hope members who have used this feature chime in. I am only playing with Formula Pricing because we are evaluating these as well.
    I was not able to use the standard fields when using Formula Pricing.
    I am retracting what I said in the last post, apologies, I made a mistake in the supplier response.
    From what I understand now:
    If you want to have sub components of the unit price (or more important, any other calculations for unit price), you should choose "Formula Pricing" under Pricing Structure. E.g., my company asks for supplier's manufacturing costs, their purchased parts cost etc all of which contribute to make up the unit price. In this example, I created Supplier Entered Attributes for Manufacturing Cost and Purchased Parts Cost and added a Unit Price formula which was the sum of both. In addition, I created a Supplier Entered Attribute for "Freight Cost" which is not really a part of the unit price, but is an additional cost. In Line Item Formulas, I added 2 formulae, just for example.
    Total Freight Cost = Quantity * Freight Cost (Supplier Entered Attribute)
    Total Calculated Cost = Total Freight Cost + (UnitPrice(IncoTerm) * Quantity)
    Part 1 - Quantity = 10, Manufacturing Cost = 5, Purchased Part Cost = 5, Freight = 3
    Part 2 - Quantity = 10, Manufacturing Cost = 6, Purchased Part Cost = 6, Freight = 3
    System correctly calculated
    Part 1 Unit Price = 10
    Part 1 Unit Price = 12
    Part 1 Total Freight Cost = 10 * 3 = 30
    Part 2 Total Freight Cost = 10 * 3 = 30
    Sum=60
    Part 1 Total Calculated Cost = 30 + (10*10) = 130
    Part 2 Total Calculated Cost = 30 + (10*12) = 150
    Sum = 280
    If you do not need the sub-components of the Unit Price, we can leave the pricing structure at Unit Price. I did that for an RFX, and also added the same 2 formulae in Line Item Formulas as above. This worked fine for me.
    Part 1 - Quantity = 10, Unit Price = 3, Freight = 5
    Part 2 - Quantity = 10, Unit Price = 3, Freight = 5
    System correctly calculated:
    Part 1 Total Freight Cost = 10 * 5 = 50
    Part 2 Total Freight Cost = 10 * 5 = 50
    Sum=100
    Part 1 Total Calculated Cost = 50 + (10*3) = 80
    Part 2 Total Calculated Cost = 50 + (10*3) = 80
    Sum = 160
    Both the above scenarios work fine for me.
    The only open item is, I could not find a way to get these added to the Total Cost and Total Price listed on the "RFX Responses tab". I don't think it is possible to do that. I think you have to view these in the "Formula View" of the respective supplier proposal.
    Let me know if this helps.
    Thanks,
    MP

  • Re: Pricing for more than one ship-to-party in sales order

    Hi Gurus,
    Currently I am facing a problem regarding pricing the shipping charge for a sales order having more than one ship-to parties in it.
    Our business process is having a pricing condition type which calculates the shipping charge based on the total value of the order.
    The technical details of the condition type are as follows:
    ZSHH
    Cond. class =    A  Discount or surcharge                  Plus/minus  =  A Positive
    Calculat.type =  B  Fixed amount
    "Group cond" & "RoundDiffComp" are "checked"
    GrpCond.routine 1  Overall Document
    Scale basis = value
    Now due to this depending on the entire order value the shipping cost is calculated.
    However when there are 2 ship-to-party the system should group the items to be shipped to each ship-2-party and calculate the prices accordingly.
    Now as the "GrpCond.routine 1  Overall Document" -- it is taking the total order value while calculating the shipping price even if there are 2 ship2party in the sales order. I am just wondering how to go about this situation.
    There is no value in the pricing formula that calculates the price based on ship-2-party.
    Can anyone help me with this?
    Does this mean that I have to create a new scale formula in VOFM?
    Also how is the shipping price charged when the customer requests partial deliveries?
    Thanks in advance
    Vinit

    Vinit,
       You need to create a new GrpCond.routine. You can do this in VOFM-> Formulas -> Structure of group key. You will need to have the carrier available in the communication structure komp. So assuming you do this, create a formula like 050(RV65A050). Enter code that would look like(I am assuming your carrier code is 10 in length):
    FORM FRM_GRUPPENKEY_050.
      xvakey      = '050'.
      Xvakey+3(10) = komp-carrier.
    ENDFORM.
    Then assign 50 to the condition type(v/06) as the new GrpCond routine. This should give you your desired results.
    Partial deliveries will only take the portion of delivery charges shipped from the line. Eg if 10$ freight on the line and 1 of 2 is shipped, you will only see 5$ on that invoice as long as your pricing rule is copy unchanged.
    Edited by: Matthew Menzies on Jan 21, 2009 11:26 PM

  • How to create new dynamic subtotals in pricing

    Hello All,
    Could any of you advice how to create a new dyncamic subtotals. I know how to create regular subtotals in KOMP but was wondering how create dynamic subtotals which can be used during the pricing runtime?
    Some of the dynamioc subtotals are like XWORKI & XWORK J
    Thanks,
    Vinay

    Based on a OSS note looks like these dynamic/auxiliary subtotals are initialized in LV61AA55. I think I might have to initialize some more if I need some.
    However I see there are some IS-OIL subtotals like Y & Z. Can I use them to populate my condition value & subsequently use to calculate some pricing formulas. Would it have any impact if I am using those subtotals for calculation purposes only
    Any help is appreciated
    Thanks,
    Vinay

  • How I tie the formula with conditions type?

    Hi,
    Than create the formula with tcode O3I7:
    1) how I tie the formula with conditions type?
    2) how I tie the conditions type with the formula with Calculation Schema?
    help me, please.
    thanks
    Edited by: celeste ziantoni on Feb 5, 2008 6:45 PM

    Hello,
    Pricing formula is created using transaction VOFM. It is tied to the condition types in Pricing Procedure definition in Alternate Calculation Type column. For Pricing procedure, the menu path is SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process->Define Calculation Schema.
    Thanks,
    Venu

  • Formula Price change at P.O

    Hello Experts
    I have query, We are using Formula price where we are uploading quatations daily and based on that price will be caliculated.
    Hence my problem is in P.O formula price was arrived , However user found  that price was wrong exm: $100 is there in P.O , bu it must be $105
    Is there any way to correct it in P.O?
    Thanks and Regards
    srinivas.

    Hello Srinivas,
    Very less details are available to give you an exact solutions. But you may follow below approach -
    - Open the PO in display mode and press the Term Analysis button. Are there more than one terms? If yes, which term got picked up. Is the term that got picked up the right one?
    - Term analysis will show you what quotation values have got picked up for which date. How the formula value was arrived on.
    - Check the F&A formula in Formula Repository (SAP Menu ->Logistics ->Sales and Distribution ->Master Data ->Conditions ->F&A pricing ->Formula Repository) and also check the "Final and Provisional Calculation Rules"
    Hope this helps.
    with kind regards,
    Gaurang Pandya

  • IPC 7.0 User-Exists

    Hi Experts,
    I'm trying to implement new User-Exits for our upgrade IPC 7.0. It seems like my registration went bad somewhere because when I run an appliation like CRMD_ORDER and create a new item the logging return with following message:
    Userexit (type REQ, appl. CRM, usage PR, number 600) is not maintained
    When I look at my settings in transaction /SAPCND/UEASS a pricing formula with number 600 is there so I don't know what is wrong. Can anybody help with this?
    Regards,
    Georg Lubrich

    Hey Tapan,
    thanks for your input. As it turns out I made some rather basic naming errors as well as using the wrong Java version to compile my coding. Problem is now solved and I can start debugging.

Maybe you are looking for

  • How to get all GroupSpaces name using Spaces API, irrespective of user logged in?

    Hi Can anyone please tell me, how to retrieve list of all group spaces using Spaces API. I have used this method getGroupSpaces(null) to retrieve all group spaces, however it returns only the logged in members groups. Is there any way to get all grou

  • Maximum file size handled by java

    Hi What is the maximum file size that java can handle i.e if I need to read a disk file using java, is there any limit on the size of the file being read?

  • 6280 goes white screen when I sync with Vista

    Hi all, My 6280 goes white screen and reboot when I sync after a 350 items uploaded to my laptop under Vista Premium Family Edition. I've got this problem either connected through the cable or bluetooth. I use the latest version of PC Suite, but I do

  • BEST DVD TO IPOD SOFTWARE

    Does anyone have an opinion on the best DVD to Ipod software to purchase? I've tried the trial versions of PQDVD, Xilisoft, and Cucusoft and have found problems and numerous differences with those. If there are any others out there please let me know

  • Landscape & Portrait in Fluid Grid Layouts

    I am quite excited about Fluid Grid Layouts and have seen a few videos on Adobe TV and You Tube. Can anyone tell me if it takes in to account Tablets and Phones being turned into Landscape view from Portrait.