SAP Reports / Programs

RFPM_AMORTIZED_COST SAP ABAP Report - Securities: Execute Amortization







RFPM_AMORTIZED_COST 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 RFPM_AMORTIZED_COST 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

FWAA - Execute Amortization


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 RFPM_AMORTIZED_COST. "Basic submit
SUBMIT RFPM_AMORTIZED_COST AND RETURN. "Return to original report after report execution complete
SUBMIT RFPM_AMORTIZED_COST 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: S_RLDEPO = D Securities account
Selection Text: S_REFKO = D Account assignment reference
Selection Text: S_RANL = D ID number
Selection Text: S_GSART = D Product type
Selection Text: S_BUKRS = D Company code
Selection Text: P_SIMKZ = D Test run
Selection Text: P_PERIOD = D Posting period
Selection Text: P_DEPGRP = Add sec. accounts to groups
Selection Text: P_DBUDAT = D Posting date
Selection Text: P_DBLDAT = D Document date
Selection Text: P_DATUM = D Key date
Title: Securities: Execute Amortization
Text Symbol: 104 = Neg. amort. LC
Text Symbol: 103 = Neg. amort. PC
Text Symbol: 102 = Pos. amort. LC
Text Symbol: 101 = Pos. amort. PC
Text Symbol: 030 = Cash flow
Text Symbol: 029 = Display messages
Text Symbol: 027 = Errors have occurred in securities account groups marked in red
Text Symbol: 026 = Amount
Text Symbol: 024 = Nominal amount
Text Symbol: 022 = PC
Text Symbol: 021 = New book value
Text Symbol: 020 = Old book value
Text Symbol: 019 = Amort. rate
Text Symbol: 018 = Position management procedure
Text Symbol: 017 = Amortization
Text Symbol: 016 = List of amortization flows
Text Symbol: 015 = Sec.acct group
Text Symbol: 014 = New book price
Text Symbol: 013 = LC
Text Symbol: 010 = Test run
Text Symbol: 009 = Key date of amortization
Text Symbol: 008 = Amortized positions
Text Symbol: 005 = Securities: Execute amortization
Text Symbol: 003 = Posting control
Text Symbol: 002 = Amortization parameters
Text Symbol: 001 = General selections





INCLUDES used within this REPORT RFPM_AMORTIZED_COST

INCLUDE ACTOP.


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:

TPM_TRG_OBSOLETE_TRANSACTIONS CALL FUNCTION 'TPM_TRG_OBSOLETE_TRANSACTIONS' EXPORTING im_old_transaction = sy-tcode im_new_transaction = 'TPM1' im_new_report = 'RTPM_TRL_VALUATION'.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'SELECTION'.

MASTER_DATA_READ_SEC CALL FUNCTION 'MASTER_DATA_READ_SEC' EXPORTING i_ranl = wrk_depot-ranl IMPORTING e_vwpanla = wrk_vwpanla.

DEPOT_GROUPS_CHECK CALL FUNCTION 'DEPOT_GROUPS_CHECK' EXPORTING i_flag_add = p_depgrp IMPORTING e_tab_messages = l_tab_messages e_errorflag = g_error_flag CHANGING c_tab_bukrs_ranl_rldepo = g_tab_depot.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = g_wrk_profile.

TRANSACTIONS_SEC_LOAD_I_VIEW CALL FUNCTION 'TRANSACTIONS_SEC_LOAD_I_VIEW' EXPORTING bukrs = wrk_depot-bukrs ranl = wrk_depot-ranl rldepo = wrk_depot-rldepo type_of_selection = 'A' " append lines to table * FLAG_PLAN = ' ' flag_no_storno = 'X' TABLES tvwbevi = g_tab_vwbevi.

TRANSACTIONS_SEC_LOAD_P CALL FUNCTION 'TRANSACTIONS_SEC_LOAD_P' EXPORTING bukrs = wrk_depot-bukrs * FLAG_NO_PLAN_REF_IST = ' ' ranl = wrk_depot-ranl rldepo = wrk_depot-rldepo type_of_selection = 'A' TABLES tvwbepp = g_tab_vwbepp.

ACCUMULATION_INIT CALL FUNCTION 'ACCUMULATION_INIT'.

ACCUMULATION_ADD CALL FUNCTION 'ACCUMULATION_ADD' EXPORTING rldepo = wrk_vzzbepp-rldepo vbepp = wrk_vzzbepp.

ACCUMULATION_RESULT CALL FUNCTION 'ACCUMULATION_RESULT' IMPORTING reval = wrk_reval.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING percentage = g_percent id = 'WORK'.

MASTER_DATA_READ_SEC CALL FUNCTION 'MASTER_DATA_READ_SEC' EXPORTING i_ranl = wrk_group_neval-ranl IMPORTING e_vwpanla = wrk_vwpanla.

POSITION_INDICATOR_SECACC_READ CALL FUNCTION 'POSITION_INDICATOR_SECACC_READ' EXPORTING i_bukrs = wrk_group_neval-bukrs i_ranl = wrk_group_neval-ranl i_rldepo = wrk_depot_group-rldepo IMPORTING e_vwpdepo = wrk_vwpdepo.

