SAP RH_READ_INFTY_NNNN Function Module for Read Infotype > 1001 for Object Set
RH_READ_INFTY_NNNN is a standard rh read infty nnnn 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 > 1001 for Object Set 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 nnnn FM, simply by entering the name RH_READ_INFTY_NNNN 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_NNNN 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_NNNN'"Read Infotype > 1001 for Object Set.
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
* WITH_STRU_AUTH = 'X' "With Structural Authorization Check
* PLVAR = "Plan Version
* OTYPE = "Object Type
* OBJID = "Object ID
INFTY = "Infotype
* ISTAT = ' ' "Status
* EXTEND = 'X' "Extension (X = with SUBTY/ISTAT/BEGDA/ENDDA)
* SUBTY = ' ' "Subtype (EXTEND = X)
TABLES
INNNN = "Data Table
* OBJECTS = "Object Range
EXCEPTIONS
NOTHING_FOUND = 1 WRONG_CONDITION = 2 INFOTYP_NOT_SUPPORTED = 3 WRONG_PARAMETERS = 4
IMPORTING Parameters details for RH_READ_INFTY_NNNN
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)
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-INFTYOptional: No
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 - Extension (X = with SUBTY/ISTAT/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_NNNN
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
NOTHING_FOUND - No Data Selected
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)
INFOTYP_NOT_SUPPORTED - Infotype 1000 is Not Supported
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_NNNN 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_nothing_found | 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' | |||
| lt_objects | TYPE STANDARD TABLE OF HROBJECT, " | |||
| lv_with_stru_auth | TYPE HROBJECT, " 'X' | |||
| lv_wrong_condition | TYPE HROBJECT, " | |||
| lv_plvar | TYPE PLOG-PLVAR, " | |||
| lv_infotyp_not_supported | TYPE PLOG, " | |||
| lv_otype | TYPE PLOG-OTYPE, " | |||
| lv_wrong_parameters | TYPE PLOG, " | |||
| lv_objid | TYPE PLOG-OBJID, " | |||
| lv_infty | TYPE PLOG-INFTY, " | |||
| lv_istat | TYPE PLOG-ISTAT, " SPACE | |||
| lv_extend | TYPE HRRHDB-EXTEND, " 'X' | |||
| lv_subty | TYPE PLOG-SUBTY. " SPACE |
|   CALL FUNCTION 'RH_READ_INFTY_NNNN' "Read Infotype > 1001 for Object Set |
| EXPORTING | ||
| AUTHORITY | = lv_authority | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| CONDITION | = lv_condition | |
| INFTB | = lv_inftb | |
| SORT | = lv_sort | |
| 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 | ||
| NOTHING_FOUND = 1 | ||
| WRONG_CONDITION = 2 | ||
| INFOTYP_NOT_SUPPORTED = 3 | ||
| WRONG_PARAMETERS = 4 | ||
| . " RH_READ_INFTY_NNNN | ||
ABAP code using 7.40 inline data declarations to call FM RH_READ_INFTY_NNNN
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_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). | ||||
| "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