SAP HRF_TERM_TYPE Function Module for









HRF_TERM_TYPE is a standard hrf term type 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 hrf term type FM, simply by entering the name HRF_TERM_TYPE into the relevant SAP transaction such as SE37 or SE38.

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



Function HRF_TERM_TYPE 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 'HRF_TERM_TYPE'"
EXPORTING
* MS_DATA = "
* PAYROLL_INTER_PERSON = "
* PAYROLL_NAT_PERSON = "
* PAY_HEADER = "
* TIM_B2 = "
* LANGUAGE = "
* SELECTIONS = "
* FORM_OUTPUT_SELECTION = "
* PERSON = "
* PERNR = "
* PAYROLL_EVP = "
* CLUSTER_DIR = "
* PAYROLL_INTER = "
* PAYROLL_NAT = "
* GROUP_RGDIR = "
* GROUP_RGDIRS = "

IMPORTING
TRSN = "
BEGDA = "
ENDDA = "
TEXT = "

EXCEPTIONS
DISPLAY_ERROR = 1 REJECT_PERNR = 2
.



IMPORTING Parameters details for HRF_TERM_TYPE

MS_DATA -

Data type: ANY
Optional: Yes
Call by Reference: Yes

PAYROLL_INTER_PERSON -

Data type: PAY99_PERSON
Optional: Yes
Call by Reference: Yes

PAYROLL_NAT_PERSON -

Data type: ANY
Optional: Yes
Call by Reference: Yes

PAY_HEADER -

Data type: PAYROLL_HEADER
Optional: Yes
Call by Reference: Yes

TIM_B2 -

Data type: HRF_TIM_B2
Optional: Yes
Call by Reference: Yes

LANGUAGE -

Data type: SYLANGU
Optional: Yes
Call by Reference: Yes

SELECTIONS -

Data type: HRF_T_SELTOFUN
Optional: Yes
Call by Reference: Yes

FORM_OUTPUT_SELECTION -

Data type: HRF02_FORM_OUTPUT_SELECTION
Optional: Yes
Call by Reference: Yes

PERSON -

Data type: PCCE_PNP_PERSON
Optional: Yes
Call by Reference: Yes

PERNR -

Data type: P_PERNR
Optional: Yes
Call by Reference: Yes

PAYROLL_EVP -

Data type: PC261
Optional: Yes
Call by Reference: Yes

CLUSTER_DIR -

Data type: HRPY_TT_RGDIR
Optional: Yes
Call by Reference: Yes

PAYROLL_INTER -

Data type: PAY99_INTERNATIONAL
Optional: Yes
Call by Reference: Yes

PAYROLL_NAT -

Data type: HRF_PAYMX_PE_PA_RESULT-NAT
Optional: Yes
Call by Reference: Yes

GROUP_RGDIR -

Data type: HRPAY99_GROUP_RGDIR_T
Optional: Yes
Call by Reference: Yes

GROUP_RGDIRS -

Data type: PCCE_T_GROUP_RGDIRS
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HRF_TERM_TYPE

TRSN -

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

BEGDA -

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

ENDDA -

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

TEXT -

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

EXCEPTIONS details

DISPLAY_ERROR -

Data type:
Optional: No
Call by Reference: Yes

REJECT_PERNR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRF_TERM_TYPE 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_trsn  TYPE PMXTRM_RSN, "   
lv_ms_data  TYPE ANY, "   
lv_display_error  TYPE ANY, "   
lv_payroll_inter_person  TYPE PAY99_PERSON, "   
lv_payroll_nat_person  TYPE ANY, "   
lv_pay_header  TYPE PAYROLL_HEADER, "   
lv_tim_b2  TYPE HRF_TIM_B2, "   
lv_language  TYPE SYLANGU, "   
lv_selections  TYPE HRF_T_SELTOFUN, "   
lv_form_output_selection  TYPE HRF02_FORM_OUTPUT_SELECTION, "   
lv_begda  TYPE BEGDA, "   
lv_person  TYPE PCCE_PNP_PERSON, "   
lv_reject_pernr  TYPE PCCE_PNP_PERSON, "   
lv_endda  TYPE ENDDA, "   
lv_pernr  TYPE P_PERNR, "   
lv_text  TYPE PMXTRM_RSNTXT, "   
lv_payroll_evp  TYPE PC261, "   
lv_cluster_dir  TYPE HRPY_TT_RGDIR, "   
lv_payroll_inter  TYPE PAY99_INTERNATIONAL, "   
lv_payroll_nat  TYPE HRF_PAYMX_PE_PA_RESULT-NAT, "   
lv_group_rgdir  TYPE HRPAY99_GROUP_RGDIR_T, "   
lv_group_rgdirs  TYPE PCCE_T_GROUP_RGDIRS. "   

  CALL FUNCTION 'HRF_TERM_TYPE'  "
    EXPORTING
         MS_DATA = lv_ms_data
         PAYROLL_INTER_PERSON = lv_payroll_inter_person
         PAYROLL_NAT_PERSON = lv_payroll_nat_person
         PAY_HEADER = lv_pay_header
         TIM_B2 = lv_tim_b2
         LANGUAGE = lv_language
         SELECTIONS = lv_selections
         FORM_OUTPUT_SELECTION = lv_form_output_selection
         PERSON = lv_person
         PERNR = lv_pernr
         PAYROLL_EVP = lv_payroll_evp
         CLUSTER_DIR = lv_cluster_dir
         PAYROLL_INTER = lv_payroll_inter
         PAYROLL_NAT = lv_payroll_nat
         GROUP_RGDIR = lv_group_rgdir
         GROUP_RGDIRS = lv_group_rgdirs
    IMPORTING
         TRSN = lv_trsn
         BEGDA = lv_begda
         ENDDA = lv_endda
         TEXT = lv_text
    EXCEPTIONS
        DISPLAY_ERROR = 1
        REJECT_PERNR = 2
. " HRF_TERM_TYPE




ABAP code using 7.40 inline data declarations to call FM HRF_TERM_TYPE

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 NAT FROM HRF_PAYMX_PE_PA_RESULT INTO @DATA(ld_payroll_nat).
 
 
 


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!