SAP FTR_OTC_FOREX_PUT_CALL_DET Function Module for OTC Foreign Exchange Option PUT/CALL Determination









FTR_OTC_FOREX_PUT_CALL_DET is a standard ftr otc forex put call det SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OTC Foreign Exchange Option PUT/CALL Determination 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 otc forex put call det FM, simply by entering the name FTR_OTC_FOREX_PUT_CALL_DET into the relevant SAP transaction such as SE37 or SE38.

Function Group: FTR_OTC
Program Name: SAPLFTR_OTC
Main Program: SAPLFTR_OTC
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FTR_OTC_FOREX_PUT_CALL_DET 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_OTC_FOREX_PUT_CALL_DET'"OTC Foreign Exchange Option PUT/CALL Determination
EXPORTING
I_VTBFHA = "Data for Financial Transactions
I_VTIFHA = "
I_VTIFHAZU = "Underlying FX Activity

IMPORTING
E_TXTPUTCALIN = "Text Field for Internal Put/Call Name
E_TXTPUTCALEX = "Text Field for External Put/Call Name
E_WA_FHAPO = "Transaction Flow

CHANGING
C_VTIOF = "Option Data

TABLES
* I_VTIFHAPO = "
.



IMPORTING Parameters details for FTR_OTC_FOREX_PUT_CALL_DET

I_VTBFHA - Data for Financial Transactions

Data type: VTBFHA
Optional: No
Call by Reference: No ( called with pass by value option)

I_VTIFHA -

Data type: VTIFHA
Optional: No
Call by Reference: No ( called with pass by value option)

I_VTIFHAZU - Underlying FX Activity

Data type: VTIFHAZU
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FTR_OTC_FOREX_PUT_CALL_DET

E_TXTPUTCALIN - Text Field for Internal Put/Call Name

Data type: VTI_HEADER-XPUTCAL
Optional: No
Call by Reference: No ( called with pass by value option)

E_TXTPUTCALEX - Text Field for External Put/Call Name

Data type: VTI_HEADER-XPUTCAL
Optional: No
Call by Reference: No ( called with pass by value option)

E_WA_FHAPO - Transaction Flow

Data type: VTIFHAPO
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for FTR_OTC_FOREX_PUT_CALL_DET

C_VTIOF - Option Data

Data type: VTIOF
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FTR_OTC_FOREX_PUT_CALL_DET

I_VTIFHAPO -

Data type: VTIFHAPO
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FTR_OTC_FOREX_PUT_CALL_DET 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_c_vtiof  TYPE VTIOF, "   
lv_i_vtbfha  TYPE VTBFHA, "   
lt_i_vtifhapo  TYPE STANDARD TABLE OF VTIFHAPO, "   
lv_e_txtputcalin  TYPE VTI_HEADER-XPUTCAL, "   
lv_i_vtifha  TYPE VTIFHA, "   
lv_e_txtputcalex  TYPE VTI_HEADER-XPUTCAL, "   
lv_e_wa_fhapo  TYPE VTIFHAPO, "   
lv_i_vtifhazu  TYPE VTIFHAZU. "   

  CALL FUNCTION 'FTR_OTC_FOREX_PUT_CALL_DET'  "OTC Foreign Exchange Option PUT/CALL Determination
    EXPORTING
         I_VTBFHA = lv_i_vtbfha
         I_VTIFHA = lv_i_vtifha
         I_VTIFHAZU = lv_i_vtifhazu
    IMPORTING
         E_TXTPUTCALIN = lv_e_txtputcalin
         E_TXTPUTCALEX = lv_e_txtputcalex
         E_WA_FHAPO = lv_e_wa_fhapo
    CHANGING
         C_VTIOF = lv_c_vtiof
    TABLES
         I_VTIFHAPO = lt_i_vtifhapo
. " FTR_OTC_FOREX_PUT_CALL_DET




ABAP code using 7.40 inline data declarations to call FM FTR_OTC_FOREX_PUT_CALL_DET

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 XPUTCAL FROM VTI_HEADER INTO @DATA(ld_e_txtputcalin).
 
 
"SELECT single XPUTCAL FROM VTI_HEADER INTO @DATA(ld_e_txtputcalex).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!