SAP Function Modules

TB_TR_OTC_DATA_SERVE_UL SAP Function module - Data Formatting - OTC Interest Rate - NPV + Limit - Underlying







TB_TR_OTC_DATA_SERVE_UL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TB_TR_OTC_DATA_SERVE_UL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FTR_OTC_LIMIT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TB_TR_OTC_DATA_SERVE_UL - TB TR OTC DATA SERVE UL





CALL FUNCTION 'TB_TR_OTC_DATA_SERVE_UL' "Data Formatting - OTC Interest Rate - NPV + Limit - Underlying
  EXPORTING
    im_deal =                   " trde_str_fha  Transaction
    im_activity =               " trde_str_fhazu  Activity
    im_tab_flows =              " trde_tab_fhapo  Flows
    im_tab_conditions =         " trde_tab_finko  Conditions
    im_comp_code =              " bukrs         Company Code
    im_opt_number =             " tb_rfha       Financial Transaction
  IMPORTING
    ex_deal =                   " trde_str_vtb_s_ges  Transaction
    ex_tab_flows =              " trde_tab_vtb_s_bew  Flows
    ex_tab_formula =            " trde_tab_formula_collect  Formulas
    ex_nominal =                " trde_str_nom  Nominal at selected date
    ex_nominal_in =             " trde_str_nom  Incoming nominal at selected date
    ex_nominal_out =            " trde_str_nom  Outgoing nominal at selected date
    .  "  TB_TR_OTC_DATA_SERVE_UL

ABAP code example for Function Module TB_TR_OTC_DATA_SERVE_UL





The ABAP code below is a full code listing to execute function module TB_TR_OTC_DATA_SERVE_UL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ex_deal  TYPE TRDE_STR_VTB_S_GES ,
ld_ex_tab_flows  TYPE TRDE_TAB_VTB_S_BEW ,
ld_ex_tab_formula  TYPE TRDE_TAB_FORMULA_COLLECT ,
ld_ex_nominal  TYPE TRDE_STR_NOM ,
ld_ex_nominal_in  TYPE TRDE_STR_NOM ,
ld_ex_nominal_out  TYPE TRDE_STR_NOM .

DATA(ld_im_deal) = 'Check type of data required'.
DATA(ld_im_activity) = 'Check type of data required'.
DATA(ld_im_tab_flows) = 'Check type of data required'.
DATA(ld_im_tab_conditions) = 'Check type of data required'.
DATA(ld_im_comp_code) = 'Check type of data required'.
DATA(ld_im_opt_number) = 'Check type of data required'. . CALL FUNCTION 'TB_TR_OTC_DATA_SERVE_UL' EXPORTING im_deal = ld_im_deal im_activity = ld_im_activity im_tab_flows = ld_im_tab_flows im_tab_conditions = ld_im_tab_conditions im_comp_code = ld_im_comp_code im_opt_number = ld_im_opt_number IMPORTING ex_deal = ld_ex_deal ex_tab_flows = ld_ex_tab_flows ex_tab_formula = ld_ex_tab_formula ex_nominal = ld_ex_nominal ex_nominal_in = ld_ex_nominal_in ex_nominal_out = ld_ex_nominal_out . " TB_TR_OTC_DATA_SERVE_UL
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ex_deal  TYPE TRDE_STR_VTB_S_GES ,
ld_im_deal  TYPE TRDE_STR_FHA ,
ld_ex_tab_flows  TYPE TRDE_TAB_VTB_S_BEW ,
ld_im_activity  TYPE TRDE_STR_FHAZU ,
ld_ex_tab_formula  TYPE TRDE_TAB_FORMULA_COLLECT ,
ld_im_tab_flows  TYPE TRDE_TAB_FHAPO ,
ld_ex_nominal  TYPE TRDE_STR_NOM ,
ld_im_tab_conditions  TYPE TRDE_TAB_FINKO ,
ld_ex_nominal_in  TYPE TRDE_STR_NOM ,
ld_im_comp_code  TYPE BUKRS ,
ld_ex_nominal_out  TYPE TRDE_STR_NOM ,
ld_im_opt_number  TYPE TB_RFHA .

ld_im_deal = 'Check type of data required'.
ld_im_activity = 'Check type of data required'.
ld_im_tab_flows = 'Check type of data required'.
ld_im_tab_conditions = 'Check type of data required'.
ld_im_comp_code = 'Check type of data required'.
ld_im_opt_number = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TB_TR_OTC_DATA_SERVE_UL or its description.