SAP FTR_MIR_BAPI_CREATE Function Module for Create Transactions
FTR_MIR_BAPI_CREATE is a standard ftr mir bapi create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Transactions 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 ftr mir bapi create FM, simply by entering the name FTR_MIR_BAPI_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTR_MIR
Program Name: SAPLFTR_MIR
Main Program: SAPLFTR_MIR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function FTR_MIR_BAPI_CREATE 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 'FTR_MIR_BAPI_CREATE'"Create Transactions.
EXPORTING
I_STRUC_CONTRACT = "FTR: BAPI Structure for Creating Transactions
* I_FHA_ORI = "Financial Transaction
* I_TAB_CONDITIONS_ORI = "Table Type: VTBfinko
* I_DOUBLE_FLAG = "Boolean Variable (X=true, -=false, space=unknown)
* I_TAB_BUKRS_USED = "Table Type for Company Code
* I_STRUC_FOREX = "Create Forex Transaction Using BAPI
* I_STRUC_FTD = "Create Fixed-Term Deposit per BAPI
* I_STRUC_DAN = "Create Fixed-Term Deposit per BAPI
* I_STRUC_CF = "Create Cash Flow-Dependent Transaction per BAPI
* I_STRUC_INT = "Create Interest Rate Instrument per BAPI
* I_STRUC_FX_OPTION = "Create an FX Option by BAPI
* I_SFGZUSTT = "Transaction Activity Category
I_TESTRUN = "Switch to Simulation Mode for Write BAPIs
IMPORTING
FINANCIALTRANSACTION = "Financial Transaction
COMPANYCODE = "Company Code
TABLES
* TABLERETURN = "Return Parameters
* TAB_CFT_FLOWS = "FTR: BAPI Structure for Creating Flows for CFT
IMPORTING Parameters details for FTR_MIR_BAPI_CREATE
I_STRUC_CONTRACT - FTR: BAPI Structure for Creating Transactions
Data type: BAPI_FTR_CREATEOptional: No
Call by Reference: No ( called with pass by value option)
I_FHA_ORI - Financial Transaction
Data type: VTBFHAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_CONDITIONS_ORI - Table Type: VTBfinko
Data type: TBFINKOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DOUBLE_FLAG - Boolean Variable (X=true, -=false, space=unknown)
Data type: BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_BUKRS_USED - Table Type for Company Code
Data type: TRGY_BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STRUC_FOREX - Create Forex Transaction Using BAPI
Data type: BAPI_FTR_CREATE_FXTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STRUC_FTD - Create Fixed-Term Deposit per BAPI
Data type: BAPI_FTR_CREATE_FTDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STRUC_DAN - Create Fixed-Term Deposit per BAPI
Data type: BAPI_FTR_CREATE_DANOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STRUC_CF - Create Cash Flow-Dependent Transaction per BAPI
Data type: BAPI_FTR_CREATE_CFTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STRUC_INT - Create Interest Rate Instrument per BAPI
Data type: BAPI_FTR_CREATE_IRATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STRUC_FX_OPTION - Create an FX Option by BAPI
Data type: BAPI_FTR_CREATE_FXOPTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SFGZUSTT - Transaction Activity Category
Data type: VTBFHAZU-SFGZUSTTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TESTRUN - Switch to Simulation Mode for Write BAPIs
Data type: BAPI2042-TESTRUNOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FTR_MIR_BAPI_CREATE
FINANCIALTRANSACTION - Financial Transaction
Data type: BAPI2042-TRANSACTIONOptional: No
Call by Reference: No ( called with pass by value option)
COMPANYCODE - Company Code
Data type: BAPI2042-COMPANY_CODEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FTR_MIR_BAPI_CREATE
TABLERETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
TAB_CFT_FLOWS - FTR: BAPI Structure for Creating Flows for CFT
Data type: BAPI_FTR_CFT_FLOW_CREATEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FTR_MIR_BAPI_CREATE 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_tablereturn | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_struc_contract | TYPE BAPI_FTR_CREATE, " | |||
| lv_financialtransaction | TYPE BAPI2042-TRANSACTION, " | |||
| lv_i_fha_ori | TYPE VTBFHA, " | |||
| lv_i_tab_conditions_ori | TYPE TBFINKO, " | |||
| lv_i_double_flag | TYPE BOOLEAN, " | |||
| lv_i_tab_bukrs_used | TYPE TRGY_BUKRS, " | |||
| lv_companycode | TYPE BAPI2042-COMPANY_CODE, " | |||
| lv_i_struc_forex | TYPE BAPI_FTR_CREATE_FXT, " | |||
| lt_tab_cft_flows | TYPE STANDARD TABLE OF BAPI_FTR_CFT_FLOW_CREATE, " | |||
| lv_i_struc_ftd | TYPE BAPI_FTR_CREATE_FTD, " | |||
| lv_i_struc_dan | TYPE BAPI_FTR_CREATE_DAN, " | |||
| lv_i_struc_cf | TYPE BAPI_FTR_CREATE_CFT, " | |||
| lv_i_struc_int | TYPE BAPI_FTR_CREATE_IRATE, " | |||
| lv_i_struc_fx_option | TYPE BAPI_FTR_CREATE_FXOPTION, " | |||
| lv_i_sfgzustt | TYPE VTBFHAZU-SFGZUSTT, " | |||
| lv_i_testrun | TYPE BAPI2042-TESTRUN. " |
|   CALL FUNCTION 'FTR_MIR_BAPI_CREATE' "Create Transactions |
| EXPORTING | ||
| I_STRUC_CONTRACT | = lv_i_struc_contract | |
| I_FHA_ORI | = lv_i_fha_ori | |
| I_TAB_CONDITIONS_ORI | = lv_i_tab_conditions_ori | |
| I_DOUBLE_FLAG | = lv_i_double_flag | |
| I_TAB_BUKRS_USED | = lv_i_tab_bukrs_used | |
| I_STRUC_FOREX | = lv_i_struc_forex | |
| I_STRUC_FTD | = lv_i_struc_ftd | |
| I_STRUC_DAN | = lv_i_struc_dan | |
| I_STRUC_CF | = lv_i_struc_cf | |
| I_STRUC_INT | = lv_i_struc_int | |
| I_STRUC_FX_OPTION | = lv_i_struc_fx_option | |
| I_SFGZUSTT | = lv_i_sfgzustt | |
| I_TESTRUN | = lv_i_testrun | |
| IMPORTING | ||
| FINANCIALTRANSACTION | = lv_financialtransaction | |
| COMPANYCODE | = lv_companycode | |
| TABLES | ||
| TABLERETURN | = lt_tablereturn | |
| TAB_CFT_FLOWS | = lt_tab_cft_flows | |
| . " FTR_MIR_BAPI_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM FTR_MIR_BAPI_CREATE
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 TRANSACTION FROM BAPI2042 INTO @DATA(ld_financialtransaction). | ||||
| "SELECT single COMPANY_CODE FROM BAPI2042 INTO @DATA(ld_companycode). | ||||
| "SELECT single SFGZUSTT FROM VTBFHAZU INTO @DATA(ld_i_sfgzustt). | ||||
| "SELECT single TESTRUN FROM BAPI2042 INTO @DATA(ld_i_testrun). | ||||
Search for further information about these or an SAP related objects