SAP HR_FI_NEW_RUN_EXISTS Function Module for Check whether there is a newer run which is based on the current run









HR_FI_NEW_RUN_EXISTS is a standard hr fi new run exists 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 whether there is a newer run which is based on the current run 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 new run exists FM, simply by entering the name HR_FI_NEW_RUN_EXISTS into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_FI_NEW_RUN_EXISTS 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_NEW_RUN_EXISTS'"Check whether there is a newer run which is based on the current run
EXPORTING
EVTYP = "Run type
RUNID = "Number of Posting Run

IMPORTING
NEWER_RUN_EXISTS = "
NEWER_RUNID = "Number of Posting Run
.



IMPORTING Parameters details for HR_FI_NEW_RUN_EXISTS

EVTYP - Run type

Data type: PEVST-TYPE
Optional: No
Call by Reference: Yes

RUNID - Number of Posting Run

Data type: PEVST-RUNID
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for HR_FI_NEW_RUN_EXISTS

NEWER_RUN_EXISTS -

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

NEWER_RUNID - Number of Posting Run

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

Copy and paste ABAP code example for HR_FI_NEW_RUN_EXISTS 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_evtyp  TYPE PEVST-TYPE, "   
lv_newer_run_exists  TYPE C, "   
lv_runid  TYPE PEVST-RUNID, "   
lv_newer_runid  TYPE P_EVNUM. "   

  CALL FUNCTION 'HR_FI_NEW_RUN_EXISTS'  "Check whether there is a newer run which is based on the current run
    EXPORTING
         EVTYP = lv_evtyp
         RUNID = lv_runid
    IMPORTING
         NEWER_RUN_EXISTS = lv_newer_run_exists
         NEWER_RUNID = lv_newer_runid
. " HR_FI_NEW_RUN_EXISTS




ABAP code using 7.40 inline data declarations to call FM HR_FI_NEW_RUN_EXISTS

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 TYPE FROM PEVST INTO @DATA(ld_evtyp).
 
 
"SELECT single RUNID FROM PEVST INTO @DATA(ld_runid).
 
 


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!