SAP HR_RFC_CONSISTENCY_CHECK Function Module for Consistency Check
HR_RFC_CONSISTENCY_CHECK is a standard hr rfc consistency check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Consistency Check 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 rfc consistency check FM, simply by entering the name HR_RFC_CONSISTENCY_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR_PAY_07_TABLE_COMPARE
Program Name: SAPLHR_PAY_07_TABLE_COMPARE
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function HR_RFC_CONSISTENCY_CHECK 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_RFC_CONSISTENCY_CHECK'"Consistency Check.
EXPORTING
S_YEAR = "Accounting year
S_T4 = "Statutory requirement, maintenance only by SAP
S_TA = "Statutory requirement, maintenance only by SAP
S_TN = "Statutory requirement, maintenance only by SAP
S_R1 = "Statutory requirement, maintenance only by SAP
S_R2 = "Statutory requirement, maintenance only by SAP
CHECK2 = "Statutory requirement, maintenance only by SAP
LANGU = "R/3 System, current language
TABLES
I_T596A = "Subapplication
I_T511K = "Payroll Constants
SO_T511K = "HR-PAY-CA: Consistency Check Range Table
I_T596G = "Cumulation Wage Types
I_T596I = "Calculation Rules for Cumulation Wage Types
I_T5K6I = " Year-end amendment wage-type selection
I_T51T8 = "Definitions of a tax form
I_T5KT3 = "Fields of a tax form
I_T51T3 = "Fields for tax information on magnetic media
I_T51T5 = "Events, on which form will be issued
I_T5KTC = "Wage Type Tax Classifications (Canada)
IMPORTING Parameters details for HR_RFC_CONSISTENCY_CHECK
S_YEAR - Accounting year
Data type: T549Q-PABRJOptional: No
Call by Reference: No ( called with pass by value option)
S_T4 - Statutory requirement, maintenance only by SAP
Data type: T596A-LEGALOptional: No
Call by Reference: No ( called with pass by value option)
S_TA - Statutory requirement, maintenance only by SAP
Data type: T596A-LEGALOptional: No
Call by Reference: No ( called with pass by value option)
S_TN - Statutory requirement, maintenance only by SAP
Data type: T596A-LEGALOptional: No
Call by Reference: No ( called with pass by value option)
S_R1 - Statutory requirement, maintenance only by SAP
Data type: T596A-LEGALOptional: No
Call by Reference: No ( called with pass by value option)
S_R2 - Statutory requirement, maintenance only by SAP
Data type: T596A-LEGALOptional: No
Call by Reference: No ( called with pass by value option)
CHECK2 - Statutory requirement, maintenance only by SAP
Data type: T596A-LEGALOptional: No
Call by Reference: No ( called with pass by value option)
LANGU - R/3 System, current language
Data type: SY-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_RFC_CONSISTENCY_CHECK
I_T596A - Subapplication
Data type: HRPAYCA_T596AOptional: No
Call by Reference: Yes
I_T511K - Payroll Constants
Data type: T511KOptional: No
Call by Reference: Yes
SO_T511K - HR-PAY-CA: Consistency Check Range Table
Data type: HRPAYCA_RANGEOptional: No
Call by Reference: Yes
I_T596G - Cumulation Wage Types
Data type: HRPAYCA_T596GOptional: No
Call by Reference: Yes
I_T596I - Calculation Rules for Cumulation Wage Types
Data type: HRPAYCA_T596IOptional: No
Call by Reference: Yes
I_T5K6I - Year-end amendment wage-type selection
Data type: HRPAYCA_T5K6IOptional: No
Call by Reference: Yes
I_T51T8 - Definitions of a tax form
Data type: HRPAYCA_T51T8Optional: No
Call by Reference: Yes
I_T5KT3 - Fields of a tax form
Data type: HRPAYCA_T5KT3Optional: No
Call by Reference: Yes
I_T51T3 - Fields for tax information on magnetic media
Data type: HRPAYCA_T51T3Optional: No
Call by Reference: Yes
I_T51T5 - Events, on which form will be issued
Data type: HRPAYCA_T51T5Optional: No
Call by Reference: Yes
I_T5KTC - Wage Type Tax Classifications (Canada)
Data type: T5KTCOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_RFC_CONSISTENCY_CHECK 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_s_year | TYPE T549Q-PABRJ, " | |||
lt_i_t596a | TYPE STANDARD TABLE OF HRPAYCA_T596A, " | |||
lt_i_t511k | TYPE STANDARD TABLE OF T511K, " | |||
lt_so_t511k | TYPE STANDARD TABLE OF HRPAYCA_RANGE, " | |||
lv_s_t4 | TYPE T596A-LEGAL, " | |||
lt_i_t596g | TYPE STANDARD TABLE OF HRPAYCA_T596G, " | |||
lv_s_ta | TYPE T596A-LEGAL, " | |||
lt_i_t596i | TYPE STANDARD TABLE OF HRPAYCA_T596I, " | |||
lv_s_tn | TYPE T596A-LEGAL, " | |||
lt_i_t5k6i | TYPE STANDARD TABLE OF HRPAYCA_T5K6I, " | |||
lv_s_r1 | TYPE T596A-LEGAL, " | |||
lt_i_t51t8 | TYPE STANDARD TABLE OF HRPAYCA_T51T8, " | |||
lv_s_r2 | TYPE T596A-LEGAL, " | |||
lt_i_t5kt3 | TYPE STANDARD TABLE OF HRPAYCA_T5KT3, " | |||
lv_check2 | TYPE T596A-LEGAL, " | |||
lt_i_t51t3 | TYPE STANDARD TABLE OF HRPAYCA_T51T3, " | |||
lv_langu | TYPE SY-LANGU, " | |||
lt_i_t51t5 | TYPE STANDARD TABLE OF HRPAYCA_T51T5, " | |||
lt_i_t5ktc | TYPE STANDARD TABLE OF T5KTC. " |
  CALL FUNCTION 'HR_RFC_CONSISTENCY_CHECK' "Consistency Check |
