CHANGEDOCUMENT_READ_RANGES

Hello everyone!
CHANGEDOCUMENT_READ_RANGES
I need to use this function module in order to get all the modifications made to documents in a certain time frame. However, one of the fields it should return, FNAME, comes out blank. I know there should be data in there, because I've done the corresponding queries in tables cdhdr/cdpos.
Has anyone encountered this issue befone?
Thanks in advance!

Thanks for your reply, Steve!
If you check the structure of EDITPOS, wich is the return table for this FM, you'll see that it contains FNAME.
KEYLEN     CDINTLEN     NUMC     4
CHNGIND     CDCHNGIND     CHAR     1
FNAME FIELDNAME CHAR 30
FTEXT     DDTEXT     CHAR     60
TEXTART     CDTEXTART     CHAR     4
-Luís Andrade.

Similar Messages

  • To fetch from CDHDR and CDPOS using FM CHANGEDOCUMENT_READ_RANGES

    Hi all,
    Please let me know how to fetch the Details from  CDHDR and CDPOS using Function Module  CHANGEDOCUMENT_READ_RANGES. If possible Clear me with an Example. It has to fetch the datas of Table KNVV
    KNV1 etcc.... Separately for the Corresponding Table Selected In Report..
    With regards,
    Sudhakar Govndaraj.

    Hi Sudhakar,
    cdhdr-objectclas = 'MATERIAL'.
      cdhdr-objectid   = t_mara-matnr.
      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 period.
        CHECK icdhdr-username IN name.
        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-matnr.
          APPEND itab.
        ENDLOOP.
      ENDLOOP.
    Please refer the blog
    /people/erwan.lebrun/blog/2007/03/09/documents-how-to-track-changes-through-abap
    Edited by: Rahul Babukuttan on Nov 26, 2010 11:38 AM

  • Adding cost center range in KS05

    Hi,
    I want to add range for cost center field and from change Date in KS05. Can anyone
    guide me on this issue.
    Orelse If there is any function module to achieve this keeping select-options in KS05
    by preparing our own report also will be helpful for me.
    Regards
    VEnk@
    Edited by: Venkat Reddy on Nov 18, 2009 12:49 PM

    Hi, Venkat!
    I haven't found any standard transaction for mass handling of changedocs, but i suppose there is something universal tool for this purpose in the system. I think it is not difficult task to realize it yourself. Check this code please:
    program zjdtest.
    tables: RKMAA.
    select-options: so_kostl for RKMAA-KOSTL obligatory.
    parameters    : p_kokrs type RKMAA-KOKRS obligatory.
    data: lt_objclass type CDOBJECTCL_RANGE_TAB,
          lt_objid    type CDOBJECTV_RANGE_TAB,
          ls_objid    type CDOBJECTV_RANGE,
          lt_tabname  type CDTABNAME_RANGE_TAB,
          lt_editpos  type TABLE OF CDRED.
    start-of-selection.
      append 'IEQKOSTL' to lt_objclass.
      append 'IEQCSKSB' to lt_tabname.
      loop at so_kostl.
        ls_objid-sign       = so_kostl-sign.
        ls_objid-option     = so_kostl-option.
        ls_objid-low+4(10)  = so_kostl-low.
        ls_objid-high+4(10) = so_kostl-high.
        ls_objid-low(4) = ls_objid-high(4) = p_kokrs.
        append ls_objid to lt_objid.
      endloop.
       CALL FUNCTION 'CHANGEDOCUMENT_READ_RANGES'
          EXPORTING
            objectclass_tab                  = lt_objclass
            OBJECTID_TAB                     = lt_objid
            TABLENAME_TAB                    = lt_tabname
          tables
            editpos                          = lt_editpos
          EXCEPTIONS
            NO_POSITION_FOUND                = 1
            WRONG_ACCESS_TO_ARCHIVE          = 2
            TIME_ZONE_CONVERSION_ERROR       = 3
            OTHERS                           = 4
        IF sy-subrc <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'CHANGEDOCUMENT_DISPLAY'
          EXPORTING
            i_applicationid                = sy-cprog
          tables
            i_cdred                        = lt_editpos.

  • Changed roles for given timestemp

    HI All,
    I need to find a way to find if some of the user roles are changed i.e. deleted or add for time
    range ,there is FM CHANGEDOCUMENT_READ  but how i can use it for roles ?
    for example i want to know which roles are changed for the last 2 days .
    Regards
    Chris

    Try to use fm
      call function 'CHANGEDOCUMENT_READ_RANGES'
        exporting
          objectclass_tab            = i_objectclass_i
          date_until                 = p_datum "<<<
          time_until                 = p_time "<<<
        tables
          editpos                    = i_cdpos
        exceptions
          no_position_found          = 1
          wrong_access_to_archive    = 2
          time_zone_conversion_error = 3
          others                     = 4.

Maybe you are looking for

  • Problem Creation of New Tax code

    Hello gurus, the client has new requirement 3 % cst the S.D. people have configured the condition type for CST 3%. and it is reflected in pricing procedure. how i should configure the same in taxinj procedure with tax code. pls urgently help. points

  • What is the recommended cd-rom for the new 21.5" iMac?

    will to be able to play cd's and dvd's and know this is not supported like the older imac.

  • U150 keyboard intermittent problem

    So, I sat on my U150 a couple years ago. That broke the screen but nothing else. When I replace the screen, the keyboard immediately started acting up. A few keys (5, 6, for example) typed an = instead.  That got worse untl I bought a new keyboard. B

  • Tax in FOC PO

    Hello all   How to handle taxes in FOC Purchase orders? Thanks and regards, Shyam

  • HT204017 Yosemite update does not solve wifi problems

    yosemite update does not solve wifi.  Apple are as garbage as Microsoft now, but they have the cheek to charge twice as much!, Apple, you have lost my future business...might as well buy a cheap windows laptop now.