Ansicht
Dokumentation

CHANGEDOCUMENT_DELETE - Delete change documents (client-independent, generic)

CHANGEDOCUMENT_DELETE - Delete change documents (client-independent, generic)

rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book
Function

This function module can be used to delete change documents across clients.

An authorization check is performed. The authorization check is made at the object class level.

The object class must be specified as a minimum. The object ID can also be specified. Generic inputs (search string '*') are also accepted.

A COMMIT WORK is only executed if specified explicitly (see parameter WITH_COMMIT).

The number of deleted documents is returned.

Examples

DATA: lv_archobj_id type cdhdr-objectid,

lv_count_header type sy-dbcnt,

lv_count_pos type sy-dbcnt,

lv_count_uid type sy-dbcnt,

lv_count_str type sy-dbcnt.

CALL FUNCTION 'CHANGEDOCUMENT_DELETE'

EXPORTING

OBJECTCLASS = 'CA_BUPA'

OBJECTID = lv_archobj_id

IMPORTING

NUMBER_OF_DELETED_HEADERS = lv_count_header

NUMBER_OF_DELETED_POSITIONS = lv_count_pos

NUMBER_OF_DELETED_UIDS = lv_count_uid

NUMBER_OF_DELETED_STRINGS = lv_count_str

EXCEPTIONS

NO_AUTHORITY = 1

NO_CHANGES_FOUND = 2

OTHERS = 3.

Notes
  • This function module can only be used for generic deletions if the object ID does not contain the character '%'. When deleting generically from the database, this character has the same meaning as '*' in SAPSQL, which means that too much may be deleted.




Parameters

CHANGENR
CLIENT
COMMIT_COUNTER
DISABLE_AUTHORITY_CHECK
NUMBER_OF_DELETED_HEADERS
NUMBER_OF_DELETED_POSITIONS
NUMBER_OF_DELETED_STRINGS
NUMBER_OF_DELETED_UIDS
OBJECTCLASS
OBJECTID
UP_TO_DATE
WITH_COMMIT

Exceptions

NO_AUTHORITY
NO_CHANGES_FOUND

Function Group

SCD4

PERFORM Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3446 Date: 20240523 Time: 113032     sap01-206 ( 39 ms )