SAP HR_PA_IW_CHECK_RETROACTIVITY Function Module for









HR_PA_IW_CHECK_RETROACTIVITY is a standard hr pa iw check retroactivity 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 pa iw check retroactivity FM, simply by entering the name HR_PA_IW_CHECK_RETROACTIVITY into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_PA_IW_CHECK_RETROACTIVITY 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_PA_IW_CHECK_RETROACTIVITY'"
EXPORTING
I0000 = "
I0001 = "
I0003 = "
* MSG_ENTRY = 'E' "

IMPORTING
KOABR = "
MSG = "
RETCODE = "

CHANGING
RRDAT = "

EXCEPTIONS
BEFORE_PCR_LIMIT = 1 INVALID_PAYROLL_AREA = 10 NO_ENTRY_DATE = 11 BEFORE_I0003_PRDAY = 2 BEFORE_I0003_ABRDT = 3 BEFORE_T569R_RRDAT = 4 BEFORE_ENTRY_DATE = 5 PCR_DOES_NOT_EXIST = 6 PERIOD_DOES_NOT_EXIST = 7 MISSING_ENTRY_IN_TABLE = 8 PAYROLL_AREA_LOCKED = 9
.



IMPORTING Parameters details for HR_PA_IW_CHECK_RETROACTIVITY

I0000 -

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

I0001 -

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

I0003 -

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

MSG_ENTRY -

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

EXPORTING Parameters details for HR_PA_IW_CHECK_RETROACTIVITY

KOABR -

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

MSG -

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

RETCODE -

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

CHANGING Parameters details for HR_PA_IW_CHECK_RETROACTIVITY

RRDAT -

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

EXCEPTIONS details

BEFORE_PCR_LIMIT -

Data type:
Optional: No
Call by Reference: Yes

INVALID_PAYROLL_AREA -

Data type:
Optional: No
Call by Reference: Yes

NO_ENTRY_DATE -

Data type:
Optional: No
Call by Reference: Yes

BEFORE_I0003_PRDAY -

Data type:
Optional: No
Call by Reference: Yes

BEFORE_I0003_ABRDT -

Data type:
Optional: No
Call by Reference: Yes

BEFORE_T569R_RRDAT -

Data type:
Optional: No
Call by Reference: Yes

BEFORE_ENTRY_DATE -

Data type:
Optional: No
Call by Reference: Yes

PCR_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

PERIOD_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

MISSING_ENTRY_IN_TABLE -

Data type:
Optional: No
Call by Reference: Yes

PAYROLL_AREA_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_PA_IW_CHECK_RETROACTIVITY 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_i0000  TYPE TIM_P0000_TAB, "   
lv_koabr  TYPE P0003-KOABR, "   
lv_rrdat  TYPE P0003-RRDAT, "   
lv_before_pcr_limit  TYPE P0003, "   
lv_invalid_payroll_area  TYPE P0003, "   
lv_no_entry_date  TYPE P0003, "   
lv_msg  TYPE TIM_TMW_T100_MSG_TAB, "   
lv_i0001  TYPE TIM_P0001_TAB, "   
lv_before_i0003_prday  TYPE TIM_P0001_TAB, "   
lv_i0003  TYPE P0003, "   
lv_retcode  TYPE C, "   
lv_before_i0003_abrdt  TYPE C, "   
lv_msg_entry  TYPE C, "   'E'
lv_before_t569r_rrdat  TYPE C, "   
lv_before_entry_date  TYPE C, "   
lv_pcr_does_not_exist  TYPE C, "   
lv_period_does_not_exist  TYPE C, "   
lv_missing_entry_in_table  TYPE C, "   
lv_payroll_area_locked  TYPE C. "   

  CALL FUNCTION 'HR_PA_IW_CHECK_RETROACTIVITY'  "
    EXPORTING
         I0000 = lv_i0000
         I0001 = lv_i0001
         I0003 = lv_i0003
         MSG_ENTRY = lv_msg_entry
    IMPORTING
         KOABR = lv_koabr
         MSG = lv_msg
         RETCODE = lv_retcode
    CHANGING
         RRDAT = lv_rrdat
    EXCEPTIONS
        BEFORE_PCR_LIMIT = 1
        INVALID_PAYROLL_AREA = 10
        NO_ENTRY_DATE = 11
        BEFORE_I0003_PRDAY = 2
        BEFORE_I0003_ABRDT = 3
        BEFORE_T569R_RRDAT = 4
        BEFORE_ENTRY_DATE = 5
        PCR_DOES_NOT_EXIST = 6
        PERIOD_DOES_NOT_EXIST = 7
        MISSING_ENTRY_IN_TABLE = 8
        PAYROLL_AREA_LOCKED = 9
. " HR_PA_IW_CHECK_RETROACTIVITY




ABAP code using 7.40 inline data declarations to call FM HR_PA_IW_CHECK_RETROACTIVITY

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 KOABR FROM P0003 INTO @DATA(ld_koabr).
 
"SELECT single RRDAT FROM P0003 INTO @DATA(ld_rrdat).
 
 
 
 
 
 
 
 
 
 
DATA(ld_msg_entry) = 'E'.
 
 
 
 
 
 
 


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!