SAP HR_RO_HIFI Function Module for Ermittelt fuer eine Person das Eintritts- und evt. das Austrittsdatum









HR_RO_HIFI is a standard hr ro hifi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Ermittelt fuer eine Person das Eintritts- und evt. das Austrittsdatum 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 ro hifi FM, simply by entering the name HR_RO_HIFI into the relevant SAP transaction such as SE37 or SE38.

Function Group: 3RO2
Program Name: SAPL3RO2
Main Program: SAPL3RO2
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_RO_HIFI 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_RO_HIFI'"Ermittelt fuer eine Person das Eintritts- und evt. das Austrittsdatum
EXPORTING
* BEG = '18000101' "Start Date
* END = '99991231' "End Date

IMPORTING
FIRE_DATE = "Leaving Date
HIRE_DATE = "Entry Date

TABLES
PPHIFI = "Table of all Entry and Leaving Dates
PP0000 = "Copy of Infotype Table P0000
PP0001 = "Copy of Infotype Table P0001
.



IMPORTING Parameters details for HR_RO_HIFI

BEG - Start Date

Data type: PREL-BEGDA
Default: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

END - End Date

Data type: PREL-ENDDA
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HR_RO_HIFI

FIRE_DATE - Leaving Date

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

HIRE_DATE - Entry Date

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

TABLES Parameters details for HR_RO_HIFI

PPHIFI - Table of all Entry and Leaving Dates

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

PP0000 - Copy of Infotype Table P0000

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

PP0001 - Copy of Infotype Table P0001

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

Copy and paste ABAP code example for HR_RO_HIFI 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_beg  TYPE PREL-BEGDA, "   '18000101'
lt_pphifi  TYPE STANDARD TABLE OF PHIFI, "   
lv_fire_date  TYPE PREL-BEGDA, "   
lv_end  TYPE PREL-ENDDA, "   '99991231'
lt_pp0000  TYPE STANDARD TABLE OF P0000, "   
lv_hire_date  TYPE PREL-ENDDA, "   
lt_pp0001  TYPE STANDARD TABLE OF P0001. "   

  CALL FUNCTION 'HR_RO_HIFI'  "Ermittelt fuer eine Person das Eintritts- und evt. das Austrittsdatum
    EXPORTING
         BEG = lv_beg
         END = lv_end
    IMPORTING
         FIRE_DATE = lv_fire_date
         HIRE_DATE = lv_hire_date
    TABLES
         PPHIFI = lt_pphifi
         PP0000 = lt_pp0000
         PP0001 = lt_pp0001
. " HR_RO_HIFI




ABAP code using 7.40 inline data declarations to call FM HR_RO_HIFI

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 BEGDA FROM PREL INTO @DATA(ld_beg).
DATA(ld_beg) = '18000101'.
 
 
"SELECT single BEGDA FROM PREL INTO @DATA(ld_fire_date).
 
"SELECT single ENDDA FROM PREL INTO @DATA(ld_end).
DATA(ld_end) = '99991231'.
 
 
"SELECT single ENDDA FROM PREL INTO @DATA(ld_hire_date).
 
 


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!