SAP HR_FI_RETRODIFF_GET Function Module for HR_FI: Read cluster with retro difference









HR_FI_RETRODIFF_GET is a standard hr fi retrodiff get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HR_FI: Read cluster with retro difference 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 fi retrodiff get FM, simply by entering the name HR_FI_RETRODIFF_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_FI_RETRODIFF_GET 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_FI_RETRODIFF_GET'"HR_FI: Read cluster with retro difference
EXPORTING
PERSNR = "Personnel number
FROM = "Start date
TO = "End date
APPL = "Form in T596A
* RECON_ACTIVE = "General Flag

IMPORTING
SALARY_ORG = "salary for Finnish reporting

TABLES
* P_P0001 = "HR Master Record: Infotype 0001 (Org. Assignment)
* RECON_EXTRACT = "PY-XX-RECON : Country specific report data

EXCEPTIONS
NO_EMPLOYER_IDENTIFICATION = 1 NO_TAX_REFERENCE_NUMBER = 2 NO_PAYROLL_RESULTS = 3 NO_ENTRY_FOUND_ON_CU = 4 IMPORT_ERROR = 5 OTHERS = 6
.



IMPORTING Parameters details for HR_FI_RETRODIFF_GET

PERSNR - Personnel number

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

FROM - Start date

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

TO - End date

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

APPL - Form in T596A

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

RECON_ACTIVE - General Flag

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

EXPORTING Parameters details for HR_FI_RETRODIFF_GET

SALARY_ORG - salary for Finnish reporting

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

TABLES Parameters details for HR_FI_RETRODIFF_GET

P_P0001 - HR Master Record: Infotype 0001 (Org. Assignment)

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

RECON_EXTRACT - PY-XX-RECON : Country specific report data

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

EXCEPTIONS details

NO_EMPLOYER_IDENTIFICATION - No employer identification number

Data type:
Optional: No
Call by Reference: Yes

NO_TAX_REFERENCE_NUMBER - No tax reference number

Data type:
Optional: No
Call by Reference: Yes

NO_PAYROLL_RESULTS - No payroll results

Data type:
Optional: No
Call by Reference: Yes

NO_ENTRY_FOUND_ON_CU - No entry on cluster CU

Data type:
Optional: No
Call by Reference: Yes

IMPORT_ERROR - No cluster FI

Data type:
Optional: No
Call by Reference: Yes

OTHERS - others

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_FI_RETRODIFF_GET 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_persnr  TYPE P0000-PERNR, "   
lt_p_p0001  TYPE STANDARD TABLE OF P0001, "   
lv_salary_org  TYPE PFISALARY_TABLE, "   
lv_no_employer_identification  TYPE PFISALARY_TABLE, "   
lv_from  TYPE P0000-BEGDA, "   
lt_recon_extract  TYPE STANDARD TABLE OF HRMS_BIW_PY_REC_NEW, "   
lv_no_tax_reference_number  TYPE HRMS_BIW_PY_REC_NEW, "   
lv_to  TYPE P0000-ENDDA, "   
lv_no_payroll_results  TYPE P0000, "   
lv_appl  TYPE P_APPL, "   
lv_no_entry_found_on_cu  TYPE P_APPL, "   
lv_import_error  TYPE P_APPL, "   
lv_recon_active  TYPE FLAG, "   
lv_others  TYPE FLAG. "   

  CALL FUNCTION 'HR_FI_RETRODIFF_GET'  "HR_FI: Read cluster with retro difference
    EXPORTING
         PERSNR = lv_persnr
         FROM = lv_from
         TO = lv_to
         APPL = lv_appl
         RECON_ACTIVE = lv_recon_active
    IMPORTING
         SALARY_ORG = lv_salary_org
    TABLES
         P_P0001 = lt_p_p0001
         RECON_EXTRACT = lt_recon_extract
    EXCEPTIONS
        NO_EMPLOYER_IDENTIFICATION = 1
        NO_TAX_REFERENCE_NUMBER = 2
        NO_PAYROLL_RESULTS = 3
        NO_ENTRY_FOUND_ON_CU = 4
        IMPORT_ERROR = 5
        OTHERS = 6
. " HR_FI_RETRODIFF_GET




ABAP code using 7.40 inline data declarations to call FM HR_FI_RETRODIFF_GET

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 P0000 INTO @DATA(ld_persnr).
 
 
 
 
"SELECT single BEGDA FROM P0000 INTO @DATA(ld_from).
 
 
 
"SELECT single ENDDA FROM P0000 INTO @DATA(ld_to).
 
 
 
 
 
 
 


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!