EXPORTING | ||
S_YEAR | = lv_s_year | |
S_T4 | = lv_s_t4 | |
S_TA | = lv_s_ta | |
S_TN | = lv_s_tn | |
S_R1 | = lv_s_r1 | |
S_R2 | = lv_s_r2 | |
CHECK2 | = lv_check2 | |
LANGU | = lv_langu | |
TABLES | ||
I_T596A | = lt_i_t596a | |
I_T511K | = lt_i_t511k | |
SO_T511K | = lt_so_t511k | |
I_T596G | = lt_i_t596g | |
I_T596I | = lt_i_t596i | |
I_T5K6I | = lt_i_t5k6i | |
I_T51T8 | = lt_i_t51t8 | |
I_T5KT3 | = lt_i_t5kt3 | |
I_T51T3 | = lt_i_t51t3 | |
I_T51T5 | = lt_i_t51t5 | |
I_T5KTC | = lt_i_t5ktc | |
. " HR_RFC_CONSISTENCY_CHECK |
ABAP code using 7.40 inline data declarations to call FM HR_RFC_CONSISTENCY_CHECK
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 PABRJ FROM T549Q INTO @DATA(ld_s_year). | ||||
"SELECT single LEGAL FROM T596A INTO @DATA(ld_s_t4). | ||||
"SELECT single LEGAL FROM T596A INTO @DATA(ld_s_ta). | ||||
"SELECT single LEGAL FROM T596A INTO @DATA(ld_s_tn). | ||||
"SELECT single LEGAL FROM T596A INTO @DATA(ld_s_r1). | ||||
"SELECT single LEGAL FROM T596A INTO @DATA(ld_s_r2). | ||||
"SELECT single LEGAL FROM T596A INTO @DATA(ld_check2). | ||||
"SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
Search for further information about these or an SAP related objects