SAP EXIT_SAPLRHBX_002 Function Module for User-Defined Enhancement of 'Employee' Menu
EXIT_SAPLRHBX_002 is a standard exit saplrhbx 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User-Defined Enhancement of 'Employee' Menu 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 exit saplrhbx 002 FM, simply by entering the name EXIT_SAPLRHBX_002 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XPMC
Program Name: SAPLXPMC
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLRHBX_002 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 'EXIT_SAPLRHBX_002'"User-Defined Enhancement of 'Employee' Menu.
EXPORTING
PLVAR = "Plan version of object selected
OTYPE = "Object type of object selected
OBJID = "Object ID of object selected
* BEGDA = "Start date of object selected
* ENDDA = "End date of object selected
ISTAT = "Status of object selected
* MAINT_BEGDA = "Start of processing period of list
* MAINT_ENDDA = "End of processing period of list
* FCODE = "Processing: Display ('DISP'), Change ('AEND')
IMPORTING
LIST_REFRESH = "Flag: Reconstruct List ('X')
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.RH_PM_BUDGET_STRUCTURE_SORT
RH_PM_CHECK_BUDGET_PURPOSE
RH_PM_CHECK_EXISTING_PURPOSE
RH_PM_CREATE_BUDGET_PURPOSE
RH_PM_DISPLAY_BUDGET_PURPOSE
RH_PM_EMPLOYEE_CARD_MAINTAIN
RH_PM_EMPLOYEE_CARD_START
RH_PM_SEARCH_MODE_FOR_POSITION
RH_PM_SELECT_WITH_PURPOSE
IMPORTING Parameters details for EXIT_SAPLRHBX_002
PLVAR - Plan version of object selected
Data type: P1000-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
OTYPE - Object type of object selected
Data type: P1000-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJID - Object ID of object selected
Data type: P1000-OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
BEGDA - Start date of object selected
Data type: P1000-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
ENDDA - End date of object selected
Data type: P1000-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
ISTAT - Status of object selected
Data type: P1000-ISTATOptional: No
Call by Reference: No ( called with pass by value option)
MAINT_BEGDA - Start of processing period of list
Data type: P1000-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
MAINT_ENDDA - End of processing period of list
Data type: P1000-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
FCODE - Processing: Display ('DISP'), Change ('AEND')
Data type: T77FD-FCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_SAPLRHBX_002
LIST_REFRESH - Flag: Reconstruct List ('X')
Data type: P1000-HISTOOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLRHBX_002 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_plvar | TYPE P1000-PLVAR, " | |||
| lv_list_refresh | TYPE P1000-HISTO, " | |||
| lv_otype | TYPE P1000-OTYPE, " | |||
| lv_objid | TYPE P1000-OBJID, " | |||
| lv_begda | TYPE P1000-BEGDA, " | |||
| lv_endda | TYPE P1000-ENDDA, " | |||
| lv_istat | TYPE P1000-ISTAT, " | |||
| lv_maint_begda | TYPE P1000-BEGDA, " | |||
| lv_maint_endda | TYPE P1000-ENDDA, " | |||
| lv_fcode | TYPE T77FD-FCODE. " |
|   CALL FUNCTION 'EXIT_SAPLRHBX_002' "User-Defined Enhancement of 'Employee' Menu |
| EXPORTING | ||
| PLVAR | = lv_plvar | |
| OTYPE | = lv_otype | |
| OBJID | = lv_objid | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| ISTAT | = lv_istat | |
| MAINT_BEGDA | = lv_maint_begda | |
| MAINT_ENDDA | = lv_maint_endda | |
| FCODE | = lv_fcode | |
| IMPORTING | ||
| LIST_REFRESH | = lv_list_refresh | |
| . " EXIT_SAPLRHBX_002 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLRHBX_002
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 PLVAR FROM P1000 INTO @DATA(ld_plvar). | ||||
| "SELECT single HISTO FROM P1000 INTO @DATA(ld_list_refresh). | ||||
| "SELECT single OTYPE FROM P1000 INTO @DATA(ld_otype). | ||||
| "SELECT single OBJID FROM P1000 INTO @DATA(ld_objid). | ||||
| "SELECT single BEGDA FROM P1000 INTO @DATA(ld_begda). | ||||
| "SELECT single ENDDA FROM P1000 INTO @DATA(ld_endda). | ||||
| "SELECT single ISTAT FROM P1000 INTO @DATA(ld_istat). | ||||
| "SELECT single BEGDA FROM P1000 INTO @DATA(ld_maint_begda). | ||||
| "SELECT single ENDDA FROM P1000 INTO @DATA(ld_maint_endda). | ||||
| "SELECT single FCODE FROM T77FD INTO @DATA(ld_fcode). | ||||
Search for further information about these or an SAP related objects