SAP HRAR_IND_SAC_PREAV Function Module for
HRAR_IND_SAC_PREAV is a standard hrar ind sac preav 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 hrar ind sac preav FM, simply by entering the name HRAR_IND_SAC_PREAV into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAY00_AR_TERMINATION
Program Name: SAPLHRPAY00_AR_TERMINATION
Main Program: SAPLHRPAY00_AR_TERMINATION
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRAR_IND_SAC_PREAV 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 'HRAR_IND_SAC_PREAV'".
EXPORTING
IND_HIRE_DATE = "
APER_ENDDA = "
APER_CALCD = "
APER_PAYTY = "
APER_PBEGD = "
APER_PENDD = "
APER_PAPER = "
APER_IAPER = "
PERNR = "
IND_FIRE_DATE = "
IND_HIRE_DATE_I0041 = "
IND_TCSES = "
IND_TEGRP = "
IND_COIND = "
IND_LGART = "
IND_LGART_BASE = "
APER_BEGDA = "
TABLES
IND_IT = "
IND_OT = "
IND_WPBP = "
IND_P0551 = "
IND_PSP = "
RGDIR = "
ERROR_PTEXT = "
MESSAGE_PTEXT = "
EXCEPTIONS
ERROR_CALCULO = 1 ERROR_FALTA_DATO = 2
IMPORTING Parameters details for HRAR_IND_SAC_PREAV
IND_HIRE_DATE -
Data type: PREL-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
APER_ENDDA -
Data type: PREL-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
APER_CALCD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APER_PAYTY -
Data type: PC261-PAYTYOptional: No
Call by Reference: No ( called with pass by value option)
APER_PBEGD -
Data type: T549Q-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
APER_PENDD -
Data type: T549Q-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
APER_PAPER -
Data type: PC261-FPPEROptional: No
Call by Reference: No ( called with pass by value option)
APER_IAPER -
Data type: PC261-INPEROptional: No
Call by Reference: No ( called with pass by value option)
PERNR -
Data type: PERNROptional: No
Call by Reference: No ( called with pass by value option)
IND_FIRE_DATE -
Data type: PREL-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
IND_HIRE_DATE_I0041 -
Data type: PREL-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
IND_TCSES -
Data type: T7AR30-TCSESOptional: No
Call by Reference: No ( called with pass by value option)
IND_TEGRP -
Data type: P0551-TEGRPOptional: No
Call by Reference: No ( called with pass by value option)
IND_COIND -
Data type: P0551-COI01Optional: No
Call by Reference: No ( called with pass by value option)
IND_LGART -
Data type: PC207-LGARTOptional: No
Call by Reference: No ( called with pass by value option)
IND_LGART_BASE -
Data type: PC207-LGARTOptional: No
Call by Reference: No ( called with pass by value option)
APER_BEGDA -
Data type: PREL-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HRAR_IND_SAC_PREAV
IND_IT -
Data type: PC207Optional: No
Call by Reference: No ( called with pass by value option)
IND_OT -
Data type: PC207Optional: No
Call by Reference: No ( called with pass by value option)
IND_WPBP -
Data type: PC205Optional: No
Call by Reference: No ( called with pass by value option)
IND_P0551 -
Data type: P0551Optional: No
Call by Reference: No ( called with pass by value option)
IND_PSP -
Data type: PC2BAOptional: No
Call by Reference: No ( called with pass by value option)
RGDIR -
Data type: PC267Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_PTEXT -
Data type: PLOG_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGE_PTEXT -
Data type: PLOG_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_CALCULO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_FALTA_DATO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRAR_IND_SAC_PREAV 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: | ||||
| lt_ind_it | TYPE STANDARD TABLE OF PC207, " | |||
| lv_error_calculo | TYPE PC207, " | |||
| lv_ind_hire_date | TYPE PREL-BEGDA, " | |||
| lv_aper_endda | TYPE PREL-ENDDA, " | |||
| lv_aper_calcd | TYPE PREL, " | |||
| lv_aper_payty | TYPE PC261-PAYTY, " | |||
| lv_aper_pbegd | TYPE T549Q-BEGDA, " | |||
| lv_aper_pendd | TYPE T549Q-ENDDA, " | |||
| lv_aper_paper | TYPE PC261-FPPER, " | |||
| lv_aper_iaper | TYPE PC261-INPER, " | |||
| lv_pernr | TYPE PERNR, " | |||
| lt_ind_ot | TYPE STANDARD TABLE OF PC207, " | |||
| lv_ind_fire_date | TYPE PREL-ENDDA, " | |||
| lv_error_falta_dato | TYPE PREL, " | |||
| lt_ind_wpbp | TYPE STANDARD TABLE OF PC205, " | |||
| lv_ind_hire_date_i0041 | TYPE PREL-BEGDA, " | |||
| lt_ind_p0551 | TYPE STANDARD TABLE OF P0551, " | |||
| lv_ind_tcses | TYPE T7AR30-TCSES, " | |||
| lt_ind_psp | TYPE STANDARD TABLE OF PC2BA, " | |||
| lv_ind_tegrp | TYPE P0551-TEGRP, " | |||
| lt_rgdir | TYPE STANDARD TABLE OF PC267, " | |||
| lv_ind_coind | TYPE P0551-COI01, " | |||
| lv_ind_lgart | TYPE PC207-LGART, " | |||
| lt_error_ptext | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
| lt_message_ptext | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
| lv_ind_lgart_base | TYPE PC207-LGART, " | |||
| lv_aper_begda | TYPE PREL-BEGDA. " |
|   CALL FUNCTION 'HRAR_IND_SAC_PREAV' " |
| EXPORTING | ||
| IND_HIRE_DATE | = lv_ind_hire_date | |
| APER_ENDDA | = lv_aper_endda | |
| APER_CALCD | = lv_aper_calcd | |
| APER_PAYTY | = lv_aper_payty | |
| APER_PBEGD | = lv_aper_pbegd | |
| APER_PENDD | = lv_aper_pendd | |
| APER_PAPER | = lv_aper_paper | |
| APER_IAPER | = lv_aper_iaper | |
| PERNR | = lv_pernr | |
| IND_FIRE_DATE | = lv_ind_fire_date | |
| IND_HIRE_DATE_I0041 | = lv_ind_hire_date_i0041 | |
| IND_TCSES | = lv_ind_tcses | |
| IND_TEGRP | = lv_ind_tegrp | |
| IND_COIND | = lv_ind_coind | |
| IND_LGART | = lv_ind_lgart | |
| IND_LGART_BASE | = lv_ind_lgart_base | |
| APER_BEGDA | = lv_aper_begda | |
| TABLES | ||
| IND_IT | = lt_ind_it | |
| IND_OT | = lt_ind_ot | |
| IND_WPBP | = lt_ind_wpbp | |
| IND_P0551 | = lt_ind_p0551 | |
| IND_PSP | = lt_ind_psp | |
| RGDIR | = lt_rgdir | |
| ERROR_PTEXT | = lt_error_ptext | |
| MESSAGE_PTEXT | = lt_message_ptext | |
| EXCEPTIONS | ||
| ERROR_CALCULO = 1 | ||
| ERROR_FALTA_DATO = 2 | ||
| . " HRAR_IND_SAC_PREAV | ||
ABAP code using 7.40 inline data declarations to call FM HRAR_IND_SAC_PREAV
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_ind_hire_date). | ||||
| "SELECT single ENDDA FROM PREL INTO @DATA(ld_aper_endda). | ||||
| "SELECT single PAYTY FROM PC261 INTO @DATA(ld_aper_payty). | ||||
| "SELECT single BEGDA FROM T549Q INTO @DATA(ld_aper_pbegd). | ||||
| "SELECT single ENDDA FROM T549Q INTO @DATA(ld_aper_pendd). | ||||
| "SELECT single FPPER FROM PC261 INTO @DATA(ld_aper_paper). | ||||
| "SELECT single INPER FROM PC261 INTO @DATA(ld_aper_iaper). | ||||
| "SELECT single ENDDA FROM PREL INTO @DATA(ld_ind_fire_date). | ||||
| "SELECT single BEGDA FROM PREL INTO @DATA(ld_ind_hire_date_i0041). | ||||
| "SELECT single TCSES FROM T7AR30 INTO @DATA(ld_ind_tcses). | ||||
| "SELECT single TEGRP FROM P0551 INTO @DATA(ld_ind_tegrp). | ||||
| "SELECT single COI01 FROM P0551 INTO @DATA(ld_ind_coind). | ||||
| "SELECT single LGART FROM PC207 INTO @DATA(ld_ind_lgart). | ||||
| "SELECT single LGART FROM PC207 INTO @DATA(ld_ind_lgart_base). | ||||
| "SELECT single BEGDA FROM PREL INTO @DATA(ld_aper_begda). | ||||
Search for further information about these or an SAP related objects