SAP HRHAP_DOC_ANONYMOUS_READ Function Module for









HRHAP_DOC_ANONYMOUS_READ is a standard hrhap doc anonymous read 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 hrhap doc anonymous read FM, simply by entering the name HRHAP_DOC_ANONYMOUS_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRHAP_IF_DOCUMENT_BASIC
Program Name: SAPLHRHAP_IF_DOCUMENT_BASIC
Main Program: SAPLHRHAP_IF_DOCUMENT_BASIC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRHAP_DOC_ANONYMOUS_READ 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 'HRHAP_DOC_ANONYMOUS_READ'"
EXPORTING
PLAN_VERSION = "Plan Version
TEMPLATE_ID = "Appraisal Template
START_DATE = "Start date of the appraisal period
END_DATE = "End date of the appraisal period
* T_APPRAISER = "Appraiser
* T_APPRAISEE = "Appraisee
* PART_APPRAISAL = ' ' "Flag: Part Appraisal
* PART_ROLE_ID = "Part Appraiser Role ID
* COMPLETED = ' ' "Flag: (Part) Appraisal Document Completed

IMPORTING
T_ANON = "Table Type for Anonymous Appraiser Data
S_RETURN = "Application Log: Message Data
.



IMPORTING Parameters details for HRHAP_DOC_ANONYMOUS_READ

PLAN_VERSION - Plan Version

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

TEMPLATE_ID - Appraisal Template

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

START_DATE - Start date of the appraisal period

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

END_DATE - End date of the appraisal period

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

T_APPRAISER - Appraiser

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

T_APPRAISEE - Appraisee

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

PART_APPRAISAL - Flag: Part Appraisal

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

PART_ROLE_ID - Part Appraiser Role ID

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

COMPLETED - Flag: (Part) Appraisal Document Completed

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

EXPORTING Parameters details for HRHAP_DOC_ANONYMOUS_READ

T_ANON - Table Type for Anonymous Appraiser Data

Data type: HAP_T_DB_ANON
Optional: No
Call by Reference: Yes

S_RETURN - Application Log: Message Data

Data type: BAL_S_MSG
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRHAP_DOC_ANONYMOUS_READ 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_t_anon  TYPE HAP_T_DB_ANON, "   
lv_plan_version  TYPE HAP_PLAN_VERSION, "   
lv_s_return  TYPE BAL_S_MSG, "   
lv_template_id  TYPE HAP_TEMPLATE_ID, "   
lv_start_date  TYPE HAP_AP_START_DATE, "   
lv_end_date  TYPE HAP_AP_END_DATE, "   
lv_t_appraiser  TYPE HAP_T_HRSOBID, "   
lv_t_appraisee  TYPE HAP_T_HRSOBID, "   
lv_part_appraisal  TYPE CHAR1, "   ' '
lv_part_role_id  TYPE HAP_PART_ROLE_ID, "   
lv_completed  TYPE HAP_AP_COMPLETED. "   ' '

  CALL FUNCTION 'HRHAP_DOC_ANONYMOUS_READ'  "
    EXPORTING
         PLAN_VERSION = lv_plan_version
         TEMPLATE_ID = lv_template_id
         START_DATE = lv_start_date
         END_DATE = lv_end_date
         T_APPRAISER = lv_t_appraiser
         T_APPRAISEE = lv_t_appraisee
         PART_APPRAISAL = lv_part_appraisal
         PART_ROLE_ID = lv_part_role_id
         COMPLETED = lv_completed
    IMPORTING
         T_ANON = lv_t_anon
         S_RETURN = lv_s_return
. " HRHAP_DOC_ANONYMOUS_READ




ABAP code using 7.40 inline data declarations to call FM HRHAP_DOC_ANONYMOUS_READ

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.

 
 
 
 
 
 
 
 
DATA(ld_part_appraisal) = ' '.
 
 
DATA(ld_completed) = ' '.
 


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!