SAP FTR_OPEN_TRTM_RUN Function Module for Start Open TR-TM
FTR_OPEN_TRTM_RUN is a standard ftr open trtm run SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Start Open TR-TM 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 open trtm run FM, simply by entering the name FTR_OPEN_TRTM_RUN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTR_OPEN_TRTM
Program Name: SAPLFTR_OPEN_TRTM
Main Program: SAPLFTR_OPEN_TRTM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FTR_OPEN_TRTM_RUN 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_OPEN_TRTM_RUN'"Start Open TR-TM.
EXPORTING
* PI_START_ONLY = ' ' "Open TRTM nur starten
* PI_BADI_PA = 'X' "Partner allocations
PI_VTBFHA = "Transaction
PI_VTBFHAZU = "Transaction Activity
PI_TAB_FHAPO = "Table with flows
PI_TAB_FINKO = "Table with conditions
PI_VTBFHA_OLD = "Transaction
PI_VTBFHAZU_OLD = "Transaction Activity
PI_TAB_FHAPO_OLD = "Table with flows
PI_TAB_FINKO_OLD = "Table with conditions
* PI_BADI_BAV = 'X' "Fortschreiben BAV
* PI_BADI_FACILITY = 'X' "Fortschreiben des TR Facility
* PI_BADI_DISTRIBUTOR = 'X' "Fortschreiben des TR Distributors
* PI_BADI_GENERIC = 'X' "Fortschreiben der generischen Erweiterung
* PI_BADI_CUSTOMER = 'X' "Fortschreiben der Kundenerweiterung
* PI_BAPI_MIRROR = 'X' "Mirror transactions
* PI_BADI_FO = 'X' "Fortschreiben Finanzobjekt
* PI_BADI_HEDGE = 'X' "Hedge Management
IMPORTING
PE_IREF_OPEN_TRTM = "Referenz auf Open TR-TM
PE_TAB_MESSAGES = "Nachrichten aus Open TRTM
PE_OREF_APPL_CTRL = "Referenz auf Appl Ctrl
EXCEPTIONS
DEAL_NOT_FOUND = 1 PROCESSING_ERROR = 2 ERROR_OCCURED = 3
IMPORTING Parameters details for FTR_OPEN_TRTM_RUN
PI_START_ONLY - Open TRTM nur starten
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_BADI_PA - Partner allocations
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_VTBFHA - Transaction
Data type: VTBFHAOptional: No
Call by Reference: Yes
PI_VTBFHAZU - Transaction Activity
Data type: VTBFHAZUOptional: No
Call by Reference: Yes
PI_TAB_FHAPO - Table with flows
Data type: FTR_FHAPOOptional: No
Call by Reference: Yes
PI_TAB_FINKO - Table with conditions
Data type: TBFINKOOptional: No
Call by Reference: Yes
PI_VTBFHA_OLD - Transaction
Data type: VTBFHAOptional: No
Call by Reference: Yes
PI_VTBFHAZU_OLD - Transaction Activity
Data type: VTBFHAZUOptional: No
Call by Reference: Yes
PI_TAB_FHAPO_OLD - Table with flows
Data type: FTR_FHAPOOptional: No
Call by Reference: Yes
PI_TAB_FINKO_OLD - Table with conditions
Data type: TBFINKOOptional: No
Call by Reference: Yes
PI_BADI_BAV - Fortschreiben BAV
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_BADI_FACILITY - Fortschreiben des TR Facility
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_BADI_DISTRIBUTOR - Fortschreiben des TR Distributors
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_BADI_GENERIC - Fortschreiben der generischen Erweiterung
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_BADI_CUSTOMER - Fortschreiben der Kundenerweiterung
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_BAPI_MIRROR - Mirror transactions
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_BADI_FO - Fortschreiben Finanzobjekt
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
PI_BADI_HEDGE - Hedge Management
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FTR_OPEN_TRTM_RUN
PE_IREF_OPEN_TRTM - Referenz auf Open TR-TM
Data type: IF_FTR_OPEN_TRTMOptional: No
Call by Reference: Yes
PE_TAB_MESSAGES - Nachrichten aus Open TRTM
Data type: FTRG_TAB_MESSAGEOptional: No
Call by Reference: Yes
PE_OREF_APPL_CTRL - Referenz auf Appl Ctrl
Data type: CL_FTR_APPL_CTRLOptional: No
Call by Reference: Yes
EXCEPTIONS details
DEAL_NOT_FOUND - Transaction does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROCESSING_ERROR - Für derartige Geschäfte existiert kein Anwendungsfunktionsbaustein
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_OCCURED - An Error Has Occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FTR_OPEN_TRTM_RUN 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_pi_start_only | TYPE BOOLEAN, " SPACE | |||
| lv_deal_not_found | TYPE BOOLEAN, " | |||
| lv_pe_iref_open_trtm | TYPE IF_FTR_OPEN_TRTM, " | |||
| lv_pi_badi_pa | TYPE BOOLEAN, " 'X' | |||
| lv_pi_vtbfha | TYPE VTBFHA, " | |||
| lv_pi_vtbfhazu | TYPE VTBFHAZU, " | |||
| lv_pi_tab_fhapo | TYPE FTR_FHAPO, " | |||
| lv_pi_tab_finko | TYPE TBFINKO, " | |||
| lv_pi_vtbfha_old | TYPE VTBFHA, " | |||
| lv_pi_vtbfhazu_old | TYPE VTBFHAZU, " | |||
| lv_pi_tab_fhapo_old | TYPE FTR_FHAPO, " | |||
| lv_pi_tab_finko_old | TYPE TBFINKO, " | |||
| lv_pi_badi_bav | TYPE BOOLEAN, " 'X' | |||
| lv_pe_tab_messages | TYPE FTRG_TAB_MESSAGE, " | |||
| lv_processing_error | TYPE FTRG_TAB_MESSAGE, " | |||
| lv_error_occured | TYPE FTRG_TAB_MESSAGE, " | |||
| lv_pi_badi_facility | TYPE BOOLEAN, " 'X' | |||
| lv_pe_oref_appl_ctrl | TYPE CL_FTR_APPL_CTRL, " | |||
| lv_pi_badi_distributor | TYPE BOOLEAN, " 'X' | |||
| lv_pi_badi_generic | TYPE BOOLEAN, " 'X' | |||
| lv_pi_badi_customer | TYPE BOOLEAN, " 'X' | |||
| lv_pi_bapi_mirror | TYPE BOOLEAN, " 'X' | |||
| lv_pi_badi_fo | TYPE BOOLEAN, " 'X' | |||
| lv_pi_badi_hedge | TYPE BOOLEAN. " 'X' |
|   CALL FUNCTION 'FTR_OPEN_TRTM_RUN' "Start Open TR-TM |
| EXPORTING | ||
| PI_START_ONLY | = lv_pi_start_only | |
| PI_BADI_PA | = lv_pi_badi_pa | |
| PI_VTBFHA | = lv_pi_vtbfha | |
| PI_VTBFHAZU | = lv_pi_vtbfhazu | |
| PI_TAB_FHAPO | = lv_pi_tab_fhapo | |
| PI_TAB_FINKO | = lv_pi_tab_finko | |
| PI_VTBFHA_OLD | = lv_pi_vtbfha_old | |
| PI_VTBFHAZU_OLD | = lv_pi_vtbfhazu_old | |
| PI_TAB_FHAPO_OLD | = lv_pi_tab_fhapo_old | |
| PI_TAB_FINKO_OLD | = lv_pi_tab_finko_old | |
| PI_BADI_BAV | = lv_pi_badi_bav | |
| PI_BADI_FACILITY | = lv_pi_badi_facility | |
| PI_BADI_DISTRIBUTOR | = lv_pi_badi_distributor | |
| PI_BADI_GENERIC | = lv_pi_badi_generic | |
| PI_BADI_CUSTOMER | = lv_pi_badi_customer | |
| PI_BAPI_MIRROR | = lv_pi_bapi_mirror | |
| PI_BADI_FO | = lv_pi_badi_fo | |
| PI_BADI_HEDGE | = lv_pi_badi_hedge | |
| IMPORTING | ||
| PE_IREF_OPEN_TRTM | = lv_pe_iref_open_trtm | |
| PE_TAB_MESSAGES | = lv_pe_tab_messages | |
| PE_OREF_APPL_CTRL | = lv_pe_oref_appl_ctrl | |
| EXCEPTIONS | ||
| DEAL_NOT_FOUND = 1 | ||
| PROCESSING_ERROR = 2 | ||
| ERROR_OCCURED = 3 | ||
| . " FTR_OPEN_TRTM_RUN | ||
ABAP code using 7.40 inline data declarations to call FM FTR_OPEN_TRTM_RUN
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_pi_start_only) | = ' '. | |||
| DATA(ld_pi_badi_pa) | = 'X'. | |||
| DATA(ld_pi_badi_bav) | = 'X'. | |||
| DATA(ld_pi_badi_facility) | = 'X'. | |||
| DATA(ld_pi_badi_distributor) | = 'X'. | |||
| DATA(ld_pi_badi_generic) | = 'X'. | |||
| DATA(ld_pi_badi_customer) | = 'X'. | |||
| DATA(ld_pi_bapi_mirror) | = 'X'. | |||
| DATA(ld_pi_badi_fo) | = 'X'. | |||
| DATA(ld_pi_badi_hedge) | = 'X'. | |||
Search for further information about these or an SAP related objects