SAP HRHAP_POPUP_F4_TEMPLATE Function Module for
HRHAP_POPUP_F4_TEMPLATE is a standard hrhap popup f4 template 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 popup f4 template FM, simply by entering the name HRHAP_POPUP_F4_TEMPLATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRHAP_C_UI_F4
Program Name: SAPLHRHAP_C_UI_F4
Main Program: SAPLHRHAP_C_UI_F4
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function HRHAP_POPUP_F4_TEMPLATE 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_POPUP_F4_TEMPLATE'".
EXPORTING
* AUTHORITY_CHECK = '03' "Activity (for Authority Check) - '02'=Change; '03=Display; '06'=Delete
* MULTIPLE_SELECTION = ' ' "' ' = Single Selection, 'X' = Mulitple Selection
* T_SELECTED = "Already selected Templates
* ADD_ON_APPLICATION = "Add On Application for the Appraisal Systems
PLAN_VERSION = "Plan Version
* SEARCH_STRING = '*' "Search String
* FROM_DATE = '19000101' "From Date
* TO_DATE = '99991231' "To Date
* T_APPRAISER = "Appraiser
* T_APPRAISEE = "Appraisee
* NO_DIALOG = ' ' "'X'=no dialog
IMPORTING
T_TEMPLATES = "Found Appraisal Templates
S_RETURN = "Application Log: Message Data
IMPORTING Parameters details for HRHAP_POPUP_F4_TEMPLATE
AUTHORITY_CHECK - Activity (for Authority Check) - '02'=Change; '03=Display; '06'=Delete
Data type: ACTIV_AUTHDefault: '03'
Optional: Yes
Call by Reference: Yes
MULTIPLE_SELECTION - ' ' = Single Selection, 'X' = Mulitple Selection
Data type: CHAR1Default: ' '
Optional: No
Call by Reference: Yes
T_SELECTED - Already selected Templates
Data type: HAP_T_TEMPLATESOptional: Yes
Call by Reference: Yes
ADD_ON_APPLICATION - Add On Application for the Appraisal Systems
Data type: HAP_ADD_ON_APPLICATIONOptional: Yes
Call by Reference: Yes
PLAN_VERSION - Plan Version
Data type: PLVAROptional: No
Call by Reference: Yes
SEARCH_STRING - Search String
Data type: CDefault: '*'
Optional: Yes
Call by Reference: Yes
FROM_DATE - From Date
Data type: HAP_DATE_FROMDefault: '19000101'
Optional: Yes
Call by Reference: Yes
TO_DATE - To Date
Data type: HAP_DATE_TODefault: '99991231'
Optional: Yes
Call by Reference: Yes
T_APPRAISER - Appraiser
Data type: HAP_T_HEADER_APPRAISEROptional: Yes
Call by Reference: Yes
T_APPRAISEE - Appraisee
Data type: HAP_T_HEADER_APPRAISEEOptional: Yes
Call by Reference: Yes
NO_DIALOG - 'X'=no dialog
Data type: CHAR1Default: ' '
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for HRHAP_POPUP_F4_TEMPLATE
T_TEMPLATES - Found Appraisal Templates
Data type: HAP_T_TEMPLATESOptional: No
Call by Reference: Yes
S_RETURN - Application Log: Message Data
Data type: BAL_S_MSGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRHAP_POPUP_F4_TEMPLATE 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_templates | TYPE HAP_T_TEMPLATES, " | |||
lv_authority_check | TYPE ACTIV_AUTH, " '03' | |||
lv_multiple_selection | TYPE CHAR1, " ' ' | |||
lv_t_selected | TYPE HAP_T_TEMPLATES, " | |||
lv_s_return | TYPE BAL_S_MSG, " | |||
lv_add_on_application | TYPE HAP_ADD_ON_APPLICATION, " | |||
lv_plan_version | TYPE PLVAR, " | |||
lv_search_string | TYPE C, " '*' | |||
lv_from_date | TYPE HAP_DATE_FROM, " '19000101' | |||
lv_to_date | TYPE HAP_DATE_TO, " '99991231' | |||
lv_t_appraiser | TYPE HAP_T_HEADER_APPRAISER, " | |||
lv_t_appraisee | TYPE HAP_T_HEADER_APPRAISEE, " | |||
lv_no_dialog | TYPE CHAR1. " ' ' |
  CALL FUNCTION 'HRHAP_POPUP_F4_TEMPLATE' " |
EXPORTING | ||
AUTHORITY_CHECK | = lv_authority_check | |
MULTIPLE_SELECTION | = lv_multiple_selection | |
T_SELECTED | = lv_t_selected | |
ADD_ON_APPLICATION | = lv_add_on_application | |
PLAN_VERSION | = lv_plan_version | |
SEARCH_STRING | = lv_search_string | |
FROM_DATE | = lv_from_date | |
TO_DATE | = lv_to_date | |
T_APPRAISER | = lv_t_appraiser | |
T_APPRAISEE | = lv_t_appraisee | |
NO_DIALOG | = lv_no_dialog | |
IMPORTING | ||
T_TEMPLATES | = lv_t_templates | |
S_RETURN | = lv_s_return | |
. " HRHAP_POPUP_F4_TEMPLATE |
ABAP code using 7.40 inline data declarations to call FM HRHAP_POPUP_F4_TEMPLATE
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_authority_check) | = '03'. | |||
DATA(ld_multiple_selection) | = ' '. | |||
DATA(ld_search_string) | = '*'. | |||
DATA(ld_from_date) | = '19000101'. | |||
DATA(ld_to_date) | = '99991231'. | |||
DATA(ld_no_dialog) | = ' '. | |||
Search for further information about these or an SAP related objects