SAP HR_CL_TERM_DES Function Module for Dismissal Notice









HR_CL_TERM_DES is a standard hr cl term des SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Dismissal Notice processing and below is the pattern details for this FM, 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 hr cl term des FM, simply by entering the name HR_CL_TERM_DES into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CL_TERM_DES 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 'HR_CL_TERM_DES'"Dismissal Notice
EXPORTING
P_PERNR = "Personnel Number
P_APER = "structure of table APER in payroll
* P_RGDIR = "
* P_TBUFF = "
* P_BUFFER_DIR = "
P_P0713 = "
* P_EXTIT = "
P_SEVER = "

IMPORTING
P_VALUE = "
P_RETURNCODE = "Return Value of ABAP Statements

CHANGING
P_RESULTS = "Structure for payroll result: International
TAB_IT = "
* P_MISC = "
* TAB_ERROR = "
.



IMPORTING Parameters details for HR_CL_TERM_DES

P_PERNR - Personnel Number

Data type: PERNR-PERNR
Optional: No
Call by Reference: Yes

P_APER - structure of table APER in payroll

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

P_RGDIR -

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

P_TBUFF -

Data type:
Optional: Yes
Call by Reference: Yes

P_BUFFER_DIR -

Data type:
Optional: Yes
Call by Reference: Yes

P_P0713 -

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

P_EXTIT -

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

P_SEVER -

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

EXPORTING Parameters details for HR_CL_TERM_DES

P_VALUE -

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

P_RETURNCODE - Return Value of ABAP Statements

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

CHANGING Parameters details for HR_CL_TERM_DES

P_RESULTS - Structure for payroll result: International

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

TAB_IT -

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

P_MISC -

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

TAB_ERROR -

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

Copy and paste ABAP code example for HR_CL_TERM_DES 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_p_pernr  TYPE PERNR-PERNR, "   
lv_p_value  TYPE P99SE_SEVAL, "   
lv_p_results  TYPE PAYCL_RESULT, "   
lv_p_aper  TYPE PC2APER, "   
lv_tab_it  TYPE P99SG_TAB_IT, "   
lv_p_returncode  TYPE SY-SUBRC, "   
lv_p_misc  TYPE P99SE_MISC, "   
lv_p_rgdir  TYPE P99SG_TAB_EVP, "   
lv_p_tbuff  TYPE P99SG_TAB_EVP, "   
lv_tab_error  TYPE P99SF_TAB_ERROR, "   
lv_p_buffer_dir  TYPE P99SF_TAB_ERROR, "   
lv_p_p0713  TYPE P99SE_P0713, "   
lv_p_extit  TYPE P99SG_PRELP, "   
lv_p_sever  TYPE P99SE_SEVER. "   

  CALL FUNCTION 'HR_CL_TERM_DES'  "Dismissal Notice
    EXPORTING
         P_PERNR = lv_p_pernr
         P_APER = lv_p_aper
         P_RGDIR = lv_p_rgdir
         P_TBUFF = lv_p_tbuff
         P_BUFFER_DIR = lv_p_buffer_dir
         P_P0713 = lv_p_p0713
         P_EXTIT = lv_p_extit
         P_SEVER = lv_p_sever
    IMPORTING
         P_VALUE = lv_p_value
         P_RETURNCODE = lv_p_returncode
    CHANGING
         P_RESULTS = lv_p_results
         TAB_IT = lv_tab_it
         P_MISC = lv_p_misc
         TAB_ERROR = lv_tab_error
. " HR_CL_TERM_DES




ABAP code using 7.40 inline data declarations to call FM HR_CL_TERM_DES

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 PERNR FROM PERNR INTO @DATA(ld_p_pernr).
 
 
 
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_p_returncode).
 
 
 
 
 
 
 
 
 


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!