SAP HR_CHECK_PERNR_AS_CALC Function Module for Executes All Checks For a Personnel Number, in the Same Way As CALC









HR_CHECK_PERNR_AS_CALC is a standard hr check pernr as calc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Executes All Checks For a Personnel Number, in the Same Way As CALC 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 check pernr as calc FM, simply by entering the name HR_CHECK_PERNR_AS_CALC into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPAY99_CHECK_PERNR
Program Name: SAPLHRPAY99_CHECK_PERNR
Main Program: SAPLHRPAY99_CHECK_PERNR
Appliation area: P
Release date: 03-Mar-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_CHECK_PERNR_AS_CALC 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_CHECK_PERNR_AS_CALC'"Executes All Checks For a Personnel Number, in the Same Way As CALC
EXPORTING
IMP_PERNR = "Personnel Numbers To Be Checked
* IMP_SW_UNTIL = 'X' "How Should IMP_PAYROLL_UNTIL Be Determined?
* IMP_SW_CHECK_PA03 = 'X' "Dummy
* IMP_SW_UPD = 'X' "Checks As For An Update
IMP_PN_BEGDA = "Period Start
IMP_PN_ENDDA = "Period End
IMP_P0003 = "IT0003
* IMP_PAYTY = ' ' "Payroll Type
* IMP_PAPER = "Substructure for table APER Payroll

CHANGING
* IMP_PAYROLL_UNTIL = "Date Upto Which Payroll Was Run

TABLES
IMP_P0000 = "IT0000
IMP_P0001 = "IT0001
IMP_PNPABKRS = "All Relevant Payroll Areas
* IMP_RGDIR = "

EXCEPTIONS
LOCKED = 1 REJECTION = 2 CUSTOMISING_ERROR = 3
.



IMPORTING Parameters details for HR_CHECK_PERNR_AS_CALC

IMP_PERNR - Personnel Numbers To Be Checked

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

IMP_SW_UNTIL - How Should IMP_PAYROLL_UNTIL Be Determined?

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

IMP_SW_CHECK_PA03 - Dummy

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

IMP_SW_UPD - Checks As For An Update

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

IMP_PN_BEGDA - Period Start

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

IMP_PN_ENDDA - Period End

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

IMP_P0003 - IT0003

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

IMP_PAYTY - Payroll Type

Data type: PC261-PAYTY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_PAPER - Substructure for table APER Payroll

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

CHANGING Parameters details for HR_CHECK_PERNR_AS_CALC

IMP_PAYROLL_UNTIL - Date Upto Which Payroll Was Run

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

TABLES Parameters details for HR_CHECK_PERNR_AS_CALC

IMP_P0000 - IT0000

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

IMP_P0001 - IT0001

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

IMP_PNPABKRS - All Relevant Payroll Areas

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

IMP_RGDIR -

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

EXCEPTIONS details

LOCKED - Personnel Number Is Currently Locked

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

REJECTION - Personnel Number Was Rejected in the Payroll Run

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

CUSTOMISING_ERROR - Error in Customizing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_CHECK_PERNR_AS_CALC 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_locked  TYPE STRING, "   
lt_imp_p0000  TYPE STANDARD TABLE OF P0000, "   
lv_imp_pernr  TYPE PERNR-PERNR, "   
lv_imp_payroll_until  TYPE D, "   
lt_imp_p0001  TYPE STANDARD TABLE OF P0001, "   
lv_rejection  TYPE P0001, "   
lv_imp_sw_until  TYPE C, "   'X'
lt_imp_pnpabkrs  TYPE STANDARD TABLE OF HRST0_ABKRS_RANGETAB, "   
lv_customising_error  TYPE HRST0_ABKRS_RANGETAB, "   
lv_imp_sw_check_pa03  TYPE C, "   'X'
lt_imp_rgdir  TYPE STANDARD TABLE OF PC261, "   
lv_imp_sw_upd  TYPE C, "   'X'
lv_imp_pn_begda  TYPE SY-DATUM, "   
lv_imp_pn_endda  TYPE SY-DATUM, "   
lv_imp_p0003  TYPE P0003, "   
lv_imp_payty  TYPE PC261-PAYTY, "   SPACE
lv_imp_paper  TYPE PC2PAPER. "   

  CALL FUNCTION 'HR_CHECK_PERNR_AS_CALC'  "Executes All Checks For a Personnel Number, in the Same Way As CALC
    EXPORTING
         IMP_PERNR = lv_imp_pernr
         IMP_SW_UNTIL = lv_imp_sw_until
         IMP_SW_CHECK_PA03 = lv_imp_sw_check_pa03
         IMP_SW_UPD = lv_imp_sw_upd
         IMP_PN_BEGDA = lv_imp_pn_begda
         IMP_PN_ENDDA = lv_imp_pn_endda
         IMP_P0003 = lv_imp_p0003
         IMP_PAYTY = lv_imp_payty
         IMP_PAPER = lv_imp_paper
    CHANGING
         IMP_PAYROLL_UNTIL = lv_imp_payroll_until
    TABLES
         IMP_P0000 = lt_imp_p0000
         IMP_P0001 = lt_imp_p0001
         IMP_PNPABKRS = lt_imp_pnpabkrs
         IMP_RGDIR = lt_imp_rgdir
    EXCEPTIONS
        LOCKED = 1
        REJECTION = 2
        CUSTOMISING_ERROR = 3
. " HR_CHECK_PERNR_AS_CALC




ABAP code using 7.40 inline data declarations to call FM HR_CHECK_PERNR_AS_CALC

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_imp_pernr).
 
 
 
 
DATA(ld_imp_sw_until) = 'X'.
 
 
 
DATA(ld_imp_sw_check_pa03) = 'X'.
 
 
DATA(ld_imp_sw_upd) = 'X'.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_imp_pn_begda).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_imp_pn_endda).
 
 
"SELECT single PAYTY FROM PC261 INTO @DATA(ld_imp_payty).
DATA(ld_imp_payty) = ' '.
 
 


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!