SAP FB_OTC_INTEREST Function Module for Read OTC Interest Rate Instrument









FB_OTC_INTEREST is a standard fb otc interest 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 OTC Interest Rate Instrument 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 fb otc interest FM, simply by entering the name FB_OTC_INTEREST into the relevant SAP transaction such as SE37 or SE38.

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



Function FB_OTC_INTEREST 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 'FB_OTC_INTEREST'"Read OTC Interest Rate Instrument
EXPORTING
IM_COMPANYCODE = "Company Code
IM_DEALNUMBER = "Transaction Number
* IM_ACTIVITY_NUMBER = "Transaction Number
* IM_GET_FIXED_TERMINATED = ' ' "auch fixierte gekündigte Bewegungen

IMPORTING
EX_DEAL = "Transaction
EX_ACTIVITY = "Active Activity
EX_TAB_FLOWS = "Flows
EX_TAB_CONDITIONS = "Conditions
EX_TAB_AVERAGES = "Assign one flow to many adjustments for average
EX_TAB_MD_FIXING = "Common market-data fixing (so far TRCPAT and TRCPAT2)

EXCEPTIONS
DEAL_NOT_FOUND = 1
.



IMPORTING Parameters details for FB_OTC_INTEREST

IM_COMPANYCODE - Company Code

Data type: BUKRS
Optional: No
Call by Reference: Yes

IM_DEALNUMBER - Transaction Number

Data type: TB_RFHA
Optional: No
Call by Reference: Yes

IM_ACTIVITY_NUMBER - Transaction Number

Data type: TB_RFHAZU
Optional: Yes
Call by Reference: Yes

IM_GET_FIXED_TERMINATED - auch fixierte gekündigte Bewegungen

Data type: C
Default: ' '
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FB_OTC_INTEREST

EX_DEAL - Transaction

Data type: TRDE_STR_FHA
Optional: No
Call by Reference: Yes

EX_ACTIVITY - Active Activity

Data type: TRDE_STR_FHAZU
Optional: No
Call by Reference: Yes

EX_TAB_FLOWS - Flows

Data type: TRDE_TAB_FHAPO
Optional: No
Call by Reference: Yes

EX_TAB_CONDITIONS - Conditions

Data type: TRDE_TAB_FINKO
Optional: No
Call by Reference: Yes

EX_TAB_AVERAGES - Assign one flow to many adjustments for average

Data type: FTRTR_TAB_AVG_ASGN
Optional: No
Call by Reference: Yes

EX_TAB_MD_FIXING - Common market-data fixing (so far TRCPAT and TRCPAT2)

Data type: FTR_TAB_MD_FIXING
Optional: No
Call by Reference: Yes

EXCEPTIONS details

DEAL_NOT_FOUND - Transaction does not exist

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FB_OTC_INTEREST 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_ex_deal  TYPE TRDE_STR_FHA, "   
lv_deal_not_found  TYPE TRDE_STR_FHA, "   
lv_im_companycode  TYPE BUKRS, "   
lv_ex_activity  TYPE TRDE_STR_FHAZU, "   
lv_im_dealnumber  TYPE TB_RFHA, "   
lv_ex_tab_flows  TYPE TRDE_TAB_FHAPO, "   
lv_im_activity_number  TYPE TB_RFHAZU, "   
lv_ex_tab_conditions  TYPE TRDE_TAB_FINKO, "   
lv_im_get_fixed_terminated  TYPE C, "   ' '
lv_ex_tab_averages  TYPE FTRTR_TAB_AVG_ASGN, "   
lv_ex_tab_md_fixing  TYPE FTR_TAB_MD_FIXING. "   

  CALL FUNCTION 'FB_OTC_INTEREST'  "Read OTC Interest Rate Instrument
    EXPORTING
         IM_COMPANYCODE = lv_im_companycode
         IM_DEALNUMBER = lv_im_dealnumber
         IM_ACTIVITY_NUMBER = lv_im_activity_number
         IM_GET_FIXED_TERMINATED = lv_im_get_fixed_terminated
    IMPORTING
         EX_DEAL = lv_ex_deal
         EX_ACTIVITY = lv_ex_activity
         EX_TAB_FLOWS = lv_ex_tab_flows
         EX_TAB_CONDITIONS = lv_ex_tab_conditions
         EX_TAB_AVERAGES = lv_ex_tab_averages
         EX_TAB_MD_FIXING = lv_ex_tab_md_fixing
    EXCEPTIONS
        DEAL_NOT_FOUND = 1
. " FB_OTC_INTEREST




ABAP code using 7.40 inline data declarations to call FM FB_OTC_INTEREST

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_im_get_fixed_terminated) = ' '.
 
 
 


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!