SAP HR_99S_GET_SEVERANCES Function Module for Get severances
HR_99S_GET_SEVERANCES is a standard hr 99s get severances SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get severances 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 99s get severances FM, simply by entering the name HR_99S_GET_SEVERANCES into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR99S00_TERM
Program Name: SAPLHR99S00_TERM
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_99S_GET_SEVERANCES 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_99S_GET_SEVERANCES'"Get severances.
EXPORTING
* P_PERNR = "Personnel number
* P_MOLGA = "Country Grouping
P_DATE = "Date
* P_INDSE = 'X' "Get individual serverances (X=true, -=false, space=unknown)
* P_GENSE = 'X' "Get severances related to termination type (X=true, -=false, space=unknown)
* P_COIND = "Severance type
IMPORTING
TAB_SEVER = "
P_DIMOD = "Termination: Disable all severances of model
P_RETURNCODE = "Return Value, Return Value After ABAP Statements
CHANGING
* TAB_ERROR = "
TABLES
* T0001 = "HR Master Record: Infotype 0001 (Org. Assignment)
* T0713 = "Work relationship termination, SWE
IMPORTING Parameters details for HR_99S_GET_SEVERANCES
P_PERNR - Personnel number
Data type: PERNR-PERNROptional: Yes
Call by Reference: Yes
P_MOLGA - Country Grouping
Data type: T001P-MOLGAOptional: Yes
Call by Reference: Yes
P_DATE - Date
Data type: DOptional: No
Call by Reference: Yes
P_INDSE - Get individual serverances (X=true, -=false, space=unknown)
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
P_GENSE - Get severances related to termination type (X=true, -=false, space=unknown)
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
P_COIND - Severance type
Data type: P99SE_SEVER-COINDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_99S_GET_SEVERANCES
TAB_SEVER -
Data type: P99SE_TAB_SEVEROptional: No
Call by Reference: Yes
P_DIMOD - Termination: Disable all severances of model
Data type: Q0713-DIMODOptional: No
Call by Reference: Yes
P_RETURNCODE - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_99S_GET_SEVERANCES
TAB_ERROR -
Data type: P99SF_TAB_ERROROptional: Yes
Call by Reference: Yes
TABLES Parameters details for HR_99S_GET_SEVERANCES
T0001 - HR Master Record: Infotype 0001 (Org. Assignment)
Data type: P0001Optional: Yes
Call by Reference: Yes
T0713 - Work relationship termination, SWE
Data type: P0713Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_99S_GET_SEVERANCES 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: | ||||
lt_t0001 | TYPE STANDARD TABLE OF P0001, " | |||
lv_p_pernr | TYPE PERNR-PERNR, " | |||
lv_tab_error | TYPE P99SF_TAB_ERROR, " | |||
lv_tab_sever | TYPE P99SE_TAB_SEVER, " | |||
lt_t0713 | TYPE STANDARD TABLE OF P0713, " | |||
lv_p_dimod | TYPE Q0713-DIMOD, " | |||
lv_p_molga | TYPE T001P-MOLGA, " | |||
lv_p_date | TYPE D, " | |||
lv_p_returncode | TYPE SY-SUBRC, " | |||
lv_p_indse | TYPE BOOLEAN, " 'X' | |||
lv_p_gense | TYPE BOOLEAN, " 'X' | |||
lv_p_coind | TYPE P99SE_SEVER-COIND. " |
  CALL FUNCTION 'HR_99S_GET_SEVERANCES' "Get severances |
EXPORTING | ||
P_PERNR | = lv_p_pernr | |
P_MOLGA | = lv_p_molga | |
P_DATE | = lv_p_date | |
P_INDSE | = lv_p_indse | |
P_GENSE | = lv_p_gense | |
P_COIND | = lv_p_coind | |
IMPORTING | ||
TAB_SEVER | = lv_tab_sever | |
P_DIMOD | = lv_p_dimod | |
P_RETURNCODE | = lv_p_returncode | |
CHANGING | ||
TAB_ERROR | = lv_tab_error | |
TABLES | ||
T0001 | = lt_t0001 | |
T0713 | = lt_t0713 | |
. " HR_99S_GET_SEVERANCES |
ABAP code using 7.40 inline data declarations to call FM HR_99S_GET_SEVERANCES
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 DIMOD FROM Q0713 INTO @DATA(ld_p_dimod). | ||||
"SELECT single MOLGA FROM T001P INTO @DATA(ld_p_molga). | ||||
"SELECT single SUBRC FROM SY INTO @DATA(ld_p_returncode). | ||||
DATA(ld_p_indse) | = 'X'. | |||
DATA(ld_p_gense) | = 'X'. | |||
"SELECT single COIND FROM P99SE_SEVER INTO @DATA(ld_p_coind). | ||||
Search for further information about these or an SAP related objects