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

Function FTR_GET_DEALDATA 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_GET_DEALDATA'"Read Transaction Data.
EXPORTING
IM_BUKRS = "Company Code
IM_RFHA = "Financial Transaction
IMPORTING
EX_VTBFHA = "Financial Transaction
EX_TAB_VTIFHA = "Table Type: Underlying Transaction
EX_TAB_VTIFHAZU = "Table Type: Status of Underlying Transaction
EX_TAB_VTIFHAPO = "Table Type: Flows of Original Transaction
EX_TAB_VTIFINKO = "Table Type: Underlying Conditions
EX_TAB_TRADE_ID = "Table Type Trade Identifier for Financial Transaction
EX_VTBFHAZU = "Transaction Activity
EX_TAB_VTBFHAPO = "Treasury: Table Type for VTBFHAPO
EX_TAB_VTBFINKO = "Table Type: VTBfinko
EX_TAB_VTBFASGT = "Table Type for VTBFASGT
EX_TAB_DIVIDEND = "Dividend Data for Forward Securities Transaction
EX_TAB_ROLLOVER = "Rollover Periods for Forward Securities Transactions
EX_TAB_VTIOF = "Tyble Type: Options - Additional Data
EX_TAB_VTIOFZU = "Table Type for VTIOFZU
EXCEPTIONS
DEALDATA_NOT_FOUND = 1
IMPORTING Parameters details for FTR_GET_DEALDATA
IM_BUKRS - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
IM_RFHA - Financial Transaction
Data type: TB_RFHAOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FTR_GET_DEALDATA
EX_VTBFHA - Financial Transaction
Data type: VTBFHAOptional: No
Call by Reference: Yes
EX_TAB_VTIFHA - Table Type: Underlying Transaction
Data type: THM_TAB_VTIFHAOptional: No
Call by Reference: Yes
EX_TAB_VTIFHAZU - Table Type: Status of Underlying Transaction
Data type: THM_TAB_VTIFHAZUOptional: No
Call by Reference: Yes
EX_TAB_VTIFHAPO - Table Type: Flows of Original Transaction
Data type: THM_TAB_VTIFHAPOOptional: No
Call by Reference: Yes
EX_TAB_VTIFINKO - Table Type: Underlying Conditions
Data type: THM_TAB_VTIFINKOOptional: No
Call by Reference: Yes
EX_TAB_TRADE_ID - Table Type Trade Identifier for Financial Transaction
Data type: TLRY_TRADE_IDOptional: No
Call by Reference: Yes
EX_VTBFHAZU - Transaction Activity
Data type: VTBFHAZUOptional: No
Call by Reference: Yes
EX_TAB_VTBFHAPO - Treasury: Table Type for VTBFHAPO
Data type: FTR_FHAPOOptional: No
Call by Reference: Yes
EX_TAB_VTBFINKO - Table Type: VTBfinko
Data type: TBFINKOOptional: No
Call by Reference: Yes
EX_TAB_VTBFASGT - Table Type for VTBFASGT
Data type: FTRY_VTBFASGTOptional: No
Call by Reference: Yes
EX_TAB_DIVIDEND - Dividend Data for Forward Securities Transaction
Data type: FTRY_VTBDIVIDENDOptional: No
Call by Reference: Yes
EX_TAB_ROLLOVER - Rollover Periods for Forward Securities Transactions
Data type: FTRY_VTBROLLOVEROptional: No
Call by Reference: Yes
EX_TAB_VTIOF - Tyble Type: Options - Additional Data
Data type: THM_TAB_VTIOFOptional: No
Call by Reference: Yes
EX_TAB_VTIOFZU - Table Type for VTIOFZU
Data type: FTR_VTIOFZUOptional: No
Call by Reference: Yes
EXCEPTIONS details
DEALDATA_NOT_FOUND - Data not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FTR_GET_DEALDATA 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_im_bukrs | TYPE BUKRS, " | |||
| lv_ex_vtbfha | TYPE VTBFHA, " | |||
| lv_dealdata_not_found | TYPE VTBFHA, " | |||
| lv_ex_tab_vtifha | TYPE THM_TAB_VTIFHA, " | |||
| lv_ex_tab_vtifhazu | TYPE THM_TAB_VTIFHAZU, " | |||
| lv_ex_tab_vtifhapo | TYPE THM_TAB_VTIFHAPO, " | |||
| lv_ex_tab_vtifinko | TYPE THM_TAB_VTIFINKO, " | |||
| lv_ex_tab_trade_id | TYPE TLRY_TRADE_ID, " | |||
| lv_im_rfha | TYPE TB_RFHA, " | |||
| lv_ex_vtbfhazu | TYPE VTBFHAZU, " | |||
| lv_ex_tab_vtbfhapo | TYPE FTR_FHAPO, " | |||
| lv_ex_tab_vtbfinko | TYPE TBFINKO, " | |||
| lv_ex_tab_vtbfasgt | TYPE FTRY_VTBFASGT, " | |||
| lv_ex_tab_dividend | TYPE FTRY_VTBDIVIDEND, " | |||
| lv_ex_tab_rollover | TYPE FTRY_VTBROLLOVER, " | |||
| lv_ex_tab_vtiof | TYPE THM_TAB_VTIOF, " | |||
| lv_ex_tab_vtiofzu | TYPE FTR_VTIOFZU. " |
|   CALL FUNCTION 'FTR_GET_DEALDATA' "Read Transaction Data |
| EXPORTING | ||
| IM_BUKRS | = lv_im_bukrs | |
| IM_RFHA | = lv_im_rfha | |
| IMPORTING | ||
| EX_VTBFHA | = lv_ex_vtbfha | |
| EX_TAB_VTIFHA | = lv_ex_tab_vtifha | |
| EX_TAB_VTIFHAZU | = lv_ex_tab_vtifhazu | |
| EX_TAB_VTIFHAPO | = lv_ex_tab_vtifhapo | |
| EX_TAB_VTIFINKO | = lv_ex_tab_vtifinko | |
| EX_TAB_TRADE_ID | = lv_ex_tab_trade_id | |
| EX_VTBFHAZU | = lv_ex_vtbfhazu | |
| EX_TAB_VTBFHAPO | = lv_ex_tab_vtbfhapo | |
| EX_TAB_VTBFINKO | = lv_ex_tab_vtbfinko | |
| EX_TAB_VTBFASGT | = lv_ex_tab_vtbfasgt | |
| EX_TAB_DIVIDEND | = lv_ex_tab_dividend | |
| EX_TAB_ROLLOVER | = lv_ex_tab_rollover | |
| EX_TAB_VTIOF | = lv_ex_tab_vtiof | |
| EX_TAB_VTIOFZU | = lv_ex_tab_vtiofzu | |
| EXCEPTIONS | ||
| DEALDATA_NOT_FOUND = 1 | ||
| . " FTR_GET_DEALDATA | ||
ABAP code using 7.40 inline data declarations to call FM FTR_GET_DEALDATA
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.Search for further information about these or an SAP related objects