Query to "Show Differences"

Hi,
I am wanting to set up an alert for certain users when a particular field in a document is changed.  I can track when a change is made through ADOC but I'm not quite sure how to track what field has changed and show the old and new values, like the 'Show Differences' button in the Change Log does.
Does anyone have a query or any suggestions that will help me get this data?
Thanks,
Michael

Hi Michael,
Have you searched the forum?
You may check this to start: Re: Query For Sales Order Amendments
Thanks,
Gordon

Similar Messages

  • Help with query to show differences between two tables

    I have two tables that are identically defined. I need to capture changes to the old table. Want a result set that shows the following. I need to know what is new, change, or deleted.  Thanks
    X1,n,new
    z0,n,delete
    z2,y,change
    z3,n,change
    drop table ifs_rmapopold
    create table ifs_rmapopold (rqappl varchar(2), rqcardcurr varchar(1))
    insert into ifs_rmapopold (rqappl, rqcardcurr) values ('z0', 'n'), ('z1', 'n'), ('z2', 'n'), ('z3', 'y')
    drop table ifs_rmapopnew
    create table ifs_rmapopnew (rqappl varchar(2), rqcardcurr varchar(1))
    insert into ifs_rmapopnew (rqappl, rqcardcurr) values ('x1', 'n'),('z1', 'n'), ('z2', 'y'), ('z3', 'n'), ('z4', 'n')

    Got this clumsy example working. But Sorna answer is  really nice.
    create table #temptable (rqappl varchar(2), rqcardcurr varchar(1), updateind varchar(10))
    -- change, get new value
    insert into #temptable
    select n.*, 'change' from ifs_rmapopnew n
    inner join ifs_rmapopold o on n.rqappl = o.rqappl and n.rqcardcurr <> o.rqcardcurr
    -- new
    insert into #temptable
    select n.*, 'new' from ifs_rmapopnew n
    where rqappl not in (select rqappl from ifs_rmapopold)
    -- deleted
    insert into #temptable
    select o.*, 'deleted' from ifs_rmapopold o
    where rqappl not in (select rqappl from ifs_rmapopnew)
    select * from #temptable

  • Query to retrieve Differences in show hstory form in BP Master Data

    Hi ,
    We need to have the query where the differences in show history of BP Master data.
    Please do the needful.
    Thanks
    Vinod Boga
    +91-98496 45825.

    Hi Vinod
    Is not enough using Tools --> History Log ??
    It show a form with a modification history of your BP

  • Want to Find Table name of Show Differences Values from Change Log of Bills of Material

    Dear Experts,
    I Add and edit the data of Bills of Material Form in SAP B1.
    I know that with using change log i can find out the history
    to change that particular record.
    I also know that It Use AITT and ATT1 for History Data to be saved.
    but when i click on Show Differences button then it will display details history
    but i can't find out that table that data are display in Show Difference.
    I hope you all are understand my requirement.
    Thanks & Regards,
    Nishit Makadia

    Hi Nishit...
    There is no separate table for the History, it is a query driven report shown in the show in the change log.
    if you need to understand the change u need to check with the history tables....
    hope helpful
    regards
    Kennedy

  • Show difference between the years and how much money increased ever year

    Hi everyone
    I need to make the following code show how many years it took for it to reach its required goal.
    show difference between the years and how much money increased ever year. ..
    I am totally confused at the moment... any help would be greatly appreciated...
    declare
    a number(9):=1000;
    b number(9);
    c number(9);
    d number(9);
    begin
    for d in 2012..2099
    loop
    dbms_output.put_line(a||' '||d);
    if a >2000 then
    exit;
    end if;
    a :=a + a*10/100;
    end loop;
    end;
    Result for above query:
    Price Years
    1000 2012
    1100 2013
    1200 2014 etc...
    I need to show the amount of years it took to reach its goal, which was $2000
    and also the change in price, how much it increased every year...
    Thanks
    Umair

    960361 wrote:
    Hi everyone
    I need to make the following code show how many years it took for it to reach its required goal.
    show difference between the years and how much money increased ever year. ..
    I am totally confused at the moment... any help would be greatly appreciated...
    declare
    a number(9):=1000;
    b number(9);
    c number(9);
    d number(9);
    begin
    for d in 2012..2099
    loop
    dbms_output.put_line(a||' '||d);
    if a >2000 then
    exit;
    end if;
    a :=a + a*10/100;
    end loop;
    end;
    Result for above query:
    Price Years
    1000 2012
    1100 2013
    1200 2014 etc...
    I need to show the amount of years it took to reach its goal, which was $2000
    and also the change in price, how much it increased every year...
    Thanks
    UmairHow do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Create navigation iviews to show differents documents from the same  folder

    Does any body knows how can i create navigations iviews that show differents documents from the same folder? This is my situation i have a folder that include documents for diferents countries, i want create a navigation iview that show only the documents for Canada from this folder.

    The only other option is to give user access using taxonomy. But it seems like a lot of extra work to keep documents in the same directory. anyway, here is the overview of steps:
    1. create index (SA > System Configuration > Knowledge Mgmnt > Index Administration)
    2. create categories within the taxonomy.
    3. define Query on each category. (Content Management > Classification > Taxonomy Query Builder)
    4. create property: property namespace, property group. (SA > System Configuration > Knowledge Mgmnt > Content Mgmnt > Global Services > Property Metadata)
    5. <b>assign props to the docs.</b>
    6. Schedule the crawler to create classification index.
    7. classify docs so that docs actually go recide in the categories
    <b>8. Create role, page and KM Navigation iViews for end user to browse the taxonomy instead of going directly to the repository.</b>
    9. restrict permissions on the taxonomy for different user groups.
    Kumar

  • Creating Query to show items from open sales orders with a/p invoice

    Hi experts,
    I am trying to create a query that will show what items/quantities are still in open sales orders that can now be filled by an incoming shipment of goods, processed through the a/p invoice.
    This needs to be done using subqueries, which I have no experience with.  I am trying to do this using the ORDR and RDR1 tables to show the open items from the sales orders and the OPOR and POR1 tables to show items just received in to inventory.  I would like the query to show exactly the open item's, their quantities, the posting date from the sales order and the customer name that can now be filled from the new shipment through the a/p invoice.
    I appreciate the assistance,
    Hayden (on behalf of Todd)

    Hello,
    try this
    SELECT T0.[DocDate], T1.[ItemCode], T1.[Dscription],( T1.[Quantity] - T1.[DelivrdQty]) As "Open Qty" FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDueDate]  <= [%0]And ( T1.[Quantity] - T1.[DelivrdQty]) != 0
    Try this query in query manager.
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jul 13, 2011 6:27 AM

  • Query to show all A/P invoices associated with a PO

    Hi,
    I need some help to create a query to show all A/P invoices associated with a PO. I would like the input to be a PO# and the output to show all the A/P invoices and be able to drill down to the A/P invoices.
    Any help would be appreciated.
    Thanks!
    Jane

    hi,
    P.O target documents query try this,
    SELECT distinct 'GRN', D0.DocNum,D0.DocDate, D0.DocDueDate, D0.DocTotal,'AP INV', I0.DocNum,I0.DocDate, I0.DocDueDate, I0.DocTotal, I0.PaidToDate
    FROM ((OPDN D0 inner Join PDN1 D1 on D0.DocEntry = D1.DocEntry) full outer join (OPCH I0 inner join PCH1 I1 on I0.DocEntry = I1.DocEntry) on (I1.BaseType=20 AND D1.DocEntry = I1.BaseEntry AND D1.LineNum=I1.BaseLine))
    WHERE (D1.BaseType=22 AND D1.BaseRef='[%0]') OR (I1.BaseType=22 AND I1.BaseRef='[%0]') OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry FROM PDN1 WHERE BaseType=22 AND BaseRef='[%0]'))
    Jeyakanthan

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • Query to show component cost of production order

    Need help writing a query to show the component cost of a production order, using moving average valuation method.
    I understand the table oinm has all history for an item and its calculated price.
    would like to query a production order to show the cost of components at the time of receipt of that production order.
    ideas?

    I have created this query that will work:
    SELECT t0.docdate,t0.appobjtype as [Prod/Comp],t0.itemcode,t0.dscription,t0.outqty,t0.calcprice,(t0.outqty*t0.calcprice) as [Trans Value],t0.warehouse,t0.appobjabs as [Production Order] FROM OINM T0  WHERE t0.transtype='59' and T0.[AppObjAbs] =[%0] order by t0.transnum
    The prompt is where you enter the production order document number.  It will show the calculated cost of components at the time of receipt.
    Thanks for the guidance.
    Rich

  • IN NEED OF A SCCM 2012 QUERY THAT SHOWS LAST TIME SOFTWARE WAS USED OR OPENED

    Hello
    I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%adobe acrobat%pro%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
    update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    = "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%"

    Did you create a software metering rule for each software title? if not then you need you do that first and it will take over a week before you see results.
    Also keep in mind that your query will only find x86 software titles.
    http://www.enhansoft.com/

  • Debugging mode - sql query not showing up in console

    Hi,
    I have turned on the debugging mode via Admin->Server Configuration->Debug Level. Set it to debug mode.
    I restarted the server. I wanted to test if the query will show up if there was an error in the query.
    However I am not seeing any query. It complains that there is some error, but doesn't show what query string it is using.
    Anyone got any idea how I can get query to show up on console (BI Publisher web interface) as opposed to
    going and seeing the log files on the server.
    Please let me know.
    Thanks
    Girija

    Thankyou Vetsrini.
    I will try out custom log table approach.
    I see that there is a way to test pl/sql scripts via the DBMS output
    and for that we need some invoking program like SQL PLUS to get the
    log out into a file.
    However, we wanted to see if there is a way to set Pl/SQL log files
    and get PL/SQL logs when the calling program is BI Publisher.
    regards
    Girija

  • Query that show total discount on A/R Invoice

    Dear all,
    I would like to have query that show summary of each invoice number that show 'Total of discount'  ( 'Total of discount' = total of discount in line item + discount of total invoice ). Data that I would like to show on this query is as follow :
    Invoice No, Invoice Date, Customer Code, Total before discount, 'Total of discount',  Total Amount, Vat amount
    Please kindly suggest the way to get this data.
    Thanks you in advanced.
    Angnam

    Hi Angnam K,
    Try This one...hope this will serve your purpose.
    SELECT  DocEntry, DocNum,   CardCode, CardName, DocDate, [Total Before Discount] , [Totaldiscount]+  [OinvDiscount] as [Total of discount], VatSum [Total Tax]      FROM (
    SELECT T0.DocEntry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], SUM(T1.[LineTotal])[Total Before Discount],
    SUM(T1.[PriceBefDi] * T1.Quantity *T1.[DiscPrcnt])/100 as [Totaldiscount]
    ,Case When T0.[DiscPrcnt] <> 0 Then  (SUM(T1.[LineTotal])/ T0.[DiscPrcnt]) Else 0 end [OinvDiscount] ,T0.VatSum
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    Group By T0.DocEntry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DiscSum] ,T0.[DiscPrcnt],T0.VatSum )Sales
    thanks,
    Kumar
    Edited by: itskumaramit on Jul 13, 2011 12:43 PM

  • The workbook report no authorization, but related query can show part data

    Dear All,
    We meet an error, The workbook report no authorization, but related query can show part data.
    We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO'  & ' WZA")(User didn't have authorization for this condition),  and workbook report no authorization.
    Then we checked  authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
    But when we execute the related query with same condition. the query can open and show WZA's data.
    I'd like to know the reason.
    thanks & Best Regards,
    Kent Yu

    Dear All,
    We meet an error, The workbook report no authorization, but related query can show part data.
    We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO'  & ' WZA")(User didn't have authorization for this condition),  and workbook report no authorization.
    Then we checked  authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
    But when we execute the related query with same condition. the query can open and show WZA's data.
    I'd like to know the reason.
    thanks & Best Regards,
    Kent Yu

  • SCCM 2012 QUERY THAT SHOWS SOFTWARE INSTALLED AND LAST TIME IT WAS USED OR OPENED

    Hello
    I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%adobe acrobat%pro%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
    update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    = "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%

    See me reply to your other post with the exact same details, in the CM07 forum.
    http://www.enhansoft.com/

