R_TREA_SHOW_POSITIONS 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_SHOW_POSITIONS into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
TREA_SHOW_POSITIONS - External Account Positions
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: SO_OTCNR = Transaction
Selection Text: SO_EA = External Account
Selection Text: SO_BUKRS = Company Code
Selection Text: P_OPP = TREA - Operational Position
Selection Text: P_EA = Checkbox selection will change
Selection Text: P_DATE = Key Date
Selection Text: P_ASP = TREA - Assignment Position
Selection Text: PA_VAR = Layout
Selection Text: PA_TREE = Display as Tree
Selection Text: PA_NPV = Calculate NPV
Selection Text: PA_AUSWT = Evaluation Type
Title: External Account Positions
Text Symbol: PRD = Position Context
Text Symbol: OPP = Operative Position (OTC Transaction)
Text Symbol: NPV = Net Present Value
Text Symbol: LIS = List Display
Text Symbol: HD1 = Hierarchy
Text Symbol: FLW = Selection of Flows
Text Symbol: EAC = Clearing Account Position
Text Symbol: DEA = OTC Transaction
Text Symbol: CMN = General Selections
Text Symbol: ASP = Assignment Position
INCLUDE R_TREA_I_SEL.
No SAP DATABASE tables are accessed within this REPORT code!
TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'SELECTION'.
COMPANY_CODE_READ CALL FUNCTION 'COMPANY_CODE_READ' EXPORTING i_bukrs = ls_diff_val_ea-company_code IMPORTING e_t001 = ls_t001.
TRCA_DOMVALUE_GET_TEXT CALL FUNCTION 'TRCA_DOMVALUE_GET_TEXT' EXPORTING pi_domain_name = 'TPM_TREA_CONTEXT' pi_domain_value = lv_pos_context pi_language = sy-langu IMPORTING pe_domain_text = ls_pos_val-pos_context.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = mv_date foreign_amount =
-position_amt foreign_currency = -position_curr local_currency = -local_curr IMPORTING local_amount = -local_amt EXCEPTIONS no_rate_found = 1 OTHERS = 6.
RM_STANDARD_KEYFIGURES_1_FO * CALL FUNCTION 'RM_STANDARD_KEYFIGURES_1_FO' * EXPORTING * i_objnr = lv_objnr * i_auswt = pa_auswt "!'0001' * i_keydate = mv_date * IMPORTING * e_results = lv_result ** ET_ERRORS = ** ET_PROT = ** ET_RESULT = * EXCEPTIONS * OTHERS = 0.
TRCA_DOMVALUE_GET_TEXT CALL FUNCTION 'TRCA_DOMVALUE_GET_TEXT' EXPORTING pi_domain_name = 'TPM_TREA_CONTEXT' pi_domain_value = lv_pos_context pi_language = sy-langu IMPORTING pe_domain_text = ls_pos_val-pos_context.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = mv_date foreign_amount =
-position_amt foreign_currency = -position_curr local_currency = -local_curr IMPORTING local_amount = -local_amt EXCEPTIONS no_rate_found = 1 OTHERS = 6.
TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'OUTPUT'.
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input =
-deal_number IMPORTING output = lv_text.
TPM_TREA_FLOW_PROTOCOL CALL FUNCTION 'TPM_TREA_FLOW_PROTOCOL' EXPORTING iv_ext_acc_pos = lv_ea iv_operative_pos = space iv_assignment_pos = lv_asp it_rng_company_code = lt_rng_company_code it_rng_deal_number = lt_rng_deal it_rng_ext_account = lt_rng_ea it_rng_date = lt_rng_date it_rng_pay_curr = lt_rng_pay_curr iv_flg_fixed = tpmco_xtrue iv_flg_planned = tpmco_xtrue iv_flg_reversed = tpmco_xfalse iv_flg_signed_amounts = tpmco_xtrue.
TPM_TREA_FLOW_PROTOCOL CALL FUNCTION 'TPM_TREA_FLOW_PROTOCOL' EXPORTING iv_ext_acc_pos = lv_ea iv_operative_pos = space iv_assignment_pos = lv_asp it_rng_company_code = lt_rng_company_code it_rng_deal_number = lt_rng_deal it_rng_ext_account = lt_rng_ea it_rng_date = lt_rng_date it_rng_pay_curr = lt_rng_pay_curr iv_flg_fixed = tpmco_xtrue iv_flg_planned = tpmco_xtrue iv_flg_reversed = tpmco_xfalse iv_flg_signed_amounts = tpmco_xtrue.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
R_TREA_SHOW_POSITIONS - External Account Positions R_TREA_SHOW_POSITIONS - External Account Positions R_TREA_SHOW_FLOWS - External Account Position Flows R_TREA_SHOW_FLOWS - External Account Position Flows R_TREA_SELECT_BY_TRANS - Selection Program for transactions in TPMCCP R_TREA_SELECT_BY_TRANS - Selection Program for transactions in TPMCCP