SAP HRFPM_COMPARE_FM_FPM_AMNT Function Module for
HRFPM_COMPARE_FM_FPM_AMNT is a standard hrfpm compare fm fpm amnt 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 hrfpm compare fm fpm amnt FM, simply by entering the name HRFPM_COMPARE_FM_FPM_AMNT into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRFPM_DOC_RECONST_SERVICES
Program Name: SAPLHRFPM_DOC_RECONST_SERVICES
Main Program: SAPLHRFPM_DOC_RECONST_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRFPM_COMPARE_FM_FPM_AMNT 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 'HRFPM_COMPARE_FM_FPM_AMNT'".
EXPORTING
* IP_FLG_ADJUST_INCONSISTENCIES = ' ' "
* IP_LOG_LEVEL_MASTER = "
* IP_FLG_CHECK_TOTALS = 'X' "
IMPORTING
ET_HROBJECTS_REFIN = "
ET_FM_INC = "
ET_FM_UPD = "
ET_FM_ERROR = "
ET_FPM_INC = "
ET_FPM_DEL = "
ET_FPM_ERROR = "
CHANGING
* CP_LOG_HANDLE = "
TABLES
* IT_FM_OBJECTS = "
* IT_FPM_OBJECTS = "
IMPORTING Parameters details for HRFPM_COMPARE_FM_FPM_AMNT
IP_FLG_ADJUST_INCONSISTENCIES -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_LOG_LEVEL_MASTER -
Data type: BAL_S_MSG-DETLEVELOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_FLG_CHECK_TOTALS -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRFPM_COMPARE_FM_FPM_AMNT
ET_HROBJECTS_REFIN -
Data type: HROBJECT_TABOptional: No
Call by Reference: Yes
ET_FM_INC -
Data type: HRFPM_FM_POS_TOptional: No
Call by Reference: Yes
ET_FM_UPD -
Data type: HRFPM_FM_POS_TOptional: No
Call by Reference: Yes
ET_FM_ERROR -
Data type: HRFPM_FM_POS_TOptional: No
Call by Reference: Yes
ET_FPM_INC -
Data type: HRFPM_FPM_POS_ITOptional: No
Call by Reference: Yes
ET_FPM_DEL -
Data type: HRFPM_FPM_POS_ITOptional: No
Call by Reference: Yes
ET_FPM_ERROR -
Data type: HRFPM_FPM_POS_ITOptional: No
Call by Reference: Yes
CHANGING Parameters details for HRFPM_COMPARE_FM_FPM_AMNT
CP_LOG_HANDLE -
Data type: BALLOGHNDLOptional: Yes
Call by Reference: Yes
TABLES Parameters details for HRFPM_COMPARE_FM_FPM_AMNT
IT_FM_OBJECTS -
Data type: HRFPM_FM_KEY_HEADEROptional: Yes
Call by Reference: Yes
IT_FPM_OBJECTS -
Data type: HRFPM_FPM_KEY_HEADEROptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HRFPM_COMPARE_FM_FPM_AMNT 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_cp_log_handle | TYPE BALLOGHNDL, " | |||
| lt_it_fm_objects | TYPE STANDARD TABLE OF HRFPM_FM_KEY_HEADER, " | |||
| lv_et_hrobjects_refin | TYPE HROBJECT_TAB, " | |||
| lv_ip_flg_adjust_inconsistencies | TYPE FLAG, " SPACE | |||
| lv_et_fm_inc | TYPE HRFPM_FM_POS_T, " | |||
| lt_it_fpm_objects | TYPE STANDARD TABLE OF HRFPM_FPM_KEY_HEADER, " | |||
| lv_ip_log_level_master | TYPE BAL_S_MSG-DETLEVEL, " | |||
| lv_et_fm_upd | TYPE HRFPM_FM_POS_T, " | |||
| lv_ip_flg_check_totals | TYPE FLAG, " 'X' | |||
| lv_et_fm_error | TYPE HRFPM_FM_POS_T, " | |||
| lv_et_fpm_inc | TYPE HRFPM_FPM_POS_IT, " | |||
| lv_et_fpm_del | TYPE HRFPM_FPM_POS_IT, " | |||
| lv_et_fpm_error | TYPE HRFPM_FPM_POS_IT. " |
|   CALL FUNCTION 'HRFPM_COMPARE_FM_FPM_AMNT' " |
| EXPORTING | ||
| IP_FLG_ADJUST_INCONSISTENCIES | = lv_ip_flg_adjust_inconsistencies | |
| IP_LOG_LEVEL_MASTER | = lv_ip_log_level_master | |
| IP_FLG_CHECK_TOTALS | = lv_ip_flg_check_totals | |
| IMPORTING | ||
| ET_HROBJECTS_REFIN | = lv_et_hrobjects_refin | |
| ET_FM_INC | = lv_et_fm_inc | |
| ET_FM_UPD | = lv_et_fm_upd | |
| ET_FM_ERROR | = lv_et_fm_error | |
| ET_FPM_INC | = lv_et_fpm_inc | |
| ET_FPM_DEL | = lv_et_fpm_del | |
| ET_FPM_ERROR | = lv_et_fpm_error | |
| CHANGING | ||
| CP_LOG_HANDLE | = lv_cp_log_handle | |
| TABLES | ||
| IT_FM_OBJECTS | = lt_it_fm_objects | |
| IT_FPM_OBJECTS | = lt_it_fpm_objects | |
| . " HRFPM_COMPARE_FM_FPM_AMNT | ||
ABAP code using 7.40 inline data declarations to call FM HRFPM_COMPARE_FM_FPM_AMNT
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.| DATA(ld_ip_flg_adjust_inconsistencies) | = ' '. | |||
| "SELECT single DETLEVEL FROM BAL_S_MSG INTO @DATA(ld_ip_log_level_master). | ||||
| DATA(ld_ip_flg_check_totals) | = 'X'. | |||
Search for further information about these or an SAP related objects