Maybe you are looking for

  • Shared Hard disk is not appearing on networked computer

    I recently set up a network with my new iMac and my older iMac (both on 10.5.3). Everything was working perfectly until a couple of days ago I noticed that the primary computer's hard disk is no longer showing up when I connect the second iMac. Howev

  • Cursor Legend not aligned correctly

    Hi, For a while LabVIEW has been misplacing the cursor legend bar.  The attached image shows what i am talking about.  If I try to move the cursor or have it placed somewhere (Such as at the top of the peaks) it shifts left a little bit.  It can some

  • Micro SD / transflash probems

    I haven't been able to connect my new MacBook to my Nokia phone or its card alone (using external card reader). When I try to mount the card, nothing happens. If I open "/Volumes", though, there's the name of my card, and shows as read-only. Inside i

  • Referring to startpage by clicking a button

    Hello to all, I have a bsp-application (MVC) with two controllers. When I fire an event in the second controller, the first controller is called. But this is wrong. Why? Please can someone help me? Thanks in advance. Andreas

  • Equium M40x-149 - Icons on desktop apeared bigger

    Hi there, I hope someone can help me. I booted up my laptop today and the icons on the desktop appeared bigger. I right clicked on the desktop then went to properties-settings and noticed that the highest resolution I could get was 1024x768, but when