02 декабря 2021

Поиск документов изменений

Используется функциональный модуль CHANGEDOCUMENT_READ.

  DATA:
    lv_date_from TYPE cdhdr-udate,
    lv_object_class TYPE cdhdr-objectclas,
    lv_object_id TYPE cdhdr-objectid,
    lv_time_from TYPE cdhdr-utime,
    lv_changed_by TYPE cdhdr-username,
    lv_date_to TYPE cdhdr-udate,
    lv_time_to TYPE cdhdr-utime,
    lt_editpos TYPE STANDARD TABLE OF cdred.

  CALL FUNCTION 'CHANGEDOCUMENT_READ'
    EXPORTING
*     archive_handle             = 0
*     changenumber               = ' '
      date_of_change             = lv_date_from
      objectclass                = lv_object_class
      objectid                   = lv_object_id
*     tablekey                   = ' '
*     tablename                  = ' '
      time_of_change             = lv_time_from
      username                   = lv_changed_by
*     local_time                 = ' '
*     time_zone                  = 'UTC'
*     tablekey254                = ' '
*     keyguid                    = ' '
      date_until                 = lv_date_to
      time_until                 = lv_time_to
*     keyguid_str                = ' '
*     read_changedocu            = ' '
*     i_prep_unit                = 'X'
*     noplus_aswildcard_inobjid  = ' '
*     i_hot                      = ' '
*   IMPORTING
*     et_cdred_str               = 
    TABLES
      editpos                    = lt_editpos
    EXCEPTIONS
      NO_POSITIon_found          = 1
      wrong_access_to_archive    = 2
      time_zone_conversion_error = 3
      OTHERS                     = 4.

Комментариев нет:

Отправить комментарий