SAP HRIQ_CHANGEDOCUMENT_READ Function Module for









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

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



Function HRIQ_CHANGEDOCUMENT_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 'HRIQ_CHANGEDOCUMENT_READ'"
EXPORTING
* ARCHIVE_HANDLE = 0 "
* LOCAL_TIME = ' ' "
* TABLEKEY254 = ' ' "
* KEYGUID = ' ' "
* DATE_UNTIL = '99991231' "
* TIME_UNTIL = '235959' "
* CHANGENUMBER = ' ' "
* DATE_OF_CHANGE = '00000000' "
OBJECTCLASS = "
* OBJECTID = ' ' "
* TABLEKEY = ' ' "
* TABLENAME = ' ' "
* TIME_OF_CHANGE = '000000' "
* USERNAME = ' ' "

TABLES
EDITPOS = "

EXCEPTIONS
NO_POSITION_FOUND = 1 WRONG_ACCESS_TO_ARCHIVE = 2 TIME_ZONE_CONVERSION_ERROR = 3
.



IMPORTING Parameters details for HRIQ_CHANGEDOCUMENT_READ

ARCHIVE_HANDLE -

Data type: SY-TABIX
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOCAL_TIME -

Data type:
Default: SPACE
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: No ( called with pass by value option)

KEYGUID -

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

DATE_UNTIL -

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

TIME_UNTIL -

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

CHANGENUMBER -

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

DATE_OF_CHANGE -

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

OBJECTCLASS -

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

OBJECTID -

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

TABLEKEY -

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

TABLENAME -

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

TIME_OF_CHANGE -

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

USERNAME -

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

TABLES Parameters details for HRIQ_CHANGEDOCUMENT_READ

EDITPOS -

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

EXCEPTIONS details

NO_POSITION_FOUND -

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

WRONG_ACCESS_TO_ARCHIVE -

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

TIME_ZONE_CONVERSION_ERROR -

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

Copy and paste ABAP code example for HRIQ_CHANGEDOCUMENT_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_editpos  TYPE STANDARD TABLE OF CDRED, "   
lv_archive_handle  TYPE SY-TABIX, "   0
lv_no_position_found  TYPE SY, "   
lv_local_time  TYPE SY, "   SPACE
lv_tablekey254  TYPE CDPOS_UID-TABKEY, "   SPACE
lv_keyguid  TYPE CDPOS_UID-KEYGUID, "   SPACE
lv_date_until  TYPE CDHDR-UDATE, "   '99991231'
lv_time_until  TYPE CDHDR-UTIME, "   '235959'
lv_changenumber  TYPE CDPOS-CHANGENR, "   SPACE
lv_wrong_access_to_archive  TYPE CDPOS, "   
lv_date_of_change  TYPE CDHDR-UDATE, "   '00000000'
lv_time_zone_conversion_error  TYPE CDHDR, "   
lv_objectclass  TYPE CDHDR-OBJECTCLAS, "   
lv_objectid  TYPE CDHDR-OBJECTID, "   SPACE
lv_tablekey  TYPE CDPOS-TABKEY, "   SPACE
lv_tablename  TYPE CDPOS-TABNAME, "   SPACE
lv_time_of_change  TYPE CDHDR-UTIME, "   '000000'
lv_username  TYPE CDHDR-USERNAME. "   SPACE

  CALL FUNCTION 'HRIQ_CHANGEDOCUMENT_READ'  "
    EXPORTING
         ARCHIVE_HANDLE = lv_archive_handle
         LOCAL_TIME = lv_local_time
         TABLEKEY254 = lv_tablekey254
         KEYGUID = lv_keyguid
         DATE_UNTIL = lv_date_until
         TIME_UNTIL = lv_time_until
         CHANGENUMBER = lv_changenumber
         DATE_OF_CHANGE = lv_date_of_change
         OBJECTCLASS = lv_objectclass
         OBJECTID = lv_objectid
         TABLEKEY = lv_tablekey
         TABLENAME = lv_tablename
         TIME_OF_CHANGE = lv_time_of_change
         USERNAME = lv_username
    TABLES
         EDITPOS = lt_editpos
    EXCEPTIONS
        NO_POSITION_FOUND = 1
        WRONG_ACCESS_TO_ARCHIVE = 2
        TIME_ZONE_CONVERSION_ERROR = 3
. " HRIQ_CHANGEDOCUMENT_READ




ABAP code using 7.40 inline data declarations to call FM HRIQ_CHANGEDOCUMENT_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 TABIX FROM SY INTO @DATA(ld_archive_handle).
 
 
DATA(ld_local_time) = ' '.
 
"SELECT single TABKEY FROM CDPOS_UID INTO @DATA(ld_tablekey254).
DATA(ld_tablekey254) = ' '.
 
"SELECT single KEYGUID FROM CDPOS_UID INTO @DATA(ld_keyguid).
DATA(ld_keyguid) = ' '.
 
"SELECT single UDATE FROM CDHDR INTO @DATA(ld_date_until).
DATA(ld_date_until) = '99991231'.
 
"SELECT single UTIME FROM CDHDR INTO @DATA(ld_time_until).
DATA(ld_time_until) = '235959'.
 
"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 OBJECTCLAS FROM CDHDR INTO @DATA(ld_objectclass).
 
"SELECT single OBJECTID FROM CDHDR INTO @DATA(ld_objectid).
DATA(ld_objectid) = ' '.
 
"SELECT single TABKEY FROM CDPOS INTO @DATA(ld_tablekey).
DATA(ld_tablekey) = ' '.
 
"SELECT single TABNAME FROM CDPOS INTO @DATA(ld_tablename).
DATA(ld_tablename) = ' '.
 
"SELECT single UTIME FROM CDHDR INTO @DATA(ld_time_of_change).
DATA(ld_time_of_change) = '000000'.
 
"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!