Contract History Table - To track the POs for the Contract

Hi Experts,
I would like to prepare a report to track the Contracts (the history of the contracts - Purchase Orders (PO) for range of Contracts).
Example: I required to display in columns - Contract Number, Contarct Dates, PO Numbers.
So, Pleaes let me know what are the tables I need to use to get PO numbers for particular Contract.
Thanks a lot in advance.
Thanks,
Sudarsan
Edited by: KOYYA SUDARSANA NAIDU on Feb 17, 2009 11:35 PM

Hi Sudarsan,
Please have a look at the table BBP_PDIGP. The fields which contain contract details are:
CTR_LOG_SYS
CTR_GUID
CTR_ITEM_NUMBER
CTR_HDR_NUMBER
CTR_HDR_GUID
Pass the contract number and get the PO Item GUID. Pass this GUID to CRMD_ORDERADM_I table and get the PARENT GUID. Pass this PARENT GUID in table CRMD_ORDERADM_H in the field GUID and get the PO Number in the OBJECT_ID field. Hope it helps.
Thanks,
Pradeep

Similar Messages

  • History tables on 8.8

    Guys,
    We've got various add-on solutions, and reports, that examine the history tables for various B1 objects
    (documents, Business Partners, etc).
    Up until 8.8, the history tables always stored the current revision of a record as well as the historical
    revisions. In 8.8, it seems that the current revision is no longer stored in the history tables - the highest
    revision stored is the one previous to the current state.
    This has quite an impact on our add-ons and reports - does anyone know if this behaviour is by design,or a bug in 8.8?

    For example, if your create a Sales Order under 2005 or 2007, the ordr table is populated with the sales order and its values. Also a record is created in the adoc table with a loginstanc of 1, with those same (current values). Now edit the SO, (by altering the comments/remarks field for instance). What happens now is that the record in the ordr table reflects your change, as you would expect. In the adoc table, a new record with a loginstanc of 2 is created, containing these current values, so you now have two records in adoc, the first being the original data, the second being the current data.
    Now, do the same in 8.8 (I have PL06 installed). When you create the SO, the order table is populated as you would expect. However, no record is created in adoc at all. When you edit the SO, a record is created in adoc with a loginstanc of 1 which contains the original data.
    Now, we have add ons and reports that work on the historical data (not just for documents, for other objects too) that rely on thebehaviour shown in 2005/2007 as it means we don't have to link back to the other tables to get the current data - which is a big bonus when working with adoc, otherwise you have to join dependant on the value of objtype.
    If this has changed by design in 8.8 it's going to cause us quite a bit of pain.
    I can't find any info on this in the 8.8 documents, nor in the list of changes in the database/SDK for 8.8.
    I just want to know if this is by design, or it's a bug in the ramp-up versions of 8.8.
    I'm also not sure what's going to happen when we upgrade a 2007 DB to 8.8 - will it strip out the current revisions from teh history tables? I might try that today.

  • UPDATING child table based on the mods to parent record

    I have a one to many relationship between Table A and Table B.
    I have a field in both of my tables that tracks the status of the record in each table. ie: submitted, inprogress, done.
    When records are created in Table A and B, status is set to SUBMITTED. When the application is being reviewed, the status in parent table is changed to INPROGRESS. As soon as the status in Table A changes to INPROGRESS for the parent record, i also want the status in Table B to change to INPROGRESS for the corresponding child records.
    How can I do this? Triggers is one of the solns, but is there something that i can do with the PROCESS option available on the parent form?
    Any help is very much appreciated.

    Hi,
    Firstly, as Oracle is a relational database, you shouldn't need to have the setting on a child record where it will always be the same as the parent record.
    Secondly, a trigger is probably a better place to make the update, if you need to do this, as this would also handle updates outside of Apex.
    Finally, yes you can create a process to do this if you want. You can create an unconditional process (that is, it runs whenever the page is submitted) and does something like:
    UPDATE TABLEB
    SET STATUS = :P1_STATUS
    WHERE FK_ID = :P1_PK_ID
    AND STATUS <> :P1_STATUSAndy

  • Help:: Tracking the change history for a BP

    Hi All..
    I really need ur help.. Somebody please..
    I'm making a prog. to update BP (TCODE: BP) & it run well. But now, i'm getting to make report for change history in BP. As for it, i look up it in table CDHDR & CDPOS, but i didn't find it :(.
    I use these FM to update:
    1. BUP_BUPA_UPDATE.
    2. ADDR_SAVE_INTERN.
    Even i have tried to run FM ADRESSE_WRITE_DOCUMENT, but it still didn't work well.
    The questions are:
    1. Am i right for using FM ADRESSE_WRITE_DOCUMENT in order to get the history change in CDHDR & CDPOS.
    2. How to use FM ADRESSE_WRITE_DOCUMENT? What should i fill up in parameter: OBJECTID,PLANNED_CHANGE_NUMBER,PLANNED_OR_REAL_CHANGES,
    and NO_CHANGE_POINTERS ???
    3. Why do always i got the exception NO_POSITION_INSERTED in using FM ADRESSE_WRITE_DOCUMENT? How to solve it?
    4. Or are there any ways how to update well where i'm able to track the change history for BP? / Is that any functions to update BP like FM CRM_ORDER_MAINTAIN.
    Thx so much.. for ur attention
    Ur guidance is so much needed.
    Best Regards
    Daniel N.

    Hi Daniel,
    You can refer to table TCDOB for object class, it has a list of object class to which you can refer to and also the text description for each object class exists in that table.
    Regarding the object id, you need not pass the value of the object id unless and until you want to read the change history of a particular Business partner.
    Pass the value of the object class and if required the date of change to track the changes made to the BP's in that particular time period.
    Hope this helps.
    Regards,
    Karthik.

  • How to track the history of supplier sites used for tax reporting (1099)

    Hi,
    Oracle financials doesn't allow two supplier sites setup as tax reportable sites (Unless one is inactive). Suppose if the supplier uses site1 for the year 2009 and site 2 for 2010 and now there is site3 setup as tax reportable. All three sites were setup in 2009 and all three sites are active. Supplier chosen different sites for each year as their tax reportable site.
    How do we know which site oracle used to send 1099 for 2009 & 2010? How to track the history of supplier sites used for tax reporting (1099) in previous years?
    Thanks in advance.
    Regards,
    Ram

    Would the begin_date, end_date and status columns on HZ_PARTY_SITES_USES be any good? Our R12 installations is too new to have accumulated much data yet, but I would look in those columns first.

  • Tracking the changes in HRP tables for sending thru IDOC

    Hi ALL,
    We are planning to send iDoc to another SAP system with HR Data from different HRP tables. HRP1000,HRP1001,HRP1005,HRP1008,HRP1013,HRP1050 etc
    If we change any PA infotypes they are linked to pernr and we can easily track the changes but if there is any change in HRP tables how do we track the changes and send them thru idoc.
    Thanks
    Bala Duvvuri

    Kiran,
    I am planning to use tocde PFAL  for both inital loads and delta loads of HR data to other system .Can i get all the changes for HRP tables in PFAL without custom programming?
    Let me explain with an example.
    I changed the text for one of the org units and I can see the changes in HRP1000.but how will i send this data to another SAP system using PFAL ,how will i track those changes.
    I heard that we can enable change pointers on each and every field in all the infotypes,so when i change the org unit text and  it is one of the field in PA0001 of every employee a change pointer is triggered .is that true
    Thanks
    Bala Duvvuri
    Edited by: Bala Duvvuri on May 16, 2010 8:33 AM

  • Best practices for creating and querying a history table?

    Suppose I have a table of name-value pairs, and I want to keep track of changes to them so that I can query the value of any pair at any point in time.
    A direct approach would be to use a schema like this:
    CREATE TABLE NAME_VALUE_HISTORY (
      NAME      VARCHAR2(...),
      VALUE     VARCHAR2(...),
      MODIFIED DATE
    );When a name-value pair is updated, a new row is added to this table with the date of the change.
    To determine the value associated with a name at a particular point in time, one uses a query like:
      SELECT * FROM NAME_VALUE_HISTORY
      WHERE NAME = :name
        AND MODIFIED IN (SELECT MAX(MODIFIED)
                        FROM NAME_VALUE_HISTORY
                        WHERE NAME = :name AND MODIFIED <= :time)My question is: is there a better way to accomplish this? What indexes/hints would you recommend?
    What about a two-table approach like this one? http://pratchev.blogspot.com/2007/05/keeping-history-data-in-sql-server.html
    Edited by: user10936714 on Aug 9, 2012 8:35 AM

    user10936714 wrote:
    There is one advantage... recording the change of a value is just one insert, and it is also atomic without the use of transactions.At the risk of being dumb, why is that an advantage? Oracle always and everywhere uses transactions so it's not like you're avoiding some overhead by not using transactions.
    If, for instance, the performance of reading the value of a name at a point in time is not important, then you can get by with just using one table - the history table.If you're not overly concerned with the performance implications of having the current data and the history data in the same table, rather than rolling your own solution, I'd be strongly tempted to use Workspace Manager to let Oracle keep track of the changes.
    You can create a table, enable versioning, and do whatever DML operations you'd like
    SQL> create table address(
      2    address_id number primary key,
      3    address    varchar2(100)
      4  );
    Table created.
    SQL> exec dbms_wm.enableVersioning( 'ADDRESS', 'VIEW_WO_OVERWRITE' );
    PL/SQL procedure successfully completed.
    SQL> insert into address values( 1, 'First Address' );
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> update address
      2     set address = 'Second Address'
      3   where address_id = 1;
    1 row updated.
    SQL> commit;
    Commit complete.Then you can either query the history view
    SQL> ed
    Wrote file afiedt.buf
      1  select address_id, address, wm_createtime
      2*   from address_hist
    SQL> /
    ADDRESS_ID ADDRESS                        WM_CREATETIME
             1 First Address                  09-AUG-12 01.48.58.566000 PM -04:00
             1 Second Address                 09-AUG-12 01.49.17.259000 PM -04:00Or, even cooler, you can go back to an arbitrary point in time, run a query, and see the historical information. I can go back to a point between the time that I committed the first change and the second change, query the ADDRESS view, and see the old data. This is invaluable if you want to take existing queries and/or reports and run them as of certain dates in the past when you're trying to debug a problem.
    SQL> select *
      2    from address;
    ADDRESS_ID ADDRESS
             1 First AddressYou can also do things like set savepoints which are basically named points in time that you can go back to. That lets you do things like create a savepoint for the data as soon as month-end processing is completed so you can easily go back to "July Month End" without needing to figure out exactly what time that occurred. And you can have multiple workspaces so different users can be working on completely different sets of changes simultaneously without interfering with each other. This was actually why Workspace Manager was originally created-- to allow users manipulating spatial data to have extremely long-running transactions that could span days or months-- and to be able to switch back and forth between the current live data and the data in each of these long-running scenarios.
    Justin

  • How to track the blocked POs in 2LIS_02_SCL extractor

    Hi Gurus,
                  We have field ROCANCEL in 2LIS_02_SCL extractor which sets to X and R for cancelled and deleted records. On ECC side we either delete the PO (at Item level) or block the PO.
    For deleted POs the ROCANCEL flag is setting to R and we are OK with this but how can we track the blocked orders?
    The business requirement is to report on blocked orders too.
    Thanks,
    Anil

    Hi,
    In Bw thre is always confusion about following Dates.
    Posting Date (0PSTNG_DATE)
    Schedule Line Delivery Date (0SCL_DELDAT)
    Statistics Date (0STAT_DATE)
    So ask Functional Consultants and Business USers and Identify the corretc Date in ECC and then Change the Mapping In UPdate Rules in BW. i.e. What date USer is wanting and accordingly we nee dtgo change the mapping in UPdate Rules in Time Char Tab in UpdateRules.
    Thanks
    Reddy

  • How to Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

  • How to track the user name for audit trail ?

    Hi all,
    I chance the new user name from existing user code, How can i track the document that made by the old user name and the current username. Because when the username change, all the historical will be changed to the current.
    Thanks in advance
    Regards
    Jia shun

    Hi ,
    the problem is usersign is only connect to userid of OUSR. And the changes is on User Name field.
    For example know i make a document PO by using user code manager , user name Jason Butler.
    After that i change my user name become Alex, but the user code still same "manager".
    After that i re-login and update the Qty in PO doc, that i made before. After that i change again the username, the user code still same. After that i click the show history of the document that i made before. The Updated by and created by are always followed by the current user name that i change.
    thanks and regards
    Jia shun

  • Tracking the changes made to the custom table  field value

    Hi all,
           can we track the changes made to the custom table field values. if yes..plz specify how it can be done.
    Example: if i changed the  value of field  'NAME' of table 'YYHCUSTOMER'. i would like to know the old value and the new value of the field. For this, I set the flag 'LOG DATA CHANGES' in the technical settings of the table 'YYHCUSTOMER'.

    -> try TA: SCU3
    regards Andreas

  • How to track the changes to a table and update the other table ?

    Hi Guys,
                   I am looking to track deletion of entries on KONV table and sync these missing entries in an other table which has primary key entries of KONV.
    How to do this.. is ALE change pointer is any good for this purpose ?
    Thanks
    AJ

    Hi Sam,
      In order to track the changes in the KONV table, go to table CDHDR and give objectclass and objectid, you will get all the details.
    Regards,
    ramesh.

  • Is there any table that holds the history of BEx queries

    Hi, I just wanted to know if there is any table that keeps the history of changes done to BEx queries?

    HI,
    Below tables helps you
    RSZELTTXT        Texts of reporting component elements
    RSZELTXREF       Directory of query element references
    RSRREPDIR        Directory of all reports
    RSZCOMPDIR       Directory of reporting components
    RSZELTDIR        Directory of the reporting component elements
    RSZELTDIR        Directory of the reporting component elements
    RSZRANGE         Selection specification for an element
    RSZSELECT        Selection properties of an element
    RSZCOMPIC        Assignment reuseable component <-> InfoCube
    RSZCALC            Definition of a formula element
    RSZCEL              Query Designer: Directory of Cells
    RSZELTPRIO       Priorities with element collisions
    RSZGLOBV          Global Variables in Reporting
    RSZELTATTR       Attribute selection per dimension element
    RSZCHANGES       Change history of reporting components
    RSZELTPROP       Element properties (settings)
    Regards,
    rvc

  • How to display table name in the Record history

    Hi,
    I have developed a new custom form. When I click on the record history, it displays details like updated_by , update_Date.
    But it doesnt show the table name ( of the data block ). Is there any coding to be done to display the table name ?
    Regards,
    Suresh

    Sounds like some custom form for the eBusines-suite. Maybe you get an answer in an eBusiness-suite related forum, maybe here OA Framework

  • What is the table to track clearing document

    I am tracking clearing document number with accounting doucment number.
    I am using the table BSAK for this. But lot of doucment are not updated.
    Is there any other table to track clearing document number wiht accounting document number?

    Dear,
    For vendor cleared items you must use table BSAK and it should update all documents if they are cleared. So make sure all vendor payment documents are in full not the partial one.
    Regards,
    Chintan Joshi

Maybe you are looking for

  • Possible To Change The Colour Of A Theme Template For A Book - Aperture

    Hi I am using Aperture 3 and would like to make a photo book for a recent trip, combined with including the text of a blog I wrote during the journey. I like the journal theme that now exists in Aperture theme layouts, but I'd like to change the "bar

  • Spilled a little water on my MacBook Pro

    Hello, Yesterday I spilled a little water on my macbook (Yeah, I'm stupid), but it didn't stop working, and I wanted to ask if is there anything more that I can do to guarantee that nothing will happen to it. Here's the story: I spilled about a teasp

  • How do I open a QuickTime movie in the Player

    How do I create a link in Dreamweaver8 which will open a QuickTime movie in the QuickTime Player and not in another browser window of Safari?

  • Secure Zone login form logs user in who isn't registered for it?!

    I have a client who runs an eCommerce site through BC.  We have a secure zone setup for his site and he wants to review and approve users before they are given access.  There is good reason for this so please don't bring up counter-points as it is no

  • Problem with PO Work Flow

    Hi Gurus,                I am working on PO work flow. when I create a PO in workflow builder start event is getting into disable mode. Why its happening like that I could not understand. Can anybody please help me to find why the start event (Releas