SAP RHPD_SEARCH_QUALI_WITH_RANGE Function Module for









RHPD_SEARCH_QUALI_WITH_RANGE is a standard rhpd search quali with range 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 rhpd search quali with range FM, simply by entering the name RHPD_SEARCH_QUALI_WITH_RANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHPD_SEARCH
Program Name: SAPLRHPD_SEARCH
Main Program: SAPLRHPD_SEARCH
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RHPD_SEARCH_QUALI_WITH_RANGE 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 'RHPD_SEARCH_QUALI_WITH_RANGE'"
EXPORTING
PLVAR = "Plan Version
* BEGDA = SY-DATUM "Key Date
* ENDDA = SY-DATUM "
* SUBTY = 'B032' "Type of Relationship
* GET_PERS_NAME = "
* ONLY_ESSENTIAL = "Include essential requirements
* CONSIDER_ALTQ = "Include Alternative Qualifications
* TARGET_AP_IEA = "

TABLES
* IMP_PERS_TAB = "
IMP_REQUIREMENTRANGE = "Requirements Profiles
EXP_PERS_TAB = "
* EXP_PERS_PROF_TAB = "
* ALTQ_TAB = "Alternative Qualifications
* APSTA_RANGE = "
* TARGET_OTYPE_TAB = "

EXCEPTIONS
NO_QUALIFICATION = 1 NO_PERSON_FOUND = 2
.



IMPORTING Parameters details for RHPD_SEARCH_QUALI_WITH_RANGE

PLVAR - Plan Version

Data type: HRP1000-PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

BEGDA - Key Date

Data type: HRP1000-BEGDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENDDA -

Data type: HRP1000-ENDDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBTY - Type of Relationship

Data type: HRP1001-SUBTY
Default: 'B032'
Optional: Yes
Call by Reference: No ( called with pass by value option)

GET_PERS_NAME -

Data type: SY-INPUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ONLY_ESSENTIAL - Include essential requirements

Data type: ESSENTIAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

CONSIDER_ALTQ - Include Alternative Qualifications

Data type: SUBSTITUTE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TARGET_AP_IEA -

Data type: SY-INPUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RHPD_SEARCH_QUALI_WITH_RANGE

IMP_PERS_TAB -

Data type: HRSOBID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_REQUIREMENTRANGE - Requirements Profiles

Data type: HRPE_REQUIREMENTRANGE
Optional: No
Call by Reference: No ( called with pass by value option)

EXP_PERS_TAB -

Data type: HRSOBID
Optional: No
Call by Reference: No ( called with pass by value option)

EXP_PERS_PROF_TAB -

Data type: PERSQ_PROF
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALTQ_TAB - Alternative Qualifications

Data type: ALTQ_STRU
Optional: Yes
Call by Reference: No ( called with pass by value option)

APSTA_RANGE -

Data type: RANGE_APSTA
Optional: Yes
Call by Reference: No ( called with pass by value option)

TARGET_OTYPE_TAB -

Data type: HROTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_QUALIFICATION - No qualifications available

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_PERSON_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RHPD_SEARCH_QUALI_WITH_RANGE 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 HRP1000-PLVAR, "   
lt_imp_pers_tab  TYPE STANDARD TABLE OF HRSOBID, "   
lv_no_qualification  TYPE HRSOBID, "   
lv_begda  TYPE HRP1000-BEGDA, "   SY-DATUM
lv_no_person_found  TYPE HRP1000, "   
lt_imp_requirementrange  TYPE STANDARD TABLE OF HRPE_REQUIREMENTRANGE, "   
lv_endda  TYPE HRP1000-ENDDA, "   SY-DATUM
lt_exp_pers_tab  TYPE STANDARD TABLE OF HRSOBID, "   
lv_subty  TYPE HRP1001-SUBTY, "   'B032'
lt_exp_pers_prof_tab  TYPE STANDARD TABLE OF PERSQ_PROF, "   
lt_altq_tab  TYPE STANDARD TABLE OF ALTQ_STRU, "   
lv_get_pers_name  TYPE SY-INPUT, "   
lt_apsta_range  TYPE STANDARD TABLE OF RANGE_APSTA, "   
lv_only_essential  TYPE ESSENTIAL, "   
lv_consider_altq  TYPE SUBSTITUTE, "   
lt_target_otype_tab  TYPE STANDARD TABLE OF HROTYPE, "   
lv_target_ap_iea  TYPE SY-INPUT. "   

  CALL FUNCTION 'RHPD_SEARCH_QUALI_WITH_RANGE'  "
    EXPORTING
         PLVAR = lv_plvar
         BEGDA = lv_begda
         ENDDA = lv_endda
         SUBTY = lv_subty
         GET_PERS_NAME = lv_get_pers_name
         ONLY_ESSENTIAL = lv_only_essential
         CONSIDER_ALTQ = lv_consider_altq
         TARGET_AP_IEA = lv_target_ap_iea
    TABLES
         IMP_PERS_TAB = lt_imp_pers_tab
         IMP_REQUIREMENTRANGE = lt_imp_requirementrange
         EXP_PERS_TAB = lt_exp_pers_tab
         EXP_PERS_PROF_TAB = lt_exp_pers_prof_tab
         ALTQ_TAB = lt_altq_tab
         APSTA_RANGE = lt_apsta_range
         TARGET_OTYPE_TAB = lt_target_otype_tab
    EXCEPTIONS
        NO_QUALIFICATION = 1
        NO_PERSON_FOUND = 2
. " RHPD_SEARCH_QUALI_WITH_RANGE




ABAP code using 7.40 inline data declarations to call FM RHPD_SEARCH_QUALI_WITH_RANGE

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 HRP1000 INTO @DATA(ld_plvar).
 
 
 
"SELECT single BEGDA FROM HRP1000 INTO @DATA(ld_begda).
DATA(ld_begda) = SY-DATUM.
 
 
 
"SELECT single ENDDA FROM HRP1000 INTO @DATA(ld_endda).
DATA(ld_endda) = SY-DATUM.
 
 
"SELECT single SUBTY FROM HRP1001 INTO @DATA(ld_subty).
DATA(ld_subty) = 'B032'.
 
 
 
"SELECT single INPUT FROM SY INTO @DATA(ld_get_pers_name).
 
 
 
 
 
"SELECT single INPUT FROM SY INTO @DATA(ld_target_ap_iea).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!