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.

Similar Messages

  • 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

  • Problem in pricing determination in VA03

    Hi All,
    I am facing in pricing determination. There is inconsistency problem for pricing determination. For one of condition type ZCN1, we have maintained the price in condition record(VK11) but even after than the condition record does not get copied in the order. This is happening for some of the orders and not for all orders and not for all items for one order.
    In VA03 T.code
    E.g
    Sales order:30000123 line item 15
    The pricing date is 29.04.2007, but pricing in ZCN1 condition type could not be determined. In the pricing analysis screen it shows the confition record for the condition type ZCN1 but displays ''condition record found but not set'' we cheched for other orders/ line items this price was successfully copied. we are having such inconsistencies often.
    Can any body suggest some solution.
    Regads ,
    Geetha

    If it's a standard configuration that is not working, I would suggest to move this question to SD forum. Otherwise, if you have any user exits in pricing determination, the problem might be there. If it's a small piece of code, please post it here for a review.
    Also in the pricing condition analysis take a look at what keys are used for the price determination. Often the problem is that the keys are incorrectly populated in the program.

  • Problem in pricing regardinr business blueprint

    HI Gurus,
    i am new in sap sd field i just put my foot in this field.
    i got business blueprint for sap sd implementation i have folloing problem in pricing please help me out.
    <b>1</b>.Do you require the functionality to create user-defined indexes in the pricing table? This will enable you to search for your prices using company-specific search criteria such as what operation input ?what prices on a certain day?
    2 Do you ever base the prise of an item on the cost to manufacture or purchase the material?
    3. Eill you need to pas pricing information to the sales informatiom system?
    how to configure above requirement in business blueprints?
    please solve this problem
    Ketan Katara

    I install Oracle Business Process Architect 11g again but with local DB. there is quick start example. when I share blueprint that project, It is ok but when I add a repository server and share a project inside it nothing happen.
    I dont know why???? please help me.
    sorry for my bad english :(

  • 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

  • Problems with pricing in Internet Order screen(CRM E-Commerce 5.0)

    Good afternoon !
            We are using CRM 5.0 with CRM E-Commerce 5.0, and we are experiencing problems with pricing in the order screen.
            When we create an order and insert one item at this order, this item is processed and the price is calculated and shown correctly, both in the item and in the table of totals at the right corner(where is the Total Net Price, freight value, etc).
            If we change the quantity of this item, or insert more one item(with the same or other product), the price turns to zero, both in the item(s) and in the table of totals mentioned above. Also, in the table of totals, the freight value remains being calculated, even in this cases when the prices is turned to zero.
            What can be happening in this case ? What can I check to determine the cause and solve this problem ?
            Thank you in advance !
            Wilson

    Good afternoon !
            This problem was solved adjusting some parameters of partner determination.

  • 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

  • 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 with pricing condition type in case of proforma invoicing

    Hello All,
    the problem is related to a pricing condition type in case of proforma invoice where the details are as follows -
    Name of Condition Type - ZADC - Add 10% on Cost                                         Access seq.   Z038 Diff
                                                                                    Plus/minus    A Positive
    Cond. class -  A Discount or surcharge
    Calculat.type -  A Percentage
    Cond.category - Blank
    Manual entries      D Not possible to process manually
    Amount / Percent - Checked
    Item Condition - checked
    Scale Basis - Quantity
    Currency Conversion - Checked
    Quantity Conversion - Checked
    This condition type has been kept as statistical in the pricing procedure. Still in the proforma invoice the condition type is not getting reflected automatically , whenever I am updating with " carry out new pricing " option the condition type is getting populated.In case of other commercial invoices this very condition type is getting populated automatically without any updates.Along with this point to be noted is that the Condition type in which the actual costi is captured has been kept active.
    What more needs to be configured or what are the changes to be done to populate the condition type automatically as statistical during the time of proforma invoicing?
    Thanks & Regards
    Priyanka Mitra

    Hi,
    Kindly do the pricing analysis and check whether you have the following error such as
    Inactive condition type because of subsequent price,
    Regards,
    Ravi

  • Problem in Pricing procedure  logic

    Hi,
    In pricing  procedure ,our functional team requires some logic inthere  procedure .
    1. Thay have condition type of ZBEA and ZBEE, If ZBEE is active that time ZBEA should be inactive.
       For that i created a routine like below.
    DATA: LV_XKOMV TYPE KOMV.
    if xkomv-kschl = 'ZBEA' and xkomv-kbetr NE 0.
    clear lv_xkomv.
      READ TABLE XKOMV INTO LV_XKOMV
                  WITH KEY
                  KSCHL = 'ZBEE'.
      IF sy-subrc = 0.
        XKOMV-KINAK = 'X'.
        MODIFY XKOMV TRANSPORTING KINAK WHERE KSCHL = 'ZBEA'.
      ENDIF.
    endif.
    Now its making ZBEA inactive but its showing ZBEE as 2times. How to avoid this?
    Can anyone please help this.
    Point will be sure.
    Mohana

    Hi
    But where are you doing that?
    U should insert an Alternative Formula Routine in pricing procedure for condition ZBEA:
    READ TABLE XKOMV INTO LV_XKOMV WITH KEY KSCHL = 'ZBEE'.
    IF SY-SUBRC = 0 AND LV_XKOMV-KINAK IS INITIAL AND LV_XKOMV-KBETR <> 0.
       XKOMV-KINAK = 'A'.
    ENDIF.
    Max

  • Problem in Pricing and Billing

    Hi Friends,
    A bit challenging issue please help me
    My Issue starts when there is a special pricing condition type maintained for a material.
    For example
    Basic Price--- 100 per product(1)
    Special price 
    100 to 200  --- 50 rs per product
    200 to 300  -- 25 rs per product
    Created a sales order FOR 300 Products -Doc Type OR Price has taken according to scale --25 per product-Item Cat-TAN
    Created Delivery -
      Doc Type LF             
    Created Invoice with ref to Delivery -
    Doc Type  F2--
    Created Credit memo req  with refrence to billing doc- Doc Type RE-----quantity for 5 , I can see for 5 quantities it has taken 25 rs per product.
    Created a Return Delivery -
    Doc type LR    Item Catagory --REN
    Created a Credit Memo with refrence to Delivery--- Doc Type RC
    Problem is that in the Credit Memo the system has taken the Basic Price i.e, 100 rs per 1  for 5 products instead of taking the Special price.
    In the Credit Memo request(Return Sales order) the system has taken the Special price 25 rs per 1.
    The Credit memo is behaving differently.
    I have checked the copy controls of LR to RC which has the pricing type as G-- Copy pricing elements unchanged and redetermine taxes.
    I have checked copy controls from Sales order to Billing, since it is deliery related billing the item cat Tan and Ren is not availible.
    Please advice me why the Credit Memo is taking the basic price instead of special price even though its credit memo request has taken the special price.
    Thanks and Regards,
    RajSuhas
    9866282911

    Can you please check have you maintained any value in the price source.
    Compare the copy controls with LR to RE is there any difference excist or not.
    Try to sit with abaper is there any hard code written in any exit or enhancement place also impact the procedure.
    Other wise please try with pricing type D. It would serve your requirement.
    Hope it would helps.......
    Raj.......

  • Discount problem in Pricing procedure

    Hi experts,
              Vendor offers % discount on Basic price, however tax is calculated on BASIC price (not considering discount).
              I am facing following problems
    1.    I tried to configure pricing procedure , but discount gets deducted while calculating TAX. 
    2.      If I make discount condition STASTICAL , TAX calculation is proper, But in MIRO in vendor payment Discount is not considered.
    Pricing procedure requirement is as follows
    1.  Basic Price    (A)
    2.  Tax %           (B)          - calculated on A
    3.  Discount%     (C)         -  calculated on A
    Vendor payment = A+B-C
    How to configure pricing procedure for this requirement?
    please help me out.
    thanks in advance
    rgds
    Jay

    Dear Sir,
    Pl let me know if you get the solution as my client also want the same kind of pricing structure.
    i.e.Discount should get calculated after Taxes .
    Pl revert back .
    Thanks & Regards ,
    Ganesh

  • Re:Problem in Pricing Procedure Determination

    Dear All,
    I have a problem in Define Pricing Procedure Determination.
    I am getting an error message " Condition Type BP04 is not in procedure ZBP04A A V".
    The condition type has been copied from K007.
    Access Sequence is BP04.
    In Maintain Pricing Procedure, I have selected RVAA01 and copied it as ZBP04A.
    Please let me know how to rectify this error.
    Thanks,
    Amba Prasanna

    hi Prasanna,
    am getting an error message " Condition Type BP04 is not in procedure ZBP04A A V".
    It means in the pricing procedure ZBP04A  the condition type BP04 has not been maintained. So go to V/08, select conrtol data on the left side, click new entries and maintain this conditino type.
    The condition type has been copied from K007.
    You might have copied K007 but forgot to put it in the above mentioned pricing procedure.
    Access Sequence is BP04.
    Also make sure that for your condition type BP04, you have maintained the access also as BP04 in V/06, since you wanted it.
    In Maintain Pricing Procedure, I have selected RVAA01 and copied it as ZBP04A.
    This is fine, in OVKK- no error.
    regards
    sadhu kishore

  • Substitution Variable problem in member formula

    I'm using the following member formula for a member in a sparse dimension - Scenario.
    @VAR("Actual",&PO_PriorLE->"Final");
    I can get this to validate in Essbase, but when I try putting it into Planning, the refresh to Essbase bombs and the formula will not validate in Planning.
    Version - 9.3.1
    Thoughts?
    Regards,
    Paul
    Edited by: penglish on May 27, 2009 3:20 PM

    Hi,
    I have just tried it on 9.3.1 patch 10 and had no problems.
    I take it the member assigned to &PO_PriorLE already exists ?
    Have you tried replacing the substitution var for the real member name in the formula.
    What is the error message when you try and validate?
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for