SAP Reports / Programs | Financials | Financial Supply Chain Management | Treasury and Risk Management(FIN-FSCM-TRM) SAP FIN

R_TREA_SHOW_POSITIONS SAP ABAP Report - External Account Positions







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

TREA_SHOW_POSITIONS - External Account Positions


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_SHOW_POSITIONS. "Basic submit
SUBMIT R_TREA_SHOW_POSITIONS AND RETURN. "Return to original report after report execution complete
SUBMIT R_TREA_SHOW_POSITIONS 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: 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


INCLUDES used within this REPORT R_TREA_SHOW_POSITIONS

INCLUDE R_TREA_I_SEL.


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:

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.



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