Ansicht
Dokumentation
CHANGEDOCUMENT_READ_POSITIONS - Change document: Read change document items
BAL Application Log Documentation PERFORM Short ReferenceThis documentation is copyright by SAP AG.
This function module reads change document items and processes both the old and the new values according to their category. In some cases, the units and currencies are added on to the value fields. The appropriate table header is also determined.
The change document number is required as a minimum entry.
Performance notes:
Access to change document items is made quicker if the function module CHANGEDOCUMENT_READ_HEADERS was already used to read the associated header details.
If the function module CHANGEDOCUMENT_READ_POS is called directly after the function module CHANGEDOCUMENT_READ_HEADERS is called (with a change document number found there), the number can be read from the internal data filled in CHANGEDOCUMENT_READ_HEADERS.
If possible, do not use wild cards in the parameter values.
The program RSSCD100 uses this function module and is a possible application.
Here, the header details are also read first and then the associated items.
Example call:
DATA: NUMMER LIKE CDPOS-CHANGNR,
TABNAME LIKE CDPOS-TABNAME,
TABKEY LIKE CDPOS-TABKEY.
DATA: BEGIN OF EDIT_FORM OCCURS 50.
INCLUDE STRUCTURE CDSHW.
DATA: END OF EDIT_FORM.
...
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING CHANGENR = NUMMER
TABLENAME = TABKEY
TABLEKEY = TABKEY
IMPORTING HEADER = CDHDR
TABLES EDITPOS = EDIT_FORM
EXCEPTIONS ...
Parameters
ARCHIVE_HANDLECHANGENUMBER
EDITPOS
EDITPOS_WITH_HEADER
ET_CDRED_STR
HEADER
I_HOT
I_PREP_UNIT
KEYGUID
KEYGUID_STR
TABLEKEY
TABLEKEY254
TABLENAME
Exceptions
NO_POSITION_FOUNDWRONG_ACCESS_TO_ARCHIVE
Function Group
SCD1Vendor Master (General Section) ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 2877 Date: 20240523 Time: 105228 sap01-206 ( 37 ms )