SAP HRVE_GET_NATIONAL_TABLES Function Module for
HRVE_GET_NATIONAL_TABLES is a standard hrve get national tables 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 hrve get national tables FM, simply by entering the name HRVE_GET_NATIONAL_TABLES into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRVE_PAYROLL
Program Name: SAPLHRVE_PAYROLL
Main Program: SAPLHRVE_PAYROLL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRVE_GET_NATIONAL_TABLES 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 'HRVE_GET_NATIONAL_TABLES'".
EXPORTING
PERNR = "
* BEGDA = '18000101' "
* ENDDA = '99991231' "
* IV_TARGET_CURRENCY = "
* IV_CURRENCY_RATE_DATE = "
IMPORTING
DATE_INTENCION_PAGO_INTERESES = "
LOAN_GARANTY_SENIORITY = "
BALANCE_PAGO_INTERESES = "
TABLES
* SI_EVAL = "
* INTENCION_PAGO_INTERESES = "
* PAYVE_RESULT = "
* GARANTY_SENIORITY = "
* TAX_EVAL = "
* SEN_EVAL = "
* PS_EVAL = "
* INC_EVAL = "
* LPH_EVAL = "
* INT_EVAL = "
* PAGO_INTERESES = "
* PRESTAMO_ANTIGUEDAD = "
EXCEPTIONS
E_HRVE_READ_RGDIR_PAYRESULTS = 1
IMPORTING Parameters details for HRVE_GET_NATIONAL_TABLES
PERNR -
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
BEGDA -
Data type: P0001-BEGDADefault: '18000101'
Optional: Yes
Call by Reference: Yes
ENDDA -
Data type: P0001-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: Yes
IV_TARGET_CURRENCY -
Data type: WAERSOptional: Yes
Call by Reference: Yes
IV_CURRENCY_RATE_DATE -
Data type: DOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRVE_GET_NATIONAL_TABLES
DATE_INTENCION_PAGO_INTERESES -
Data type:Optional: No
Call by Reference: Yes
LOAN_GARANTY_SENIORITY -
Data type:Optional: No
Call by Reference: Yes
BALANCE_PAGO_INTERESES -
Data type:Optional: No
Call by Reference: Yes
TABLES Parameters details for HRVE_GET_NATIONAL_TABLES
SI_EVAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
INTENCION_PAGO_INTERESES -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PAYVE_RESULT -
Data type:Optional: Yes
Call by Reference: Yes
GARANTY_SENIORITY -
Data type:Optional: Yes
Call by Reference: Yes
TAX_EVAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SEN_EVAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PS_EVAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
INC_EVAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LPH_EVAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
INT_EVAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PAGO_INTERESES -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PRESTAMO_ANTIGUEDAD -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
E_HRVE_READ_RGDIR_PAYRESULTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRVE_GET_NATIONAL_TABLES 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-PERNR, " | |||
| lt_si_eval | TYPE STANDARD TABLE OF PERNR, " | |||
| lv_e_hrve_read_rgdir_payresults | TYPE PERNR, " | |||
| lv_date_intencion_pago_intereses | TYPE PERNR, " | |||
| lt_intencion_pago_intereses | TYPE STANDARD TABLE OF PERNR, " | |||
| lt_payve_result | TYPE STANDARD TABLE OF PERNR, " | |||
| lt_garanty_seniority | TYPE STANDARD TABLE OF PERNR, " | |||
| lv_begda | TYPE P0001-BEGDA, " '18000101' | |||
| lt_tax_eval | TYPE STANDARD TABLE OF P0001, " | |||
| lv_loan_garanty_seniority | TYPE P0001, " | |||
| lv_endda | TYPE P0001-ENDDA, " '99991231' | |||
| lt_sen_eval | TYPE STANDARD TABLE OF P0001, " | |||
| lv_balance_pago_intereses | TYPE P0001, " | |||
| lt_ps_eval | TYPE STANDARD TABLE OF P0001, " | |||
| lv_iv_target_currency | TYPE WAERS, " | |||
| lt_inc_eval | TYPE STANDARD TABLE OF WAERS, " | |||
| lv_iv_currency_rate_date | TYPE D, " | |||
| lt_lph_eval | TYPE STANDARD TABLE OF D, " | |||
| lt_int_eval | TYPE STANDARD TABLE OF D, " | |||
| lt_pago_intereses | TYPE STANDARD TABLE OF D, " | |||
| lt_prestamo_antiguedad | TYPE STANDARD TABLE OF D. " |
|   CALL FUNCTION 'HRVE_GET_NATIONAL_TABLES' " |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| IV_TARGET_CURRENCY | = lv_iv_target_currency | |
| IV_CURRENCY_RATE_DATE | = lv_iv_currency_rate_date | |
| IMPORTING | ||
| DATE_INTENCION_PAGO_INTERESES | = lv_date_intencion_pago_intereses | |
| LOAN_GARANTY_SENIORITY | = lv_loan_garanty_seniority | |
| BALANCE_PAGO_INTERESES | = lv_balance_pago_intereses | |
| TABLES | ||
| SI_EVAL | = lt_si_eval | |
| INTENCION_PAGO_INTERESES | = lt_intencion_pago_intereses | |
| PAYVE_RESULT | = lt_payve_result | |
| GARANTY_SENIORITY | = lt_garanty_seniority | |
| TAX_EVAL | = lt_tax_eval | |
| SEN_EVAL | = lt_sen_eval | |
| PS_EVAL | = lt_ps_eval | |
| INC_EVAL | = lt_inc_eval | |
| LPH_EVAL | = lt_lph_eval | |
| INT_EVAL | = lt_int_eval | |
| PAGO_INTERESES | = lt_pago_intereses | |
| PRESTAMO_ANTIGUEDAD | = lt_prestamo_antiguedad | |
| EXCEPTIONS | ||
| E_HRVE_READ_RGDIR_PAYRESULTS = 1 | ||
| . " HRVE_GET_NATIONAL_TABLES | ||
ABAP code using 7.40 inline data declarations to call FM HRVE_GET_NATIONAL_TABLES
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 PERNR FROM PERNR INTO @DATA(ld_pernr). | ||||
| "SELECT single BEGDA FROM P0001 INTO @DATA(ld_begda). | ||||
| DATA(ld_begda) | = '18000101'. | |||
| "SELECT single ENDDA FROM P0001 INTO @DATA(ld_endda). | ||||
| DATA(ld_endda) | = '99991231'. | |||
Search for further information about these or an SAP related objects