SAP Reports / Programs | Financials | Financial Supply Chain Management | Transfer to Financial Accounting(FIN-FSCM-TRM-TM-AC) SAP FIN

RTPM_TRL_SHOW_POSITION_OLDF01 SAP ABAP INCLUDE - Include RTPM_TRL_SHOW_POSITION_VALF01







RTPM_TRL_SHOW_POSITION_OLDF01 is a standard ABAP INCLUDE 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 RTPM_TRL_SHOW_POSITION_OLDF01 into the relevant SAP transactions such as SE38 or SE80


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


Text pool values


Title: Include RTPM_TRL_SHOW_POSITION_VALF01


INCLUDES used within this REPORT RTPM_TRL_SHOW_POSITION_OLDF01

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:

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

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_buffer_active = ' ' i_callback_program = l_repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_callback_top_of_page = 'PRINT_TOP' is_layout = l_wrk_layout it_fieldcat = l_tab_fieldcat i_save = 'A' is_variant = l_wrk_variant IMPORTING e_exit_caused_by_caller = c_refresh TABLES t_outtab = u_tab_position_value.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = l_tab_commentary.

TRCA_BATCH_HEADING CALL FUNCTION 'TRCA_BATCH_HEADING' EXPORTING i_bhdgd = l_bhdgd i_flg_non_alv = l_flg_non_alv.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'TB_XKONTRH' langu = sy-langu IMPORTING dd04v_wa = l_wrk_dd04v EXCEPTIONS illegal_input = 1 OTHERS = 2.

TPM_TRG_SHOW_ACCOUNTS_OF_GROUP CALL FUNCTION 'TPM_TRG_SHOW_ACCOUNTS_OF_GROUP' EXPORTING im_account_group = l_wrk_position_value-account_group im_company_code = l_wrk_position_value-company_code.

TPM_TRG_POS_MAN_PROC_DISPLAY CALL FUNCTION 'TPM_TRG_POS_MAN_PROC_DISPLAY' EXPORTING im_pos_man_proc = l_wrk_position_value-pos_man_proc EXCEPTIONS pos_man_proc_invalid = 1 OTHERS = 2.

TPM_TRG_POS_MAN_PROC_DISPLAY CALL FUNCTION 'TPM_TRG_POS_MAN_PROC_DISPLAY' EXPORTING im_pos_man_proc = l_wrk_position_value-pos_man_proc EXCEPTIONS pos_man_proc_invalid = 1 OTHERS = 2.

HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = 'TX' dokname = 'TPM_COMP_DOKU' doktitle = text-087 "Bestandskomponenten TABLES links = l_dummy.

TB_DEAL_AUTHORITY_CHECK CALL FUNCTION 'TB_DEAL_AUTHORITY_CHECK' EXPORTING bukrs = l_wrk_diff_values-company_code sgsart = l_wrk_diff_values-product_type trfct = 'P3' actvt = '03' EXCEPTIONS authority = 1 OTHERS = 2.

FTI_LDB_GET_POSDEAL_ATTRIBUTES CALL FUNCTION 'FTI_LDB_GET_POSDEAL_ATTRIBUTES' EXPORTING i_bukrs = l_wrk_diff_values-company_code i_rfha = l_wrk_diff_values-deal_number i_stichtag = u_date IMPORTING e_deal_attr = l_wa_attr_deal EXCEPTIONS incomplete_input = 1 no_product_category_found = 2 OTHERS = 3.

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

TPM_TRQ_GET_LOT_ATTR_ALL CALL FUNCTION 'TPM_TRQ_GET_LOT_ATTR_ALL' EXPORTING im_lot_id = l_wrk_diff_values-lot_id IMPORTING ex_lot_attr = l_str_lot_details EXCEPTIONS no_data_found = 1 OTHERS = 99.

DEALDATA_READ CALL FUNCTION 'DEALDATA_READ' EXPORTING companycode = l_wrk_position_value-company_code dealno = l_wrk_position_value-deal_number currently_active_status = tpmco_xtrue IMPORTING deal = l_wrk_vtbfha status = l_wrk_vtbfhazu EXCEPTIONS OTHERS = 1.

FTR_TRANSACTIONTYPE_GET_TEXT CALL FUNCTION 'FTR_TRANSACTIONTYPE_GET_TEXT' EXPORTING i_sgsart = l_wrk_position_value-gsart i_sfhaart = l_wrk_position_value-sfhaart i_langu = sy-langu IMPORTING e_xfhaart = l_wrk_position_value-sfhaart_t.

PORTFOLIO_READ_SEC CALL FUNCTION 'PORTFOLIO_READ_SEC' EXPORTING i_company_code = l_wrk_position_value-company_code i_portfolio = l_wrk_position_value-portfolio_tm IMPORTING e_twpob = l_str_twpob EXCEPTIONS entry_not_found = 1 i_company_code_initial = 2 i_portfolio_initial = 3 OTHERS = 4.

