SAP CHANGE_POINTERS_READ Function Module for Read change pointers
CHANGE_POINTERS_READ is a standard change pointers read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read change pointers processing and below is the pattern details for this FM, 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 change pointers read FM, simply by entering the name CHANGE_POINTERS_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: BD01
Program Name: SAPLBD01
Main Program: SAPLBD01
Appliation area:
Release date: 01-Apr-1998
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CHANGE_POINTERS_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 'CHANGE_POINTERS_READ'"Read change pointers.
EXPORTING
* ACTIVATION_DATE_HIGH = ' ' "Activation date upper limit
MESSAGE_TYPE = "Message type
* READ_NOT_PROCESSED_POINTERS = 'X' "
* ACTIVATION_DATE_LOW = ' ' "Activation date lower limit
* ACTIVATION_TIME_HIGH = '000000' "Activation time upper limit
* ACTIVATION_TIME_LOW = '000000' "Activation time lower limit
* CHANGE_DOCUMENT_OBJECT_CLASS = ' ' "Object class of change document
* CREATION_DATE_HIGH = ' ' "Creation date upper limit
* CREATION_DATE_LOW = ' ' "Creation date lower limit
* CREATION_TIME_HIGH = '000000' "Creation time upper limit
* CREATION_TIME_LOW = '000000' "Creation time lower limit
TABLES
CHANGE_POINTERS = "Change pointers
* MESSAGE_TYPES = "
EXCEPTIONS
ERROR_IN_DATE_INTERVAL = 1 ERROR_IN_TIME_INTERVAL = 2
IMPORTING Parameters details for CHANGE_POINTERS_READ
ACTIVATION_DATE_HIGH - Activation date upper limit
Data type: SY-DATUMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MESSAGE_TYPE - Message type
Data type: BDCPS-MESTYPEOptional: No
Call by Reference: No ( called with pass by value option)
READ_NOT_PROCESSED_POINTERS -
Data type: BDCPS-PROCESSDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVATION_DATE_LOW - Activation date lower limit
Data type: SY-DATUMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVATION_TIME_HIGH - Activation time upper limit
Data type: SY-UZEITDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVATION_TIME_LOW - Activation time lower limit
Data type: SY-UZEITDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_DOCUMENT_OBJECT_CLASS - Object class of change document
Data type: CDPOS-OBJECTCLASDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_DATE_HIGH - Creation date upper limit
Data type: SY-DATUMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_DATE_LOW - Creation date lower limit
Data type: SY-DATUMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_TIME_HIGH - Creation time upper limit
Data type: SY-UZEITDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CREATION_TIME_LOW - Creation time lower limit
Data type: SY-UZEITDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CHANGE_POINTERS_READ
CHANGE_POINTERS - Change pointers
Data type: BDCPOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGE_TYPES -
Data type: BDMSGTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_IN_DATE_INTERVAL - Error in date interval
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_TIME_INTERVAL - Error in time interval
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CHANGE_POINTERS_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: | ||||
lt_change_pointers | TYPE STANDARD TABLE OF BDCP, " | |||
lv_activation_date_high | TYPE SY-DATUM, " SPACE | |||
lv_error_in_date_interval | TYPE SY, " | |||
lv_message_type | TYPE BDCPS-MESTYPE, " | |||
lv_read_not_processed_pointers | TYPE BDCPS-PROCESS, " 'X' | |||
lt_message_types | TYPE STANDARD TABLE OF BDMSGTYP, " | |||
lv_activation_date_low | TYPE SY-DATUM, " SPACE | |||
lv_error_in_time_interval | TYPE SY, " | |||
lv_activation_time_high | TYPE SY-UZEIT, " '000000' | |||
lv_activation_time_low | TYPE SY-UZEIT, " '000000' | |||
lv_change_document_object_class | TYPE CDPOS-OBJECTCLAS, " SPACE | |||
lv_creation_date_high | TYPE SY-DATUM, " SPACE | |||
lv_creation_date_low | TYPE SY-DATUM, " SPACE | |||
lv_creation_time_high | TYPE SY-UZEIT, " '000000' | |||
lv_creation_time_low | TYPE SY-UZEIT. " '000000' |
  CALL FUNCTION 'CHANGE_POINTERS_READ' "Read change pointers |
EXPORTING | ||
ACTIVATION_DATE_HIGH | = lv_activation_date_high | |
MESSAGE_TYPE | = lv_message_type | |
READ_NOT_PROCESSED_POINTERS | = lv_read_not_processed_pointers | |
ACTIVATION_DATE_LOW | = lv_activation_date_low | |
ACTIVATION_TIME_HIGH | = lv_activation_time_high | |
ACTIVATION_TIME_LOW | = lv_activation_time_low | |
CHANGE_DOCUMENT_OBJECT_CLASS | = lv_change_document_object_class | |
CREATION_DATE_HIGH | = lv_creation_date_high | |
CREATION_DATE_LOW | = lv_creation_date_low | |
CREATION_TIME_HIGH | = lv_creation_time_high | |
CREATION_TIME_LOW | = lv_creation_time_low | |
TABLES | ||
CHANGE_POINTERS | = lt_change_pointers | |
MESSAGE_TYPES | = lt_message_types | |
EXCEPTIONS | ||
ERROR_IN_DATE_INTERVAL = 1 | ||
ERROR_IN_TIME_INTERVAL = 2 | ||
. " CHANGE_POINTERS_READ |
ABAP code using 7.40 inline data declarations to call FM CHANGE_POINTERS_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 DATUM FROM SY INTO @DATA(ld_activation_date_high). | ||||
DATA(ld_activation_date_high) | = ' '. | |||
"SELECT single MESTYPE FROM BDCPS INTO @DATA(ld_message_type). | ||||
"SELECT single PROCESS FROM BDCPS INTO @DATA(ld_read_not_processed_pointers). | ||||
DATA(ld_read_not_processed_pointers) | = 'X'. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_activation_date_low). | ||||
DATA(ld_activation_date_low) | = ' '. | |||
"SELECT single UZEIT FROM SY INTO @DATA(ld_activation_time_high). | ||||
DATA(ld_activation_time_high) | = '000000'. | |||
"SELECT single UZEIT FROM SY INTO @DATA(ld_activation_time_low). | ||||
DATA(ld_activation_time_low) | = '000000'. | |||
"SELECT single OBJECTCLAS FROM CDPOS INTO @DATA(ld_change_document_object_class). | ||||
DATA(ld_change_document_object_class) | = ' '. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_creation_date_high). | ||||
DATA(ld_creation_date_high) | = ' '. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_creation_date_low). | ||||
DATA(ld_creation_date_low) | = ' '. | |||
"SELECT single UZEIT FROM SY INTO @DATA(ld_creation_time_high). | ||||
DATA(ld_creation_time_high) | = '000000'. | |||
"SELECT single UZEIT FROM SY INTO @DATA(ld_creation_time_low). | ||||
DATA(ld_creation_time_low) | = '000000'. | |||
Search for further information about these or an SAP related objects