SAP Reports / Programs

R_TREA_NPV_FOR_EA_TRANSACTIONS SAP ABAP Report - Calculate NPVs of External Account Transactions







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

TREA_EVAL - Calculate Key Figure for Ext. Acct


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 R_TREA_NPV_FOR_EA_TRANSACTIONS. "Basic submit
SUBMIT R_TREA_NPV_FOR_EA_TRANSACTIONS AND RETURN. "Return to original report after report execution complete
SUBMIT R_TREA_NPV_FOR_EA_TRANSACTIONS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


NPV Calculation for External Account Transactions
Selection Text: P_TEST = Test Run
Selection Text: P_SBAL = Display Application Log
Selection Text: P_EA = D .
Selection Text: P_DATE = D .
Selection Text: P_CURR = D .
Selection Text: P_CORR = Correction Run
Selection Text: P_BUKRS = D .
Selection Text: P_ALV = Display Calc. NPV Amts in ALV
Title: Calculate NPVs of External Account Transactions
Text Symbol: 033 = Not authorized to change &1 &2
Text Symbol: 031 = Error when writing messages
Text Symbol: 024 = Calculation completed
Text Symbol: 023 = Application log creation ended with error for &1 &2
Text Symbol: 021 = Application log creation ended with error
Text Symbol: 020 = No currency for external account &1
Text Symbol: 015 = Internal error occurred for &1 &2
Text Symbol: 014 = No evaluation type found for external account &1 &2
Text Symbol: 013 = No currency found for external account &1 &2
Text Symbol: 012 = Product category is not supported
Text Symbol: 011 = Internal error
Text Symbol: 010 = Processing error
Text Symbol: 009 = Selection error
Text Symbol: 008 = Incomplete input
Text Symbol: 007 = Error when displaying ALV grid
Text Symbol: 006 = Error when saving to TREAT_KEY_FIGURE
Text Symbol: 005 = Error when calculating key figures for &1; error: &2
Text Symbol: 004 = Error when reading deal details for &1
Text Symbol: 003 = Options
Text Symbol: 002 = General Data
Text Symbol: 001 = NPV Calculation for External Account Transactions


INCLUDES used within this REPORT R_TREA_NPV_FOR_EA_TRANSACTIONS

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:

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_t_log_handle = lt_log_handle IMPORTING e_new_lognumbers = lt_lognumber EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_bal_header IMPORTING e_log_handle = me->mv_loghndl EXCEPTIONS log_header_inconsistent = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = me->mv_loghndl i_s_msg = is_message IMPORTING e_msg_was_logged = lv_msg_logged EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3.

RM_STANDARD_KEYFIGURES_1_FO CALL FUNCTION 'RM_STANDARD_KEYFIGURES_1_FO' EXPORTING i_objnr = ls_fha-objnr i_auswt = iv_eval_type i_calcccy = iv_currency i_keydate = iv_date i_tab_method = lt_method i_flag_npv_protocol = iv_discounted i_flag_no_sensitivity = 'X' IMPORTING e_results = rs_result et_errors = lt_error et_prot = ls_mra_protocol-protocol_tab EXCEPTIONS productcat_not_supported = 1 incomplete_input = 2 selection_error = 3 processing_error = 4 OTHERS = 5.

TPM_TREA_SHOW_KEY_FIGURE CALL FUNCTION 'TPM_TREA_SHOW_KEY_FIGURE' EXPORTING it_external_accounts = lt_ext_acc_key_figure it_assigned_deals = lt_deal_key_figure it_mra_protocol = lt_mra_protocol.



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