MASTER_DATA_READ_SEC_BUFFERED CALL FUNCTION 'MASTER_DATA_READ_SEC_BUFFERED' EXPORTING i_ranl = l_wrk_position_value-security_id IMPORTING e_vwpanla = l_wrk_vwpanla.

SECURITY_LOAD * CALL FUNCTION 'SECURITY_LOAD' * EXPORTING * i_ranl = l_wrk_position_value-security_id * IMPORTING * e_anla = l_wrk_vwpanla.

FVD_DB_VDARL_GET_SNG





CALL FUNCTION 'FVD_DB_VDARL_GET_SNG' EXPORTING i_bukrs = l_wrk_position_value-company_code i_sarchiv = space i_ranl = l_wrk_position_value-loans_contract IMPORTING e_str_vdarl = l_wrk_vdarl.

PORTFOLIO_READ_SEC CALL FUNCTION 'PORTFOLIO_READ_SEC' EXPORTING i_company_code = l_wrk_position_value-company_code i_portfolio = l_wrk_position_value-portfolio IMPORTING e_twpob = l_str_twpob EXCEPTIONS entry_not_found = 1 i_company_code_initial = 2 i_portfolio_initial = 3 OTHERS = 4.

GET_DOMAENENTEXT CALL FUNCTION 'GET_DOMAENENTEXT' EXPORTING dname = 'TPM_FLAG_LONG_SHORT' dvalue = dvalue IMPORTING dtext = dtext EXCEPTIONS OTHERS = 2.

CALCULATE_EXCHANGE_RATE CALL FUNCTION 'CALCULATE_EXCHANGE_RATE' EXPORTING date = u_date foreign_amount = l_wrk_position_value-book_pos_amt foreign_currency = l_wrk_position_value-book_pos_curr local_amount = l_wrk_position_value-book_val_amt local_currency = l_wrk_position_value-book_val_curr IMPORTING exchange_rate = l_wrk_position_value-fx_book_exchange_rate EXCEPTIONS no_rate_computable = 1 no_rate_found = 2 rate_too_big = 3 no_factors_found = 4 no_spread_found = 5 derived_2_times = 6 overflow = 7 OTHERS = 8.

SECURITY_LOAD * (del) CALL FUNCTION 'SECURITY_LOAD' "Note633256 * (del) EXPORTING "Note633256 * (del) i_ranl = u_security_id "Note633256 * (del) IMPORTING "Note633256 * (del) e_anla = l_wrk_vwpanla "Note633256 * (del) e_akti = l_wrk_vwpakti "Note633256 * E_ANLE = * E_TERM = * E_DERI = * E_SKOKO = * E_ZKOKO = * E_BONO = * E_TWX2 = * E_ANAN = * E_KOPO = * E_KOPA = * E_VZGPO = * E_SKOKO_PERIODS = * E_SKOKO_PARTLY = * (del) EXCEPTIONS "Note633256 * (del) OTHERS = 6 "Note633256 * (del) . "Note633256

MASTER_DATA_READ_SEC_BUFFERED CALL FUNCTION 'MASTER_DATA_READ_SEC_BUFFERED' EXPORTING i_ranl = u_security_id IMPORTING e_vwpanla = l_wrk_vwpanla e_vwpakti = l_wrk_vwpakti EXCEPTIONS entry_not_found = 1 i_ranl_initial = 2 OTHERS = 3.

GET_DOMAENENTEXT CALL FUNCTION 'GET_DOMAENENTEXT' EXPORTING dname = 'SAKAR' dvalue = dvalue IMPORTING dtext = dtext EXCEPTIONS OTHERS = 2.

MASTER_DATA_READ_SEC_BUFFERED CALL FUNCTION 'MASTER_DATA_READ_SEC_BUFFERED' EXPORTING i_ranl = c_wrk_position_value-security_id IMPORTING e_vwpanla = l_wrk_vwpanla EXCEPTIONS OTHERS = 1.

FVD_DB_VDARL_GET_SNG CALL FUNCTION 'FVD_DB_VDARL_GET_SNG' EXPORTING i_bukrs = c_wrk_position_value-company_code i_sarchiv = space i_ranl = c_wrk_position_value-loans_contract IMPORTING e_str_vdarl = l_wrk_vdarl EXCEPTIONS OTHERS = 1.

PRODUCT_TYPE_READ_TEXT_SEC CALL FUNCTION 'PRODUCT_TYPE_READ_TEXT_SEC' EXPORTING i_gsart = c_wrk_position_value-gsart IMPORTING e_tzpat = l_wrk_tzpat EXCEPTIONS OTHERS = 3.

