SAP HR_PSF_FP1_CALC_SEN_CORPS Function Module for
HR_PSF_FP1_CALC_SEN_CORPS is a standard hr psf fp1 calc sen corps 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 corps FM, simply by entering the name HR_PSF_FP1_CALC_SEN_CORPS 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_CORPS 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_CORPS'".
EXPORTING
ID_PERNR = "
ID_CORPS = "
ID_ENDDA = "
* ID_BEGDA = '18000101' "
* ID_PROCE = 'ACO1' "
* ID_REF_DATE = SY-DATUM "
* ID_MOLGA = "
* IV_ACCOUNT_RET_SEN = 'X' "
* IV_ACCOUNT_BONIF = ' ' "
IMPORTING
ES_SENOR = "
ED_BEGDA = "
TABLES
* CT_P0008 = "
* CT_P0576 = "
EXCEPTIONS
ERROR_READING_IT0008 = 1 WRONG_CORPS = 2 ERROR_CORPS = 3 ERROR_SENIORITY_CALC = 4 ERROR_READING_IT0576 = 5
IMPORTING Parameters details for HR_PSF_FP1_CALC_SEN_CORPS
ID_PERNR -
Data type: P0001-PERNROptional: No
Call by Reference: No ( called with pass by value option)
ID_CORPS -
Data type: P06_CORPSOptional: No
Call by Reference: No ( called with pass by value option)
ID_ENDDA -
Data type: ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
ID_BEGDA -
Data type: BEGDADefault: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_PROCE -
Data type: PSEN_PROCEDefault: 'ACO1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_REF_DATE -
Data type: P06_DATEVDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_MOLGA -
Data type: MOLGAOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ACCOUNT_RET_SEN -
Data type: P06_XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_ACCOUNT_BONIF -
Data type: P06_XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_PSF_FP1_CALC_SEN_CORPS
ES_SENOR -
Data type: PSEN_DURATIONOptional: No
Call by Reference: Yes
ED_BEGDA -
Data type: BEGDAOptional: No
Call by Reference: Yes
TABLES Parameters details for HR_PSF_FP1_CALC_SEN_CORPS
CT_P0008 -
Data type: HRFRPBS4_INFTY0008Optional: Yes
Call by Reference: Yes
CT_P0576 -
Data type: P0576Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_READING_IT0008 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CORPS -
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)
ERROR_READING_IT0576 -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_PSF_FP1_CALC_SEN_CORPS 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, " | |||
| lt_ct_p0576 | TYPE STANDARD TABLE OF P0576, " | |||
| lv_ed_begda | TYPE BEGDA, " | |||
| lv_id_corps | TYPE P06_CORPS, " | |||
| lv_wrong_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, " 'ACO1' | |||
| lv_error_reading_it0576 | TYPE PSEN_PROCE, " | |||
| lv_id_ref_date | TYPE P06_DATEV, " SY-DATUM | |||
| lv_id_molga | TYPE MOLGA, " | |||
| lv_iv_account_ret_sen | TYPE P06_XFELD, " 'X' | |||
| lv_iv_account_bonif | TYPE P06_XFELD. " ' ' |
|   CALL FUNCTION 'HR_PSF_FP1_CALC_SEN_CORPS' " |
| EXPORTING | ||
| ID_PERNR | = lv_id_pernr | |
| ID_CORPS | = lv_id_corps | |
| 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 | |
| IV_ACCOUNT_RET_SEN | = lv_iv_account_ret_sen | |
| IV_ACCOUNT_BONIF | = lv_iv_account_bonif | |
| IMPORTING | ||
| ES_SENOR | = lv_es_senor | |
| ED_BEGDA | = lv_ed_begda | |
| TABLES | ||
| CT_P0008 | = lt_ct_p0008 | |
| CT_P0576 | = lt_ct_p0576 | |
| EXCEPTIONS | ||
| ERROR_READING_IT0008 = 1 | ||
| WRONG_CORPS = 2 | ||
| ERROR_CORPS = 3 | ||
| ERROR_SENIORITY_CALC = 4 | ||
| ERROR_READING_IT0576 = 5 | ||
| . " HR_PSF_FP1_CALC_SEN_CORPS | ||
ABAP code using 7.40 inline data declarations to call FM HR_PSF_FP1_CALC_SEN_CORPS
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) | = 'ACO1'. | |||
| DATA(ld_id_ref_date) | = SY-DATUM. | |||
| DATA(ld_iv_account_ret_sen) | = 'X'. | |||
| DATA(ld_iv_account_bonif) | = ' '. | |||
Search for further information about these or an SAP related objects