Query whit ListPrice "Last Purchase Price""
hi,
I am making a user query in which I want to use the list price "Last Purchase Price" but i can't because don´t find it on the table "OPLN".someone can help me?
thanks.
Hi Mariono
The Last Purchase Price and Last Evaluated Price are on the item master table OITM.
Kind regards
Peter Juby
Similar Messages
-
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 AMHai ...
please help me in this query,my question is not clear or?? -
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 -
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.
ThanksSo.. 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 -
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 -
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 -
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 -
Approval if Unit cost is lesser or equal to last purchase price
Dear experts,
Is it possible to give query based approval if the unit cost in the PO is less or equal to the last purchase price of the particular item. If there are more than one item then it should validate for all items. Even if there is deviation in any one of the item it should go for the approval.
Please guide me in doing this.
thanks and regards,
Yeshwanth PrakashHi Yeshwant.....
This is Not at all possible even through query. You can have some work around for that but you can not get direct solution for this....
Approval for Row level data is always not possible.....
Please check this thread....
Re: Query base approval for PO Unit Price
Regards,
Rahul -
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 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 !! -
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 LrdDear 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,
LeoLeo
Why not just use FMS to determine last price by item/provider?
Regards
Jeffrey -
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 youdear
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 -
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 PMYou 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. -
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 Agarwalhi
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
Maybe you are looking for
-
Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called? It's just annoying that I have to reach high for it!
-
Closed Captioning - Remain on Screen
I'm experimenting with Closed Captions in Captivate 3. I'd like the text in the caption to remain on the screen until the end of the slide. Seems like the text (by default) goes away as soon as the last syllable of audio has been spoken. I've tried a
-
Right click with mouse in Word 2013 does not give the list with translate and synonyms etc
since i upgraded to windows 8.1 right click on words in word 2013 does not open the regular list where you can tap on synonyms and translate. it does work if i touch the screen. i moved to mouse mode but it does not help can anyone help... i am sta
-
HI, I Want to display Sno in output . like : 1 Name 2 3 4 Please give me solution
-
ICal events not showing up on remote computer
Hi, I am using .Mac to sync iCal. I write an appointment in Computer A. Computer B will sync the appointment and allocate the time on computer B but doesn't show what the appointment was. Any idea?