Last Purchase Price for a product

Hi,
I need some here.
Item A is made up of Item B and C (in production BOM)
Item B is in production BOM as well and is made up of Item D, E and F.
I need to calculate the Last Purchase Price of Item A, which is:
Item C (LPP $10)
Item D (LPP $12)
Item E (LPP $20)
Item F (LPP $30)
Total Item A LPP = $72
Any suggestion of what the best approach of doing a query/ a XL report for this?

Hi!
1. Define BOM for Item A
2. Link a Price List for tht.
3. Update your child items and child price's in a price List.
4. Click the orange Drop Down Arrow in BOM window.
5. This will automatically calculate the Item Price for Item A and update the Price List tht linked in it's BOM
Hope Help u !!

Similar Messages

  • Costing of product with last purchase price

    Hi
    how would be possible to get the Costing through CO with the last purchase price of the Product .
    suppose one product is having nos of SFG & RM.
    Rgds
    Pankaj Agarwal

    hi
    Is it that the the system has to pick up the last purchase price cost for standard costing run or while executing the production order, if it is while production order  update material price as planned price in material master using Z program and use planned price as strategy for valuation variant in actual costing variant.  But this is little bit cumbersome every time you have to run the z program for every purchase order for that raw material and if the prices are highly volatile  input price variance will be very high
    krishna

  • Last Purchase price Warehouse wise for given date

    Hai all....
                      I Want query report for Last purchase price for all items, warehouse wise for given date, i tried following query
    SELECT
    T10.ItemCode,
    (Select i1.Itemname from  oitm i1 where i1.itemcode = T10.[ItemCode]) as 'ItemName',
    T10.[Whscode],
    (SELECT T1.[DocDate] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'Doc_Date',
    (SELECT T1.[DocNum] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'GRPO_NO',
    (SELECT case avg(T2.[Rate]) when 0 then avg(T2.[price]) else (avg(T2.[price]) * isnull(avg(T2.[Rate]),1)) end  FROM PDN1 T2 where  T2.[DocEntry] = max(T10.[DocEntry])
    and T2.Itemcode = T10.[ItemCode]) as 'Unit_Price',
    (SELECT isnull(avg(T3.[Rate]),0) FROM PDN1 T3 where  T3.[DocEntry] = max(T10.[DocEntry])
    and T3.Itemcode = T10.[ItemCode]) as 'CurrencyRate',
    (Select isnull(max(OP1.Docnum),0) from OPCH op1 where op1.Docentry in
    (SELECT T12.[trgetEntry] FROM PDN1 T12 where  T12.[DocEntry] = max(T10.[DocEntry]))) as 'Invoice_No'
    FROM PDN1 T10 
    INNER JOIN OPDN T11 ON T10.DocEntry = T11.DocEntry and T11.[DocType] = 'I'
    where T11.Docdate <= '[%0]' and t10.targettype <> 21
    GROUP BY
    T10.[ItemCode],T10.[Whscode]
    this query working good but problem in this query is ,when the user put back dated entry means this report will show wrong value,bcz i write this query based on MAX of docentry please help me to solve this issue
    Edited by: Prasanna s on Mar 27, 2009 5:49 AM
    Edited by: Prasanna s on Mar 27, 2009 8:00 AM

    Hai ...
    please help me in this query,my question is not clear or??

  • Last Purchase Price Report

    Hello All,
    I need to get a Report on the Last Purchase Price for some materials. Where can I find this report?
    Is there any report that shows the materials related to the suppliers.
    Best Regards,
    Miguel
    Edited by: Miguel Barbosa on May 25, 2009 5:59 PM

    You can try via MBEWH, that has the history of price at material master level
    Or go to EKPO and get there the actual price of the PO
    Or go trough EINE and EINA and review the actual price..
    if you have conditions, then go to KONP to see the validity prices.
    hope that could help you.

  • DTW for Last Purchase Price

    Dear all,
    Can we import Last Pruchase Price to SBO using DTW ? so, I can see the historical of last purchase price when I open PO
    Best regards
    Wibisana

    Dear Wibisana,
    what is your pupose to update last purchase price list ?
    To update price list, you must have the explanation about how to update last purchase pricelist:
    Last Purchase Price List
    The prices in this price list are updated automatically by the system when the following transactions are performed:
    1.     When you enter an incoming invoice # see Purchasing
    1.     When you enter a goods receipt # see Goods Receipt
    1.     When you enter a positive opening balance for an item # see Inventory and Stock Postings
    1.     When you enter a positive inventory result that triggers a goods receipt # see Inventory and Stock Postings
    1.     When a product with a BOM is manufactured, where the price of the product is calculated from the last purchase prices of the components # see Production.
    1.     When data imports are performed
    If none of these transactions have been performed in the system for an item, the "Last Purchase Price" price list will not contain the item
    Only the list of the transactions mentioned above changes the price of an item in the "Last Purchase Price" price list.
    Even if you enter one of these transactions, but assign it the value 0, the price will not be included or updated in the "Last PurchasePrice" price list.
    You can refer other price lists to the "Last Purchase Price" price list with a defined factor. You cannot, however, change the prices in the "Last Purchase Price" price list manually.
    then you use the DTW template:
    1. item
    2. item_prices
    you can have both from this folder:
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oItems
    then, in the DTW, you use object oItem.
    the DTW templates (item and item_prices) must contains the data where they will not act like import but update.
    in the item_prices, you must put :
    1. linenum : 0 for pricelist 1; 1 for pricelist 2; etc
    2. pricelist : 1 for pricelist 1; 2 for pricelist 2; etc
    actually, in the pricelist window, do you see that the pricelist last purchase price have base pricelist ? in the form, you will see that the 01 Purchase Price List have last purchase price as its base pricelist.
    So, in the template you must use it.
    After updating using DTW finished, you could try to use one of the item in the purchase order and see if the unit price changes or not.
    I will ask my friend to send the template if you need.
    Rgds,

  • Queries Report For Last Purchased Price

    Dear All,
    Can someone helps me to get queries report for last purchased price vs new purchase price that recently being enter on purchased order.
    Trigger by purchased order document posting and we can choose % variance
    Report by order :
    No. Document PO ; Vendor code ; Vendor Name ; Doc Posting Date ; Item code ; Item Name : New Purchased price ; Last Purchased Price; Variance; Buyer Name
    i will used it on alert management.. each time there % variance automaticaly sending an email with those report.
    Thanks

    So.. is it the right query if i join it?:
    SELECT T0.DocEntry, T1.CardCode, T1.CardName, T1.DocDate, T0.ItemCode, T0.Dscription, T0.PriceBefDi, T2.LastPurPrc, (T0.PriceBefDi - T2.LastPurPrc) AS Variance, ((T0.PriceBefDi - T2.LastPurPrc)/T0.PriceBefDi) AS 'Variance%', T3.SlpName FROM POR1 T0 INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode
    select * from opor where month(docdate) = MONTH(GETDATE()) and Year(docdate) = YEAR(GETDATE())
    But i still find document with last month posting include on the report adn the report became different too

  • Query for last 5 Purchase Price for items

    Dear All
    I was trying to write a query in which
    i want to display Items with last 5 purchase price
    itemcode     UOM      Last Purchase Price        II Last Pur Price       III Last Pur Price        IV Last Pur Price         V Last Pur Price
    but not getting right result because of future posting and post date entries as I am considering Max(DocNum) for Query.
    SELECT distinct a.ItemCode, a.invntryUom
    , (select Price from PCH1 where itemcode=a.itemcode and
    docentry=(select max(docentry) from PCH1 where itemcode=a.ItemCode)) as 'II Pur. Price'
    , (select Price from PCH1 where itemcode=a.itemcode and
    docentry=(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode))) as 'II Pur. Price'
    , (select Price from PCH1 where itemcode=a.itemcode and
    docentry=(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode)))) as 'III Pur. Price'
    , (select Price from PCH1 where itemcode=a.itemcode and
    docentry=(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode))))) as 'IV Pur. Price'
    , (select Price from PCH1 where itemcode=a.itemcode and
    docentry=(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode and docentry<(select max(docentry) from PCH1 where itemcode=a.ItemCode)))))) as 'V Pur. Price'
    , Max(b.docentry) as 'MaxDocEntry'
    FROM OPCH INNER JOIN
    PCH1 b ON OPCH.DocEntry = b.DocEntry INNER JOIN
    OITM a ON b.ItemCode = a.ItemCode
    group by a.ItemCode, a.invntryUom
    order by a.ItemCode
    Please help me on this.
    Regards
    Anubha Paliwal

    Hi........
    Try this......
    SELECT Top 5 T0.[DocNum], T1.[ItemCode], T1.[Dscription], T1.[Price], T3.[ItmsGrpCod],
    T3.[ItmsGrpNam] FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON
    T2.ItmsGrpCod = T3.ItmsGrpCod WHERE T3.[ItmsGrpNam] ='[%0]' ORDER BY T0.[DocDate] desc
    Regards,
    Rahul

  • Last Purchase Price History

    Dear All,
    Is there any way we can have the Last Purchase Price History in SAP system?
    Our customer has 2 stock transfer. In those 2 documents, she has 2 difference last purchase price on the document. But actually, she didn't issue any GRPO of that item during the period between the 2 stock transfer. So the last purchase price should be the same. How can I find out all the document during that period which may affect the last purchase price in the system? Thanks a lot.

    When you enter an incoming invoice # see Purchasing
    PO - No
    When you enter a goods receipt # see Goods Receipt
    Goods Receipt: No
    When you enter a positive opening balance for an item # see Inventory and Stock Postings
    Not sure what. But they don't have opening balance for the items last month
    When you enter a positive inventory result that triggers a goods receipt # see Inventory and Stock Postings
    Not sure what?
    When a product with a BOM is manufactured, where the price of the product is calculated from the last purchase prices of the components # see Production.
    The item is not BOM
    When Landed Costs are performed. (Note: When adding AP invoice after landed costs was created, the last purchase price will remain unchanged)
    No landed cost for that item

  • Last Purchase Price wasn't updated after GR with 0 price

    I created Goods Receipt for the item with total 0. When I check last purchase price I see still a price from the previous document and not zero.
    How can I make last purchase price as zero?
    Thanks,
    Olga

    The Goods Receipt PO does not update the 'Last Purchase Price' list. The 'Last Purchase Price' list can only be updated by the following documents:
    AP Invoice
    Goods Receipt (Inventory Transactions)
    Initial Quantity (Inventory Transactions)
    Inventory updates e.g. Stock Posting
    Landed Costs
    Production Order
    Please refer the following WIKI
    [Does a Goods Receipt PO update the Last Purchase Price List?|https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=36438427]

  • Price List Auto Update based on Last Purchase Price

    Dear Expert
                         I have a problem in updating the PriceList at one of my client site . They are making CST purchase
    Eg.    We are entering purchase through Goods Receipt PO item cost 100RS and CST tax 20 RS
             Then Copy to AP invoice . so the item cost is coming to 120 as CST is non deductible tax .
             If we goto Price list , it will clearly show last purchase Price is 120 every thing is fine till now
           Now the issue comes :- company is incurring frieght charges 10 Rs or any amount this also has to be included to cost that we are entering through Landed Cost . This 10Rs is automatically adding to cost . if we look the item cost it will be 130 this is also correct . But the Problem is that when we go to Pricelist we find that Last Purchase price as 110 that is 100 Rs base doc price +10 Rs Frieght (Landed Cost) . .
    Actually the Last Purchase Price should come as 130 (1002010) . We are dealing with 4000+ items it is difficult to mannually update the Price List .
    Regards
    Shihabuddin CC
    Jr . Consultant SAP B1
    CCS Technologies P Lrd

    Dear Shihabuddin,
    In most localization, price is for before tax price. If you want tax included in the price, you can create your own price list to calculate.
    Thanks,
    Gordon

  • Last purchase price of item per plant

    Good day!
    Need help retrieving the last purchase price of an item
    per plant regardless of the vendor. i know they are in
    EINA and EIPA tables but i couldn't extract them.
    anybody knows a query for this?
    Thank you very much for your help.

    Thanks, Suda, I understand I cannot update the Last Purchase Price itself - should have made myself more clear. 
    What I want to do is change the Price List (field OPLN ListName) selection in the Item Master from one of our created lists to the Last Purchase Price price list.  That way, when we create purchase orders, the item price is filled in with whatever price we last purchased.  I don't want to manually create another last-price price list because I would have to constantly update it.
    Since I can manually change to the Last Purchase Price price list in the Item Master, there must be some way to do this for all items using the Data Import or the DTW?
    Thanks again,
    Shelby

  • Proposal: option to use 'last purchase price' in Purchase Order by default

    Hi,
    We have had with at least two customer the following requirement.
    When they generate a new A/P PO, they want SBO to fill the price column for an item with the last purchase price of that item/provider.
    We did this using an FMS selectign fields LastPurCur/LastPurPrc from OITM, but this last price is independent of the provider. ONe solution is using user-tables.
    What would be a very nice addition to SBO is the ability to handle a last purchase price by the pair item-provider, and some check somewhere, in order to enable the automatic fill of this value in the purchase documents (PO, Good Receipts, Invoices) based on this pair.
    If anyone has developed such a solution, I would be very glad to hear about it.
    Otherwise, please, forum moderators, consider this request for upcoming versions.
    Regards,
    Leo

    Leo
    Why not just use FMS to determine last price by item/provider?
    Regards
    Jeffrey

  • Last purchase price

    Hello
    I upload Purchase Order through DTW
    But the system does not take the price in the the file but take the last evaluated price instead, as I believe there is no record for last purchase price
    How to keep the price recorded in the file? Or how to upload a last purchase price?
    Thank you

    dear
    pleaes kindly refer to note 991114 to see if it helps on your issue.
    i  paste the contents for your reference.
    The behaviour of SAP Business One 2005A SP01 when calculating the row
    total has changed.
    A new checkbox named 'Calculate Row Total Using Unit Price' has been
    added to Adminstration -> System Initialization -> Document Settings ->
    General tab.
    Once it is checked, B1 will calculate the Line Total as (Quantity * Unit
    Price * Discount), so 'Price After Discount' becomes a read-only field.
    Since 'Price' field in DI API is pointing to that field, the price set
    in this field is ignored, therefore the system will use the default
    price or zero if it does not exist.
    In order to adjust your needs to this new behaviour, you can choose
    either of the following:
    1.  Uncheck the box 'Calculate Row Total Using Unit Price' thus you will
        be able to keep using the 'Price' field (or column in DTW) as
        before.
    or
    2.  Use the 'UnitPrice' field instead of the 'price' field if you want
        to keep 'Calculate Row Total Using Unit Price' checked. When using
        DTW, you must rename the 'Price' column as 'UnitPrice'.
    best regards,
    xiaodan an
    sap business one forum team

  • Add a Price List based on last purchase price

    Hi!
    I'm working with SAP B1 2005 A SP01 PL39 and I'm trying to add a Price List via DIAPI using this code in VB.net.
    Dim oPriceList As SAPbobsCOM.PriceLists
    oPriceList = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPriceLists)
    oPriceList.PriceListName = "PriceList Z"
    oPriceList.BasePriceList = 0  '// last purchase price
    oPriceList.Factor = 1
    oPriceList.GroupNum = BoPriceListGroupNum.boplgn_Group1
    oPriceList.RoundingMethod = BoRoundingMethod.borm_NoRounding
    oPriceList.Add()
    The problem is when the Price List is added, the base price list changes and becomes "PriceList Z" instead of "last purchase price"!!
    After i try to update the base price list from "PriceList Z" to "last purchase price" manually at Inventory > Price Lists > Price Lists and it works!
    I even tested the code changing the base price list to "last evaluated price"...
    oPriceList.BasePriceList = -1  '// last evaluated price
    ... and it works too! The Price List is added based on the last evaluated price.
    I'm only having problems with last purchase price... why?

    Thanks for the quick response Petr but my problem isn't solved yet...
    As you can read in my first post, i've changed the code and based the new price list on the "Last Evaluated Price".
    This "Last Evaluated Price" isn't in the OPLN table and the new price list (with last evaluated price based on) is added successfully.
    The problem comes when i try to add a new price list based on the last purchase price.

  • PO Last Purchase Price ??

    Hi ! currently I'm working on a P.O. Report. My query is :- I want to display the last purchase price of the P.O..
    For this requirement, I've joined the tables EKKO & EKPO, sorted on material & plant. And now I want to fetch the last purchase price from EIPA table using the info rec no. For that how can I write a select query.
    Right now I'm using :- 
    SELECT SINGLE PREIS    INTO DISP-LASTPR      FROM EIPA  WHERE INFNR    = DISP-INFNR.
    which is not solving the problem.
    Please help.

    Hi,
    Try below logic.
    Select <required fields> from EINA
    into table <itab>
    where matnr = <matnr>.
    sort <itab> by erdat descending
    read table <itab> into <wa> index 1.
    Last info record = <wa>-infnr.
    Regards
    Vinod

