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

Query to compare OITM and AITM to find UDF updates/changes

I need to check when a certain UDF in the OITM was changed. Therefore I would like to receve help to build a query to link the OITM to the AITM and compare a UDF value.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 02, 2012 at 08:50 AM

    HI

    Put this query as Alert and kepp the frequency as '2 minutes'

    select t0.Itemcode,t0.udf1 as 'Value Changed',t1,udf1 as 'Previous Value' from oitm t0 inner join AITM t1 on t0.ItemCode = t1.ItemCode

    where t0.udf1 <> t1.udf1

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 02, 2012 at 08:59 AM

    Hi

    you can try this in alerts

    select * from aitm where updatedate=getdate() or

    select a.ITEMCODE

    ,a.UDF

    ,b,UDF

    from OITM a

    inner join AITM b on a.ITEMCODE =b.ITEMCODE

    where a.UDF != b.UDF

    instead of * you can insert the field (UDF) you want to check

    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.