SAP HR_PSF_FP1_CALC_SEN_GRADE Function Module for









HR_PSF_FP1_CALC_SEN_GRADE is a standard hr psf fp1 calc sen grade 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 grade FM, simply by entering the name HR_PSF_FP1_CALC_SEN_GRADE 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_GRADE 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_GRADE'"
EXPORTING
ID_PERNR = "
* IV_ACCOUNT_BONIF = ' ' "
ID_CORPS = "
ID_GRADE = "
ID_ENDDA = "
* ID_BEGDA = '18000101' "
* ID_PROCE = 'AGR1' "
* ID_REF_DATE = SY-DATUM "
* ID_MOLGA = "
* IV_ACCOUNT_RET_SEN = 'X' "

IMPORTING
ES_SENOR = "
ED_BEGDA = "

TABLES
* CT_P0008 = "
* CT_P0576 = "

EXCEPTIONS
ERROR_READING_IT0008 = 1 WRONG_CORPS_GRADE = 2 ERROR_CORPS = 3 ERROR_SENIORITY_CALC = 4 ERROR_READING_IT0576 = 5
.



IMPORTING Parameters details for HR_PSF_FP1_CALC_SEN_GRADE

ID_PERNR -

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

IV_ACCOUNT_BONIF -

Data type: P06_XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

ID_CORPS -

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

ID_GRADE -

Data type: P06_GRADE
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: 'AGR1'
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)

IV_ACCOUNT_RET_SEN -

Data type: P06_XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HR_PSF_FP1_CALC_SEN_GRADE

ES_SENOR -

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

ED_BEGDA -

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

TABLES Parameters details for HR_PSF_FP1_CALC_SEN_GRADE

CT_P0008 -

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

CT_P0576 -

Data type: P0576
Optional: 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_GRADE -

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

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_GRADE 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_iv_account_bonif  TYPE P06_XFELD, "   ' '
lt_ct_p0576  TYPE STANDARD TABLE OF P0576, "   
lv_ed_begda  TYPE BEGDA, "   
lv_id_corps  TYPE P06_CORPS, "   
lv_wrong_corps_grade  TYPE P06_CORPS, "   
lv_id_grade  TYPE P06_GRADE, "   
lv_error_corps  TYPE P06_GRADE, "   
lv_id_endda  TYPE ENDDA, "   
lv_error_seniority_calc  TYPE ENDDA, "   
lv_id_begda  TYPE BEGDA, "   '18000101'
lv_error_reading_it0576  TYPE BEGDA, "   
lv_id_proce  TYPE PSEN_PROCE, "   'AGR1'
lv_id_ref_date  TYPE P06_DATEV, "   SY-DATUM
lv_id_molga  TYPE MOLGA, "   
lv_iv_account_ret_sen  TYPE P06_XFELD. "   'X'

  CALL FUNCTION 'HR_PSF_FP1_CALC_SEN_GRADE'  "
    EXPORTING
         ID_PERNR = lv_id_pernr
         IV_ACCOUNT_BONIF = lv_iv_account_bonif
         ID_CORPS = lv_id_corps
         ID_GRADE = lv_id_grade
         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
    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_GRADE = 2
        ERROR_CORPS = 3
        ERROR_SENIORITY_CALC = 4
        ERROR_READING_IT0576 = 5
. " HR_PSF_FP1_CALC_SEN_GRADE




ABAP code using 7.40 inline data declarations to call FM HR_PSF_FP1_CALC_SEN_GRADE

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_iv_account_bonif) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_id_begda) = '18000101'.
 
 
DATA(ld_id_proce) = 'AGR1'.
 
DATA(ld_id_ref_date) = SY-DATUM.
 
 
DATA(ld_iv_account_ret_sen) = 'X'.
 


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!