SAP RH_READ_INFTY Function Module for Read Infotype for Object Set / Read All Infotypes of an Object
RH_READ_INFTY is a standard rh read infty 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 Infotype for Object Set / Read All Infotypes of an Object 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 rh read infty FM, simply by entering the name RH_READ_INFTY into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHDB
Program Name: SAPLRHDB
Main Program: SAPLRHDB
Appliation area: H
Release date: 07-Apr-1998
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RH_READ_INFTY 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 'RH_READ_INFTY'"Read Infotype for Object Set / Read All Infotypes of an Object.
EXPORTING
* AUTHORITY = 'DISP' "Function Code for Authorization Check
* BEGDA = '19000101' "Start Date (EXTEND = X)
* ENDDA = '99991231' "End Date (EXTEND = X)
* CONDITION = '00000' "Condition (EXTEND = D)
* INFTB = '1' "Toggle Table Infotype (1=Toggle, 0=Other)
* SORT = 'X' "Sort Data Table
* VIA_T777D = ' ' "Read All Infotypes Using T777D
* WITH_STRU_AUTH = 'X' "With Structural Authorization Check
* PLVAR = "Plan Version
* OTYPE = "Object Type
* OBJID = "Object ID
* INFTY = ' ' "Infotype
* ISTAT = ' ' "Status
* EXTEND = 'X' "Enhancement (X = with SUBTY/BEGDA/ENDDA)
* SUBTY = ' ' "Subtype (EXTEND = X)
TABLES
INNNN = "Data Table
* OBJECTS = "Object Range
EXCEPTIONS
ALL_INFTY_WITH_SUBTY = 1 NOTHING_FOUND = 2 NO_OBJECTS = 3 WRONG_CONDITION = 4 WRONG_PARAMETERS = 5
IMPORTING Parameters details for RH_READ_INFTY
AUTHORITY - Function Code for Authorization Check
Data type:Default: 'DISP'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BEGDA - Start Date (EXTEND = X)
Data type: PLOG-BEGDADefault: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENDDA - End Date (EXTEND = X)
Data type: PLOG-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONDITION - Condition (EXTEND = D)
Data type: HRRHDB-CONDITIONDefault: '00000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
INFTB - Toggle Table Infotype (1=Toggle, 0=Other)
Data type: PPPCH-INFTBDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SORT - Sort Data Table
Data type: HRRHDB-SORTDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VIA_T777D - Read All Infotypes Using T777D
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_STRU_AUTH - With Structural Authorization Check
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PLVAR - Plan Version
Data type: PLOG-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE - Object Type
Data type: PLOG-OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJID - Object ID
Data type: PLOG-OBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
INFTY - Infotype
Data type: PLOG-INFTYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ISTAT - Status
Data type: PLOG-ISTATDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXTEND - Enhancement (X = with SUBTY/BEGDA/ENDDA)
Data type: HRRHDB-EXTENDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUBTY - Subtype (EXTEND = X)
Data type: PLOG-SUBTYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_READ_INFTY
INNNN - Data Table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECTS - Object Range
Data type: HROBJECTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ALL_INFTY_WITH_SUBTY - All Infotypes with Subtype Specified
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTHING_FOUND - No Data Selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_OBJECTS - An Empty Object Table was Transferred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CONDITION - No condition exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_PARAMETERS - FM Was Called With Incorrect Parameters
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RH_READ_INFTY 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_innnn | TYPE STANDARD TABLE OF STRING, " | |||
lv_authority | TYPE STRING, " 'DISP' | |||
lv_all_infty_with_subty | TYPE STRING, " | |||
lv_begda | TYPE PLOG-BEGDA, " '19000101' | |||
lv_endda | TYPE PLOG-ENDDA, " '99991231' | |||
lv_condition | TYPE HRRHDB-CONDITION, " '00000' | |||
lv_inftb | TYPE PPPCH-INFTB, " '1' | |||
lv_sort | TYPE HRRHDB-SORT, " 'X' | |||
lv_via_t777d | TYPE HRRHDB, " SPACE | |||
lt_objects | TYPE STANDARD TABLE OF HROBJECT, " | |||
lv_nothing_found | TYPE HROBJECT, " | |||
lv_with_stru_auth | TYPE HROBJECT, " 'X' | |||
lv_plvar | TYPE PLOG-PLVAR, " | |||
lv_no_objects | TYPE PLOG, " | |||
lv_otype | TYPE PLOG-OTYPE, " | |||
lv_wrong_condition | TYPE PLOG, " | |||
lv_objid | TYPE PLOG-OBJID, " | |||
lv_wrong_parameters | TYPE PLOG, " | |||
lv_infty | TYPE PLOG-INFTY, " SPACE | |||
lv_istat | TYPE PLOG-ISTAT, " SPACE | |||
lv_extend | TYPE HRRHDB-EXTEND, " 'X' | |||
lv_subty | TYPE PLOG-SUBTY. " SPACE |
  CALL FUNCTION 'RH_READ_INFTY' "Read Infotype for Object Set / Read All Infotypes of an Object |
