SAP Function CHANGEDOCUMENT_READ_WITHOUT_ED -

Parameter Reference Type Length Default Optional Text
CHANGENUMBER CDPOS-CHANGENR C 10 SPACE X Change document number
CLIENT CDHDR-MANDANT C 3 SY-MANDT X Client for whom change documents are read
DATE_OF_CHANGE CDHDR-UDATE D 8 '00000000' X Change date from which searched
DATE_UNTIL CDDATUM D 8 '99991231' X Creation date of the change document
OBJECTCLASS CDHDR-OBJECTCLAS C 15 Object class
OBJECTID CDHDR-OBJECTID C 90 SPACE X Object value
TABLEKEY CDPOS-TABKEY C 70 SPACE X Key of the changed table record
TABLEKEY254 CDPOS_UID-TABKEY C 254 SPACE X
TABLENAME CDPOS-TABNAME C 30 SPACE X Table name for which change documents are read
TIME_OF_CHANGE CDHDR-UTIME T 6 '000000' X Change time from which searched
TIME_UNTIL CDTIME T 6 '235959' X Change documents, time
USERNAME CDHDR-USERNAME C 12 SPACE X Name of the person changing

Parameter Reference Type Length Text
ET_CDPOS_STR CDPOS_STR_TAB h 484
ET_CDPOS_UID CDPOS_UID_TAB h 434 Internal Table CDPOS_UID

Parameter Reference Length Optional Text
ICDHDR CDHDR 192 Table with change document header data
ICDPOS CDPOS 774 Table with change document items

Exception Text
NO_POSITION_FOUND no item found


INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX

Functionality
The function module reads change documents without processing andclient-independently.
At least the object class must be entered.

Example
An example can be taken from the program RSSCD110.
Example call:
DATA: OBJEKT LIKE CDPOS-OBJECTCLAS,
OBJEKTID LIKE CDPOS-OBJEKTID,
NUMBER LIKE CDPOS-CHANGNR,
DATE LIKE CDHDR-UDATE,
TIME LIKE CDHDR-UTIME,
USER LIKE CDHDR-USERNAME,
TABNAME LIKE CDPOS-TABNAME,
TABKEY LIKE CDPOS-TABKEY.
DATA: BEGIN OF CD_HEADER OCCURS 50.
INCLUDE STRUCTURE CDHDR.
DATA: END OF CD_HEADER.
DATA: BEGIN OF CD_POS OCCURS 50.
INCLUDE STRUCTURE CDPOS.
DATA: END OF CD_POS.
...
CALL FUNCTION 'CHANGEDOCUMENT_READ_WITHOUT_ED'
EXPORTING
CLIENT = SY-MANDT
OBJECTCLASS = OBJEKT
OBJECTID = OBJEKTID
CHANGENUMBER = NUMBER
DATE_OF_CHANGE = DATE
TIME_OF_CHANGE = TIME
USERNAME = USER
TABLENAME = TABNAME
TABLEKEY = TABKEY
TABLES
ICDHDR = CD_HEADER
ICDPOS = CD_POS
EXCEPTIONS
NO_POSITION_FOUND = 01.

Notes

  • The positions can be processed with the function module
  • CHANGEDOCUMENT_PREPARE_POS.
    • Processed change documents can be read with the function modules
    • CHANGEDOCUMENT_READ_HEADERS,CHANGEDOCUMENT_READ_POSITIONSand CHANGEDOCUMENT_READ.

      Bedeutung
      This parameter contains the client in which change documentsshould be determined.

      Value range
      Either space or a valid client can be entered. In thefirst case the change documents in all clients are read, in thesecond case only change documents in the specified client aredetermined. There is no check.

      Default
      The change documents of the current client are read by default.

      Meaning
      This parameter contains the date from which the change documentsshould be determined.

      Value range
      Either the initial value or a valid date can be entered.In the first case the date does not affect the selection.In the second case, only the change documents from thespecified date are determined. The date is not checked. Thedate must be entered in the format 'JJJJMMTT'.

      Default
      By default, the date does not affect the selection.

      Meaning
      This parameter contains the name of the object class for whichchange documents should be read.

      Value range
      The object class must have been maintained with the transaction SCDO.The object class is not checked. If the specifiedobject class does not exist, no documents are read for it.

      Default
      This parameter has no default, it must always be specified.

      Meaning
      This parameter contains the value of the object characteristic forwhich change documents should be read.

      Value range
      Either space or a valid object value can be entered.In the first case the object value does not affect the selection,in the second case only the documents for the specifiedobject value are read. The object value is not checked.

      Default
      By default the object value does not affect the select.

      Meaning
      This parameter contains the table name, for which change documentsshould be read.

      Value range
      Either space or the name of a table which belongs to the specifiedobject class can be entered. In the first case the table name does notaffect the selection, in the second case only the documents belongingto the specified table are read. The table name is not checked.

      Default
      By default, the table name does not affect the selection.

      Meaning
      This parameter contains the time, from which change documents shouldbe determined.

      Value range
      Either the initial value or a valid time can be specified.In the first case the time does not affect the selection,in the second case only those change documents from thespecified date, and the specified time are determined. Thetime is not checked. The time must be specified in the format 'HHMMSS'.

      Default
      By default the time does not affect the selection.

      Meaning
      Change document header data are passed in this table.Change document positions are delivered in this table.