Purchasing and need last price of an item

Hi ,
i need an help to find the last price or previous rate of an item for which we are going to create a PO
how to get this information from table (ie we are going to create a report to get this previous rate of an item)
thanks in advance,
userg

Hi,
PO header & line Archive data are stored in PO_HEADERS_ARCHIVE_ALL and PO_LINES_ARCHIVE_ALL tables respectively.
Pl.make necessary changes in following SQL
SELECT POA.LINE_NUM , POL.ITEM_ID , POA.UNIT_PRICE, POL.BASE_UNIT_PRICE
FROM PO_LINES_ALL POL, PO_HEADERS_ALL POH, PO_LINES_ARCHIVE_ALL POA
WHERE POA.PO_LINE_ID = POL.PO_LINE_ID
AND POA.PO_HEADER_ID = POH.PO_HEADER_ID
HTH
Sanjay

Similar Messages

  • New Purchase and need advice

    I purchased an iPod on Ebay and it did not come with the CD software that you would get had I purchased brand new. I attempted to download software from the website but once downloaded it won't install. Can someone help me with the exact link I should use to get this software? I'm totally lost here...

    http://www.apple.com/ipod/download/
    You'll also need iTunes
    http://www.apple.com/itunes/download/

  • Last price in a purchase requisition

    Hello to everyone,
    is there any way to get in a purchase requisition the last price of a purchase order for a material without any development?
    Regards

    Dear,
    The price which you see in the Purchase Requisition generally comes from Material master record.Same you can see in MM03 under accounting 1 view.
    This is the valuation price which generally fetches in MMR after calculating Moving average / standard  price .
    The same price will fetch in Purchase requisitoin which signifies the valuation price of material.
    So it will never fetch your Last PO price in the PR.
    Hope it helps.
    Utsav

  • Last purchase and sales price

    Dear Experts,
    I do require a report in which we can compare last purchase vs sales price of same item.
    Item Code,  description, last purchase rate, last sales rate ,     Profit  ,     %
    1234 ,            furniture   ,   1500.00  ,             1800.00  ,            300.00 ,    20%
    I can find last purchase price from master data but couldn't find last sales price.
    Any inputs will be highly appreciated.
    Regards,
    Ravi

    Hi,
    Try this query:
    SELECT case when T1.[ObjType] = 17 then 'OR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORDR T1 ON T0.CardCode = T1.CardCode INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 15 then 'DN' end as DocType,T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ODLN T1 ON T0.CardCode = T1.CardCode INNER JOIN DLN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 23 then 'QT' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN OQUT T1 ON T0.CardCode = T1.CardCode INNER JOIN QUT1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 13 then 'AR' end as DocType,T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode INNER JOIN INV1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 16 then 'SR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORDN T1 ON T0.CardCode = T1.CardCode INNER JOIN RDN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    union all
    SELECT case when T1.[ObjType] = 14 then 'AR' end as DocType,
    T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price] FROM OCRD T0 INNER JOIN ORIN T1 ON T0.CardCode = T1.CardCode INNER JOIN RIN1 T2 ON T1.DocEntry = T2.DocEntry WHERE T2.[ItemCode] = [%0] and T0.[CardCode] = [%1] Group by T1.[DocNum], T0.[CardCode], T1.[DocDate], T2.[ItemCode], T2.[Dscription], T2.[Quantity], T2.[Price],T1.[ObjType]
    Thanks & Regards,
    Nagarajan

  • 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

  • Please help to get onhand stock report with last purchase and billed date warehouse and item wise

    please help to get onhand stock report with last purchase and billed date warehouse and item wise

    Hi Rajeesh Ambadi...
    Try This
    SELECT distinct T0.ITEMCODE , t1.ItemName, T0.ONHAND as 'Total Qty',  
      T1.LASTPURDAT ,t1.LastPurPrc
    FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
    INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD left join ibt1 t3 on t3.itemcode = t0.itemcode and t3.whscode = t0.whscode
    WHERE
    T0.ONHAND>0
    AND T0.WhsCode ='[%0]'
    Hope Helpful
    Regards
    Kennedy

  • I purchased and installed the Photoshop Photography Program last year but my computer crashed and now I need to re-install it again...can someone help?

    I purchased and installed the Photoshop Photography Program last year but my computer crashed and now I need to re-install it again...can someone help?

    Hi Sangeeta,
    For a fresh download on a new hard drive, it's best to start with the CC desktop app. Sign into adobe.com and download it here: creative.adobe.com/products/download/creative-cloud
    You can then launch the desktop, sign in and download PS & LR.

  • Buying and item from iTunes, What action do you take in between having chossen an item to purchase and then being able to click on the word BUY. I have clicked on the price as it satates in the tutorial and I get a list of actions such as gift this item

    This question is for anyone who has purchased an item from iTunes.
    What action or actions do you take inbetween having selected the item to be purchased and having the word BUY appear on your screen for you to clic on it?
    I have been told to clic on the price. When I do that this list appears; gift this, add to wish list, tell a friend, copy link, share on Facebook & share on Twitter.
    Should I clic on one of thses or press enter after having clicked on one of these?
    What action do you take inbetween having chossen an item to purchase and being able to see the word BUY?

    Thank you for the answer. Apple support has been working on this question for several days.
    I don't think they see any difference between the two tabs as I didn't think there was any seperation and the arrow was the place to clic on the price.
    What would it take to get your statment added to the iTune tutorial?
    For that matter what would it take to get actual tutorials listed under the heading Tutorials listed at the bottom of most iTunes screens. If you clic on the heading Tutorials at the bottom of iTunes pages it lists ads not tutorials.
    Thanks again for your help.

  • Purchase Price Comparison by Items

    Hi Experts,
    Need your advise for a report. I need a report which would show the two previous purchase prices of items to compare them. Something like below:
    Latest Purchase Price
    Previous Purchase Price
    Difference
    Item Code
    I am able to create the report per item but could n't for all items or a list of all items.
    Can you help please?
    Thank you.
    Best Regards
    K
    The report for single item as input parameter is:
    /* SELECT FROM [dbo].[PCH1] T1 */
    DECLARE @Item AS varchar(50)
    /* WHERE */
    SET @Item = /* T1.ItemCode */ '[%0]'
    Select TC.Item, TC.MDate, TC.MPrice [Last Purchase Price], TD.NDate, TD.NPrice [Previous Price], TC.MPrice-TD.NPrice [Price Diff]
    From
    (Select TA.Item, TA.Date MDate, TA.Price MPrice From
    (SELECT T1.[ItemCode] Item, T0.[DocDate] Date,T1.[Price],Row_Number() Over (Order By T0.[DocNum] desc) as RowNum
    FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.ItemCode = @Item
    )TA
    Where TA.RowNum = 1) TC
    INNER JOIN
    (Select TB.Item, TB.Date NDate, TB.Price NPrice From
    (SELECT T1.[ItemCode] Item, T0.[DocDate] Date,T1.[Price],Row_Number() Over (Order By T0.[DocNum] desc) as RowNum
    FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.ItemCode = @Item
    )TB
    Where TB.RowNum = 2) TD
    ON TC.Item=TD.Item

    Dear Kanu, i was searching for the same query and then designed this one;
    this will give you the recent and the last purchase date (from GRPO) and their rate differences, with the document number of ALL ITEMS from item Master Data (of-course NULL to which are not purchased/received). i usually add queries through command on CR  and then do the formula stuff (like suppressing etc). therefore forwarding you the same.
    select ItemCode ,ItemName,
    ---- Last GRPO No(by Document Date) -----
    (Select top 1 PDN1.DocEntry from PDN1 INNER JOIN OPDN ON PDN1.DocEntry = OPDN.DocEntry where ItemCode = OITM.ItemCode order by OPDN.TaxDate desc) as LatestGRPONo,
    -----LATest PUrchase Date ---
    (Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry where ItemCode = OITm.ItemCode order by opdn.TaxDate desc)
    as LatestPurchaseDate_Postingdate,
    -----Last Purchase Price ----
    (Select top 1 PDN1.Price from PDN1 INNER JOIN OPDN ON PDN1.DocEntry = OPDn.DocEntry where ItemCode = OITm.ItemCode order by OPDN.TaxDate desc) as LastPurchasePrice,
    ------Previous GRPO ----
    (Select top 1 OPDN.DocEntry from PDN1 INNER JOIN OPDN ON PDN1.DocEntry = OPDN.DocEntry where PDN1.ItemCode = OITM.ItemCode and OPDN.TaxDate = ((Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry
    where ItemCode = OITm.ItemCode and OPDn.TaxDate < ((Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry where ItemCode = OITm.ItemCode order by opdn.TaxDate desc)) order by opdn.TaxDate desc))) as PreviousGRPONo,
    -----Previous Purchase Date
    (Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry
    where ItemCode = OITm.ItemCode and OPDn.TaxDate < ((Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry
    where ItemCode = OITm.ItemCode order by opdn.TaxDate desc))
    order by opdn.TaxDate desc) as PreviousPurchaseDate,
    ------ Previous Purchase Price
    (Select top 1 PDN1.Price from PDN1 INNER JOIN OPDN ON PDN1.DocEntry = OPDN.DocEntry
    where PDN1.ItemCode = OITM.ItemCode and  OPDN.TaxDate = (Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry
    where ItemCode = OITm.ItemCode and OPDn.TaxDate < ((Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry
    where ItemCode = OITm.ItemCode order by opdn.TaxDate desc)) order by opdn.TaxDate desc)) as PreviousPurchasePrice,
    ------ Difference
    (Select top 1 PDN1.Price from PDN1 INNER JOIN OPDN ON PDN1.DocEntry = OPDn.DocEntry where ItemCode = OITm.ItemCode order by OPDN.TaxDate desc) -
    (Select top 1 PDN1.Price from PDN1 INNER JOIN OPDN ON PDN1.DocEntry = OPDN.DocEntry where PDN1.ItemCode = OITM.ItemCode and  OPDN.TaxDate = (Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry
    where ItemCode = OITm.ItemCode and OPDn.TaxDate < ((Select top 1 opdn.TaxDate from PDN1 INner join OPDN ON PDN1.DocEntry = OPDN.DocEntry where ItemCode = OITm.ItemCode order by opdn.TaxDate desc)) order by opdn.TaxDate desc)) as PriceDifference
    from OITM
    Do let me know if this helps.
    Regards.

  • Last Prices and Average Price

    Dear SAP B1 Xperts,
    My requirement is a report with cols.: Item Code | Item Desc | Price, also it fulfills the conditions like
    1. Average Sales Price for the item sold since 01st April 2011.
    2. For the item which is sold before 1 year, I want last invoicing price.
    I would appreciate if you forward the Query that can be saved and run in SAP's Query Manager.
    Version: SAP B1 8.81 PL07
    MS SQL 2008
    Awaiting Xpert Comments...
    Regards,
    Papil
    Edited by: SAP De' Papil on Oct 3, 2011 11:49 AM

    Hi,
    Try this query:
    SELECT T0.ItemCode, MAX(T0.Dscription) 'Description', AVG(T0.PRice) 'Average Price',
    (SELECT T0.[LstEvlPric] FROM OITM T2 WHERE T2.[ItemCode] = T0.ItemCode) as 'Last Purchased Price'
    FROM INV1 T0
    INNER JOIN OINV T1 ON T1.DocEntry=T0.DocEntry
    WHERE DateDiff(DD,T1.DocDate,'04/01/2011')<= 0
    GROUP BY T0.ItemCode
    Thanks.
    Clint

  • I got a new laptop (Macbook Pro) and my IPhone is synced with my previous laptop. I've recorded dozens of very long (un-emailable) Voice Memos over the last few weeks and need to get them from my IPhone onto my new laptop. How do I do this?

    I got a new laptop (Macbook Pro) and my IPhone is synced with my previous laptop (which I no longer have). I've recorded dozens of very long (un-emailable) Voice Memos over the last few weeks and need to get them from my IPhone onto my new laptop.
    How do I do this?
    (when I click on the Sync option I get the warning: "Are you sure you want to sync music? All existing songs and playlists on the iPhone will be replaced with songs and playlists from your iTunes library." I fear that if I click this I will lose all of my important Voice Memos as well)

    Just to add to what ChrisJ4203 said.  You can sync them to your new computer using iTunes by selecting to Include Voice Memos on the Music tab of your iTunes sync settings and syncing.  However, you still need to re-establish syncing with the new computer without iTunes erasing all the iTunes media from your phone (as the warning mentioned).
    If you copy your entire iTunes folder (not just your music) from your old computer to your new one, along with other non-iTunes media you may be syncing with iTunes (such as contacts, calendars and any photos synced to your phone from your old computer) by using migration assistant of following one of these methods: http://support.apple.com/kb/HT4527, then when you sync again with your new computer it will recognize your phone and sync as it did before.  You will still have to authorize the new computer for any Apple IDs used to purchase from the iTunes and App stores (in iTunes>Store>Authorize this computer). 
    After that you can sync your voice memos to your computer as mentioned earlier.
    If you want to archive your voice memos before you do anything with iTunes, you can use a 3rd party program such as PhoneView or Touch Copy.

  • I have purchased a new computer and authorized my iTunes with my Apple ID; however, my iPod Classic, which I have had for many years, will not sync hundreds of songs that I have purchased and says the device needs to be authorized.  Help!

    I have purchased a new computer and authorized my iTunes with my Apple ID; however, my iPod Classic, which I have had for many years, will not sync hundreds of songs that I have purchased and says the device needs to be authorized. 
    I have searched high and low and there does not seem to be a way to authorize the iPod Classic.  What can I do to sync my purchases to my iPod?  I have tried reformatting/restoring it as suggested.  It continues to only allow me to sync non-icloud/itunes content. 
    Help!

    What exactly happens when you try to sync?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    If so have you done anything like update iTunes on the computer since it last successfully synced?
    Do the songs play in iTunes?          
    Does any media now sync to the iPod?
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod       
    Try syncing using the manual method                
    Managing content manually on iPhone, iPad, and iPod

  • I ordered Adobe XI pro last year and need to reinstall it.  I cannot find my serial number. I downloaded the software online.  Can you look up my order. I ordered it last year around this time.

    I ordered Adobe XI pro last year and need to reinstall it.  I cannot find my serial number. I downloaded the software online.  Can you look up my order. I ordered it last year around this time.@

    Once you get your S/N and download the software, back them up to a CD or backup HD. Not doing that is like purchasing a CD, installing software, and tossing the CD in the trash.

  • HT201272 i need to re download a song that i purchased and accidentally deleted. how?

    i need to download a song that i accidentally deleted. how do i do that?

    Yes, it tells you exactly how to do this:
    Open iTunes. (You can download the latest version of iTunes.)
    If you're not already signed in, choose Store > Sign In and type your Apple ID and password.
    If you're in the iTunes Store, click the Library button, in the upper-right corner, to go to your library.
    Make sure that you have "Show iTunes in the Cloud Purchases" enabled in your iTunes preferences by going to iTunes > Preferences in the Store tab and clicking OK.
    In your iTunes library, click the content type you wish to download using the content selector in the upper-left. Choose Music to download music, Movies to download movies, and so on.
    Locate the item or title you wish to download.
    Click the download icon to download that item.
    Note: The download icon for previously purchased movies is located to the right of the movie title. To download previously purchased apps and books, you'll need to navigate to the Purchased page under the Quick Links section in the iTunes Store. For more information, follow the steps outlined below for iTunes 10.7 or earlier."

  • I recently made a purchase within a game and I have no received my item that I bought yet. After I bought this item iTunes sent me a receipt showing me where and what I bought! I still have yet to get this item! What do I do?

    I recently made a purchase within a game and I have no received my item that I bought yet. After I bought this item iTunes sent me a receipt showing me where and what I bought! I still have yet to get this item! What do I do?

    Hi
    Welcome to Apple Support Communities,
    You can redownload some in-app purchases, see the article below for more info. And, if you aren't able to redownload the in-app purchase, you can always find a link to the application developers support in the App Store.
    iTunes Store: About In-App Purchases
    http://support.apple.com/kb/ht4009
    Redownload an In-App Purchase
    If you lose your In-App Purchases because apps were accidentally deleted or you had to restore your device without a backup, you may be able to download some of your purchases again for free. See which types of In-App Purchases you need to purchase again or can redownload for free in the table:
    Type
    Download for free
    Purchase Again
    Consumable
    X
    Non-consumable
    X
    Non-renewing subscriptions
    X
    Auto-renewable subscriptions
    X
    To download an In-App Purchase again, you must download it from within the installed app using the same iTunes Store account name you used for the original In-App Purchase.
    -Jason

Maybe you are looking for

  • Email to text message

    Before I switched to an iPhone it was possible for someone to email a message that was received as a text message (SMS). there are times that receiving a text message is much more convenient than checking email. The AT&T web site says it should be po

  • How do i reinstall CS6 after having to reinstall Windows 7

    I have my serial number, and also have the program files backed up on a DVD. I have tried downloading the trial software, but cannot get the download files to open. The big file needs the extractor and cannot find it. The smaller file which I think i

  • How to return to video chat from screen share mode?

    Is there an easy way to leave screen share mode and return to the video chat without having to stop iChat and start a new Video conference?

  • SQL Developer and Linux, Windows

    SQL Developer it is established on linux Fedora 8, a database on Windows NT. NLS_LANG=AMERICAN_AMERICA.CL8MSWIN1251 I Carry out " Save Package Spec and Body " with parameter File Encoding cp1251 but when I carry out this script in a DB instead of Rus

  • TOC for hierarchical book using child book TOCs?

    (My first hiearchical book in FM11. Win7x64.) I've created a book of two child books. Each child book has: A generated TOC as its first file. Its first paragraph in the primary flow has the paratag dtc-ChapTitle. Content as its second file, with tags