SAP HR_AR_HIRE_FIRE Function Module for
HR_AR_HIRE_FIRE is a standard hr ar hire fire SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ar hire fire FM, simply by entering the name HR_AR_HIRE_FIRE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRAR_PAYROLL
Program Name: SAPLHRAR_PAYROLL
Main Program: SAPLHRAR_PAYROLL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_AR_HIRE_FIRE 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_AR_HIRE_FIRE'".
EXPORTING
* BEG = '18000101' "
* END = '99993112' "
* JUPER_IS_RELEVANT = 1 "
IMPORTING
FIRE_DATE = "
HIRE_DATE = "
TABLES
PPHIFI = "
PP0000 = "
PP0001 = "
IMPORTING Parameters details for HR_AR_HIRE_FIRE
BEG -
Data type: PREL-BEGDADefault: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
END -
Data type: PREL-ENDDADefault: '99993112'
Optional: Yes
Call by Reference: No ( called with pass by value option)
JUPER_IS_RELEVANT -
Data type: T511K-KWERTDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_AR_HIRE_FIRE
FIRE_DATE -
Data type: PREL-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
HIRE_DATE -
Data type: PREL-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_AR_HIRE_FIRE
PPHIFI -
Data type: PHIFIOptional: No
Call by Reference: Yes
PP0000 -
Data type: P0000Optional: No
Call by Reference: Yes
PP0001 -
Data type: P0001Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_AR_HIRE_FIRE 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, " '99993112' | |||
lt_pp0000 | TYPE STANDARD TABLE OF P0000, " | |||
lv_hire_date | TYPE PREL-ENDDA, " | |||
lt_pp0001 | TYPE STANDARD TABLE OF P0001, " | |||
lv_juper_is_relevant | TYPE T511K-KWERT. " 1 |
  CALL FUNCTION 'HR_AR_HIRE_FIRE' " |
EXPORTING | ||
BEG | = lv_beg | |
END | = lv_end | |
JUPER_IS_RELEVANT | = lv_juper_is_relevant | |
IMPORTING | ||
FIRE_DATE | = lv_fire_date | |
HIRE_DATE | = lv_hire_date | |
TABLES | ||
PPHIFI | = lt_pphifi | |
PP0000 | = lt_pp0000 | |
PP0001 | = lt_pp0001 | |
. " HR_AR_HIRE_FIRE |
ABAP code using 7.40 inline data declarations to call FM HR_AR_HIRE_FIRE
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) | = '99993112'. | |||
"SELECT single ENDDA FROM PREL INTO @DATA(ld_hire_date). | ||||
"SELECT single KWERT FROM T511K INTO @DATA(ld_juper_is_relevant). | ||||
DATA(ld_juper_is_relevant) | = 1. | |||
Search for further information about these or an SAP related objects