Maybe you are looking for

  • Resolution help with PB 15" 1.67 and Apple 20"

    Hi, I have a PB 1.67 and an Apple 20" display that I am trying to get to work right. I am setting it up for mirroring what's on the PB and I haven't been able to get the 20" to display the full 20" at a resolution that looks anything but lousy. If it

  • Applet save file!! URGENT!!!!!!!!!

    How do i make an applet display a file dialog and save a file to a client's machine? I am using robot to capture the applet screen and want to save this image.... I keep getting accesscontrolexception and have read a lot of articles about signing app

  • Unable to open catalog with access

    I had a few issues with my computer, so i backed up (copied) all files, pictures and the .psa files to an external disk. I would like to re-open these old catalogs and edit the paths to where the pictures are. I therefore tried to open up a copy of t

  • Executing SQL From A Forms Procedure

    I am looking to execute a composed SQL command (ALTER USER ***** IDENTIFIED BY ****). The old execute immediate command in forms 5 would be the one I would have used, does any know the Forms 6i equivalent. Regards Stephen

  • Is Adobe going to bring back the old multi Camera monitor?

    Why did Adobe take away the  Old Multi camera monitor away in the first place. I'm using Adobe because I  like Adobe not because I want Adobe to be like Final Cut. Are there other users out there who agree with me? The new multi camera monitor is ver