CDHDR/CDPOS

Hi, All:
In SAP. Is there any SAP standard Function Module to retrieve specific object class's  Change Log data.  Thanks in advance !

sorry i've no system.
But search in se37 for changedocument*
-> sth like "change_document_get"
A.

Similar Messages

  • Requisition Change History - not showing all records from CDHDR/CDPOS

    Hello,
    When viewing the Item Changes for a requisition in ME53N, I don't always see all the records that are contained in tables CDHDR / CDPOS. The missing records are related to release strategies. Does anyone have any ideas why this happens?
    Thank you,
    Regards,
    Jackie

    Hello Jackie,
    check flag "Change document" is set for the data elements.
    Start transaction SE11, enter database table, push button "Display".
    Check register "Fields" In the following screen, doulbe click on "Data element" for the field you want to check.
    Select register "Further Characteristics" in the following screen, here you can find flag for "Change document".
    Best Regards, Dirk

  • 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: Object class stored in CDHDR , CDPOS tables

    Hi Guys,
    we have released blocked Invoice document using transaction MRBR, it is released. we have developed manually zprogram all the invoices which are released manually. but when execute we were unable to get details manually released documents. Here we observed data is fetching from CDHDR,  CDPOS tables. Upon observation the Object class we found after released the invoice is getting saved with object class " BELEG". but in zprogram objcet class checking with " INCOMINGINVOICE".
    can you explain the which scenario object class is saved with "BELEG",  object class is saved with " INCOMINGINVOICE".
    Thanks!
    Mahendar Patha.

    Hi Steve,
    (If I understood your question correctly then) Under the Object Value Column 0350035419 is the Customer number. Also under Table key column 1st three characters are your client i.e. 050 followed by customer number 0350035419.
    -ruby

  • How to use Function module generated to update CDHDR CDPOS

    Hi,
    I have a Z-table, and I want to tracks the value changes in some fields,
    the data elements for those specific fields are marked for "Change document".
    I created a Change document object using the transaction SCDO and I got the function module.
    now can any one tell me how to use these function modules like ( what values need to be passed to function module. what value do we need to pass for   OBJECTID,..value for tables ...etc )
    I have a custom program to update/delete entries in the custom table so should I use the function module in my custom program to result an entry in CDHDR & CDPOS.
    how to display the old value and new values  for the fields specified to changes.
    Regards,
    Nagu.

    check in SE37
    RV_ORDER_FLOW_INFORMATION
    SD_SALES_DOCUMENT_READ
    SD_SALES_DOCUMENT_READ_POS
    SD_DOCUMENT_PARTNER_READ
    SD_DETERMINE_CONTRACT_TYPE
    SD_SALES_DOCUMENT_COPY
    SD_SALES_DOCUMENT_SAVE
    SD_SALES_DOCUMENT_ENQUEUE
    SD_PARTNER_READ
    RV_DELIVERY_PRINT_VIEW
    SD_PACKING_PRINT_VIEW
    SD_DELIVERY_VIEW
    RV_BILLING_PRINT_VIEW
    RV_PRICE_PRINT_HEAD
    RV_PRICE_PRINT_ITEM
    Rewards if useful...........
    Minal

  • FOR ALL ENTRIES - CDHDR / CDPOS Tables

    Hi,
    I know there have been a lot of threads concerning the "for all entries" statement. Nevertheless I got a problem downloading the change document tables CDHDR/CDPOS with this statement and I haven't found anything in this forum regarding this special issue.
    While trying the for all entries statement in the below manner for downloading first CDHDR and then the CDPOS for all entries of the selected CDHDR it took 3 days and didn't finish, so we aborted the ABAP. The JOIN statement doesn't work in a 4.6c environment for the Cluster tables, hence this isn't an option.
    Can you give me some advise of how to improve downloading those tables in this way:
    1. Download CDHDR with limitation of fields OBJECTCLAS and UDATE
    2. Then Download CDPOS for all CHANGENR out of the first selection of CDHDR
    This was the way I tried it:
    SELECT
    ACT_CHNGNO  CHANGE_IND  CHANGENR  MANDANT  OBJECTCLAS  OBJECTID  PLANCHNGNR  TCODE  UDATE  USERNAME  UTIME  WAS_PLANND APPENDING CORRESPONDING FIELDS OF TABLE T_CDHDR FROM CDHDR WHERE UDATE IN  s_UDAT1 AND OBJECTCLAS IN  s_OBJE0.
    ENDSELECT.
    SELECT
    CHANGENR  CHNGIND  CUKY_NEW  CUKY_OLD  FNAME  MANDANT  OBJECTCLAS  OBJECTID  TABKEY  TABNAME  UNIT_NEW  UNIT_OLD  VALUE_NEW  VALUE_OLD INTO gs_CDPOS FROM CDPOS CLIENT SPECIFIED for all entries in  T_CDHDR WHERE OBJECTCLAS IN  s_OBJE2 AND MANDANT EQ  T_CDHDR-MANDANT AND OBJECTCLAS EQ  T_CDHDR-OBJECTCLAS AND CHANGENR EQ  T_CDHDR-CHANGENR.
    ENDSELECT.

    THis prg might b usefull to u
    *  Mass display or print Purchase Order History
    *  You can request report by :
    *  1.  Change date
    *  2.  User Name
    *  3.  Purchase Order Number
    *  4.  Vendor Code
    * Written by : SAP Basis, ABAP Programming and Other IMG Stuff
    *              http://www.sap-img.com
    REPORT ZPOCHANGE LINE-SIZE 132 NO STANDARD PAGE HEADING
                     LINE-COUNT 065(001)
                     MESSAGE-ID VR.
    TABLES: DD04T,
            CDHDR,
            CDPOS,
            DD03L,
            DD41V,
            T685T,
            VBPA,
            TPART,
            KONVC,
            EKKO.
    SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
                    XNAME  FOR CDHDR-USERNAME,
                    XEBELN FOR EKKO-EBELN,
                    XLIFNR FOR EKKO-LIFNR.
    SELECTION-SCREEN SKIP.
    * TEXT-001 - Sorting Sequence
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
                SNAME  RADIOBUTTON GROUP R1,
                SOBID  RADIOBUTTON GROUP R1.
    SELECTION-SCREEN END OF BLOCK BLK1.
    DATA: WFLAG,
          WCHANGENR LIKE CDHDR-CHANGENR.
    DATA: INDTEXT(60) TYPE C.
    DATA: BEGIN OF ICDHDR OCCURS 50.
            INCLUDE STRUCTURE CDHDR.
    DATA: END OF ICDHDR.
    DATA: BEGIN OF ICDSHW OCCURS 50.
            INCLUDE STRUCTURE CDSHW.
    DATA: END OF ICDSHW.
    DATA: BEGIN OF EKKEY,
            EBELN LIKE EKET-EBELN,
            EBELP LIKE EKET-EBELP,
            ETENR LIKE EKET-ETENR,
          END OF EKKEY.
    DATA: BEGIN OF ITAB OCCURS 50,
            BEGIN OF EKKEY,
              EBELN LIKE EKET-EBELN,
              EBELP LIKE EKET-EBELP,
              ETENR LIKE EKET-ETENR,
            END OF EKKEY,
            CHANGENR LIKE CDHDR-CHANGENR,
            UDATE    LIKE CDHDR-UDATE,
            UTIME    LIKE CDHDR-UTIME,
            USERNAME LIKE CDHDR-USERNAME,
            CHNGIND  LIKE CDSHW-CHNGIND,
            FTEXT    LIKE CDSHW-FTEXT,
            OUTLEN   LIKE CDSHW-OUTLEN,
            F_OLD    LIKE CDSHW-F_OLD,
            F_NEW    LIKE CDSHW-F_NEW,
          END OF ITAB.
    DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
    FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
    SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
                             LIFNR IN XLIFNR.
      CLEAR CDHDR.
      CLEAR CDPOS.
      CDHDR-OBJECTCLAS = 'EINKBELEG'.
      CDHDR-OBJECTID   = EKKO-EBELN.
      PERFORM GETCHGDOCS.
    ENDSELECT.
    IF SUDATE = 'X'.
      SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSEIF SNAME = 'X'.
      SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSE.
      SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
    ENDIF.
    LOOP AT ITAB.
      CLEAR: INDTEXT, EKKEY.
      CASE ITAB-CHNGIND.
        WHEN 'U'.
            INDTEXT(50) = ITAB-FTEXT.
            INDTEXT+51  = TEXT-020.
            CONDENSE INDTEXT.
        WHEN 'D'.
            INDTEXT = TEXT-021.
        WHEN 'E'.
            INDTEXT(5) = ITAB-FTEXT.
            INDTEXT+51 = TEXT-021.
            CONDENSE INDTEXT.
          WHEN 'I'.
            INDTEXT = TEXT-022.
        ENDCASE.
        RESERVE 4 LINES.
        IF WCHANGENR NE ITAB-CHANGENR.
          WCHANGENR = ITAB-CHANGENR.
          EKKEY = ITAB-EKKEY.
          WRITE:/ ITAB-UDATE UNDER 'Change Date',
                  ITAB-UTIME UNDER 'Time',
                  ITAB-USERNAME UNDER 'User Name',
                  ITAB-EKKEY-EBELN UNDER 'PO No',
                  ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ELSEIF ITAB-EKKEY NE EKKEY.
          WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ENDIF.
        CASE ITAB-CHNGIND.
          WHEN 'U'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
            WRITE: / TEXT-023  UNDER 'Changes',
                     <F_OLD>.
            WRITE: / TEXT-024 UNDER 'Changes',
                     <F_NEW>.
          WHEN 'E'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            WRITE: TEXT-023 UNDER 'Changes',
                   <F_OLD>.
        ENDCASE.
        SKIP.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE:/ SY-DATUM,SY-UZEIT,
           50 'P U R C H A S E  O R D E R   H I S T O R Y',
          120 'Page', SY-PAGNO.
    WRITE: / SY-REPID,
             60 'Purchase Orders Changes'.
    SKIP.
    ULINE.
    IF SUDATE = 'X'.
      WRITE:/001 'Change Date',
             014 'Time',
             024 'User Name',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ELSEIF SOBID = 'X'.
      WRITE:/001 'PO No',
             013 'Item',
             020 'Sch No',
             028 'Change Date',
             041 'Time',
             051 'User Name',
             065 'Changes'.
    ELSE.
      WRITE:/001 'User Name',
             015 'Change Date',
             028 'Time',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ENDIF.
    ULINE.
    FORM GETCHGDOCS.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
           EXPORTING
                DATE_OF_CHANGE    = CDHDR-UDATE
                OBJECTCLASS       = CDHDR-OBJECTCLAS
                OBJECTID          = CDHDR-OBJECTID
                TIME_OF_CHANGE    = CDHDR-UTIME
                USERNAME          = CDHDR-USERNAME
           TABLES
                I_CDHDR           = ICDHDR
           EXCEPTIONS
                NO_POSITION_FOUND = 1
                OTHERS            = 2.
      CHECK SY-SUBRC EQ 0.
      DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
      CHECK NOT ICDHDR[] IS INITIAL.
      LOOP AT ICDHDR.
        CHECK ICDHDR-UDATE IN XUDATE.
        CHECK ICDHDR-USERNAME IN XNAME.
        CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
                     EXPORTING  CHANGENUMBER       = ICDHDR-CHANGENR
                     IMPORTING  HEADER             = CDHDR
                     TABLES     EDITPOS            = ICDSHW
                     EXCEPTIONS NO_POSITION_FOUND  = 1
                                OTHERS             = 2.
        CHECK SY-SUBRC EQ 0.
        LOOP AT ICDSHW.
          CHECK ICDSHW-TEXT_CASE EQ SPACE.
          MOVE-CORRESPONDING ICDSHW TO ITAB.
          MOVE-CORRESPONDING ICDHDR TO ITAB.
          MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
          APPEND ITAB.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.
    * END OF PROGRAM

  • Changes not reflected in table CDHDR/CDPOS using production order(CO02)

    Hi experts..
    i want to extract all the changed\new entries from table RESB (reservation table). The object class for this table is ORDER. I m using CDHDR/CDPOS tables for retrieving the changes. But the changes reflected in RESB using Service Order transaction (iw32) only is getting updated in CDHDR/CDPOS, not through Production Order transaction (co02). Any idea about this problem ?

    Hi,
    Refer this wiki code ALV Grid Display with checkbox to process selected records at runtime, it will definitely help you:-
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
    Regards,
    Tarun

  • MASS/MM17 don't create change documents in CDHDR/CDPOS?

    Hello,
       This has probably been answered before, but I've been unable to find it in OSS or on forum searches here.
       When I use MASS with object type BUS1001 and make mass changes to materials, the changes are not recorded in CDHDR/CDPOS.  Is there any way to fix this?  These changes really should be recorded.  SAP Version is 4.7.
    Thanks,
    Randy Poser

    The changes will be recorded in the CDHDR but there will not be any document number
    to have doc number u have to activate the Eng change management
    what ever u do in MASS will get recorded in CDHDR w/o number so check by date u made changes to material and u will see records

  • Vbak link with cdhdr, cdpos for different plants

    Hi Experts
    I think I have ask this questions in many forum but unable to get the proper answer
    I want to link VBAK-VKBUR with cdhdr, cdpos ......which contain all the plants code
                   VBAK-VBELN..........document no
                   udate
                   ddtext
                   value old
                   value new
                   username
                   vbak-vkbur
    I wrote the report but how do I know for which plants the document no was selected
    I have already selected  cdhdr and cdpos tables only want to fetch those records
    from cdhdr,cdpos belongs to plants , I would be thankful if someone can send me code.
    regards

    from VBAK-VKBUR you have to search for all relevant sales orders in VBAK.
    From the list of sales orders (VBAK-VBELN) you have to read the CDHDR table for the relevant changes (Headers).
    Then look into CDPOS for the change items (with old and new values etc).
    regards,
    Hans

  • No entry in CDHDR & CDPOS for change in Production Order

    Hi,
    I am unable to get entries in Tables CDHDR & CDPOS for any change in Production Order. Actually I need the Number of times a Production Order has been changed. Please help on this.
    Cheers
    Abhishek

    You can trace the below navigation so that you will get good idea :
    goto CO03 -> enter production order # -> enter ->goto -> change management
    Thanks
    Seshu

  • Performance issue in CDHDR & CDPOS

    Hi,
      I'm having the below QUERY on CDHDR which take a <bowdlerized> lot of time:
    SELECT OBJECTCLAS
             OBJECTID
             CHANGENR
             TCODE
             UDATE
             UTIME
        INTO TABLE IT_CDHDR2
        FROM CDHDR
       WHERE OBJECTCLAS = C_OBJECT
         AND OBJECTID   = C_OBJECT
         AND ( TCODE    = C_TCODE1 OR                    
               TCODE    = C_TCODE2 ). 
    Then I've the other select query on CDPOS using for all entries on IT_CDHDR2. Both the queries are taking a lot of time.in the CDPOS select query I'm passing all the keys in order while I couldn't do that  for CDHDR. Kindly advise if anyone has worked on the performance issues with CDHDR/CDPOS. What are all the possible ways of improving the performance of CDHDR / CDPOS.
    Thanks:
    Gaurav
    Edited by: Rob Burbank on Jun 10, 2011 3:00 PM

    Hello Gaurav,
    basically John was right.
    Table CDHDR has first key fields MANDT, OBJECTCLAS, OBJECTID.
    Object ID is normally selective enough to provide good performance for the select that you mentioned.
    The only reason that comes to my mind is the outdated statistics.
    When the database decides whether to make an index scan or a full table scan, it looks at the table statistics (number of rows, selectivity, etc.).  Tables like CDHDR grow after GoLive of the system. If the statistics was last collected when this table was small, the database will think that it will be cheaper to do a full table scan. And it is not the case anymore.
    Please go to the transaction DB20 and update statistics for CDHDR and CDPOS tables.
    See if it helps.
    Regards,
      Yuri

  • Unable to join the tables CDHDR, CDPOS

    Hello,
    I want to create a Query connecting tables CDHDR & CDPOS to extract cost center details which are changed. To be precise, when cost center details are changed using transactions KS02 & KS03, I want to extract those details and run the report. I am unable to join the tables using SAP Queries SQ01, SQ02, SQ03.
    Kindly suggest me regarding the same.
    Thanks in advance.
    Regards
    Sravan Mulumudi.

    Hi Jeve,
    I was testing the report S_ALR_87012308, but this displays changes done to G/L accounts. I have tried every possibility. Could you please explain further ?
    Regards
    Sravan.

  • Can i get the easy process to download the data from CDHDR & CDPOS?

    Hi,
    I want to download the data from CDHDR & CDPOS..i tried with GUI_download..but i am unable to download the huge date into XLS sheet so, can any one help me in this to download the data from CDHDR & CDPOS?
    for a month in single execution(Min for Month).
    Can i get the easy process to download the data from CDHDR & CDPOS?
    Thanks,
    Kumar.

    split your internal tables in each 65K till office 2003 and 1048576 for office 2010
    and then keep downloading part by part..

  • Generic data source. Delta based on the changes in the CDHDR & CDPOS

    Hello all,
    I need to create a generic data source using fun module. This fun module has to execute delta based on changes in table CDHDR & CDPOS for purchase order info records.
    can I use RSAX_BIW_GET_DTA_SIMPLE?
    Is there any other way to implement this requirement?
    waiting for ur suggestions ...........
    Thanks,
    zak.

    hi
    check the below extractor... it will extract status from both table.. u may not be required to build a generic one..
    0TE_OBJ_STATUS_HIST

  • Delete CHANGE entries (cdhdr/cdpos)

    Hello,
    is there a standard Report to delete old entries in CDHDR / CDPOS ?
    thanks
    Werner

    note [183558|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=183558&nlang=EN&smpsrv=https%3a%2f%2fwebsmp208%2esap-ag%2ede] might help.

  • How to find OBJECTCLAS value to use in CDHDR/CDPOS tables?

    Hi Experts,
    Please help me the way to find out the objectclas, we use in CDHDR/CDPOS tables

    Pls refer to the thread,
    Object class for CDHDR
    BR,
    Krishna

