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

Similar Messages

  • 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

  • How to get item price ?

    Dear Experts
    i have already tried GetItemPrice DI API method , in AR invoice when i choose a particular item it gives item price as 1000  but for  the same card code and item code GetItemPrice method returns 550 . I am using SAP B1 8.81 PL09 .
    Thanks in advance
    Regards
    Arun

    Dear Gordon
    thanks for your quick response , the item is for selling.
    Regards
    Arun

  • How to get invoice price based on order date or delivery date?

    Hi,
    Our system is configured to create invoices with pricing based on date of delivery.
    But we have a number of customers who get pricing based on date of order.
    Right now, people are manually changing the price and then generating the invoice.
    Is it possible to:
    1) add a ZZ field in the customer master that indicates which pricing date to use?
    2) have SAP generate the invoice with the correct pricing date based on this selection?
    Thx.
    Andy Jacobs

    Hi Andrew,
    We do have the exact same problem.
    One solution would be to create a new order type. Within that new type you can specify what date should be proposed as pricing date by SAP.
    Unfourtantely, here we are not able to add a new type. Does anyone know how this can be solved in another way?
    Thanks,
    Tim

  • 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

  • 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

  • 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

  • How about get item count of table in formGroup.vm

    JHeadstart Team:
    I want change maxColumns=" 1" or" 2" by item count of table .but I do not know how about get item count of table .
    #if (${JHS.current.group.columns} > 10)
    #set ($majin = 2)
    #else
    #set ($majin = 1)
    #end
    <af:panelForm rows="1" maxColumns="$majin" width="${JHS.current.group.formWidth}" id="${JHS.current.group.shortName}FormItems">
    majin
    #FORM_ITEMS()
    </af:panelForm>

    You can do this using the following syntax:
    #if (${JHS.current.itemContainer.items.size()}>10)
    maxColumns="2"
    #else
    maxColumns="1"
    #end
    Steven Davelaar,
    Jheadstart Team

  • How to get fiscal period based on date and Fiscal year?

    Hi Guys,
               Can anybody tell me how to get Fiscal period based on date and Fiscal Year or fiscal year variant?
    Thanks,
    Gopi.

    Hi,
    Please refer the code below:
    *: Report:  ZFISCALYR                                                  :
    *: Date  :  2004                                                       :
    *: Description: Demonstrates how to return the corresponding fiscal    :
    *:              year and posting period for a company code and posting :
    *:              date or posting date and fiscal year variant.          :
    REPORT  zfiscalyr NO STANDARD PAGE HEADING.
    TABLES: ekko.
    PARAMETERS:     p_bukrs TYPE ekko-bukrs,
                    p_bedat TYPE ekko-bedat.
    DATA: gd_fiscalyr  TYPE bapi0002_4-fiscal_year,
          gd_fiscalp   TYPE bapi0002_4-fiscal_period.
    DATA: gd_fiscalyr2 TYPE T009B-BDATJ,
          gd_fiscalp2  TYPE bapi0002_4-fiscal_period.
    DATA: gd_periv     TYPE t009-periv.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * get fiscal year and period - (requires date and company code)
      CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
        EXPORTING
          companycodeid = p_bukrs
          posting_date  = p_bedat
        IMPORTING
          fiscal_year   = gd_fiscalyr
          fiscal_period = gd_fiscalp.
    * Alternative fiscal year function module
    * - (requires date and fiscal year variant code from T009 table)
    * gets first entry in fiscal year variant table (will need to choose
    * correct one from table rather than just using first entry)
      SELECT SINGLE periv
        FROM t009
        INTO gd_periv.
    * get fiscal year and period
      CALL FUNCTION 'DETERMINE_PERIOD'
        EXPORTING
          date                      = p_bedat
    *    PERIOD_IN                 = '000'
          version                   = gd_periv
       IMPORTING
          period                    = gd_fiscalp2
          year                      = gd_fiscalyr2
       EXCEPTIONS
          period_in_not_valid       = 1
          period_not_assigned       = 2
          version_undefined         = 3
          OTHERS                    = 4.
    *END-OF-SELECTION.
    END-OF-SELECTION.
      WRITE:/ 'From function module: BAPI_COMPANYCODE_GET_PERIOD',
            / 'Fiscal year is:', gd_fiscalyr,
            / 'Fiscal period is:', gd_fiscalp.
      SKIP.
      WRITE:/ 'From function module: DETERMINE_PERIOD',
            / 'Fiscal year is:', gd_fiscalyr2,
            / 'Fiscal period is:', gd_fiscalp2.
    Thanks,
    Sriram Ponna.
    Edited by: Sriram Ponna on Apr 17, 2008 8:59 PM

  • How to get item field values for old versions?

    I need to be able to query old field values from previous versions of items in a SharePoint list. I can't execute code on the server (it needs to work with SharePoint Online/O365 for a start).
    So far the ONLY API I've that lets me do this is the lists.asmx GetVersionCollection SOAP call.
    This lets me specify a single field name and returns an XML structure with the values for the various versions, along with the modification time and who made the change - but NO reliable way of actually identifying *which* version (i.e. an ID or label). That
    is, if I know I need to fetch the Title value from version 512 ("1.0") of item 1 in list "Documents", I don't see how to reliably parse the results to determine which entry is version 512. While they may be returned in order, in many cases
    the entries are actually missing when there was no field value present (or perhaps when the field hadn't been created yet). I've tried comparing the Modified date to the Created date of the corresponding FileVersion item (which I can get via CSOM or REST),
    and while it works some of the time, it's not reliable. I've also looked at the output from the lists.asmx GetVersion API but I don't see how that's useful either, as the Created property for all versions always seems to be just the date the file was originally
    created.
    It does seem odd to me that there's not a neat way of doing this - if I need to return information for several fields but just for a single version, I have to make a whole lot of requests that return far more info than I need, and then I need to figure out
    how to parse the returned text in the case of, say, multiple-value taxonomy fields etc.
    Anyone tried doing anything similar here?
    Thanks
    Dylan

    try these links:
    https://support.office.microsoft.com/en-us/article/Track-and-view-version-information-for-SharePoint-list-items-2d69d936-fb0b-4c84-830e-11708e6ec317?CorrelationId=f87cf6ea-8cbf-446a-a4a0-e2c3a86b3425&ui=en-US&rs=en-US&ad=US
    https://social.technet.microsoft.com/Forums/en-US/e48ff216-7ed1-4b20-9f21-d496b1583eea/how-to-get-item-field-values-for-old-versions?forum=sharepointdevelopment
    http://sharepoint.stackexchange.com/questions/20019/get-meta-data-from-a-previous-version-of-a-document-through-webservice-in-moss-2
    http://sharepoint.stackexchange.com/questions/121594/getting-information-from-previous-versions-of-a-sp-list-using-csom
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • How to get BP kind based on user name?

    Hi,
    How to get BP kind based on user name?
    Is there any table other than BUT000 which gives the Business partner no. and BP KIND?
    What is BLUEPRINT table?

    Hi John,
    do you mean Type:
    1     Person
    2     Organisation
    3     Group
    or Role like
    000000     Business Partner (General)
    BBP000     Vendor
    BBP001     Bidder
    BBP002     Portal Provider
    BBP003     Plant
    BBP004     Purchasing Company
    BEA001     Billing Unit
    BUP001     Contact Person
    BUP002     Prospect
    BUP003     Employee
    BUP004     Organizational Unit
    BUP005     Internet User
    The Role can be found in BUT100.
    Regards
    Gregor

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

  • Import of item prices based on quantity ranges??

    I know how to setup different prices in B1 for an item based on quantity ranges (e.g. $10 qty <20, $5 qty 20 - 50, $1 qty > 50),  However, I have thousands of inventory items so I am wondering if anyone knows of a way to import the prices and quantity ranges.  From my research I have found no way to do this.
    Thanks

    Check this thread:
    DTW 2nd set of price break not added well

  • How to get a price drop for Adobe Audition CC?

    When the CC subscription model and pricing was announced, I was pretty annoyed to say the least. Paying the equivalent of $25 a month (UK based) for one piece of adobe software, regardless of the fact that Audition was probably the cheapest Adobe CS application previously, so basically paying the same amount per month as Photoshop, Premier, which all cost many orders of magnitude higher than Audition, and basically the entire cost of the software within 18 months, and then keep paying - was pretty outrageous.
    Been getting spam recently about a new version of Audition CC so wondered if they'd corrected the price.
    No.
    However, what adobe HAS done, is HALVED the cost of Photoshop, a program that used to cost TWICE as much as Audition!
    Not sure what customer pressure brought this change about, but is there any way we can get the price of Audition down?
    Is anyone even using CC?

    jezston wrote:
    Is anyone even using CC?
    Apparently quite a few people are. I'd guess though that the majority are opting for the complete CC suite, and not the standalone version. Also, I'd guess that the whole thing has swung towards what might be described as 'corporate' use since, as you say, it's not exactly an enticing option any more as a rental (thanks a bunch, Sarb-Ox), especially for a single app.
    What I do know is that the developers are aware of this issue, very much so. Unfortunately though any decisions about it have to be corporate, and accordingly how much pressure can be bought to bear over this - well that's a bit moot...

Maybe you are looking for