Change History Table in CRM

Hello All,
Please let me know the transaction change history table in CRM.
Kindly help.
Regards
DJ

Hi,
  Tables for change document history are
CDHDR
CDPOS_STR
CDPOS_UID
Regards
Srinu

Similar Messages

  • Sales order changes history table

    hi.........
    i wann field for user name from sales order change history table. i hv tried CDHDR and CDPOS, but i cound't get the exact link in those tables.
    will u tel me any other table, so that i can get this field by passing sales order ?

    Hi subharao,
    Go though this program.
    REPORT zmm_rep_poh NO STANDARD PAGE HEADING LINE-SIZE 250 LINE-COUNT 65.
    TABLES: cdhdr,cdpos,ekko,ekpo.
    TYPE-POOLS : slis.
    DATA       : t_fieldalv     TYPE slis_t_fieldcat_alv.
    DATA       : import_variant LIKE disvariant.
    DATA       : xrepid         LIKE sy-repid.
    DATA       : layout         TYPE slis_layout_alv.
    DATA: BEGIN OF itab OCCURS 0,
            fname(40) ,
            objectid(10),
            changenr(10) ,
            value_new(10),
            value_old(10),
            unit_old(10),
            unit_new(10),
            cuky_old(10),
            cuky_new(10),
            key(5),
            username(10),
            udate LIKE cdhdr-udate,
            utime LIKE cdhdr-utime,
          END OF itab.
    DATA iebeln(15).
    DATA: BEGIN OF itab1 OCCURS 0,
            username(10),
            udate LIKE cdhdr-udate,
            changenr(10),
            utime LIKE cdhdr-utime,
          END OF itab1.
    DATA: BEGIN OF itab3 OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA: END OF itab3.
    DATA iekko LIKE ekko OCCURS 0 WITH HEADER LINE.
    *Select Option
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_ebeln FOR ekpo-ebeln OBLIGATORY,
                     s_ekorg FOR ekko-ekorg NO INTERVALS DEFAULT '77IN',
                     s_bukrs FOR ekko-bukrs NO INTERVALS DEFAULT '77IN'.
    SELECTION-SCREEN END OF BLOCK b1.
    *INITIALIZATION.
    for alv field catalog definition.
      PERFORM initial_alv_fieldcat CHANGING t_fieldalv[].
    START-OF-SELECTION.
      SELECT * INTO iekko
      FROM ekko
      WHERE ebeln IN s_ebeln AND ekorg IN s_ekorg AND bukrs IN s_bukrs.
        APPEND iekko.
      ENDSELECT.
      LOOP AT iekko.
        SELECT username udate changenr utime
        INTO   (itab1-username,itab1-udate,
               itab1-changenr,itab1-utime)
        FROM  cdhdr
        WHERE objectid EQ iekko-ebeln.
          APPEND itab1.
        ENDSELECT.
      ENDLOOP.
      LOOP AT itab1.
        SELECT objectid changenr fname value_old value_new unit_old unit_new
               cuky_old cuky_new
        INTO  (itab-objectid, itab-changenr, itab-fname,
              itab-value_old,itab-value_new ,itab-unit_old, itab-unit_new,
              itab-cuky_old,itab-cuky_new)
        FROM  cdpos
        WHERE changenr = itab1-changenr.
          IF sy-subrc = 0.
            itab-username = itab1-username.
            itab-udate    = itab1-udate.
            itab-utime    = itab1-utime.
            APPEND itab.
          ENDIF.
        ENDSELECT.
      ENDLOOP.
    delete itab where fname eq 'KEY'.
      sort itab by fname.
    delete ADJACENT DUPLICATES FROM itab comparing all fields.
      LOOP AT itab.
        IF itab-fname = 'ZTERM'.
           itab-fname = 'Payment Terms'.
          MODIFY itab.
        ELSEIF itab-fname = 'AEDAT'.
               itab-fname = 'Date'.
          MODIFY itab.
        ELSEIF itab-fname = 'EFFWR'.
               itab-fname = 'Effective Value'.
          MODIFY itab.
        ELSEIF itab-fname = 'MENGE'.
               itab-fname = 'PO Quantity'.
          MODIFY itab.
        ELSEIF itab-fname = 'BRTWR'.
               itab-fname = 'Gross Order Value'.
          MODIFY itab.
        ELSEIF itab-fname = 'NETWR'.
               itab-fname = 'Net Order Value'.
          MODIFY itab.
        ELSEIF itab-fname = 'PROCSTAT'.
               itab-fname = 'Purchasing Doc processing state'.
          MODIFY itab.
        ELSEIF itab-fname = 'FRGSX'.
               itab-fname = 'Release Strategy'.
          MODIFY itab.
        ELSEIF itab-fname = 'FRGKE'.
               itab-fname = 'Release Ind. Pur. Doc'.
          MODIFY itab.
        ELSEIF itab-fname = 'ZBD1P'.
               itab-fname = 'Cash Discount Perc 1'.
          MODIFY itab.
        ELSEIF itab-fname = 'ZBD1T'.
               itab-fname = 'Cash Discount Days'.
          MODIFY itab.
        ELSEIF itab-fname = 'ZBD2T'.
               itab-fname = 'Cash Discount Days'.
          MODIFY itab.
              ELSEIF itab-fname = 'KEY'.
               itab-fname = 'Item Entered'.
          MODIFY itab.
        ENDIF.
      ENDLOOP.
      PERFORM alv_grid_display.
    *&      Form  alv_grid_display
          text
    -->  p1        text
    <--  p2        text
    FORM alv_grid_display .
      DATA  : gt_event  TYPE slis_t_event.
      DATA  : dbcnt TYPE i.
      DATA  : dbcntr(10) TYPE c.
      DATA  : title(100) TYPE c.
      CLEAR : dbcnt,dbcntr,title.
      DESCRIBE TABLE itab LINES dbcnt.
      dbcntr = dbcnt.
      CONCATENATE 'NO.OF ENTRIES : ' dbcntr INTO title SEPARATED BY space.
      sy-title = title.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          is_layout          = layout
          it_fieldcat        = t_fieldalv[]
          i_save             = 'A'
          i_grid_title       = 'Purchase Order Amendment Details'
        TABLES
          t_outtab           = itab
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    ENDFORM.                    " alv_grid_display
    *&      Form  initial_alv_fieldcat
          text
         <--RT_FIELDCAT  text
    FORM initial_alv_fieldcat  CHANGING rt_fieldcat TYPE slis_t_fieldcat_alv.
      DATA       : ls_fieldcat TYPE slis_fieldcat_alv .
      DATA       : cntr TYPE i VALUE 1.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 1.
      ls_fieldcat-fieldname = 'USERNAME'.
      ls_fieldcat-seltext_l = 'UNAME'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 2.
      ls_fieldcat-fieldname = 'UDATE'.
      ls_fieldcat-seltext_l = 'UDATE'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 3.
      ls_fieldcat-fieldname = 'UTIME'.
      ls_fieldcat-seltext_l = 'UTIME'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 4.
      ls_fieldcat-fieldname = 'OBJECTID'.
      ls_fieldcat-seltext_l = 'PO Number'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 5.
      ls_fieldcat-fieldname = 'FNAME'.
      ls_fieldcat-seltext_l = 'Field Name'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 6.
      ls_fieldcat-fieldname = 'VALUE_OLD'.
      ls_fieldcat-seltext_l = 'Old Value'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 7.
      ls_fieldcat-fieldname = 'VALUE_NEW'.
      ls_fieldcat-seltext_l = 'New Value '.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 8.
      ls_fieldcat-fieldname = 'UNIT_OLD'.
      ls_fieldcat-seltext_l = 'Old Unit'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 9.
      ls_fieldcat-fieldname = 'UNIT_NEW'.
      ls_fieldcat-seltext_l = 'New Unit'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 10.
      ls_fieldcat-fieldname = 'CUKY_OLD'.
      ls_fieldcat-seltext_l = 'Old Cuky'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      CLEAR ls_fieldcat.
      cntr = cntr + 1.
      ls_fieldcat-col_pos   = 11.
      ls_fieldcat-fieldname = 'CUKY_NEW'.
      ls_fieldcat-seltext_l = 'New Cuky'.
      ls_fieldcat-do_sum    = 'X'.
      APPEND ls_fieldcat TO rt_fieldcat.
      layout-zebra = 'X'.
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " initial_alv_fieldcat
    *********Rewards some points.
    Rgds,
    P.Naganjana Reddy

  • Document changes history table

    Hi,
    Is there any table which is having document changes history (Old and new).
    Thanks in advance for your help.

    Hi,
    If you succeed to see the changes via FB03 transactions and cannot view them in the tables, then your selection parameters are incorrect. To see the right parameters, you can activate the trace (via ST05) and view changes via FB03 for one document. Then, by checking the trace you will see what you enter wrong when you select data from the table.
    Alternatively, use S_ALR_87012293 report for mass view of changed documents.
    Regards,
    Eli

  • Sales order, Delivery and Invoice changes history tables

    Dear All,
    I want to know how to find out the changes done in Sales Order, Delivery and Invoice.
    As far as sales order is concerned, I know CDHDR and CDPOS are tables can be used to find out the changes.
    But I am not sure about the "Object ID". Where we need to find out this Object ID?
    In the Data element "VBELN_VA" "Change Document" option has been checked under "Further Characteristics" tab.
    Please confirm about the "Object ID".
    Similarly give inputs for Delivery and Invoice change history also.
    Regards,
    Mullairaja

    Hi,
    Could you please explain, how to use these programs?
    Regards,
    Mullairaja

  • Change history tale for CRM BP Role

    Hi Experts,
    I am trying to capture the role changed date for a particuler Business Partner(BP).
    Eg:
    30.11.2011     09:23:12     0001000237     XXXXXXXXX     BP Role     BUT100     *** Created ***      Sold-To Party
    24.11.2011     16:03:44     0001000237     xxxxxxxx          BP Role     BUT100     *** Created ***      Cash
    We can see the role has been changed from cash to Sold-To Party . I have seen this only in change history of the BP in BP(tcode) -> Extras -> Change history -> his partner , but where exactly where it is exactly stored.
    Could any one help in capturing only the Role change date (and not the record changed date) of BP. Thanks.
    Regards,
    Janardhan

    Hi,
    You can use FM CRM_BUPA_IL_READ_CHANGEDOCS to read all the changes to BP .
    Check field tabname = 'BUT000'  to track all the records regarding role change.
    Regards,
    Nithish
    Edited by: nithish P on Jan 24, 2012 5:28 PM

  • Update the change history for line items in CDHDR/CDPOS

    Hi,
    I have a problem in updating the sales order and line items in CDHDR/CDPOS when there is change in header level custom field..
    Actually i have a custom field in VBAK which added in additional data A in the header level of sales order.When we have change in that field only some line items only updating in the change history tables(CDHDR/CDPOS),but we need to capture all the line items when the custom field in the header level is changed.
    i have added change document flag in the data element of the custom field.
    Please advice me how to get all  the line items will reflect in CDHDR/CDPOS when the header level custom field has change .
    Thanks & Regards
    Kiran

    The purpose of CHANGE DOCUMENT tables is to flag the changes with Old and New values. So when Header data is changed only Header details will be tracked and same for Item tables too.
    If you need anything addtional from this then that would customizing.
    I am not sure what is your requirement but to make it simple and achive requirement add same field with same setting to line item tables VBAP, VBKD.. (as required, if that's doesnt impact your Order. These fields no need to be on screen). While changing your Custom field of Header level change the item level field too. Then CHANGE DOCUMENT will generate automatically for all the line item including header.

  • Reg : material master change history

    Hi All.
    I am changing the value of the material master characterstic assigned to class under the classification TAB of material master.
    I want to extract the last chaged date of the characterstic value.
    The material master change history ( Table CDHDR)  is not reflecting the changes done to the characterstic value.
    Can anybody please suggest me how can i extract the change history of the characterstic value of a given class for a given material.
    Thanks
    Vijay

    Hi
    If a field is changed in any transaction with a new values those changes are recorded in CDHDR and CDPOS tables with the field name, Transaction name and field old and new values, changed by and date etc
    So you have to fetch the change data history from those tables passing the
    OBJECT CLAS = MATERIAl and the Objectid = Material no and fetch the data from CDHDR first and then for all entries of CDHDR fetch the data from CDPOS and use the data and required fields
    Regards

  • MDG-F 7.0 GL, cost center, profit center change history in ECC

    I am working in an MDG-F 7.0 workshop and am primarily working on cost center, profit center and GL account.
    I have come to realize that all field attribute changes made to cost center and profit center that are initiated from MDG-F won't be updated in ECC change history tables therefore i loose the ability to look up the change history in ECC but in MDG-F.
    However ECC history table is udpated for GL account attribute changes initated from MDG-F.
    Do everyone have the same understanding as I do? Please let me know if you see something else.
    Thanks,
    LUO

    Hi Luo
    It is available on Financial Contolling Goverance cost center under Search sub area.
    Here you have to select respective object and after searching result you can find there is link with aready existing master data objects.
    You can click on the link to open respective object. Here you can edit and change as per your wish

  • SAP CRM 7.0 WebUI: change history is not working

    Hi specialists
    Our change history is working - but only in SAPGUI.
    I found no way to activate / customize it for the WebUI. The corresponding Assignment Block is simply blank.
    On the other hand - in the SAPGUI its working like it is mentioned to do.
    But it is getting better:
    On our test system its working even in the  WebUI.
    On our prod. system not.
    Does somebody of you have any advices/hints for me?
    With best regards
    Thomas
    System:   SAP CRM 7.0
    2-Tier (test and productive system)
    Problem occurs only on productive system in WebUI

    Hi,
    We are facing same problem for change history on webIC except that all changes to
    business partner are visible only changes to contract account are not coming in change history.
    for e.g if we changed incoming payment method using tcode CAA2 on ISU change is replicating
    on CRM but change history is not showing changes made to incoming payment method.
    i have already posted question but got no reply's
    [change history is not updating on CRM webIC 7.0]
    Following are the components & views which are being called for change history functionality on WebIC.
    Component :
    BP_HEAD
    BP_DATA
    View :
    BP_HEAD/BPHEADOverview
    BP_DATA/AccountChangeHistoryOV
    Above view's are as per SAP standard and not modified or enhanced by us.
    Thank You,
    Sidh

  • Cost to change hash partition key column in a history table

    Hi All,
    I have the following scenario.
    We have a history table in production which has 16 hash partitions on the basis of key_column.
    But the nature of data that we have in history table that has 878 distinct values of the key_column and about 1000 million data and all partitons are in same tablespace.
    Now we have a Pro*C module which purges data from this history table in the following way..
    > DELETE FROM hsitory_tab
    > WHERE p_date < (TO_DATE(sysdate+1, 'YYYYMMDD') - 210)
    > AND t_date < (TO_DATE(sysdate+1, 'YYYYMMDD') - 210)
    > AND ROWNUM <= 210;
    Now (p_date,t_data are one of the two columns in history table) data is deleted using thiese two date column conditions but key_column for partition is different.
    So as per aboove statement this history table containd 6 months data.
    DBA is asking to change this query and use partiton date wise.Now will it be proper to change the partition key_column (the existing hash partiton key_column >have 810 distinct values) and what things we need to cosider to calculate cost behind this hash partition key_column cahange(if it is appropriate to change >partition )key_column)Hope i explained my problem clearly and waiting for your suggestions .
    Thanks in advance.

    Hi Sir
    Many thanks for the reply.
    For first point -
    we are in plan to move the database to 10g after a lot of hastle between client.For second point -
    If we do partition by date or week we will have 30 or 7 partitions .As suggested by you as we have 16 partitions in the table best approach would be to have >partition by week then we will have 7 partitions and then each query will heat 7 partitions .For third point -
    Our main aim to reduce the timings of a job(a Pro*C program) which contains the following delete query to delete data from a history table .So accroding to the >query it is deleting data every day for 7 months and while deleting it it queries this hug etable by date.So in this case hash partition or range partiton or >hash/range partition which will be more suitable.
    DELETE FROM hsitory_tab
    WHERE p_date < (TO_DATE(sysdate+1, 'YYYYMMDD') - 210)
    AND t_date < (TO_DATE(sysdate+1, 'YYYYMMDD') - 210)
    AND ROWNUM <= 210;I have read in hash partition is used so that data will be evenly distributed in all partitions (though it depends on nature of data).In my case i want some suggestion from you to take the best approach .

  • Table that captures change history of Ownership of Tranport Requests.

    Hello Folks,
                        I have been trying to locate a table that captures change in ownership of requests. I've tried Transport organizer transactions SE01 (extended view), tables E070 and E071 and SE03 but without success. Is there a table which captures change history of ownership?
    Regards,
    Prashant

    Hello Krishna,
                          This option would only work when table logging is enabled. Not otherwise. To give you a gist of my problem, one of the users from the client side created a request (authorization side is in a mess so business users also have access in Dev systems with lots of auths). He later instructed one of out functional consultants to tranfer the request from his name to the functional consultant's name. The request was later released and moved to Production system. Now the user from the client side denies that he ever created a request. (Audit issue now) and its going to snowball.
    Is there a solution.
    Regards,
    Prashant

  • 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

  • Change History doesn't work for extended fields in CRM Case

    Hi,
    I have extended the CRM Case with some new fields but when I change values in any of these new fields, the Change History assignment block doesn't record the old and new values.
    Case: UI component/View - CRMCMP_CMG/Header
    Change History view : LOGOVERVIEW
    Has anyone encountered such an issue? For me it looks like an issue with Standard SAP but couldn't find any releveant OSS notes.
    Regards,
    Akash

    Dear,
    I know it's been a while since the question has been raised, but I'm putting the solution just in case someone run into this post.
    The solution is simple and does not require any development. In attribute profile that is assigned to case you have to assign your custom developed case attributes and mark the "Log" column as checked (last column).
    regards,
    Kornel

  • What is the table for change history

    I changed a material's characteristic value in MM02 (Classification tab),
    but the CDPOS record numbers are still the same after I made  the change.
    I want to select the material number of the material I changed,
    which table should I read data from?
    Any advise would be appreciated

    Hi
    <b>CDHDR
    And CDPOS</b>
    reward if useful
    regards
    Anji

  • Regarding change history of marketing attributes

    Hi Experts,
    Currently I am using CRM 7.0 , here in ORG business Partner I have updated marketing attributes in Marketing attributes tab
    but when I check in change history TAB for the changes happend for marketing attributes I am unable to see the changes in change history please help me how I can see the change history for those attributes and please tell me the TABLE name otherwise.
    Regards,
    Rajasekhar.

    Hi ,
    I have checked that table  in SE16 I am getting the results but when I am populating the results into excel the value is showing in different format.Below is the example.
    1,320000000000000E+03.Let me where to change the settings.
    Regards,
    VR

Maybe you are looking for

  • All sorts of glitches with VW Palm Pixi Plus

    Hello, I am curious if there is something inherently wrong with my phone, or if these are glitches within WebOS itself. I have had all sorts of glitches happen over the past month or so and some are quite an issue, especially when I really need the p

  • How to change the fully qualified host name

    Hi, how can I change the fully qualiied host name? Regards Marc

  • JDEdwards Adapter configuration

    Hi Friends, Has anybody worked on JDE Adapter provided by IWAY.I have my Adapter Up and running .I have also deployed the Application explorer required to create request and response schemas for jde Bussiness function . But when I am trying to connec

  • Having deleting problems

    Hi all, Just got my first Mac a few weeks ago...woo So I've been trying to figure out this iPhoto stuff... I transferred all my photos from my old computer into the 'pictures' folder in my users folder, and then imported that entire folder into iPhot

  • Time Machine:  Where can I find the "Gear" menu?

    When I open TM there is a row of restore points but I don't see the options to delete old back ups, etc.