How to get PO CHANGE HISTORY from back end tables?

Hi All,
I need to get the PO Change history from the back end reason being users want to see not only the change made but who made the changes on those PO's. The PO change history.html doesnot give the information of the user who made changes to the PO. Can any one provide me the query involved in this html page. I can add the updated_by column to that. I built a query already but it is not giving me the field altered on the PO Line.
I learnt that we can get the information from the archive tables but my question is how to know which field has been changed from the original PO to the revised PO. I am unable to figure out if that revision is for Unit Price change or amount change or Bill to change etc. i.e., as it shows in PO change History html page I need to see which field is altered on a particular PO. Is that possible?
Thanks for your help!
Prathima
Message was edited by:
Prathima

Hi Anil,
Turning Audit on PO_LINES_ALL helped to track the changes. I have a problem though.
In the sense - Below is the query I created to track changes on Unit Price of a Po Line.
SELECT
poh.segment1 po_num
,pol.line_num po_line_num
,pola.unit_price price_changed_from
,pol.unit_price price_changed_to
,fnd1.description created_by
,fnd.description last_updated_by
,fnd2.description previously_updated_by
--,decode(pola.audit_transaction_type,'U','UPDATE','I','INSERT') audit_transaction_type
,pol.last_update_date
FROM po.po_lines_all_a pola,po.po_lines_all pol,apps.fnd_user fnd,apps.fnd_user fnd1,po.po_headers_all poh,apps.fnd_user fnd2
WHERE pola.po_line_id = pol.po_line_id
AND pola.audit_transaction_type = 'U'
and poh.po_header_id = pol.po_header_id
AND fnd.user_name = pola.audit_user_name
and pola.unit_price is not null
and fnd1.user_id = pol.created_by
and fnd2.user_id(+) = pola.LAST_UPDATED_BY
Now the problem is
When I update a line twice. intially I changed the unitprice value of line 4 from .72 to 0.8 and later I changed it back to 0.8 to 0.72. Intial Changed to 0.72 shuld be 0.8 but it changed to 0.72 as it is pulling from po_lines_all table. How can you capture that changed to???
po_num Line Changed from Changed to
26603     4     0.72000      0.72000
26603     4     0.80000     0.72000
Please help.
Thanks,
Prathima

