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

Similar Messages

  • In wich table are stored  the last purchase price of items?

    Hi all,
    My question is in wich table are stored the last purchase price of items and what is the best way to import items price directly to the last purchase price list.
    In ITM1 appears the prices of the list prices but no the last purchase price list.
    Thank you all again.
    Regards.

    Hi
    The last purchase price are not stored anywhere as well as the last evaluated price.
    However if you want to add or update this price you can use DTW in order to update this particular pricelist.
    Hope it helps
    Regards
    George

  • Last Purchased Price not adding tax

    Hi guys, I have a new question today.
    I have my tax definition set up as Included in Price.
    So now let's say I purchase one Item A for $100
    From this $100, $10 are tax.
    When I see the last prices report it's showing correctly, $100
    But when I see the Last Purchased Price, in item master data, it's showing $90 ($100-$10). Since my tax is included in price, shouldn't it show me the full price??
    Thanks a lot!

    Danilo,
    The last purchased price is set by the unit price in the purchasing document, it does not take into account the tax amount.
    If you wanted this to be reflected in the Last Purchased Price you would need to set the tax amount for the item, and possibly the entire document to zero.
    Hope this helps,
    Lucas

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

  • 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

  • Vendor list as per last purchase price!

    I need a query to display all vendors  as per last purchase price.
    Thanks...

    hi,
    try this one,
    SELECT T2.[CardCode], T2.[CardName], T0.[ItemCode], T0.[ItemName], T0.[LastPurDat], T0.[LastPurPrc]
    FROM [dbo].[OITM]  T0 INNER JOIN PCH1 T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OPCH T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[CardCode] = '[%0]'
    GROUP BY T2.[CardCode], T2.[CardName], T0.[ItemCode], T0.[ItemName], T0.[LastPurDat], T0.[LastPurPrc]
    regards,
    Fidel

  • How to obtain last purchased price of an item

    How can i obtain the last purchased price of an item? There seems to be an 'LastPurPrc' field in the OITM table, but this does not seem to be exposed in the DI api. The last purchased pricelist is an 'internal' pricelist so cannot be used in the pricelists selection. Is there another way then just retrieving the value with a direct database Sql query?

    Hi,
    There is,  but is long :-D.
    You could check the purchase invoices by key in descendant order and check if the lines had the item, then check the price in the line to get the purchase price.
    Hope it helps,
    -M

  • Item Last Purchase Price

    In SAP 8.8 inventory table OITM, there's a 'Last Purchase Price' field. This particular field grabs the price from Item Posting List (Right click on Item Master Data and select 'Inventory Posting List' from the list). Inventory Posting List normally consists of goods issue, jounal entry, inventory transfer etc.
    For some strange reasons, some of the items have negative 'last purchase price'. When I further tested out by drag and relate those items to PO, the last PO was created years ago and the price is not what it shows in 'last purchased price'. Seems like this 'last purchase price' field is showing some strange result after internal inventory transfer. Any idea why it is causing this? Many thanks.

    Hi......
    You can get the last purchase price by a Query report or you can get it by FMS at transaction level........
    For report try this....
    SELECT Top 1 T0.CardName, t1.ItemCode, T1.Price, T0.DocNum  FROM OPCH T0 Inner Join PCH1 T1 On T0.DocEntry=T1.DocEntry
    Order By T0.DocDate DESC
    Regards,
    Rahul

  • Last Purchase Price & Last evaluated Price

    hello experts,
    i just wanna know what is the difference in between Last Purchase Price and Last evaluated price. our company uses FIFO.
    what is the effect in goods issue if i will use last Purchase Price or Last evaluated price.
    Thanks in advance.
    FIDEL

    Hi Avelino,
    The last Purchase Price is the last price paid for an Item, meaning that this price is updated when an AP Invoice is posted as this is considered the purchase price. The price is not updated by Goods Receipt or Prchase Order as an example.
    The Last Evaluated Price or Last Calculated is updated when either running the Stock Audit Report or the Stock Valuation Report.
    Please note that if the company has been defined with 'Manage Item Cost per Warehouse' in the Company
    Details and the Stock Audit Report is used to update the last evaluated price, then the price will be as calculated in the default warehouse of the Item.
    For the Goods Issue, the price as given on the rows is only informative, the price that will be credited from the stock account in the Journal Entry is the calculated cost price according to the valuation method that has been defined for the item (FIFO, Moving Average, Standard).
    With the Form Settings you can chose to display the 'Item Cost' field in the Goods Issue, this will however only be populated after the Goods Issue has been added. The reason for this is that the price could have changed between the moment when the Goods Issue form was opened and the time that it is added.
    I hope this helps.
    Jesper

  • 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

  • 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

  • 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

  • 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

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

  • 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

  • Issuer of sso ticket is not authorized SAP gui logon

    Hello, Would you please brief me how to enable SSO between two ABAP systems for NWBC. We are not able to browse from source system to target system in NWBC, a logon prompt of second system is displayed for each browser session. What I did. Certified

  • How to output a mono channel

    Does anyone know how to output mono tracks to a single output. When I try to output a mono signal, all my outputs are paired i.e. to outputs 1-2, 3-4 etc Is is possible (it must surely be!) to do this?

  • Confused about nonGUI beans and events

    The crux of this is the question "When will a NON GUI bean use events to communicate?" Articles I have read advocate that Beans are not just GUI components, and I agree. However I've only ever seen examples of GUI Beans! I am writing a non GUI Bean t

  • Adjustment layer selective erase won't work

    I use adjustment layers all the time in PS elements, and usually if I create an adjustment, I can erase part of the layer with the eraser tool. This has stopped working. Now my erasor tool doesn't affect adjustment layers at all. (Photo layers work j

  • JSP mapping for REST based URLs

    Hi, I am in the middle of developing a web app for which I would like to have REST styles URLs like http://localhost/myfotoapp/ http://localhost/myfotoapp/<album-name-here> or http//localhost/myfotoapp/album/<album-name-here> http//localhost/myfotoap