on 02-02-2017 10:14 AM
Hi All,
How to take item wise latest price from the receipt from production(OIGN) table. It should only show the latest price. This report should contain the DocNum, Date(Latest date),Item code, Price.
Hi Taseeb Saeed,
Thanks for the reply. This report doesn't show the latest price for all item. It's skip some items from the report. Can you help me?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you explain your requirement with an example? Which valuation method is used for receiving items? Why do you need such report?
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I want to take this report to view the latest COGP (Cost of goods produced). SO that i can identify the amount spend to produce that particular item. Based on this report i will plan for cost reducing.
Ex:
ItemCode(IGN1) Latest Receipt from production date(OIGN) Receipt from production No(OIGN) Receipt from production price(IGN1)Hello,
Try this
SELECT
DocEntry
, ItemCode
,Dscription
,Price
,DocDate
FROM IGN1
WHERE CAST(DocEntry AS NVARCHAR(50)) + '-' + CAST( LineNum AS NVARCHAR(50))
IN (
SELECT
CAST(MAX(DocEntry) AS NVARCHAR(50)) + '-' + CAST( MAX(LineNum) AS NVARCHAR(50)) [Key]
FROM IGN1
GROUP BY ItemCode
)
Thanks
Engr. Taseeb Saeed
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.