Creating change documents

Function group SCD0

Object-specific update change documents for a particular object ID are created with the function modules in this function group.

These function modules are called, in the right order, by the object-specifically generated update program, as soon as it is called. They are generally not required for application developments. Only in exceptional cases, in which an individual update is to be programmed, should the change document creation be programmed by the user with these function modules.

  • CHANGEDOCUMENT_OPEN
    This function module is required by every change document creation. It initializes the internal fields for a particular change document object ID.
  • CHANGEDOCUMENT_MULTIPLE_CASE
    This function module creates change document items. The change data are passed in tables.
  • CHANGEDOCUMENT_SINGLE_CASE
    This function module creates change document items. The change data are passed in a work area.
  • CHANGEDOCUMENT_TEXT_CASE
    Change document-relevant texts are passed in a structure with this function module.
  • CHANGEDOCUMENT_CLOSE
    This function module is required for every change document creation. It writes the change document header for a particular change document ID, and closes the document creation.
  • CHANGEDOCUMENT_PREPARE_TABLES
    With this function module, you compare the records in two tables, which you pass as TABLE_OLD and TABLE_NEW.
    You can specify via a parameter, whether these internal tables should be prepared for the multiple case. Identical records are then deleted, and a processing flag is set in changed records.