SAP HRUS_TEST_RETRO_BEFORE_DATE Function Module for Check if results after cutoff date case retro to before cutoff









HRUS_TEST_RETRO_BEFORE_DATE is a standard hrus test retro before date SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check if results after cutoff date case retro to before cutoff 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 hrus test retro before date FM, simply by entering the name HRUS_TEST_RETRO_BEFORE_DATE into the relevant SAP transaction such as SE37 or SE38.

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



Function HRUS_TEST_RETRO_BEFORE_DATE 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 'HRUS_TEST_RETRO_BEFORE_DATE'"Check if results after cutoff date case retro to before cutoff
EXPORTING
PERNR = "Personalnummer
CUTOFF_DATE = "Datum

IMPORTING
NO_RETRO_BEFORE_CUTOFF = "US PY does not force retro to a date earlier than the cutoff date
RETRO_SEQNR = "highest sequence number causing retro before cutoff

EXCEPTIONS
NO_RGDIR = 1 IMPORT_ERROR = 2
.



IMPORTING Parameters details for HRUS_TEST_RETRO_BEFORE_DATE

PERNR - Personalnummer

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

CUTOFF_DATE - Datum

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

EXPORTING Parameters details for HRUS_TEST_RETRO_BEFORE_DATE

NO_RETRO_BEFORE_CUTOFF - US PY does not force retro to a date earlier than the cutoff date

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

RETRO_SEQNR - highest sequence number causing retro before cutoff

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

EXCEPTIONS details

NO_RGDIR - no US payroll directory for pernr

Data type:
Optional: No
Call by Reference: Yes

IMPORT_ERROR - Error at cluster import

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRUS_TEST_RETRO_BEFORE_DATE 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_pernr  TYPE PERNR_D, "   
lv_no_rgdir  TYPE PERNR_D, "   
lv_no_retro_before_cutoff  TYPE BOOLE_D, "   
lv_cutoff_date  TYPE DATUM, "   
lv_retro_seqnr  TYPE CDSEQ, "   
lv_import_error  TYPE CDSEQ. "   

  CALL FUNCTION 'HRUS_TEST_RETRO_BEFORE_DATE'  "Check if results after cutoff date case retro to before cutoff
    EXPORTING
         PERNR = lv_pernr
         CUTOFF_DATE = lv_cutoff_date
    IMPORTING
         NO_RETRO_BEFORE_CUTOFF = lv_no_retro_before_cutoff
         RETRO_SEQNR = lv_retro_seqnr
    EXCEPTIONS
        NO_RGDIR = 1
        IMPORT_ERROR = 2
. " HRUS_TEST_RETRO_BEFORE_DATE




ABAP code using 7.40 inline data declarations to call FM HRUS_TEST_RETRO_BEFORE_DATE

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.

 
 
 
 
 
 


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!