SAP CHANGEDOCU_CDPOS_READ Function Module for
CHANGEDOCU_CDPOS_READ is a standard changedocu cdpos read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for changedocu cdpos read FM, simply by entering the name CHANGEDOCU_CDPOS_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCD1
Program Name: SAPLSCD1
Main Program: SAPLSCD1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CHANGEDOCU_CDPOS_READ pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CHANGEDOCU_CDPOS_READ'".
EXPORTING
* IV_OBJECTCLAS = ' ' "Object Class
* IV_OBJECTID = ' ' "Object Value
* IV_CHANGENR = ' ' "Document change number
* IV_TABNAME = ' ' "Table Name
* IV_TABKEY = ' ' "Table Key for CDPOS in Character 254
* IV_FNAME = ' ' "Field Name
* IV_PCDPOS_FLAG = ' ' "Single-Character Flag
* IV_CLIENT = ' ' "
IMPORTING
EV_COUNT = "No. of Data Records Found
ET_CDPOS = "Internal Table for cdpos
ET_PCDPOS = "Table type of PCDPOS (positions of planned changes)
EXCEPTIONS
NO_IMPORTPARAMETER = 1
IMPORTING Parameters details for CHANGEDOCU_CDPOS_READ
IV_OBJECTCLAS - Object Class
Data type: CDHDR-OBJECTCLASDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_OBJECTID - Object Value
Data type: CDHDR-OBJECTIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CHANGENR - Document change number
Data type: CDHDR-CHANGENRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TABNAME - Table Name
Data type: CDPOS-TABNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TABKEY - Table Key for CDPOS in Character 254
Data type: CDPOS-TABKEYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_FNAME - Field Name
Data type: CDPOS-FNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_PCDPOS_FLAG - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CLIENT -
Data type: MANDTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CHANGEDOCU_CDPOS_READ
EV_COUNT - No. of Data Records Found
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
ET_CDPOS - Internal Table for cdpos
Data type: CDPOS_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_PCDPOS - Table type of PCDPOS (positions of planned changes)
Data type: PCDPOS_TABOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_IMPORTPARAMETER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CHANGEDOCU_CDPOS_READ Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_ev_count | TYPE I, " | |||
| lv_iv_objectclas | TYPE CDHDR-OBJECTCLAS, " SPACE | |||
| lv_no_importparameter | TYPE CDHDR, " | |||
| lv_et_cdpos | TYPE CDPOS_TAB, " | |||
| lv_iv_objectid | TYPE CDHDR-OBJECTID, " SPACE | |||
| lv_et_pcdpos | TYPE PCDPOS_TAB, " | |||
| lv_iv_changenr | TYPE CDHDR-CHANGENR, " SPACE | |||
| lv_iv_tabname | TYPE CDPOS-TABNAME, " SPACE | |||
| lv_iv_tabkey | TYPE CDPOS-TABKEY, " SPACE | |||
| lv_iv_fname | TYPE CDPOS-FNAME, " SPACE | |||
| lv_iv_pcdpos_flag | TYPE CHAR1, " SPACE | |||
| lv_iv_client | TYPE MANDT. " SPACE |
|   CALL FUNCTION 'CHANGEDOCU_CDPOS_READ' " |
| EXPORTING | ||
| IV_OBJECTCLAS | = lv_iv_objectclas | |
| IV_OBJECTID | = lv_iv_objectid | |
| IV_CHANGENR | = lv_iv_changenr | |
| IV_TABNAME | = lv_iv_tabname | |
| IV_TABKEY | = lv_iv_tabkey | |
| IV_FNAME | = lv_iv_fname | |
| IV_PCDPOS_FLAG | = lv_iv_pcdpos_flag | |
| IV_CLIENT | = lv_iv_client | |
| IMPORTING | ||
| EV_COUNT | = lv_ev_count | |
| ET_CDPOS | = lv_et_cdpos | |
| ET_PCDPOS | = lv_et_pcdpos | |
| EXCEPTIONS | ||
| NO_IMPORTPARAMETER = 1 | ||
| . " CHANGEDOCU_CDPOS_READ | ||
ABAP code using 7.40 inline data declarations to call FM CHANGEDOCU_CDPOS_READ
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single OBJECTCLAS FROM CDHDR INTO @DATA(ld_iv_objectclas). | ||||
| DATA(ld_iv_objectclas) | = ' '. | |||
| "SELECT single OBJECTID FROM CDHDR INTO @DATA(ld_iv_objectid). | ||||
| DATA(ld_iv_objectid) | = ' '. | |||
| "SELECT single CHANGENR FROM CDHDR INTO @DATA(ld_iv_changenr). | ||||
| DATA(ld_iv_changenr) | = ' '. | |||
| "SELECT single TABNAME FROM CDPOS INTO @DATA(ld_iv_tabname). | ||||
| DATA(ld_iv_tabname) | = ' '. | |||
| "SELECT single TABKEY FROM CDPOS INTO @DATA(ld_iv_tabkey). | ||||
| DATA(ld_iv_tabkey) | = ' '. | |||
| "SELECT single FNAME FROM CDPOS INTO @DATA(ld_iv_fname). | ||||
| DATA(ld_iv_fname) | = ' '. | |||
| DATA(ld_iv_pcdpos_flag) | = ' '. | |||
| DATA(ld_iv_client) | = ' '. | |||
Search for further information about these or an SAP related objects