FVD_TRLE_TRLEDGER_GET_LOANDATA CALL FUNCTION 'FVD_TRLE_TRLEDGER_GET_LOANDATA' EXPORTING i_bukrs = c_wrk_position_value-company_code i_ranl = c_wrk_position_value-loans_contract i_dsetdate = u_date "#EC DOM_EQUAL IMPORTING e_delfz = c_wrk_position_value-mat_term_end e_dblfz = c_wrk_position_value-mat_term_begin EXCEPTIONS OTHERS = 1.

SECURITY_READ_EMBA CALL FUNCTION 'SECURITY_READ_EMBA' EXPORTING i_ranl = c_wrk_position_value-security_id i_date = u_date * I_CLEAR_BUFFER = ' ' IMPORTING e_debeg = c_wrk_position_value-mat_term_begin e_dendf = c_wrk_position_value-mat_term_end EXCEPTIONS OTHERS = 1.

FTI_LDB_GET_POSDEAL_ATTRIBUTES CALL FUNCTION 'FTI_LDB_GET_POSDEAL_ATTRIBUTES' EXPORTING i_bukrs = l_wrk_vtbfha-bukrs i_rfha = l_wrk_vtbfha-rfha i_stichtag = u_date IMPORTING e_deal_attr = l_deal_attr EXCEPTIONS incomplete_input = 1 no_product_category_found = 2 OTHERS = 3.

TPM_PIN_STOCK_EXCHANGE_READ CALL FUNCTION 'TPM_PIN_STOCK_EXCHANGE_READ' EXPORTING im_company_code = c_wrk_position_value-company_code im_security_id = c_wrk_position_value-security_id IMPORTING ex_stock_exchange = l_rhandpl.

MASTER_DATA_READ_SEC CALL FUNCTION 'MASTER_DATA_READ_SEC' EXPORTING i_ranl = c_wrk_position_value-security_id IMPORTING e_vwpanla = l_vwpanla EXCEPTIONS entry_not_found = 1 i_ranl_initial = 2 OTHERS = 3.

STOCK_RATE_SELECT CALL FUNCTION 'STOCK_RATE_SELECT' EXPORTING anlage_nummer = c_wrk_position_value-security_id * begin note 519817 handelsplatz = l_rhandpl * end note 519817 kursart = l_price_type "note 582558 kursdatum_ges = u_date vertragsart = l_contract_type "note 954197 IMPORTING kursart_gef = c_wrk_position_value-market_price_type kursdatum_gef = c_wrk_position_value-market_price_date kurs_abs_proz = l_rate waehrung = l_currency handelsplatz_gef = c_wrk_position_value-market_place * NOTIERUNG = * HANDELSPLATZ_ZUF = EXCEPTIONS no_record_found = 1 OTHERS = 2.

FVW8_GET_INDEX_FROM_SECURITY CALL FUNCTION 'FVW8_GET_INDEX_FROM_SECURITY' EXPORTING im_security_id = c_wrk_position_value-security_id IMPORTING pindex = pindex EXCEPTIONS exc_invalid_security_id = 1 exc_no_index_defined_4_sec_id = 2 exc_creation_of_index_error = 3 OTHERS = 4.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = u_date foreign_amount = c_wrk_position_value-market_value foreign_currency = c_wrk_position_value-market_curr local_currency = l_p_pos_curr type_of_rate = u_rate_type "note 569377 IMPORTING local_amount = c_wrk_position_value-market_value_pos EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = u_date foreign_amount = c_wrk_position_value-market_value_pos foreign_currency = c_wrk_position_value-market_curr_pos local_currency = l_p_val_curr type_of_rate = u_rate_type IMPORTING local_amount = c_wrk_position_value-market_value_val EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

TPM_TRG_GET_PROD_CAT_RANGES CALL FUNCTION 'TPM_TRG_GET_PROD_CAT_RANGES' IMPORTING ex_rng_prod_cat_sec = l_ran_pc_sec ex_rng_prod_cat_loa = l_ran_pc_loa ex_rng_prod_cat_pos = l_ran_pc_pos ex_rng_prod_cat_otc = l_ran_pc_otc.




TPM_TRG_GET_PROD_CAT_RANGES CALL FUNCTION 'TPM_TRG_GET_PROD_CAT_RANGES' IMPORTING ex_rng_prod_cat_sec = l_ran_pc_sec ex_rng_prod_cat_loa = l_ran_pc_loa.

TPM_TRL_VORAB_POSVAL CALL FUNCTION 'TPM_TRL_VORAB_POSVAL' EXPORTING im_ran_company_code = l_ran_bukrs im_ran_valuation_area = l_ran_varea im_ran_valuation_class = l_ran_vcls im_ran_security_id = l_ran_ranl im_ran_account_group = l_ran_acgrp im_ran_product_type = l_ran_pt im_ran_product_category = l_ran_pc_sec im_keydate = u_date IMPORTING ex_tab_vorab_posval = l_tab_posval_vorab.

