SAP Function Modules

RHPP_Q_PROFILE_READ SAP Function module - Read qualifications profile







RHPP_Q_PROFILE_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RHPP_Q_PROFILE_READ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RHPP
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RHPP_Q_PROFILE_READ - RHPP Q PROFILE READ





CALL FUNCTION 'RHPP_Q_PROFILE_READ' "Read qualifications profile
* EXPORTING
*   begda = SY-DATUM            " hrp1000-begda  Start Date
*   endda = SY-DATUM            " hrp1000-endda  End Date
*   with_stext = 'X'            " char1
*   with_qk_info = 'X'          " char1
*   check_note = ' '            " char1
  TABLES
    objects =                   " hrsobid
*   err_objects =               " hrsobid
    profile =                   " hrpe_profq
  EXCEPTIONS
    NO_AUTHORITY = 1            "               No Authorization
    WRONG_OTYPE = 2             "               Unauth. object type
    OBJECT_NOT_FOUND = 3        "               Object does not exist
    UNDEFINED = 4               "               Other Error
    .  "  RHPP_Q_PROFILE_READ

ABAP code example for Function Module RHPP_Q_PROFILE_READ





The ABAP code below is a full code listing to execute function module RHPP_Q_PROFILE_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_objects  TYPE STANDARD TABLE OF HRSOBID,"TABLES PARAM
wa_objects  LIKE LINE OF it_objects ,
it_err_objects  TYPE STANDARD TABLE OF HRSOBID,"TABLES PARAM
wa_err_objects  LIKE LINE OF it_err_objects ,
it_profile  TYPE STANDARD TABLE OF HRPE_PROFQ,"TABLES PARAM
wa_profile  LIKE LINE OF it_profile .


SELECT single BEGDA
FROM HRP1000
INTO @DATA(ld_begda).


SELECT single ENDDA
FROM HRP1000
INTO @DATA(ld_endda).

DATA(ld_with_stext) = 'Check type of data required'.
DATA(ld_with_qk_info) = 'Check type of data required'.
DATA(ld_check_note) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_objects to it_objects.

"populate fields of struture and append to itab
append wa_err_objects to it_err_objects.

"populate fields of struture and append to itab
append wa_profile to it_profile. . CALL FUNCTION 'RHPP_Q_PROFILE_READ' * EXPORTING * begda = ld_begda * endda = ld_endda * with_stext = ld_with_stext * with_qk_info = ld_with_qk_info * check_note = ld_check_note TABLES objects = it_objects * err_objects = it_err_objects profile = it_profile EXCEPTIONS NO_AUTHORITY = 1 WRONG_OTYPE = 2 OBJECT_NOT_FOUND = 3 UNDEFINED = 4 . " RHPP_Q_PROFILE_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_begda  TYPE HRP1000-BEGDA ,
it_objects  TYPE STANDARD TABLE OF HRSOBID ,
wa_objects  LIKE LINE OF it_objects,
ld_endda  TYPE HRP1000-ENDDA ,
it_err_objects  TYPE STANDARD TABLE OF HRSOBID ,
wa_err_objects  LIKE LINE OF it_err_objects,
ld_with_stext  TYPE CHAR1 ,
it_profile  TYPE STANDARD TABLE OF HRPE_PROFQ ,
wa_profile  LIKE LINE OF it_profile,
ld_with_qk_info  TYPE CHAR1 ,
ld_check_note  TYPE CHAR1 .


SELECT single BEGDA
FROM HRP1000
INTO ld_begda.


"populate fields of struture and append to itab
append wa_objects to it_objects.

SELECT single ENDDA
FROM HRP1000
INTO ld_endda.


"populate fields of struture and append to itab
append wa_err_objects to it_err_objects.
ld_with_stext = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_profile to it_profile.
ld_with_qk_info = 'Check type of data required'.
ld_check_note = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RHPP_Q_PROFILE_READ or its description.