SAP HR_PSF_FP1_CALC_SEN_CATEG Function Module for









HR_PSF_FP1_CALC_SEN_CATEG is a standard hr psf fp1 calc sen categ 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 hr psf fp1 calc sen categ FM, simply by entering the name HR_PSF_FP1_CALC_SEN_CATEG into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_PSF_FP1_CALC_SEN_CATEG 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_PSF_FP1_CALC_SEN_CATEG'"
EXPORTING
ID_PERNR = "
ID_CATEG = "
ID_ENDDA = "
* ID_BEGDA = '18000101' "
* ID_PROCE = 'ACA1' "
* ID_REF_DATE = SY-DATUM "
* ID_MOLGA = "

IMPORTING
ES_SENOR = "
ED_BEGDA = "
ED_CORPS = "

TABLES
* CT_P0008 = "

EXCEPTIONS
ERROR_READING_IT0008 = 1 WRONG_CATEGORY = 2 ERROR_CORPS = 3 ERROR_SENIORITY_CALC = 4
.



IMPORTING Parameters details for HR_PSF_FP1_CALC_SEN_CATEG

ID_PERNR -

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

ID_CATEG -

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

ID_ENDDA -

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

ID_BEGDA -

Data type: BEGDA
Default: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_PROCE -

Data type: PSEN_PROCE
Default: 'ACA1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_REF_DATE -

Data type: P06_DATEV
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_MOLGA -

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

EXPORTING Parameters details for HR_PSF_FP1_CALC_SEN_CATEG

ES_SENOR -

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

ED_BEGDA -

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

ED_CORPS -

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

TABLES Parameters details for HR_PSF_FP1_CALC_SEN_CATEG

CT_P0008 -

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

EXCEPTIONS details

ERROR_READING_IT0008 -

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

WRONG_CATEGORY -

Data type:
Optional: No
Call by Reference: Yes

ERROR_CORPS -

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

ERROR_SENIORITY_CALC -

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

Copy and paste ABAP code example for HR_PSF_FP1_CALC_SEN_CATEG 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_ct_p0008  TYPE STANDARD TABLE OF HRFRPBS4_INFTY0008, "   
lv_es_senor  TYPE PSEN_DURATION, "   
lv_id_pernr  TYPE P0001-PERNR, "   
lv_error_reading_it0008  TYPE P0001, "   
lv_ed_begda  TYPE BEGDA, "   
lv_id_categ  TYPE P06_CATEG, "   
lv_wrong_category  TYPE P06_CATEG, "   
lv_ed_corps  TYPE P06_CORPS, "   
lv_id_endda  TYPE ENDDA, "   
lv_error_corps  TYPE ENDDA, "   
lv_id_begda  TYPE BEGDA, "   '18000101'
lv_error_seniority_calc  TYPE BEGDA, "   
lv_id_proce  TYPE PSEN_PROCE, "   'ACA1'
lv_id_ref_date  TYPE P06_DATEV, "   SY-DATUM
lv_id_molga  TYPE MOLGA. "   

  CALL FUNCTION 'HR_PSF_FP1_CALC_SEN_CATEG'  "
    EXPORTING
         ID_PERNR = lv_id_pernr
         ID_CATEG = lv_id_categ
         ID_ENDDA = lv_id_endda
         ID_BEGDA = lv_id_begda
         ID_PROCE = lv_id_proce
         ID_REF_DATE = lv_id_ref_date
         ID_MOLGA = lv_id_molga
    IMPORTING
         ES_SENOR = lv_es_senor
         ED_BEGDA = lv_ed_begda
         ED_CORPS = lv_ed_corps
    TABLES
         CT_P0008 = lt_ct_p0008
    EXCEPTIONS
        ERROR_READING_IT0008 = 1
        WRONG_CATEGORY = 2
        ERROR_CORPS = 3
        ERROR_SENIORITY_CALC = 4
. " HR_PSF_FP1_CALC_SEN_CATEG




ABAP code using 7.40 inline data declarations to call FM HR_PSF_FP1_CALC_SEN_CATEG

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 P0001 INTO @DATA(ld_id_pernr).
 
 
 
 
 
 
 
 
DATA(ld_id_begda) = '18000101'.
 
 
DATA(ld_id_proce) = 'ACA1'.
 
DATA(ld_id_ref_date) = SY-DATUM.
 
 


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!