RFTVBW50 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter RFTVBW50 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
TV50 - Save OTC NPVs
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: P_AKTU = Evaluation as at
Selection Text: P_ANZWR = Evaluation Currency
Selection Text: P_AUSWT = Evaluation Type
Selection Text: P_BUKRS = Company Code
Selection Text: P_BWART = NPV Type
Selection Text: P_CLEAN = Determine Clean Price
Selection Text: P_ENDOPT = Include Options on Exerc. Date
Selection Text: P_INTRI = Determine Intrinsic Value
Selection Text: P_JDARL = Loans
Selection Text: P_TESTL = Test run
Selection Text: P_UPDT = Overwrite Existing Values
Selection Text: P_VARI = Start with Variant
Selection Text: P_XHOR = Cash Flow at Horizon Included
Selection Text: S_BILK = Balance sheet indicator
Selection Text: S_DEALER = Trader
Selection Text: S_DELFZ = End of Term
Selection Text: S_GLZB = Asset Group
Selection Text: S_PARTN = Partner
Selection Text: S_RANLVD = Contract Number
Selection Text: S_RFHA = Financial Transaction
Selection Text: S_RPORTB = Portfolio
Selection Text: S_SANLF = Product Category
Selection Text: S_SBWHR = Transaction Currency
Selection Text: S_SFHAAR = Financial Transaction Type
Selection Text: S_SGSART = Product Type
Selection Text: S_TILGAR = Repayment Type
Selection Text: FLG_MM = Money Market
Selection Text: FLG_FX = Foreign Exchange
Selection Text: FLG_DE = Derivatives
Title: RM: Data Stored from Mark-to-Market Valuation of Financial Trans.
Text Symbol: 001 = VTyp
Text Symbol: 002 = Trans./ID no.
Text Symbol: 005 = Bas/Str/Cp
Text Symbol: 022 = Valuation Date
Text Symbol: 023 = CoCd
Text Symbol: 024 = Company Code
Text Symbol: 025 = Eval. Currency
Text Symbol: 030 = Default Calc. Parameters
INCLUDE RFTVSKTO.
INCLUDE RFTVALV0.
No SAP DATABASE tables are accessed within this REPORT code!
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = sy-uzeit.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.
TV_INIT_READ_ATSYC CALL FUNCTION 'TV_INIT_READ_ATSYC' EXPORTING auswt = p_auswt EXCEPTIONS evalid_not_found = 1 OTHERS = 2.
RM_OTC_PRICETYPE_READ CALL FUNCTION 'RM_OTC_PRICETYPE_READ' EXPORTING okuart = p_bwart EXCEPTIONS pricetype_not_found = 1 OTHERS = 2.
RM_SL_DEALS_SELECT CALL FUNCTION 'RM_SL_DEALS_SELECT' EXPORTING date = p_aktu "#EC DOM_EQUAL devisen = flg_fx derivate = flg_de geldhandel = flg_mm darlehen = p_jdarl p_bukrs = p_bukrs i_flg_options_at_end = p_endopt TABLES s_rportb = s_rportb s_sanlf = s_sanlf s_delfz = s_delfz s_partnr = s_partn s_sfhaar = s_sfhaar s_rfha = s_rfha s_ranlvd = s_ranlvd s_dealer = s_dealer s_sgsart = s_sgsart s_sbwhr = s_sbwhr s_bilk = s_bilk s_glzb = s_glzb s_tilgar = s_tilgar i_best = i_vzbest i_beweg = i_vzbeweg i_opti = i_vzopti i_u_beweg = iu_vzbeweg.
TV_PROT_INITIALIZE CALL FUNCTION 'TV_PROT_INITIALIZE'.
TV_PROT_REPORT CALL FUNCTION 'TV_PROT_REPORT' EXPORTING date = p_aktu hori = p_aktu eval = p_auswt curr = p_anzwr.
MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = h_mesg_einzel.
TV_READ_OTC_PRICETABLE CALL FUNCTION 'TV_READ_OTC_PRICETABLE' EXPORTING rantyp =
-rantyp_r bukrs = -bukrs rfha = -rfha ranlvd = -ranl okuart = p_bwart databs = p_aktu max_backdate = p_aktu "DS 010699 * importing * e_vtvbar = h_vtvbar EXCEPTIONS price_not_found = 1 OTHERS = 2.
TB_DATAFEED_MODIFY_VTVBAR CALL FUNCTION 'TB_DATAFEED_MODIFY_VTVBAR' TABLES mod_vtvbar = int_vtvbar EXCEPTIONS empty_table = 1 foreign_lock = 2 system_failure = 3 OTHERS = 4.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'STATUS_SET' i_callback_user_command = 'USER_COMMAND_BW50' is_layout = s_layout it_fieldcat = t_fieldcat_double it_events = t_events is_print = i_print i_buffer_active = ' ' "note 318150 TABLES t_outtab = double_deals.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'STATUS_SET' i_callback_user_command = 'USER_COMMAND_BW50' is_layout = s_layout it_fieldcat = t_fieldcat_double it_events = t_events is_print = i_print i_buffer_active = ' ' "note 318150 TABLES t_outtab = wrong_deals.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_buffer_active = ' ' i_callback_program = g_repid i_callback_pf_status_set = 'STATUS_SET_BW50' i_callback_user_command = 'USER_COMMAND_BW50' is_layout = s_layout it_fieldcat = t_fieldcat * it_excluding = it_excluding it_special_groups = gt_sp_group i_save = g_save is_variant = g_variant it_events = t_events is_print = i_print TABLES t_outtab = i_result EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'STATUS_SET' i_callback_user_command = 'USER_COMMAND_BW50' is_layout = s_layout it_fieldcat = t_fieldcat_double i_buffer_active = ' ' it_events = t_events TABLES t_outtab = double_deals.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'STATUS_SET' i_callback_user_command = 'USER_COMMAND_BW50' is_layout = s_layout it_fieldcat = t_fieldcat_double i_buffer_active = ' ' it_events = t_events TABLES t_outtab = wrong_deals.
MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING corrections_option = ' ' object = ' ' send_if_one = ' ' show_linno = 'X' EXCEPTIONS inconsistent_range = 01 no_messages = 02.
TV_PRINT_DATA_FROM_BUFFER CALL FUNCTION 'TV_PRINT_DATA_FROM_BUFFER' .
DEALDATA_READ CALL FUNCTION 'DEALDATA_READ' EXPORTING companycode = i_result-bukrs currently_active_status = 'X' dealno = i_result-rfha IMPORTING status = status EXCEPTIONS deal_not_found = 1 status_not_found = 2 OTHERS = 3.
TB_TRANSACTION_CALL CALL FUNCTION 'TB_TRANSACTION_CALL' EXPORTING activitytype = status-sfgzustt companycode = i_result-bukrs dealno = i_result-rfha dealtype = i_result-sfgtyp producttype = i_result-sanlf transactiontype = '1' EXCEPTIONS transaction = 1 transactiontype = 2 OTHERS = 3.
TV_PROT_WINDOW CALL FUNCTION 'TV_PROT_WINDOW' EXCEPTIONS OTHERS = 0.
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 RFTVBW50 or its description.
RFTVBW50 - RM: Data Stored from Mark-to-Market Valuation of Financial Trans. RFTVBW50 - RM: Data Stored from Mark-to-Market Valuation of Financial Trans. RFTVBW29 - Price Calculation for Securities (Bonds) RFTVBW29 - Price Calculation for Securities (Bonds) RFTVBW11 - Matrix Evaluation Financial Transactions RFTVBW11 - Matrix Evaluation Financial Transactions