Calculate price based on attributes

I am looking for a way to:
Show the price of an attribute
Show the price of a grouped item
Recalculate and display updated price once an attribute or grouped item is selected.
Any help would be apprecated.
Thanks

I've built something like that for a client on this site
http://bit.ly/17SjOZ3
Look at the source and find the called build-pricer.js for code examples.
Cheers,
Mario

Similar Messages

  • 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,

  • Calculating Key Figures in Copa based as sales Rev / Cusomter Price Based

    Hello Gurus,
    I have a requirement in which i would like to calculate some key figures in COPA as sales revenue.
    I would like for e.g to calculate the following: Cusomter Price Based Discount but do not know what to take into consideration.
    Is there any document which can help me to build it?
    I have  created the generic datasource based on the table CE1XXXXX.
    Thank you

    Hi Anindya,
    thank you for replying.
    The steps in that document was already being done.
    I have all Key Figures comin from CE1xxx Table. We are using the cost based COPA.
    My problem now is to build some Key Figures as sales revenue (Sales View) like for e.g Cusomter Price Based Discount.
    I would like to know how to proceed to build them. Any sample?
    Is it possible to build them directly based only on the generated extractor? or should i have to take dta from Billing as well?
    Thank you.

  • Trying to find selling price based on most current date

    Need help on finding the selling price based on the most current date.  I'm able to get the current date but not the selling price for that date.  Any help will be appreciated.
    Thank you in advance.
    This is the pivot table I'm working with.  The price should be 5.81 but it's picking up the highest price and not the last price.
    Formula for current date is =LASTDATE('Product Cost'[EFFDATE])
    Formula for current price is  =LASTNONBLANK('Product Cost'[STDCOST],LASTDATE('Product Cost'[EFFDATE]))
    Row Labels
    Current Date
    Current Price
    1152
    09/29/2014
    6.01
    Should be 5.81
    1/1/2009
    01/01/2009
    5.5
    7/9/2009
    07/09/2009
    5.11
    1/4/2010
    01/04/2010
    5.15
    4/12/2010
    04/12/2010
    5.18
    7/12/2010
    07/12/2010
    5.18
    10/27/2010
    10/27/2010
    5.18
    12/21/2010
    12/21/2010
    5.48
    12/27/2010
    12/27/2010
    5.18
    1/5/2011
    01/05/2011
    5.48
    1/17/2011
    01/17/2011
    5.47
    4/4/2011
    04/04/2011
    5.56
    8/22/2011
    08/22/2011
    5.45
    1/2/2012
    01/02/2012
    5.9
    1/2/2013
    01/02/2013
    6.01
    1/6/2014
    01/06/2014
    5.84
    9/29/2014
    09/29/2014
    5.81

    Hi Mike,
    Something like this should give you the behaviour you're after:
    Current Price:=
    CALCULATE(
    MIN(Product Cost[STDCOST]),
    FILTER(
    ALL(Product Cost),
    Product Cost[EFFDATE] = MAX(Product Cost[EFFDATE])
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com
    Blog: http://www.nimblelearn.com/blog
    Twitter: @nimblelearn

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • Calculate Commissions based on sales

    Hello,
    is there a way in SAP to calculate commissions based on sales?
    We have hired a sales man. Is there a way to implement his company as a account and that he will get a payment check for his comissions once the customers paid the invoices?
    I know there are already many threads here about this topic and I browsed through a lot of them. But I still don't have an idea how to set this up. I also checked this link already, but it didn't really help me a lot.
    http://www.sap-img.com/sap-sd/steps-to-create-commission-for-agent.htm
    Any help?
    Thanks a lot
    Anne

    Anne, the commissions are a rather complex subject in SD, probably because companies handle the process differently and also sales reps are usually very sensitive about the subject. There is a special module "Incentives and Commissions" by Vistex, which is designed specifically for this task. It is pretty expensive, from what I've heard.
    There is also something called "SAP Compensation Management", but I'm not familiar with it and am somewhat skeptical about the claims made here:
    http://sdmodule.com/sap-chargebacks-without-vistex/87
    P.S. You write "a sales man", so I'd question if it's worth bothering at all for just one person.
    P.P.S. I couldn't help but notice that you have many posts but 0 points. You might want to start contributing to the community, otherwise just don't be surprised if you won't get many answers.

  • Filter master rows based on attributes in detail view.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

    Hi,
    How do I set up VO's so that I can:
    1. filter master records based on attribute values in either the detail or master attribute values.
    and
    2. display each distinct master record with all its associated detail records.
    Stated another way, I want to list all the master records (with their associated detail records) filtered by the existence of qualifying detail records -- give me all departments which have assigned one or more employees who meet some criteria; list the departments and ALL the dept.'s employees (regardless of whether they individually meet the criteria).
    We've been struggling with this for a couple of weeks. I've been trying to accomplish this on 10.1.2, 9.0.5.2 and 9.0.3.3 with pretty much the same results on all three versions.
    To make queries based on values in either the master or detail records we created a database view that denormalizes the tables. This let's us include criteria based on either the master or detail tables, but of course rows from the master table may appear multiple times. We tried a DBMS global temporary table, but the inserted rows were not visible to the client; I'm assuming they're discarded with the session between queries or the queries establish separate sessions. I tried marking only the master record columns as selected and queriable and the detail columns as just queriable, but this causes the detail columns to be defined as transient VO attributes.
    TIA, for ideas or guidance.

  • Sale Item Price Based On BP Customer Group

    Hi,
    We have SAP B1 2007A.
    We have different customer groups like : Member, Non Member, Distributors.
    I want to have a different price list for each Customer based on the customer group they belong to.
    In other words, the same ITEM has a different price based on the customer group.
    Any way to do that?
    Mike

    Mike,
    This is what you can do -
    1. Create a "BASIC PRICE LIST" for the item first.
    2. For each customer (since the relation of Price lists has to be defined at this level not customer group), you can create a new price list but link it to the "BASIC PRICE LIST" you created in step 1.
    So for ex - if CUSTOMER GRP A has to be sold at a discount of 10%, then in your customer price list definition, enter factor as 0.9 and link it to the "BASIC PRICE LIST".
    Since one customer can be defined only within one group at a time, you can have the same effect of having the price list defined on customer groups. Only that, if your group pricing changes, you will have to either modify the price list, or create a new price list and link it all your customers (of a particular group) once again.
    Hope this helps.
    Cheers

  • Trying to calculate value based on rounding up and then calculate date range excluding weekends..

    Hi
    I am creating a simple design studion project request form where the user can enter how many photographs need to be ordered. I am calling this field 'NumImages'. Then once the data is entered, another field (I am calling this NumDaysImage) will be calculated based on the fact that no more than 5 photographs can be shot per day. So, 1-5  photos = 1 day. 6-10 photos = 2 days. 11-15 photos = 3 days etc. I do not need to calculate part days, so 6 photos is the same as 10 i.e. 2 days.
    Once I have calcuated 'NumDaysImage', I then need to calculate an end date called 'DateDue'. The start date is entered by the user in the field 'DateStart'.
    I know this is not going to be easy, but how can I calculate 'DateDue' based on a Mon-Fri working week, and ideally excluding UK public holidays?
    Also on the form is a value 'NumDays' that is the number of days for designing the brochure for the photos. This value I have calculated already, but it will need to be added to 'NumDaysImage' to get a total number of production days that is then used to calculate 'DateDue'.
    Any help will be greatly appreciated. Thanks.

    JavaScript has the Math.ceil method which rounds up a number to the next integer if it is not an integer.
    Dates are more complicated calculation as the starting date needs to be converted to a number and then one can calculate the ending date and test that date to see if is a Sunday or Saturday. Do intervening weekends add to the number of days for processing.

  • Get price based on Good Received Qty

    Hi Experts,
    Do possible to determine price based on Good Received Qty instead of PO Qty?
    Eg:
    PO Qty 500 pcs = $ 5,000
    1st GR - 150 pcs = price will determine $ 15 per pc
    2nd GR - 350 pcs = price will determine $ 10 per pc
    Thanks in advanced..

    Hi All,
    Thanks for ur feedback..
    Vijay: I had follow your steps.. but when create GR, the price still determine based on PO number.
    Gaito: Cannot accept same material posted in same PO.. price requested to determine based on GR qty.
    Piyush: Thanks for information but is not what i requested..
    Chakrapani: Then do you have any idea to determine price based on GR qty? User Exit?
    Thanks to all, still need your support..
    Lina

  • How would you (if possible) display the product price based on purchase qty

    BC provides for multiple prices based on the quantity purchased but I see no way to update that price per unit based on the customer entering a purchase qty that puts them in a discounted price break.
    Is this possible and if so can someone provide the answer to doing this please? I can understand that we have to show an initial price based on a single item but it seems strange that we have no way of informing the customer of what the price is until they get to the checkout if they are buying discounted products due to volume breaks.

    It would be very difficult then.
    As a summary of what is involved..
    - Taking the price and stripping out the currency symbol from the price and storing the default price and the currency.
    - On change of the input value run a change on the price
    - Parsing float values and also returning back a decimal at the end
    - times the price with the input amount and return the value (tofixed) and then also return the currency symbol with the price and output.
    - Alternate method of using the product json data.

  • SRM MDM - store multiple pricing for one entry and have it select the price based on a users site

    I've had an interesting request. We have a region where they have one supplier who will support some products for multiple sites. The sites are in different cities and so the pricing varies based on the location of the user. I know how to do price scaling in SRM MDM but wasn't sure if there was a way to have one part that could someone pick the right price based on the user. I don't think this can be done since we don't pass any "user" information in the OCI connection.
    Has anyone run into this scenario and was there some other way to not duplicate the entries or create a separate view just because the pricing was different for the same product but different site? I'm open for suggestions. I'm looking to make long term maintenance of the data as easy as possible.
    We are still running SRM MDM 5.5 SP6
    Thanks,
    Cathy

    Tom,
    Check if the below given link can give you some lead.
    http://help.sap.com/saphelp_NW04/helpdata/en/dc/dc7614099b11d295320000e8353423/content.htm
    Thanks,
    K.Kiran.

  • 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

  • KPI's based on attributes

    I would like to create KPI's based on attributes dimension.Making a singe example based on the SAMPLE db, the formula should look like this:KPI1 = Profit->True;"KPI1" & "Profit" are Accounts."True" is a member of the attribute dimension Cafeinated linked to the Product dimension.I would appreciate it if you could give me an idea or a workaround.Jana

    ok, you want:KPI1 = Profit->True; You could try something like:Fix(@withattr(Caffeinated,"==",True))KPI1=Profit;EndfixYou could also fix using the @attribute.

  • XSD Validation based on attribute type value

    Hi,
    Can any one tell me how to validate xml element value based on attribute value.
    Ex:-
    my xml has the elements like this.
    <channel>
    <meta type="VideoTitle">Harding Park Golf Club</meta>
    <meta type="ReleaseDate">Wed, 03 Jan 2018 15:00:00 GMT</meta> </channel> I want to validate the xml based on meta type value using xsd. For "VideoTitle" i would like check for String type and for ReleaseDate" i want to check for date format. Thanks, Raj

    Try the below statement in “Competitor Lost To” picklist (IndexedPick2)
    IIf (([<ReasonWonLost>] = 'Lost to Competition' AND [<IndexedPick2>] IS NULL), N, [<IndexedPick2>])
    after you enter this do sign out and then sign in, then check
    PS: You need not change it to lookupvalue, the above statement will work as it is

Maybe you are looking for