SAP FMFG_MRG_TC Function Module for Merge Treasury Confirmation
FMFG_MRG_TC is a standard fmfg mrg tc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Merge Treasury Confirmation 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 fmfg mrg tc FM, simply by entering the name FMFG_MRG_TC into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMFG_TC
Program Name: SAPLFMFG_TC
Main Program: SAPLFMFG_TC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMFG_MRG_TC 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 'FMFG_MRG_TC'"Merge Treasury Confirmation.
EXPORTING
* TEST = 'X' "Single-Character Flag
* E_LOCAL = 'X' "
* E_FILE = 'TC_SWIFT_940_LOCAL' "Local file for upload/download
* E_START_BANK = 'X' "
* E_VARIANT = '004' "Variant Name
TABLES
T_CHECK_RANGE = "Schedule Check Ranges for US Federal Treasury Confirmation
T_SCHED_INFO = "Input info for Schedule Confirmation
T_TCRPT = "Treasury Confirmation output layout for ALV
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFMFG_TC_001 Generate Treasury Confirmation Schedule Nbr
IMPORTING Parameters details for FMFG_MRG_TC
TEST - Single-Character Flag
Data type: CHAR1Default: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)
E_LOCAL -
Data type: CDefault: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)
E_FILE - Local file for upload/download
Data type: LOCALFILEDefault: 'TC_SWIFT_940_LOCAL'
Optional: No
Call by Reference: No ( called with pass by value option)
E_START_BANK -
Data type: CDefault: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)
E_VARIANT - Variant Name
Data type: RALDB_VARIDefault: '004'
Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FMFG_MRG_TC
T_CHECK_RANGE - Schedule Check Ranges for US Federal Treasury Confirmation
Data type: FMTC_CHK_RANGEOptional: No
Call by Reference: Yes
T_SCHED_INFO - Input info for Schedule Confirmation
Data type: FMFG_TC_SCHED_INFOOptional: No
Call by Reference: Yes
T_TCRPT - Treasury Confirmation output layout for ALV
Data type: FMFG_TC_OUTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMFG_MRG_TC 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_test | TYPE CHAR1, " 'X' | |||
| lt_t_check_range | TYPE STANDARD TABLE OF FMTC_CHK_RANGE, " | |||
| lv_e_local | TYPE C, " 'X' | |||
| lt_t_sched_info | TYPE STANDARD TABLE OF FMFG_TC_SCHED_INFO, " | |||
| lv_e_file | TYPE LOCALFILE, " 'TC_SWIFT_940_LOCAL' | |||
| lt_t_tcrpt | TYPE STANDARD TABLE OF FMFG_TC_OUT, " | |||
| lv_e_start_bank | TYPE C, " 'X' | |||
| lv_e_variant | TYPE RALDB_VARI. " '004' |
|   CALL FUNCTION 'FMFG_MRG_TC' "Merge Treasury Confirmation |
| EXPORTING | ||
| TEST | = lv_test | |
| E_LOCAL | = lv_e_local | |
| E_FILE | = lv_e_file | |
| E_START_BANK | = lv_e_start_bank | |
| E_VARIANT | = lv_e_variant | |
| TABLES | ||
| T_CHECK_RANGE | = lt_t_check_range | |
| T_SCHED_INFO | = lt_t_sched_info | |
| T_TCRPT | = lt_t_tcrpt | |
| . " FMFG_MRG_TC | ||
ABAP code using 7.40 inline data declarations to call FM FMFG_MRG_TC
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_test) | = 'X'. | |||
| DATA(ld_e_local) | = 'X'. | |||
| DATA(ld_e_file) | = 'TC_SWIFT_940_LOCAL'. | |||
| DATA(ld_e_start_bank) | = 'X'. | |||
| DATA(ld_e_variant) | = '004'. | |||
Search for further information about these or an SAP related objects