SAP HRCO_SEVERANCE_ADVC Function Module for









HRCO_SEVERANCE_ADVC is a standard hrco severance advc 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 hrco severance advc FM, simply by entering the name HRCO_SEVERANCE_ADVC into the relevant SAP transaction such as SE37 or SE38.

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



Function HRCO_SEVERANCE_ADVC 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 'HRCO_SEVERANCE_ADVC'"
EXPORTING
* APER = "
* ADVN_BETSL = "
* ADVN_SDATE = "
* GL_SWCO_DIVISOR30 = "
* MODIF_MOD0A = "
* FIRE_DATE = "
* HIRE_DATE = "
* AS_PARM1 = "
* TYPE_EE = "
* SEQUENCY = "
* ADVN_BASE = "
* ADVN_INDSL = "

CHANGING
* COSEV = "

TABLES
* P0001 = "
* PAYS_LGART = "
* WPBP = "
* COABS = "
* IT_T7CO07 = "
* IT_T7CO25 = "
* IT_T7CO27 = "
* IT = "
* RT = "
* CRT = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for HRCO_SEVERANCE_ADVC

APER -

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

ADVN_BETSL -

Data type: P0829-BETSL
Optional: Yes
Call by Reference: Yes

ADVN_SDATE -

Data type: P0829-BEGDA
Optional: Yes
Call by Reference: Yes

GL_SWCO_DIVISOR30 -

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

MODIF_MOD0A -

Data type: PC214-MOD0A
Optional: Yes
Call by Reference: Yes

FIRE_DATE -

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

HIRE_DATE -

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

AS_PARM1 -

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

TYPE_EE -

Data type: T7CO27-MODIF
Optional: Yes
Call by Reference: Yes

SEQUENCY -

Data type: PC207-ANZHL
Optional: Yes
Call by Reference: Yes

ADVN_BASE -

Data type: PC207-BETRG
Optional: Yes
Call by Reference: Yes

ADVN_INDSL -

Data type: P0829-INDSL
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for HRCO_SEVERANCE_ADVC

COSEV -

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

TABLES Parameters details for HRCO_SEVERANCE_ADVC

P0001 -

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

PAYS_LGART -

Data type:
Optional: Yes
Call by Reference: Yes

WPBP -

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

COABS -

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

IT_T7CO07 -

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

IT_T7CO25 -

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

IT_T7CO27 -

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

IT -

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

RT -

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

CRT -

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

EXCEPTIONS details

ERROR -

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

Copy and paste ABAP code example for HRCO_SEVERANCE_ADVC 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_aper  TYPE PC2APER, "   
lv_cosev  TYPE PC2CO_SEV, "   
lv_error  TYPE PC2CO_SEV, "   
lt_p0001  TYPE STANDARD TABLE OF P0001, "   
lv_advn_betsl  TYPE P0829-BETSL, "   
lt_pays_lgart  TYPE STANDARD TABLE OF P0829, "   
lv_advn_sdate  TYPE P0829-BEGDA, "   
lv_gl_swco_divisor30  TYPE C, "   
lt_wpbp  TYPE STANDARD TABLE OF PC205, "   
lv_modif_mod0a  TYPE PC214-MOD0A, "   
lt_coabs  TYPE STANDARD TABLE OF PC2CO_ABS, "   
lv_fire_date  TYPE SY-DATUM, "   
lv_hire_date  TYPE SY-DATUM, "   
lt_it_t7co07  TYPE STANDARD TABLE OF T7CO07, "   
lv_as_parm1  TYPE CHAR04, "   
lt_it_t7co25  TYPE STANDARD TABLE OF T7CO25, "   
lv_type_ee  TYPE T7CO27-MODIF, "   
lt_it_t7co27  TYPE STANDARD TABLE OF T7CO27, "   
lt_it  TYPE STANDARD TABLE OF PC207, "   
lv_sequency  TYPE PC207-ANZHL, "   
lt_rt  TYPE STANDARD TABLE OF PC207, "   
lv_advn_base  TYPE PC207-BETRG, "   
lt_crt  TYPE STANDARD TABLE OF PC208, "   
lv_advn_indsl  TYPE P0829-INDSL. "   

  CALL FUNCTION 'HRCO_SEVERANCE_ADVC'  "
    EXPORTING
         APER = lv_aper
         ADVN_BETSL = lv_advn_betsl
         ADVN_SDATE = lv_advn_sdate
         GL_SWCO_DIVISOR30 = lv_gl_swco_divisor30
         MODIF_MOD0A = lv_modif_mod0a
         FIRE_DATE = lv_fire_date
         HIRE_DATE = lv_hire_date
         AS_PARM1 = lv_as_parm1
         TYPE_EE = lv_type_ee
         SEQUENCY = lv_sequency
         ADVN_BASE = lv_advn_base
         ADVN_INDSL = lv_advn_indsl
    CHANGING
         COSEV = lv_cosev
    TABLES
         P0001 = lt_p0001
         PAYS_LGART = lt_pays_lgart
         WPBP = lt_wpbp
         COABS = lt_coabs
         IT_T7CO07 = lt_it_t7co07
         IT_T7CO25 = lt_it_t7co25
         IT_T7CO27 = lt_it_t7co27
         IT = lt_it
         RT = lt_rt
         CRT = lt_crt
    EXCEPTIONS
        ERROR = 1
. " HRCO_SEVERANCE_ADVC




ABAP code using 7.40 inline data declarations to call FM HRCO_SEVERANCE_ADVC

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 BETSL FROM P0829 INTO @DATA(ld_advn_betsl).
 
 
"SELECT single BEGDA FROM P0829 INTO @DATA(ld_advn_sdate).
 
 
 
"SELECT single MOD0A FROM PC214 INTO @DATA(ld_modif_mod0a).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_fire_date).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_hire_date).
 
 
 
 
"SELECT single MODIF FROM T7CO27 INTO @DATA(ld_type_ee).
 
 
 
"SELECT single ANZHL FROM PC207 INTO @DATA(ld_sequency).
 
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_advn_base).
 
 
"SELECT single INDSL FROM P0829 INTO @DATA(ld_advn_indsl).
 


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!