EVALUATION_PARA_DETERMINE CALL FUNCTION 'EVALUATION_PARA_DETERMINE' EXPORTING bukrs = wrk_group_neval-bukrs ranl = wrk_group_neval-ranl * REVALUATION_RANGE = '01' rldepo = wrk_depot_group-rldepo * X_EBENE = 'D' * BYPASSING_BUFFER = ' ' IMPORTING revaluation_amorticed_cost = l_srevac revaluation_class = l_srevcls * REVALUATION_GROUP = * REVALUATION_GROUP_ID = * REVALUATION_PRINCIPLE = revaluation_type = l_srevtyp portfolio = l_flag_portfolio.

SECURITIES_ACCOUNT_READ_SEC CALL FUNCTION 'SECURITIES_ACCOUNT_READ_SEC' EXPORTING i_bukrs = wrk_group_neval-bukrs i_rldepo = wrk_depot_group-rldepo IMPORTING e_twd01 = l_wrk_twd01.

PAL_FIND_DERIV_CAT CALL FUNCTION 'PAL_FIND_DERIV_CAT' EXPORTING i_bukrs = wrk_group_neval-bukrs i_sanlf = wrk_vwpanla-sanlf i_gsart = wrk_vwpanla-gsart i_srevtyp = l_srevtyp i_srevac = l_srevac i_srevcls = l_srevcls i_portfolio = l_wrk_twd01-rportb IMPORTING e_deriv_cat = wrk_group_neval-deriv_cat EXCEPTIONS not_found = 1 OTHERS = 1.

ACCUMULATION_INIT CALL FUNCTION 'ACCUMULATION_INIT'.

ACCUMULATION_ADD CALL FUNCTION 'ACCUMULATION_ADD' EXPORTING rldepo = wrk_depot-rldepo vbepp = wrk_vzzbepp.






ACCUMULATION_RESULT CALL FUNCTION 'ACCUMULATION_RESULT' IMPORTING reval = wrk_reval.

TB_PROT_INIT CALL FUNCTION 'TB_PROT_INIT' EXPORTING i_flg_simulation = p_simkz i_application_name = sy-title.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING percentage = g_percent id = 'WORK'.

FWPO_TRANSACTIONS_GET CALL FUNCTION 'FWPO_TRANSACTIONS_GET' EXPORTING i_bukrs = wrk_group-bukrs i_post_transactions = l_tab_ac_actual * I_CHANGED_ACTUAL_TRANSACTIONS = i_new_plan_transactions = l_tab_ac_plan * I_DELETE_PLAN_TRANSACTIONS = * I_STORNO_TRANSACTIONS = i_old_plan_transactions = l_tab_vwbepp i_old_actual_transactions = l_tab_vwbevi * I_OLD_BEKI = EXCEPTIONS i_bukrs_initial = 1 import_tables_empty = 2 storno_and_post_transactions = 3 error_changed_actual_trans = 5 OTHERS = 6.

FWPO_TRANSACTIONS_CALCULATE CALL FUNCTION 'FWPO_TRANSACTIONS_CALCULATE' * IMPORTING * E_NEW_CASH_FLOW = EXCEPTIONS function_group_not_initialized = 1 error_loading_master_data = 2 error_calculating_cash_flow = 3 OTHERS = 4 .

FWPO_TRANSACTIONS_POST CALL FUNCTION 'FWPO_TRANSACTIONS_POST' EXPORTING i_budat = p_dbudat i_bldat = p_dbldat i_period = p_period i_sevalpost_ranl_list = l_ran_ranl * I_EXTERNAL_PRIMANOTA = ' ' * I_EXTERNAL_BUDAT_FOR_PAB = ' ' i_simulation = p_simkz * I_REVERSAL = ' ' * I_REVERSAL_TYPE = 1 * I_REVERSAL_REASON = * I_FI_REVERSAL_REASON = i_tcode = con_tcode i_bus_trans_detail = wrk_bus_trans_detail * IMPORTING * E_NEW_BEKI = * E_NEW_BEPI = * E_NUMBER_FI_POSTINGS = EXCEPTIONS function_group_not_initialized = 1 error_updating_i_transactions = 2 error_updating_p_transactions = 3 error_beki_not_found = 4 error_no_storno_sign = 5 error_authority_check = 6 error_storno_and_external_prim = 7 error_accounting_interface = 8 fi_reversal_reason_initial = 9 error_changed_actual_trans = 10 OTHERS = 11 .

TR_SE_ACC_PROT_SET_ROLLBACK CALL FUNCTION 'TR_SE_ACC_PROT_SET_ROLLBACK'.

TR_SE_ACC_PROT_SET_COMMIT CALL FUNCTION 'TR_SE_ACC_PROT_SET_COMMIT'.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'OUTPUT'.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = g_wrk_profile.

TB_PROT_DISPLAY_BATCH CALL FUNCTION 'TB_PROT_DISPLAY_BATCH'.



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 RFPM_AMORTIZED_COST or its description.