SAP RH_CHECK_PROF_OF_USERS Function Module for
RH_CHECK_PROF_OF_USERS is a standard rh check prof of users 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 check prof of users FM, simply by entering the name RH_CHECK_PROF_OF_USERS into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHUM
Program Name: SAPLRHUM
Main Program: SAPLRHUM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_CHECK_PROF_OF_USERS 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_CHECK_PROF_OF_USERS'".
EXPORTING
* PLVAR = "Plan Version
OTYPE = "Object Type
OBJID = "Object ID
* NO_DIALOG = "
* DELETE_PROFILES = "
* TITLE_OTEXT = "
IMPORTING
DISPLAY_DIALOG = "
TABLES
* PROFILES = "
EXCEPTIONS
NO_ACTIVE_PLVAR = 1 CANCEL = 2 PROFILE_NOT_DELETED = 3 NO_ACTIVITY_GROUP = 4 COMPOSITE_PROFILE_NOT_DELETED = 5
IMPORTING Parameters details for RH_CHECK_PROF_OF_USERS
PLVAR - Plan Version
Data type: OBJEC-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE - Object Type
Data type: OBJEC-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJID - Object ID
Data type: OBJEC-OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
NO_DIALOG -
Data type: P1000-HISTOOptional: Yes
Call by Reference: No ( called with pass by value option)
DELETE_PROFILES -
Data type: P1000-HISTOOptional: Yes
Call by Reference: No ( called with pass by value option)
TITLE_OTEXT -
Data type: T777O-OTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RH_CHECK_PROF_OF_USERS
DISPLAY_DIALOG -
Data type: P1000-HISTOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_CHECK_PROF_OF_USERS
PROFILES -
Data type: USREFOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ACTIVE_PLVAR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCEL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROFILE_NOT_DELETED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ACTIVITY_GROUP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COMPOSITE_PROFILE_NOT_DELETED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_CHECK_PROF_OF_USERS 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 OBJEC-PLVAR, " | |||
| lt_profiles | TYPE STANDARD TABLE OF USREF, " | |||
| lv_display_dialog | TYPE P1000-HISTO, " | |||
| lv_no_active_plvar | TYPE P1000, " | |||
| lv_otype | TYPE OBJEC-OTYPE, " | |||
| lv_cancel | TYPE OBJEC, " | |||
| lv_objid | TYPE OBJEC-OBJID, " | |||
| lv_profile_not_deleted | TYPE OBJEC, " | |||
| lv_no_dialog | TYPE P1000-HISTO, " | |||
| lv_no_activity_group | TYPE P1000, " | |||
| lv_delete_profiles | TYPE P1000-HISTO, " | |||
| lv_composite_profile_not_deleted | TYPE P1000, " | |||
| lv_title_otext | TYPE T777O-OTEXT. " |
|   CALL FUNCTION 'RH_CHECK_PROF_OF_USERS' " |
| EXPORTING | ||
| PLVAR | = lv_plvar | |
| OTYPE | = lv_otype | |
| OBJID | = lv_objid | |
| NO_DIALOG | = lv_no_dialog | |
| DELETE_PROFILES | = lv_delete_profiles | |
| TITLE_OTEXT | = lv_title_otext | |
| IMPORTING | ||
| DISPLAY_DIALOG | = lv_display_dialog | |
| TABLES | ||
| PROFILES | = lt_profiles | |
| EXCEPTIONS | ||
| NO_ACTIVE_PLVAR = 1 | ||
| CANCEL = 2 | ||
| PROFILE_NOT_DELETED = 3 | ||
| NO_ACTIVITY_GROUP = 4 | ||
| COMPOSITE_PROFILE_NOT_DELETED = 5 | ||
| . " RH_CHECK_PROF_OF_USERS | ||
ABAP code using 7.40 inline data declarations to call FM RH_CHECK_PROF_OF_USERS
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 OBJEC INTO @DATA(ld_plvar). | ||||
| "SELECT single HISTO FROM P1000 INTO @DATA(ld_display_dialog). | ||||
| "SELECT single OTYPE FROM OBJEC INTO @DATA(ld_otype). | ||||
| "SELECT single OBJID FROM OBJEC INTO @DATA(ld_objid). | ||||
| "SELECT single HISTO FROM P1000 INTO @DATA(ld_no_dialog). | ||||
| "SELECT single HISTO FROM P1000 INTO @DATA(ld_delete_profiles). | ||||
| "SELECT single OTEXT FROM T777O INTO @DATA(ld_title_otext). | ||||
Search for further information about these or an SAP related objects