SAP Reports / Programs | Treasury(TR) SAP TR

RFTBDF04 SAP ABAP Report - Datafeed: Request Historical Market Data







RFTBDF04 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RFTBDF04 is a prototype for retrieving historical data...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFTBDF04 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

TBDJ - Datafeed: Historical Market Data


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RFTBDF04. "Basic submit
SUBMIT RFTBDF04 AND RETURN. "Return to original report after report execution complete
SUBMIT RFTBDF04 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: ASYNC = Asynchronous
Selection Text: PAR_AKT = Update Master Data
Selection Text: PAR_CCY = Currencies
Selection Text: PAR_COM = Commodities (Daily Basis)
Selection Text: PAR_CPE = Commodities (Time Basis)
Selection Text: PAR_DCS = Derivative Contract Specific.
Selection Text: PAR_DSAL = Whole results list
Selection Text: PAR_DSFL = Display Error Log
Selection Text: PAR_DSOK = Display All Market Data
Selection Text: PAR_DSP = Display Correct Market Data
Selection Text: PAR_DSW = Forex Swap Rates
Selection Text: PAR_FEED = Name
Selection Text: PAR_IND = Indexes
Selection Text: PAR_INT = Interest Rates
Selection Text: PAR_SEC = Securities
Selection Text: PAR_VAR = Layout
Selection Text: PAR_VCY = Exchange Rate Volatilities
Selection Text: PAR_VID = Index Volatilities
Selection Text: PAR_VIT = Interest Rate Volatilities
Selection Text: PAR_VSE = Security Price Volatilities
Selection Text: SOP_DTE = Date From
Selection Text: SOP_RK1 = 1st Key Definition
Selection Text: SOP_RK2 = 2nd Key Definition
Selection Text: SOP_SIN = Instrument Property
Selection Text: SOP_TIM = Time from
Selection Text: SOP_ZUS = For Volatilities: Term
Selection Text: SYNC = Synchronous
Title: Datafeed: Request Historical Market Data
Text Symbol: 007 = Market Data Class
Text Symbol: 008 = Currencies
Text Symbol: 009 = Exchange Rate Volatilities
Text Symbol: 010 = Securities
Text Symbol: 011 = Security Price Volatilities
Text Symbol: 012 = Interest rates
Text Symbol: 013 = Interest Rate Volatilities
Text Symbol: 014 = Indexes
Text Symbol: 015 = Index Volatilities
Text Symbol: 016 = Forex Swap Rates





Text Symbol: 017 = Commodities (Daily Basis)
Text Symbol: 018 = Commodities (Time Basis)
Text Symbol: 019 = Derivative Contract Specific.
Text Symbol: 020 = Basis Spreads
Text Symbol: 071 = Datafeed
Text Symbol: 100 = Market Data Selection
Text Symbol: 101 = Datafeed
Text Symbol: 102 = Request Mode
Text Symbol: 103 = Output Control
Text Symbol: 105 = Period for history
Text Symbol: 110 = Output List of Results
Text Symbol: 111 = All
Text Symbol: 112 = Errors
Text Symbol: 113 = Correct Results
Text Symbol: 120 = Synchronous
Text Symbol: 121 = Asynchronous
Text Symbol: 130 = Save Market Data in System Permanently If Defined in Customizing


INCLUDES used within this REPORT RFTBDF04

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

AUTHORITY_CHECK_RFC call function 'AUTHORITY_CHECK_RFC' exporting userid = sy-uname functiongroup = 'TBDF' exceptions user_dont_exist = 1 rfc_no_authority = 2 others = 3.

MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE' exporting i_identification = identification importing e_identification = identification.

TB_DATAFEED_GET_ACTIVE_FEED call function 'TB_DATAFEED_GET_ACTIVE_FEED' importing feedname = par_feed exceptions no_feed = 1 multiple_feeds = 2 others = 3.

REUSE_ALV_VARIANT_DEFAULT_GET call function 'REUSE_ALV_VARIANT_DEFAULT_GET' exporting i_save = 'A' "/ user specific save available changing cs_variant = alv_variant exceptions not_found = 1.

REUSE_ALV_VARIANT_F4 call function 'REUSE_ALV_VARIANT_F4' exporting is_variant = alv_variant i_tabname_header = alv_name_thead i_tabname_item = alv_name_titem * it_default_fieldcat = i_save = 'A' importing e_exit = h_exit es_variant = alv_variant exceptions not_found = 1.

REUSE_ALV_VARIANT_EXISTENCE call function 'REUSE_ALV_VARIANT_EXISTENCE' exporting i_save = 'A' changing cs_variant = alv_variant.

TB_DATAFEED_WP_SELECT_OPTIONS call function 'TB_DATAFEED_WP_SELECT_OPTIONS' tables sop_scl = sop_scl sop_rk1 = sop_rk1.

TB_DATAFEED_RATE_UPDATE call function 'TB_DATAFEED_RATE_UPDATE' exporting feedname = par_feed history = 'X' workmodus = workmodus dfromdate = sop_dte-low dfromtime = sop_tim-low dtodate = sop_dte-high dtotime = sop_tim-high message_collect = 'X' i_identification = identification tables sap_answer = sap_vtb_market sap_request = i_request exceptions datafeed_failure = 1 no_requests = 2 some_requests_wrong = 3 update_error = 4 others = 5.

TB_DATAFEED_RATE_REQUEST call function 'TB_DATAFEED_RATE_REQUEST' exporting feedname = par_feed workmodus = workmodus dfromdate = sop_dte-low dfromtime = sop_tim-low dtodate = sop_dte-high dtotime = sop_tim-high history = 'X' message_collect = 'X' i_identification = identification tables sap_answer = sap_vtb_market sap_request = i_request exceptions datafeed_failure = 1 no_requests = 2 some_requests_wrong = 3 no_feed = 4 no_authority = 4 others = 6.

MESSAGES_STOP





call function 'MESSAGES_STOP' exceptions a_message = 1 e_message = 2 i_message = 3 w_message = 4 others = 5.

MESSAGES_SHOW call function 'MESSAGES_SHOW' exporting * CORRECTIONS_OPTION = ' ' * CORRECTIONS_FUNC_TEXT = ' ' * LINE_FROM = '000' * LINE_TO = '999' object = 'Datafeed'(071) * SEND_IF_ONE = ' ' * SHOW_LINNO = 'X' * BATCH_LIST_TYPE = 'J' importing corrections_wanted = corrections_wanted exceptions inconsistent_range = 1 no_messages = 2 others = 3.

TB_DATAFEED_SHOW_MARKET_DATA call function 'TB_DATAFEED_SHOW_MARKET_DATA' exporting flg_datafeed = true alv_variant = alv_variant reprep_id = alv_reprep_id tables market_data = sap_vtb_market.

TB_DATAFEED_START_WORKFLOW call function 'TB_DATAFEED_START_WORKFLOW' exporting i_timestamp = timestamp tables t_vtb_market = sap_vtb_market.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RFTBDF04 or its description.