RM_SWAP_BP 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 RM_SWAP_BP into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
RMMDGSBP - Forex Swap Basis Points Generator
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_YLY = Yearly
Selection Text: P_TR = Test Run
Selection Text: P_TOCURR = To Currency
Selection Text: P_QTR = Quarterly
Selection Text: P_MON = Monthly
Selection Text: P_HYR = Half-Yearly
Selection Text: P_FRCURR = From Currency
Selection Text: P_EVAL = Evaluation Type
Selection Text: P_ERT = Exchange Rate Type
Selection Text: P_DEF = Default
Selection Text: P_CAL = Calender
Selection Text: DATE = Simulation Period
Title: Forex Swap Basis Points Generator
Text Symbol: YLY = Yearly
Text Symbol: TST = Test Run
Text Symbol: QTR = Quarterly
Text Symbol: MTH = Monthly
Text Symbol: HLF = Half-Yearly
Text Symbol: DFT = Default
Text Symbol: 005 = N
Text Symbol: 004 = Y
Text Symbol: 003 = Test run flag unchecked. Do you want to proceed?
Text Symbol: 002 = Grid Point Options
Text Symbol: 001 = Currencies
INCLUDE RM_SBP_DATA_DECL.
No SAP DATABASE tables are accessed within this REPORT code!
TRMAN_CHECK_SWITCH * CALL FUNCTION 'TRMAN_CHECK_SWITCH' * EXPORTING * i_switch_nam = 'FTRMA_SFWS_SC_C01S01_HI_DC' * IMPORTING * e_switch_val = sw_status * EXCEPTIONS * switch_not_found = 1 * OTHERS = 2.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXCEPTIONS log_not_active = 1 wrong_identification = 2 OTHERS = 3.
TV_INIT_READ_ATSYC CALL FUNCTION 'TV_INIT_READ_ATSYC' EXPORTING auswt = p_eval IMPORTING w_atsyc = h_atsyc EXCEPTIONS evalid_not_found = 1 OTHERS = 2.
RM_INITIALIZE_BUFFER CALL FUNCTION 'RM_INITIALIZE_BUFFER' EXPORTING aktdatum = date-low auswt = p_eval i_atsyc = h_atsyc mittel = 'X'.
RM_MARKET_DATA_SPOT * CALL FUNCTION 'RM_MARKET_DATA_SPOT' * EXPORTING * aktdatum = date-low * konddatum = date-low * horizont = date-low * waehrung1 = p_frcurr * waehrung2 = p_tocurr * IMPORTING * spot = spotfxrate * EXCEPTIONS * error_interpolation = 1 * not_f_szenario = 2 * not_f_waers = 3 * no_initialization = 4 * error_szverl = 5 * OTHERS = 6.
ISB_ZUSPROT_INITIALIZE CALL FUNCTION 'ISB_ZUSPROT_INITIALIZE' EXPORTING level = 1 EXCEPTIONS OTHERS = 1.
RM_PROT_MSEG CALL FUNCTION 'RM_PROT_MSEG' EXPORTING zkart_g = h_atsyc-bcurvem zkart_b = h_atsyc-bcurvem kurst_g = p_ert kurst_b = p_ert EXCEPTIONS OTHERS = 1.
READ_EXCHANGE_RATE CALL FUNCTION 'READ_EXCHANGE_RATE' EXPORTING date = date-low foreign_currency = p_frcurr local_currency = p_tocurr type_of_rate = p_ert IMPORTING exchange_rate = spotfxrate EXCEPTIONS no_rate_found = 1 no_factors_found = 2 no_spread_found = 3 derived_2_times = 4 overflow = 5 zero_rate = 6 OTHERS = 7.
TV_PROT_CURR CALL FUNCTION 'TV_PROT_CURR' EXPORTING I_VTVSZCURR = szcurr_dat.
TV_PROT_TEXT CALL FUNCTION 'TV_PROT_TEXT' EXPORTING LEVEL = '1' lines = 0 text1 = 'Swap Rates Calculation'.
RM_MARKET_DATA_YIELDS CALL FUNCTION 'RM_MARKET_DATA_YIELDS' EXPORTING aktdatum = date-low konddatum = date-low horizont = date-low zinsdatum = wa_grid_date-griddate szkart = h_atsyc-bcurvem wgkm = p_frcurr IMPORTING * w_jbd11 = w_jbd11 " function will behave differently if requested w_jbd11_f = zk_line EXCEPTIONS invalid_dates = 1 curve_not_defined = 2 curve_not_filled = 3 no_sequence = 4 OTHERS = 5.
RM_MARKET_DATA_YIELDS CALL FUNCTION 'RM_MARKET_DATA_YIELDS' EXPORTING aktdatum = date-low konddatum = date-low horizont = date-low zinsdatum = wa_grid_date-griddate szkart = h_atsyc-bcurvem wgkm = p_tocurr IMPORTING * w_jbd11 = w_jbd11 " function will behave differently if requested w_jbd11_f = zk_line EXCEPTIONS invalid_dates = 1 curve_not_defined = 2 curve_not_filled = 3 no_sequence = 4 OTHERS = 5.
TV_PROT_INSERT CALL FUNCTION 'TV_PROT_INSERT' TABLES APP_PROT_ITAB = prot_itab.
FIMA_DATE_CREATE_WITH_CALENDAR CALL FUNCTION 'FIMA_DATE_CREATE_WITH_CALENDAR' EXPORTING i_date = temp_start_date i_months = sy-index i_flg_calendar_year = '' IMPORTING e_date = wa_grid_date-griddate TABLES icalid = it_calid.
FIMA_DATE_CREATE_WITH_CALENDAR CALL FUNCTION 'FIMA_DATE_CREATE_WITH_CALENDAR' EXPORTING i_date = temp_start_date i_months = count1 i_flg_calendar_year = '' IMPORTING e_date = wa_grid_date-griddate TABLES icalid = it_calid.
FIMA_DATE_CREATE_WITH_CALENDAR CALL FUNCTION 'FIMA_DATE_CREATE_WITH_CALENDAR' EXPORTING i_date = temp_start_date i_months = count1 i_flg_calendar_year = '' IMPORTING e_date = wa_grid_date-griddate TABLES icalid = it_calid.
FIMA_DATE_CREATE_WITH_CALENDAR CALL FUNCTION 'FIMA_DATE_CREATE_WITH_CALENDAR' EXPORTING i_date = temp_start_date i_months = sy-index i_flg_calendar_year = '' IMPORTING e_date = wa_grid_date-griddate TABLES icalid = it_calid.
FIMA_DATE_CREATE_WITH_CALENDAR CALL FUNCTION 'FIMA_DATE_CREATE_WITH_CALENDAR' EXPORTING i_date = temp_start_date i_months = count1 i_flg_calendar_year = '' IMPORTING e_date = wa_grid_date-griddate TABLES icalid = it_calid.
FIMA_DATE_CREATE_WITH_CALENDAR
CALL FUNCTION 'FIMA_DATE_CREATE_WITH_CALENDAR' EXPORTING i_date = temp_start_date i_months = count1 i_flg_calendar_year = '' IMPORTING e_date = wa_grid_date-griddate TABLES icalid = it_calid.
FIMA_DATE_CREATE_WITH_CALENDAR CALL FUNCTION 'FIMA_DATE_CREATE_WITH_CALENDAR' EXPORTING i_date = temp_start_date i_months = count1 i_flg_calendar_year = '' IMPORTING e_date = wa_grid_date-griddate TABLES icalid = it_calid.
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 RM_SWAP_BP or its description.
RM_SWAP_BP - Forex Swap Basis Points Generator RM_SWAP_BP - Forex Swap Basis Points Generator RM_SPECIFICATION_SAMPLE_DATA - Creation of Test Data for Specification RM_SPECIFICATION_SAMPLE_DATA - Creation of Test Data for Specification RM_SPECIFICATION_SAMPLE02 - RMSPECIFICATIONSAMPLE02 RM_SPECIFICATION_SAMPLE01 - RMSPECIFICATIONSAMPLE01