Similar Messages

  • How to get bom changed history?

    somtimes bom is changed with ECN , and sometimes without ECN, how to get all bom changed history?
    it appears that 'cdhdr' and 'cdcls' is the reference table, but some fields is implicit.  can you give me some idear?

    Hi,
    Kindly go through this link below,
    Previous Version of Bill of Material
    Hope it helps
    Regrds
    Mansi

  • How to terminate all Concurrent Programs from back end

    Hi,
    Can any one tell me how to terminate all Running Concurrent Programs from back end

    post this in the EB forum;
    also, investigate the built-in package fnd_concuurent
    begin
       for r in (select Request_ID from fnd_Concurrent_Requests
                 where Phase_Code != 'C') loop -- exclude requests that have successfully completed (R = Running P = Pending)
         fnd_concurrent.cancel_request(r.Request_ID);
         commit; -- you must perform a commit after each call
       end loop;
    end;
    /

  • How to get the latest row from my Logical Table Source?

    Hi everyone,
    I have a SALARY_HISTORY table that holds the Salary Date and the Salary Amount for an employee, as a simple example. In my Business Model, I want to have a Display Folder called "Current Salary" and use the Where Clause restriction to derive the latest salary for each of my employees.
    In standard SQL Plus, I used a nested SQL statement, e.g. "where a.SalaryDate = (select max(b.SalaryDate) from SALARY_HISTORY b where b.employeeid = a.employeeid)".
    Is there anyway in the "Where Clause" filter of the LTS to derive this type of a query?
    I have tried things like "DB".""."SCHEMA"."AL_SALARY_HISTORY"."SalaryDate" = EVALUATE('SELECT_PHYSICAL MAX(SALARY_DATE) FROM "DB".."SCHEMA"."AL_SALARY_HISTORY" WHERE employeeid = %1)', "DB".""."SCHEMA"."AL_SALARY_HISTORY"."employeeid"). And I know I can't use any of the analytic functions in a where clause.
    So how do I go about this other than creating a View in the database or creating a function in the database to give me the maximum salary date for my employee?
    Thanks
    Paul

    Hi Paul,
    You could achieve this requirement using a sub query. Briefly, the steps are
    1. Just create one report with max(salary_date) for each employee.
    2. Create another report with SALARY_DATE included.
    3. Create a filter (Based on another analysis) on this report, as employee is in(Employee of report in step1) AND SALARY_DATE IS IN(SALARY_DATE of report in step1)(this is the max_salary_date for him)
    You could notice that BI Server would send two queries to the backend for this info.
    Hope this helps.
    Thank you,
    Dhar

  • How to get the MAX,MIN from the below table...

    Hi,
    Database is SQL2012 R2 Express and I have a table and would like to dig out the MAX,MIN value of a specifiied date (e.g 2014-11-03)
    Thanks

    Nope... It still output more than 1 value on the same date...
    DL-01-BAT 13.00753 13.00753 10/10/2014
    DL-01-BAT 13.01342 13.01342 10/10/2014
    DL-01-BAT 13.02706 13.02706 10/10/2014
    DL-01-BAT 13.03485 13.03485 10/10/2014
    Raw data is
    DL-01-BAT 13.00753 13.00753 10/10/2014 20:00
    DL-01-BAT 13.01342 13.01342 10/10/2014 21:00
    DL-01-BAT 13.02706 13.02706 10/10/2014 22:00
    DL-01-BAT 13.03485 13.03485 10/10/2014 23:00
    You mean after applying my suggestion?
    I dont think so
    See illustration below
    declare @t table
    Item VARCHAR(10), Reading VarChar(50),DateTimeReading DATETIME)
    INSERT @t
    VALUES
    ('DL-01-BAT', 13.00753,'10/10/2014 20:00'),
    ('DL-01-BAT', 13.01342,'10/10/2014 21:00'),
    ('DL-01-BAT', 13.02706,'10/10/2014 22:00'),
    ('DL-01-BAT', 13.03485,'10/10/2014 23:00')
    DECLARE @Date datetime = '20141010'
    SELECT Item,
    MAX(Reading) AS [Max],
    MIN(Reading) AS [Min],
    DATEADD(dd,DATEDIFF(dd,0,DateTimeReading),0) AS [Date]
    FROM @t
    WHERE DateTimeReading >= @Date
    AND DateTimeReading < DATEADD(dd,1,@Date)
    GROUP BY Item, DATEADD(dd,DATEDIFF(dd,0,DateTimeReading),0)
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to find Registry id for a particular supplier from back end

    I have just gone through the link of anil passi for getting registry_id for a particular supplier from front end
    but how come we can find registry_id from back end to a particular supplier.So, that we can get party_id of that supplier in HZ_PARTIES

    Hi,
    Sounds like you'll have more luck asking that in one of the E-Business Suite forums:
    https://forums.oracle.com/forums/category.jspa?categoryID=3
    Regards
    Peter

  • HT4859 Does anyone know how to get my Mailbox details from iCloud Back-up? I have accidentally deleted lots of emails I needed to keep. Thanks

    Does anyone know how to get my Mailbox details from ICloud Back-up?
    I deleted some emails in error and need them back.Thanks

    The iCloud backup doesn't contain email.  If you deleted the email and it isn't in your trash folder, there is no way to recover it.

  • How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    If you have backup of your files, you can get your call history back as long as you sync iPhone with iTunes frequently.
    OK, the first thing you are required to do is close the function of "prevent iPhone from syncing automatically." in iTunes, avoiding to sync iPhone again.
    Now, connect your iPhone to pc and open iTunes.
    iTunes> preferences> devices
    All the backup data in iTunes will be displayed.
    Then,click the File menu and select Devices > Restore from Back up
    your iPhone will restart and you can find them back.
    This method only can find back the latest history, to get back the old, you should turn to a third party program for help.

  • HT1212 ive changed my email on itunes and apple and att but my app store still shows my old id so it doesnt recognize me to add new apps...any clues how to get it changed on the phone

    ive changed my email on itunes and apple and att but my app store still shows my old id so it doesnt recognize me to add new apps...any clues how to get it changed on the phone

    Firstly, you need to change your details with Apple,  Start here, change your country if necessary and go to manage your account. You may have already done this.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • How can get 40,000 pix from old computer restored by Carbonite to new computer into PE 11 or 12?

    I bought a new,  faster, more storage Windows 8 computer.
    I had 40,000 pix on old computer tagged with names, event, location, date with PE 11. Also several projects involving hundreds of pix.
    Carbonite restored all files (250 gig) from old computer to new, and their tech support says they all are on the new computer.
    I bought the new PE 12 and installed it on new computer.  It has only found 4,000 pix.  I don't at all like PE 12 after enjoying PE2-11 and managing all my  pix with it.  PE11 was clearer in the pix presentation.
    Apparently when imported to the new computer, I lost the tags that went to events, location, and the person tags did not  separate family from friends etc.  I can't even find my projects.
    I was so frustrated with PE12, that I installed PE11, but everytime I try to open the Organizer, it doesn't open.
    Help.  I am so frustrated.  I am pretty sure  before I made the transition that I had written all tags to files.  When I put PE11 on the new computer, why won't it give me what I had on the old.
    This is probably my 10th generation computer change, and I never had such problems before with PE.

    I am using 10 and 11 instead of 11 and  12.  I tried to go back and edit,
    but couldn't figure out how.  Sorry,  typing errorC.
    In a message dated 2/6/2013 7:02:33 P.M. Eastern Standard Time, 
    [email protected] writes:
    Re:  How can get 40,000 pix from old computer restored by Carbonite to new 
    computer into PE 11 or 12?
    created by Jeff A Wright (http://forums.adobe.com/people/JeffAWright) 
    in  Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/5050443#5050443)

  • How to get all the values from the dropdown menu

    How to get all the values from the dropdown menu
    I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
    How do I get number of item is selection dropdown?
    How do I extract a ?name? for each value, one by one?
    How do I change a selection by referring to particular index of the item in a dropdown menu?
    Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
    RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
    Message was edited by: testtest

    The findElement method allows various attributes to be used to search. Take the following two examples for the element below:
    <Select Name=ProdType ID=testProd>
    </Select>
    I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
    Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
    If I want to search by id I could do the following:
    Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
    Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
    You can use the FindElement to grab links, text boxes, etc.
    The next example grabs from a link on a page
    Home
    Set x = RSWApp.om.FindElement("Home","A","innerText")
    I hope this helps clear it up.

  • How to get warranty service claim from nokia c5-03...

    how to get warranty service claim from nokia c5-03 in india because i have problem with nokia c5-03 I Purchase 2 week ago a new nokia c5-03 but from day 1 i facing same problem like 1) app close itself 2) internet browse close if any thing is downloading or downloading over 3) memory full always then i should reboot the phone then it work. 4) ovi map is open it shows memory full close the app So kindly help me how to get warranty service claim from nokia c5-03 in india i am unhappy with nokia c5-03
    Solved!
    Go to Solution.

    i updated software also but the same problem cont... I want to know that nokia will give back money or exchange for other new mobile

  • How to get access to my iCloud back up when setting up a new iPhone 5s which needs the newest version of iOS7 first?

    how to get access to my iCloud back up when setting up a new iPhone 5s which needs the newest version of iOS7 first?

    Set up the new phone as a new iPhone (without using your backup), then update it to the latest iOS (7.1.2).  Then go to Settings>General>Reset, tap Erase All Content and Settings, go through the setup screens again and when given the option, choose Restore from iCloud Backup and follow the prompts.  This process is explained in more detail here: iCloud: Restore your iOS device from iCloud.

  • How to get the current week from sysdate?

    Hi sir,
    i want to know how to get the current week from sysdate?
    thanks

    Hi Nicolas
    It seems you like to check my post and also make commend ;) thanks for your attention
    Have you ever read the posts above and given solutions ?Yes, I did
    Have you read the docs ? Yes, I checked
    What's the added value here ?Did youYou shared doc with solution(long one), I shared short one which point same solution(Check what Joel posted)..So what is benefit, As you can guess oracle docs are sometimes become so complicated as specialy for beginner...(At least it was like that for me and Belive me somedocs are still sooo complicated even for oracle coworkers ) But for you I dont know ;)
    => Why writting the PS in bold ?Why.. Let me think... Ohh Maybe I am looking some questions(many) and even user get answer they should not changed status so I am reading some posts and try to get problem and loosing time..
    So I am putting that PS wiht BOLD because I dont wanna lose time my friend ;) Because While I am trying to help ppl here In same time I am trying to giving support to my customer prod systems. Which mean time is very important for me...
    Hope my answer could satisfy you..
    One important PS for you.. You may not like my posts (or someone) but my friend I become tired to read&answer and make commend to on your comment which is about my posts.
    I am not newbie in forum(At least I fell like that) and I belive I know how I should make post..
    Thank you
    Regards
    Helios

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

Maybe you are looking for