SAP RH_AHQ_LIST_PERNR Function Module for
RH_AHQ_LIST_PERNR is a standard rh ahq list pernr 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 rh ahq list pernr FM, simply by entering the name RH_AHQ_LIST_PERNR into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHMF
Program Name: SAPLRHMF
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_AHQ_LIST_PERNR 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_AHQ_LIST_PERNR'".
EXPORTING
* AUTHORITY_CLASS = 'A' "
* LINE_SELECTION_MODE = 2 "
* NOPA20PB20BUTTON = "
* WINDOW_TITLE = "
* BEGDA = SY-DATUM "
* ENDDA = SY-DATUM "
TABLES
PERNRLIST = "
* MARKED_PERNRS = "
EXCEPTIONS
ACTION_CANCELLED = 1 WRONG_DATE_COMBINATION = 2
IMPORTING Parameters details for RH_AHQ_LIST_PERNR
AUTHORITY_CLASS -
Data type: PSPAR-TCLASDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LINE_SELECTION_MODE -
Data type: IDefault: 2
Optional: Yes
Call by Reference: No ( called with pass by value option)
NOPA20PB20BUTTON -
Data type: FLAG_XOptional: Yes
Call by Reference: No ( called with pass by value option)
WINDOW_TITLE -
Data type: SY-TITLEOptional: Yes
Call by Reference: No ( called with pass by value option)
BEGDA -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENDDA -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_AHQ_LIST_PERNR
PERNRLIST -
Data type: HRAHQ_PERNR_TABLEOptional: No
Call by Reference: No ( called with pass by value option)
MARKED_PERNRS -
Data type: HRAHQ_PERNR_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ACTION_CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_DATE_COMBINATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_AHQ_LIST_PERNR 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_pernrlist | TYPE STANDARD TABLE OF HRAHQ_PERNR_TABLE, " | |||
| lv_authority_class | TYPE PSPAR-TCLAS, " 'A' | |||
| lv_action_cancelled | TYPE PSPAR, " | |||
| lt_marked_pernrs | TYPE STANDARD TABLE OF HRAHQ_PERNR_TABLE, " | |||
| lv_line_selection_mode | TYPE I, " 2 | |||
| lv_wrong_date_combination | TYPE I, " | |||
| lv_nopa20pb20button | TYPE FLAG_X, " | |||
| lv_window_title | TYPE SY-TITLE, " | |||
| lv_begda | TYPE SY-DATUM, " SY-DATUM | |||
| lv_endda | TYPE SY-DATUM. " SY-DATUM |
|   CALL FUNCTION 'RH_AHQ_LIST_PERNR' " |
| EXPORTING | ||
| AUTHORITY_CLASS | = lv_authority_class | |
| LINE_SELECTION_MODE | = lv_line_selection_mode | |
| NOPA20PB20BUTTON | = lv_nopa20pb20button | |
| WINDOW_TITLE | = lv_window_title | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| TABLES | ||
| PERNRLIST | = lt_pernrlist | |
| MARKED_PERNRS | = lt_marked_pernrs | |
| EXCEPTIONS | ||
| ACTION_CANCELLED = 1 | ||
| WRONG_DATE_COMBINATION = 2 | ||
| . " RH_AHQ_LIST_PERNR | ||
ABAP code using 7.40 inline data declarations to call FM RH_AHQ_LIST_PERNR
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 TCLAS FROM PSPAR INTO @DATA(ld_authority_class). | ||||
| DATA(ld_authority_class) | = 'A'. | |||
| DATA(ld_line_selection_mode) | = 2. | |||
| "SELECT single TITLE FROM SY INTO @DATA(ld_window_title). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_begda). | ||||
| DATA(ld_begda) | = SY-DATUM. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_endda). | ||||
| DATA(ld_endda) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects