SAP Function CHANGEDOCUMENT_PREPARE_POS - Change document: Edit change document items

Parameter Reference Type Length Default Optional Text
IT_CDHDR CDHDR_TAB h 192 X Internal Table CDHDR
IT_CDPOS_STR CDPOS_STR_TAB h 484 X Table Type for CDPOS_STR
IT_CDPOS_UID CDPOS_UID_TAB h 434 X Internal Table CDPOS_UID

Parameter Reference Type Length Text
ET_CDRED_STR CDRED_STR_TAB h 48 Table Type for Structure CDRED_STR

Parameter Reference Length Optional Text
EDITPOS CDSHW 1035 edited change document items
I_CDPOS CDPOS 774 read, unedited change document items


INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX
This function module edits previously read change document items. Ifnecessary the units and currencies are appended for value fields.
The program RSSCD1TS uses this function module and can be considered asa example application.
Example call:
DATA: BEGIN OF ICDPOS OCCURS 50.
INCLUDE STRUCTURE CDPOS.
DATA: END OF ICDPOS.
DATA: BEGIN OF EDIT_FORM OCCURS 50.
INCLUDE STRUCTURE CDSHW.
DATA: END OF EDIT_FORM.
SELECT * FROM CDPOS WHERE ...
ICDPOS = CDPOS.
APPEND CDPOS.
ENDSELECT.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
TABLES EDITPOS = EDIT_FORM
I_CDPOS = ICDPOS.
The table must have the structure CDSHW.
The table must have the structure CDPOS and contain the unformattedchange document items.