Skip to Content
author's profile photo Former Member
Former Member

Data for query

Hi guys,

I need to write a query that shows the average cost of an item before a landed costs document is posted, and then after the landed costs document is posted.

I know I can get the after by just retrieving avgprice from OITM, but how can I get the before cost?

I'm guessing something using OINM, perhaps distinguishing between document types and dates to pick up the last entry's average costs before the latest landed costs document was posted?

Any tips would be greatly appreciated.

Thanks,

Michael

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 03:53 AM

    Hi Michael,

    This query is not that simple because it will be difficult to find the right time to calculate that cost and match all system calculations for item histories till that date.

    What kind of time frame you are looking for this particular query? I mean: Do you want it on any dates no matter how long times ago?

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.