Get Item price based on Price List

Hi all,
anyone has some sample of how to get the price for an item based on a specified price list, selected by the user, following the SAP's rules for assigning item price?
I've used the GetItemPrice method, but it doesn't need a price list reference and i think it gives back the basic price of the item.
I'm able to get the price list and the item code. How can i get the correspondig price (unit price) for that item?
Thanks in advance.
Nick

Thanks Rasmus,
i've done. I get the PriceList currently selected by the combo box and update the price list used by the BP, and after that i use the getitemprice.
So it should work now, i get the correct prices related to the pricelist selected and i think that using the getitemprice the price that i obtain follows the sap B1 logic in assigning prices.
After that i'm considering to set back the pricelist on the BP to the one that is originally stored in the BP.
Thanks for your help

Similar Messages

  • How to update open PO price based on Price date category in contract?

    I've created a contract/ outline agreement with Price date category as '2'- Delivery date. (Path is Item details> More Functions> Additional Data). This means that PO price should be determined based on its delivery date.
    In contract, there are two date ranges for conditions. PO creation and delivery date falls under different ranges. Now, the open PO price is getting updated based on PO creation date but not on delivery date. We have tried using MASS transaction for this.
    Can someone suggest any solution?

    The Price Date category field was visible in contract  but not in our PO. Due to this, MEMASSPO was not updating the field value and we were changing the value to '2' manually by debugger. Hence some table updates were missing and causing the whole issue.
    The solution is to change the screen layout for PO. If Price date cat field is hidden, then you need to make it optional entry in SPRO- Purchase Order - Define screen layout at document level--> Quantity and Price for ME21N , ME22, ME22N and for field selection key assigned to PO document type.
    This field will be available in ME22N- Condition Control TAB.
    Regards
    Ankita

  • How to get Item Price Based on Valuation Method

    Hello All,
    I want to get the price of an item based on its Valuation method (FIFO,Moving Average) for calculation .
    Is their any Objects for getting the Item Price Based on Valuation Method or any other way around for getting the
    price.
    Thanks & Regards,
    Amit

    Hello,
    You Can receive the Moving Average price of an Item :
    MovingAveragePrice property returns the Moving average price
    AvgStdPrice property returns the standard price
    sample:
    Dim oItem As SAPbobsCOM.Items = oCompany.GetBusinessObject(BoObjectTypes.oItems)
            oItem.GetByKey("ITEMCODE")
            oItem.MovingAveragePrice
            oItem.AvgStdPrice
    Best of my known in 2007 there is no interface for FiFo prices.
    You can use OINM table to query the FiFo prices
    Regards,
    J

  • Qry:How to get different price for each price list (variable area) in order

    1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
    2- I add a location store from a table in line item and I want to see this area in order,.
    I 'm created 2 field location(item line and order), 1 table location
    I tried this for exemple : select $ [userfieldlocation.OITW]

    Thanks Suda for your answer,
    the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,     
    I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data  line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    Juste a another question : where you found this and What is: ' 38.1.0 '
    Is it in document (System information):Item=38 Pane=1 ??
    Thanks,
    Ouchen

  • 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

  • How to get item's cost price?

    I want to get Item's cost price. I get a business boject 'item',g_oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems),There are two key to decide one cost price,one is 'itemcode',another is 'whscode',How to get one record by using 'GetByKey' method? Thanks.

    Hi Lu,
    You can get the price in the warehouse as following if you don't want to use a recordset:
            Dim oItem As SAPbobsCOM.Items
            Dim dPrice As Double
            Dim i As Integer
            oItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
            oItem.GetByKey("MyItem")
            For i = 0 To oItem.WhsInfo.Count - 1
                oItem.WhsInfo.SetCurrentLine(i)
                If oItem.WhsInfo.WarehouseCode = "TheWarehouseIWant" Then
                    dPrice = oItem.WhsInfo.StandardAveragePrice
                End If
            Next
    Hope it helps,
    Adele

  • Variant Pricing _ each item price based upon main item.

    Hello,
    I request your help for inputs on Variant Pricing functionality for given scenario.
    Each material will have different price based upon different brand / main item.
    For example u2013 Inbuilt-Sat Nav will be priced different in Toyota Prius & Toyota Avensis.
    Let say, we have 2 products (Toyota Prius & Toyota Avensis.) each having 10 different options/ items which are charged separately.
    Hence would like to know how we can set up the price in variant based upon Main item & sub item.
    Toyota Prius / Customer / InBuilt Sat Nav = £1200
    Toyota Avensis / Customer / InBuilt Sat Nav = £1500
    Your inputs are appreciated.
    Thanks & best regards

    If you want to maintain seprate prices for each variants go to VK11 use the following condition types -
    VA00: this condition type expresses an absolute amount.
    u2013 VA01: this condition type expresses the surcharge/discount as a percentage
    above are based on sales org, material and variants combination, so as you said you requirement is based on customer will charge different prices, so create new condition table with customer combination and add in to same access sequesnce and condtion type.
    For more details check the below link:
    http://www.sap-img.com/sap-sd/steps-for-sd-variant-configuration.htm
    regards
    Satish

  • 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

  • Scale price get in KONM based on vbap quantity

    hi friends,
    i want take scale quantity price for the sale order materials . each material have 2 or mare prices . based on quantity i take scale price.
    example.
    materials quantity = 5.
    scale price:
    quantity price
    0 130
    2 120
    3 100
    i need to take scale price based on quantity < or = to scale quantity
    how to take this.
    please help me very urgent .give me the sample coding.
    regards,
    jayachandran

    Hi Jai,
    chec this.
    The condition type has on the section scale:
    Scale Base Type = Quantity.
    Rule for Scale Rates = Ascending.
    Maximum Number of Scale Dimensions = OneDimensional.
    Unit of Meas = KM.
    I want to determinate the price.
    If I have a product range of 1 to 5 the price is $ 10.
    If the units range is 6 to 10 the price is $ 20.
    quantity equal 1, price equal 10.
    quantity equal 2, price equal 10.
    quantity equal 5, price equal 10.
    quantity equal 6, price equal 20.
    quantity equal 7, price equal 20.
    quantity equal 10, price equal 20.
    Currently.
    quantity equal 1, price equal 10.
    quantity equal 2, price equal 20.
    quantity equal 5, price equal 50.
    quantity equal 6, price equal 120.
    quantity equal 7, price equal 140.
    quantity equal 10, price equal 200.
    cheers,
    Hema.

  • List Price versus Market Price

    What is the difference between list price and market price under the purchasing tab in the item master? Does one have precendce over the other? Which one populates the price field in iProcurement?

    user8663638 wrote:
    What is the difference between list price and market price under the purchasing tab in the item master?In the PO line if you enter an item Purchasing defaults the list price for the item (from item definition) in the (unit) price field (quantity based line types). You can accept the default list price or change it. This list price also gets populated in the list price field (PO line, Price Reference tab).On the other hand, if you enter an item Purchasing populats the market price for the item in the market price field (PO line, Price Reference tab)
    For supplier inventory replenishments item list price must be present ot generate a requisition. Market price is not used in such places
    user8663638 wrote:
    Does one have precendce over the other? In the Savings Analysis Report, when Quote is not defined, the Negotiated amount is calculated by multiplying the Market Price present in the PO line and quantity ordered. If market price is missing then it takes the List price.
    So here market price has precedence over list price.
    Please note that there is a documentation bug in some places in the PO user guide and Metalink etc sources where it states that in the Savings Analysis Report list price will have precedence over market price. This is wrong. You have to run the report with both the values present in PO line to find the truth. Also in the Savings Analysis Report description portion in the PO user guide the correct statement is present.
    user8663638 wrote:
    Which one populates the price field in iProcurement?List price is used in iProcurement for inventory items when no Blanket or Quote is there.

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

  • Pull Price from basic Price List

    Hi Experts,
    Could you help us build a FMS to populate item price in a marketing document from the basic price List (price list 1) if the price is blank, not found in the Special Prices and then in the assigned pricing list for a specific customer?
    Let's be more specific with an example:
    Items 1 and 2 are on a Special price List for customer C20000.
    Items 1, 2, 3 and 4 are on Price List Distributor, which is assigned to C20000.
    All items are in the Basic Price List.
    Order placed for items 1, 3 and 5.
    SBO finds the price for items 1 (from Special Price list) and 3 (Price List Distributor) correctly, it works perfectly. However, price for item 5 is blank. In this case, we want to look for the price from the main price list, let's say price List 1.
    The customer can't populate all items in every Price List, as it would be very hard to manage. By the way, Price Lists are entered manually or uploaded, not based on the Basic Price List.
    I hope this is clear. Thanks a lot for your prompt answer.
    Regards,
    Andres

    Hi Art,
    The issue is actually supported by SBO out of the box. You have three types of prices, and the system looks in the following sequence:
    1. Special pricing by BP - Item. This list includes few items with specific pricing agreements.
    2. Price List assigned to the BP (our customer has one by Customer Group, which includes some items with manual pricing and the rest at the regualr Basic Price List.
    3. Basic Price list. The Group Price Lists are based on the Basic Price list with a factor of 1 (or anything you need). SBO automatically populates all items into the Group Price Lists, except for the items that have already a manual price entered.
    The tables that it uses are:
    OPLN - List or price lists
    ITM1 - Prices lists (actual pricing)
    SPP1 - Special pricing (or SSP2)
    In summary, we didn't have to write the FMS.
    Let me know if you have any questions.
    Andres

  • Pull price from second price list

    Hi Everyone
    We have an issue where one customer wants the price from their pricelist and the price from the standard pricelist.
    It's not the same discount on each item so I can't just create a pricing condition for the customer.
    So what I was hoping to be able to do is run the Quote as normal using the customers pricelist in the final amount column.
    Then on the smartform I was going to write some code to pull the price from our standard pricelist into its own column.
    Problem is that I haven't been able to find the tables or how to get from pricelist to material price
    Thanks in advance

    Hi Jelena
    I'm not an SD person so I may be using the wrong terminology or I could have misunderstood how this works
    What I mean by price list is when you creating a quote if you go to the header details under the SALES tab there is a box PRICING AND STATISTICS with a drop down box for choosing a different price list.  Or you can go to the ITEM DATA under the SALES B tab there is a drop down box for PRICE LIST for the item.  Which I thought was where the document got the price for the materials (but I could have misunderstood).
    Here we have an option of what we use for a standard price lets call it the US price list
    Or we can select a price list for this specific customer lets call it C price list.
    I want the document to use the C price list to determine the price for each material.
    Normally we have some pricing conditions for a customer discount which we use like so using the standard price list US price list then apply the customer discount conditions to get the net price. Either that or discount can be set for the customer that is applied to everything at the same flat rate. Which I was told was the normal way to do things.
    So the document has a unit price then applies whatever kind of discount to get the net price, which both print on the output to show the difference.
    Now what we want since this customer buys so many different materials from us and the discounts is in a range from 0 to 20% (i think) for each material.  We want to us the price list C in the document apply no flat rate discount and no pricing condition discounts.  Then on the output we want to pull the net price from the document as normal.  But on the output instead of pulling the unit price from the document (which would be the same as the net price) we want to pull the UNIT PRICE from the US price list.  That way for this customer the user entering the quote will not have to add the correct discount %  pricing conditions to each material on every quote.
    So what I was wanting to do in the smartform was  use the material number entered in the document to go get the price from the US price list but I'm having trouble finding the tables which I can do this in. 
    I hope that clears it up some

  • Moving average price based on valuation type for material

    Gurus help needed.
    we want to maintain the moving average price of the material in the pricing, and this depends on the Valuation Type. We have 3 valuation types.
    If valuation type is blank then one MAP(Moving average price) value will come and if nn one map will come and for nn one map will come.
    We have copied VPRS conditon type to YVRP and changed conditon category as T( Moving cost).
    But in pricing the YVRP price is not picking from valuation type which is blank.
    Where can  i make the settings to tell the system to pick the moving average price from the material master where the valution type is blank always based on the condition.
    Do we need to creat a routine? If so is there any standard routine which we can use or make minor changes to it?
    If it is a new routine please tell me how to start with VOFM?
    Note : We need the value to come automatically from material master same as VPRS.

    Hi
    The first method is not to set the pricing condition VPRS as statistical.
    Simply remove PR00 and it will work fine if you always use VPRS as your pricing base inside the pricing procedure.
    VPRS will reads both prices based on the price control in the material master. 
    Price control S for standard price. 
    Price control T for moving average price. 
    It is this simple if you do not have any other "Prices" in the price procedure. 
    However, if you are using one pricing procedure where for some items you price using VPRS and some others using PR00, then you should use requirement routines to enable the correct price condition type at the right time. 
    The second method involves more work as you need to write a formula (VOFM) to get that information. 
    This is how it goes :- 
    1. Set VPRS to be the first step in the pricing procedure and to be subtotal B (as standard). 
    2. Set PR00 with alt. calc. type formula, which sets the value of PR00 to be equal to the subtotal B.
    Step 1 VPRS statistical, subtotal B, reqt 4 
    Step 2 PR00 Altcty 600 
    With regards
    baalakrushnan.da

  • How to get items from a list that has more items than the List View Threshold?

    I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
    always seems to be thrown and I get no items back.
    I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
    ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
    but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
    but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
    throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
    Thanks.
    My Query:
    <OrderBy>
        <FieldRef Name='ID' Ascending='TRUE' />
    </OrderBy>
    <Where>
        <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
    </Where>
    My ViewXml:
    <View>
        <Query>
            <OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
            <Where>
                <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
            </Where>
        </Query>
        <RowLimit>2000</RowLimit>
    </View>
    Thanks again.

    I was using code below to work with 700000+ items in the list.
    SPWeb oWebsite = SPContext.Current.Web;
    SPList oList = oWebsite.Lists["MyList"];
    SPQuery oQuery = new SPQuery();
    oQuery.RowLimit = 2000;
    int intIndex = 1;
    do
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    //do something oListItem["Title"].ToString()
    oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
    intIndex++;
    } while (oQuery.ListItemCollectionPosition != null);
    Oleg
    Hi Oleg, thanks for replying.
    The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
    situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode  property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
    as well on that list of 700000+ items.
    Thanks anyway though

Maybe you are looking for

  • Label color change using AS

    Alright, I'm having some problems trying to modify a labels color via a function in ActionScript. The 'color' property of the label has a type of Unsigned integer. (uint) How can I write my color values to conform to the uint type? or better yet, how

  • Change quantity in production order

    Dear Expert, I've done production order for multiplication last year with expected quantity 22.000 kg. This year we received from subcontractor 50.000 kg. Would you be so kind and advice the best way to updated this? It's allow to go to CO02 and chan

  • Error in while creating sms

    i am getting an error message "memory full .  close some applications and try again" when im creating message directly from the call dial list. all my applications are closed still im getting this error.

  • Cisco SG500 switch and 5 gbit links without stacking

    Does the sfp ports link up to 5 gigabit when you don't use the stacking function?

  • Problems in chatroom and running slow

    I regularly go into a support chat for people with same disabilities, the chatroom is called 'parachat'. It has 3 windows one with peoples names in, the main chat room and the bit where you type then rest of background is olive green colour. Recently