EXPORTING | ||
AUTHORITY | = lv_authority | |
BEGDA | = lv_begda | |
ENDDA | = lv_endda | |
CONDITION | = lv_condition | |
INFTB | = lv_inftb | |
SORT | = lv_sort | |
VIA_T777D | = lv_via_t777d | |
WITH_STRU_AUTH | = lv_with_stru_auth | |
PLVAR | = lv_plvar | |
OTYPE | = lv_otype | |
OBJID | = lv_objid | |
INFTY | = lv_infty | |
ISTAT | = lv_istat | |
EXTEND | = lv_extend | |
SUBTY | = lv_subty | |
TABLES | ||
INNNN | = lt_innnn | |
OBJECTS | = lt_objects | |
EXCEPTIONS | ||
ALL_INFTY_WITH_SUBTY = 1 | ||
NOTHING_FOUND = 2 | ||
NO_OBJECTS = 3 | ||
WRONG_CONDITION = 4 | ||
WRONG_PARAMETERS = 5 | ||
. " RH_READ_INFTY |
ABAP code using 7.40 inline data declarations to call FM RH_READ_INFTY
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.DATA(ld_authority) | = 'DISP'. | |||
"SELECT single BEGDA FROM PLOG INTO @DATA(ld_begda). | ||||
DATA(ld_begda) | = '19000101'. | |||
"SELECT single ENDDA FROM PLOG INTO @DATA(ld_endda). | ||||
DATA(ld_endda) | = '99991231'. | |||
"SELECT single CONDITION FROM HRRHDB INTO @DATA(ld_condition). | ||||
DATA(ld_condition) | = '00000'. | |||
"SELECT single INFTB FROM PPPCH INTO @DATA(ld_inftb). | ||||
DATA(ld_inftb) | = '1'. | |||
"SELECT single SORT FROM HRRHDB INTO @DATA(ld_sort). | ||||
DATA(ld_sort) | = 'X'. | |||
DATA(ld_via_t777d) | = ' '. | |||
DATA(ld_with_stru_auth) | = 'X'. | |||
"SELECT single PLVAR FROM PLOG INTO @DATA(ld_plvar). | ||||
"SELECT single OTYPE FROM PLOG INTO @DATA(ld_otype). | ||||
"SELECT single OBJID FROM PLOG INTO @DATA(ld_objid). | ||||
"SELECT single INFTY FROM PLOG INTO @DATA(ld_infty). | ||||
DATA(ld_infty) | = ' '. | |||
"SELECT single ISTAT FROM PLOG INTO @DATA(ld_istat). | ||||
DATA(ld_istat) | = ' '. | |||
"SELECT single EXTEND FROM HRRHDB INTO @DATA(ld_extend). | ||||
DATA(ld_extend) | = 'X'. | |||
"SELECT single SUBTY FROM PLOG INTO @DATA(ld_subty). | ||||
DATA(ld_subty) | = ' '. | |||
Search for further information about these or an SAP related objects