SAP CHANGEDOCUMENT_READ_WITHOUT_ED Function Module for









CHANGEDOCUMENT_READ_WITHOUT_ED is a standard changedocument read without ed 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 changedocument read without ed FM, simply by entering the name CHANGEDOCUMENT_READ_WITHOUT_ED into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCD5
Program Name: SAPLSCD5
Main Program: SAPLSCD5
Appliation area: *
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CHANGEDOCUMENT_READ_WITHOUT_ED 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 'CHANGEDOCUMENT_READ_WITHOUT_ED'"
EXPORTING
* CLIENT = SY-MANDT "Client for whom change documents are read
* TABLEKEY254 = ' ' "
* DATE_UNTIL = '99991231' "Creation date of the change document
* TIME_UNTIL = '235959' "Change documents, time
OBJECTCLASS = "Object class
* OBJECTID = ' ' "Object value
* CHANGENUMBER = ' ' "Change document number
* DATE_OF_CHANGE = '00000000' "Change date from which searched
* TIME_OF_CHANGE = '000000' "Change time from which searched
* TABLENAME = ' ' "Table name for which change documents are read
* TABLEKEY = ' ' "Key of the changed table record
* USERNAME = ' ' "Name of the person changing

IMPORTING
ET_CDPOS_UID = "Internal Table CDPOS_UID
ET_CDPOS_STR = "

TABLES
ICDHDR = "Table with change document header data
ICDPOS = "Table with change document items

EXCEPTIONS
NO_POSITION_FOUND = 1
.



IMPORTING Parameters details for CHANGEDOCUMENT_READ_WITHOUT_ED

CLIENT - Client for whom change documents are read

Data type: CDHDR-MANDANT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLEKEY254 -

Data type: CDPOS_UID-TABKEY
Default: SPACE
Optional: Yes
Call by Reference: Yes

DATE_UNTIL - Creation date of the change document

Data type: CDDATUM
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TIME_UNTIL - Change documents, time

Data type: CDTIME
Default: '235959'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECTCLASS - Object class

Data type: CDHDR-OBJECTCLAS
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECTID - Object value

Data type: CDHDR-OBJECTID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGENUMBER - Change document number

Data type: CDPOS-CHANGENR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATE_OF_CHANGE - Change date from which searched

Data type: CDHDR-UDATE
Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TIME_OF_CHANGE - Change time from which searched

Data type: CDHDR-UTIME
Default: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLENAME - Table name for which change documents are read

Data type: CDPOS-TABNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLEKEY - Key of the changed table record

Data type: CDPOS-TABKEY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

USERNAME - Name of the person changing

Data type: CDHDR-USERNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CHANGEDOCUMENT_READ_WITHOUT_ED

ET_CDPOS_UID - Internal Table CDPOS_UID

Data type: CDPOS_UID_TAB
Optional: No
Call by Reference: Yes

ET_CDPOS_STR -

Data type: CDPOS_STR_TAB
Optional: No
Call by Reference: Yes

TABLES Parameters details for CHANGEDOCUMENT_READ_WITHOUT_ED

ICDHDR - Table with change document header data

Data type: CDHDR
Optional: No
Call by Reference: Yes

ICDPOS - Table with change document items

Data type: CDPOS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_POSITION_FOUND - no item found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CHANGEDOCUMENT_READ_WITHOUT_ED 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_client  TYPE CDHDR-MANDANT, "   SY-MANDT
lt_icdhdr  TYPE STANDARD TABLE OF CDHDR, "   
lv_et_cdpos_uid  TYPE CDPOS_UID_TAB, "   
lv_no_position_found  TYPE CDPOS_UID_TAB, "   
lv_tablekey254  TYPE CDPOS_UID-TABKEY, "   SPACE
lv_date_until  TYPE CDDATUM, "   '99991231'
lv_time_until  TYPE CDTIME, "   '235959'
lt_icdpos  TYPE STANDARD TABLE OF CDPOS, "   
lv_objectclass  TYPE CDHDR-OBJECTCLAS, "   
lv_et_cdpos_str  TYPE CDPOS_STR_TAB, "   
lv_objectid  TYPE CDHDR-OBJECTID, "   SPACE
lv_changenumber  TYPE CDPOS-CHANGENR, "   SPACE
lv_date_of_change  TYPE CDHDR-UDATE, "   '00000000'
lv_time_of_change  TYPE CDHDR-UTIME, "   '000000'
lv_tablename  TYPE CDPOS-TABNAME, "   SPACE
lv_tablekey  TYPE CDPOS-TABKEY, "   SPACE
lv_username  TYPE CDHDR-USERNAME. "   SPACE

  CALL FUNCTION 'CHANGEDOCUMENT_READ_WITHOUT_ED'  "
    EXPORTING
         CLIENT = lv_client
         TABLEKEY254 = lv_tablekey254
         DATE_UNTIL = lv_date_until
         TIME_UNTIL = lv_time_until
         OBJECTCLASS = lv_objectclass
         OBJECTID = lv_objectid
         CHANGENUMBER = lv_changenumber
         DATE_OF_CHANGE = lv_date_of_change
         TIME_OF_CHANGE = lv_time_of_change
         TABLENAME = lv_tablename
         TABLEKEY = lv_tablekey
         USERNAME = lv_username
    IMPORTING
         ET_CDPOS_UID = lv_et_cdpos_uid
         ET_CDPOS_STR = lv_et_cdpos_str
    TABLES
         ICDHDR = lt_icdhdr
         ICDPOS = lt_icdpos
    EXCEPTIONS
        NO_POSITION_FOUND = 1
. " CHANGEDOCUMENT_READ_WITHOUT_ED




ABAP code using 7.40 inline data declarations to call FM CHANGEDOCUMENT_READ_WITHOUT_ED

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 MANDANT FROM CDHDR INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
 
 
"SELECT single TABKEY FROM CDPOS_UID INTO @DATA(ld_tablekey254).
DATA(ld_tablekey254) = ' '.
 
DATA(ld_date_until) = '99991231'.
 
DATA(ld_time_until) = '235959'.
 
 
"SELECT single OBJECTCLAS FROM CDHDR INTO @DATA(ld_objectclass).
 
 
"SELECT single OBJECTID FROM CDHDR INTO @DATA(ld_objectid).
DATA(ld_objectid) = ' '.
 
"SELECT single CHANGENR FROM CDPOS INTO @DATA(ld_changenumber).
DATA(ld_changenumber) = ' '.
 
"SELECT single UDATE FROM CDHDR INTO @DATA(ld_date_of_change).
DATA(ld_date_of_change) = '00000000'.
 
"SELECT single UTIME FROM CDHDR INTO @DATA(ld_time_of_change).
DATA(ld_time_of_change) = '000000'.
 
"SELECT single TABNAME FROM CDPOS INTO @DATA(ld_tablename).
DATA(ld_tablename) = ' '.
 
"SELECT single TABKEY FROM CDPOS INTO @DATA(ld_tablekey).
DATA(ld_tablekey) = ' '.
 
"SELECT single USERNAME FROM CDHDR INTO @DATA(ld_username).
DATA(ld_username) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!