Maybe you are looking for

  • My Torch 9800 won't restart

    Hi ! After an application installation my BB Torch 9800 restart and won't turn on! The loading bar stop at 80% of start loading.  Safe Mode starting don't work, So I plugged it with the BB Desktop Software (7.1.0.41), For the repair mode. The softwar

  • Using 6230i with CA-53 Cable on PC

    Hello - I've been using Nokia PC Suite with a CA-42 cable to hook up a 6610i. I've just changed to a 6230i so purchased a CA-53 cable. But when going through the connection procedure, the computer (Windows XP) doesn't recognise a connection and I get

  • SQL Loader add fixed string

    hell o oracle community, I am trying to load some recods into the database with sql loader. It works fine so far. But now I want to add an extra column with a fixed text, that is not in the csv file, but a field I need to be filled in the table. This

  • Help with "Unknown Device - Location 65535 (Internal High Definition Audio Bus)" Please?

    Hey guys, So I recently purchased a T400 2764CTO and I downgraded it from Vista Home to XP SP3. I have been following advices from the forums on finding all the "(?) Other Devices" that needed to be installed. However, I am still stuck on the one tha

  • Can I use my first generation iPod on a Windows PC computer?

    I have a 10 gig very first generation iPod that I have been using on my Mac. I want to sell it to someone who has a PC. 1. Can they use it on the PC? 2. If so, what do they need to do? a) install iTunes on their PC b) get some type of fireware to USB