TPM_TRL_VORAB_POSVAL CALL FUNCTION 'TPM_TRL_VORAB_POSVAL' EXPORTING im_ran_company_code = l_ran_bukrs im_ran_valuation_area = l_ran_varea im_ran_valuation_class = l_ran_vcls im_ran_loans_contract = l_ran_loanr im_ran_product_type = l_ran_pt im_ran_product_category = l_ran_pc_loa im_keydate = u_date IMPORTING ex_tab_vorab_posval = l_tab_posval2_vorab.

TPM_TRL_FLOW_PROTOCOL CALL FUNCTION 'TPM_TRL_FLOW_PROTOCOL' EXPORTING im_search_strategy = tpmco_search_db im_no_sec = l_no_sec im_no_loa = l_no_loa im_no_pos = l_no_pos im_no_dea = l_no_dea im_incl_deletable = l_wa_incl_deletable im_incl_reversed = l_wa_incl_reversed im_incl_to_reverse = l_wa_incl_to_reverse im_posting_data = l_wa_posting_data im_backup_reporting = g_flag_backup im_tab_otc_deals = l_tab_otc_deals TABLES im_range_val = l_range_val im_range_vcl = l_range_vcl im_range_tac = l_range_tac im_range_buk = l_range_com im_range_acc = l_range_acc im_range_sec = l_range_sec im_range_pfl = l_range_pfl im_range_grp = l_range_grp im_range_con = l_range_con im_range_pos = l_range_pos im_range_fls = l_range_fls im_range_sep = l_range_sec im_range_dat = l_range_dat im_range_lot = l_range_lot im_range_ltf = l_range_ltf im_range_post_date = l_range_post_date.

FWOS_CURRENCY_UNIT_READ CALL FUNCTION 'FWOS_CURRENCY_UNIT_READ' EXPORTING i_currency_unit = c_wrk_position_value-book_pos_curr IMPORTING e_currency_relation = l_currency_relation_pc * E_CURRENCY = EXCEPTIONS i_currency_unit_initial = 1 OTHERS = 2.

FWOS_CURRENCY_UNIT_READ CALL FUNCTION 'FWOS_CURRENCY_UNIT_READ' EXPORTING i_currency_unit = c_wrk_position_value-book_val_curr IMPORTING e_currency_relation = l_currency_relation_vc * E_CURRENCY = EXCEPTIONS i_currency_unit_initial = 1 OTHERS = 2.

GET_DOMAENENTEXT CALL FUNCTION 'GET_DOMAENENTEXT' EXPORTING dname = 'SNOTI' dvalue = dvalue IMPORTING dtext = dtext EXCEPTIONS OTHERS = 2.

TPM_TRG_VALUES_DISPLAY CALL FUNCTION 'TPM_TRG_VALUES_DISPLAY' EXPORTING im_diff = l_diff im_diff_text = l_diff_text im_value = l_value EXCEPTIONS OTHERS = 1.

TPM_TRF_MASTER_DATA_READ_OF_BF CALL FUNCTION 'TPM_TRF_MASTER_DATA_READ_OF_BF' EXPORTING i_class_id = u_security_id IMPORTING e_master_data_of = l_master_data_of EXCEPTIONS OTHERS = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TRLTS_PMCAT_T' CHANGING ct_fieldcat = l_tab_fieldcat.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TRLT_FLOW' CHANGING ct_fieldcat = l_tab_fieldcat.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TPMS_ACCU_FLOW' CHANGING ct_fieldcat = l_tab_fieldcat.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_str_variant-report i_callback_user_command = 'USER_COMMAND_ACCU' i_callback_pf_status_set = 'SET_PF_STATUS_ACCU' i_callback_html_end_of_list = 'END_OF_LIST_ACCU_RESULT' is_layout = l_str_layout it_fieldcat = l_tab_fieldcat i_save = 'A' is_variant = l_str_variant it_events = l_tab_event i_html_height_end = 55 TABLES t_outtab = g_tab_accu_flow_alv.

GET_GLOBALS_FROM_SLVC_FULLSCR CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' IMPORTING e_grid = l_grid.

GET_GLOBALS_FROM_SLVC_FULLSCR CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' IMPORTING e_grid = l_grid.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TRGTS_COMP_T' CHANGING ct_fieldcat = l_tab_fieldcat.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TPMS_VALUE' CHANGING ct_fieldcat = l_tab_fieldcat.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'STICHTAG' langu = sy-langu IMPORTING dd04v_wa = l_str_data_element EXCEPTIONS OTHERS = 1.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'TPM_POS_MAN_PROC' langu = sy-langu IMPORTING dd04v_wa = l_str_data_element EXCEPTIONS OTHERS = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'DIFS_DIFF_VALUES' CHANGING ct_fieldcat = l_tab_fieldcat.



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