RFTBDF06 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use program RFTBDF06 to transfer market data in datafeed notation to the SAP system...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 RFTBDF06 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
TBD5 - Datafeed: Import market data file
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.
Selection Text: PCUPLOAD = PC Upload
Selection Text: PAR_VAR = Layout
Selection Text: PAR_TST = Test Run
Selection Text: PAR_FDN = Name
Selection Text: PAR_DSP = Display Correct Market Data
Selection Text: PAR_DSOK = Display All Market Data
Selection Text: PAR_DSFL = Display Error Log
Selection Text: PAR_DSAL = Whole Results List
Selection Text: FILE = File Name
Title: Datafeed: Import External Market Data in Datafeed Notation
Text Symbol: 200 = No entry in translation table for &1 / &2 / &3
Text Symbol: 113 = No Errors
Text Symbol: 112 = Errors
Text Symbol: 111 = All
Text Symbol: 110 = Output List of Results
Text Symbol: 071 = Datafeed
Text Symbol: 013 = Output Control
Text Symbol: 011 = Datafeed Provider File to Be Imported
Text Symbol: 010 = Datafeed
Text Symbol: 002 = PC File
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = gc_fname * any parameters defined for that logical file name including_dir = 'X' IMPORTING file_name = file EXCEPTIONS others = 1.
MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE' exceptions others = 1.
TB_DATAFEED_GET_ACTIVE_FEED call function 'TB_DATAFEED_GET_ACTIVE_FEED' importing feedname = par_fdn 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.
DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = 'RFTBDF06' dynumb = '1000' translate_to_upper = 'X' tables dynpfields = dynpfields exceptions invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 others = 9.
WS_FILENAME_GET * call function 'WS_FILENAME_GET' * exporting * mask = ',*.*,*.*.'
GUI_FILE_LOAD_DIALOG CALL FUNCTION 'GUI_FILE_LOAD_DIALOG' EXPORTING WINDOW_TITLE = text-002 * DEFAULT_EXTENSION = * DEFAULT_FILE_NAME = * WITH_ENCODING = * FILE_FILTER = * INITIAL_DIRECTORY = IMPORTING FILENAME = tmp_filename_as_string * PATH = * FULLPATH = * USER_ACTION = * FILE_ENCODING = .
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.
GUI_UPLOAD call function 'GUI_UPLOAD' exporting filename = filestring filetype = 'ASC' tables data_tab = input_rec exceptions FILE_OPEN_ERROR = 1 FILE_READ_ERROR = 2 NO_BATCH = 3 GUI_REFUSE_FILETRANSFER = 4 INVALID_TYPE = 5 NO_AUTHORITY = 6 UNKNOWN_ERROR = 7 BAD_DATA_FORMAT = 8 HEADER_NOT_ALLOWED = 9 SEPARATOR_NOT_ALLOWED = 10 HEADER_TOO_LONG = 11 UNKNOWN_DP_ERROR = 12 ACCESS_DENIED = 13 DP_OUT_OF_MEMORY = 14 DISK_FULL = 15 DP_TIMEOUT = 16 OTHERS = 17.
AUTHORITY_CHECK_DATASET call function 'AUTHORITY_CHECK_DATASET' exporting activity = 'READ' filename = fileshort exceptions no_authority = 1 activity_unknown = 2 others = 3.
TB_DATAFEED_UNIXFILE_UPLOAD_2 call function 'TB_DATAFEED_UNIXFILE_UPLOAD_2' exporting file = file tables data_tab = input_rec exceptions no_file = 1 others = 2.
TB_DATAFEED_INPUT_CONVERT_2 call function 'TB_DATAFEED_INPUT_CONVERT_2' tables output_rec = df_answer input_rec = input_rec.
TB_DATAFEED_AUTHORITY_CHECKS call function 'TB_DATAFEED_AUTHORITY_CHECKS' tables sop_scl = sop_scl.
TB_DATAFEED_CHECK_CUSTOMIZING call function 'TB_DATAFEED_CHECK_CUSTOMIZING' tables sap_cust = sap_vtb_market error_sap_cust = error_sap_answer exceptions error_found = 1 others = 2.
MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = 'T2' msgty = 'I' txtnr = '510' zeile = zeile exceptions message_type_not_valid = 1 not_active = 2 others = 3.
TB_DATAFEED_R3TABLES_UPDATE call function 'TB_DATAFEED_R3TABLES_UPDATE' exporting filesource = 'X' message_collect = 'X' test_only = par_tst tables sap_answer = sap_vtb_market exceptions update_error = 01.
MESSAGES_STOP call function 'MESSAGES_STOP' exceptions a_message = 1 e_message = 2 i_message = 3 w_message = 4 others = 5.
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 = 'X' alv_variant = alv_variant reprep_id = alv_reprep_id tables market_data = sap_vtb_market.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname * any parameters defined for that logical file name CHANGING physical_filename = file EXCEPTIONS OTHERS = 1.
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 RFTBDF06 or its description.
RFTBDF06 - Datafeed: Import External Market Data in Datafeed Notation RFTBDF06 - Datafeed: Import External Market Data in Datafeed Notation RFTBDF05 - Datafeed: Import Security ID Numbers RFTBDF05 - Datafeed: Import Security ID Numbers RFTBDF04 - Datafeed: Request Historical Market Data RFTBDF04 - Datafeed: Request Historical Market Data