SAP Reports / Programs | Financials | Financial Supply Chain Management | Transaction Manager(FIN-FSCM-TRM-TM) SAP FIN

RTPM_ACCRUAL_DEFERRAL SAP ABAP Report - Execute Accrual/Deferral of Expenses and Revenues







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

TPM44 - Fin.Products Profit Accrual/Deferral


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_ACCRUAL_DEFERRAL. "Basic submit
SUBMIT RTPM_ACCRUAL_DEFERRAL AND RETURN. "Return to original report after report execution complete
SUBMIT RTPM_ACCRUAL_DEFERRAL 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_MAAGR = Master Agreement
Selection Text: SO_LOANR = Contract Number
Selection Text: SO_KONTR = Business Partner
Selection Text: SO_INREF = Internal Ref.
Selection Text: SO_GRANT = Grant
Selection Text: SO_FUND = Fund
Selection Text: SO_FLOWT = Update Type Income
Selection Text: SO_FLGSH = D .
Selection Text: SO_FINPR = Finance Project
Selection Text: SO_FCBKS = D .
Selection Text: SO_FAC = Facility
Selection Text: SO_CURR = D .
Selection Text: SO_CRCY = D .
Selection Text: SO_CHAR = Characteristics
Selection Text: SO_BUKRS = D .
Selection Text: SO_BUKRO = D .
Selection Text: SO_ASS = Assignment
Selection Text: SO_AKTIV = Active Status
Selection Text: SO_AC_RF = D .
Selection Text: SO_ACGRP = D .
Selection Text: SO_ACGRO = D .
Selection Text: P_VAR = Layout
Selection Text: P_ULTIMO = D .
Selection Text: SO_XREF = D .
Selection Text: SO_VORG = Activity Category
Selection Text: SO_VCLSO = D .
Selection Text: SO_VCLS = D .
Selection Text: SO_VAREO = D .
Selection Text: SO_VAREA = D .
Selection Text: SO_USER = D .
Selection Text: SO_UP_DT = D .
Selection Text: SO_TTYPE = Transaction Type
Selection Text: SO_TID = D .
Selection Text: SO_SECAC = D .
Selection Text: SO_SCACO = D .
Selection Text: SO_SANLF = D .
Selection Text: SO_RANLP = ID Number
Selection Text: SO_RANLO = D .





Selection Text: SO_RANL = D .
Selection Text: SO_PTO = D .
Selection Text: SO_PT = D .
Selection Text: SO_POTFO = D .
Selection Text: SO_POSAC = Futures Account
Selection Text: SO_PORTF = D .
Selection Text: SO_PFOTC = Portfolio
Selection Text: SO_OTCNR = D .
Selection Text: P_DEA = OTC Transactions
Selection Text: P_DOCDAT = FI Document Date
Selection Text: P_FIDATE = D .
Selection Text: P_FIPER = D .
Selection Text: P_INCLUD = D .
Selection Text: P_KEYDAT = D .
Selection Text: P_LOA = Loans
Selection Text: P_ONLY_F = D .
Selection Text: P_POS = Listed Options/Futures
Selection Text: P_POST = D .
Selection Text: P_RDATE = D .
Selection Text: P_RDOC = Reset FI Document Date
Selection Text: P_RELEAS = D .
Selection Text: P_RFIDAT = Reset FI Posting Date
Selection Text: P_RFIPER = Reset FI Posting Period
Selection Text: P_SEC = Securities
Selection Text: P_TEST = Test Run
Title: Execute Accrual/Deferral of Expenses and Revenues
Text Symbol: DRP = Reset FI Posting Date
Text Symbol: DRO = Reset FI Document Date
Text Symbol: DRE = Reset Key Date
Text Symbol: DPO = FI Posting Date
Text Symbol: DEA = OTC Transactions
Text Symbol: DDO = FI Document Date
Text Symbol: CMN = General Selections
Text Symbol: 106 = Post Immediately
Text Symbol: 105 = Test Run
Text Symbol: 104 = Month-End Indicator for Key Date
Text Symbol: 103 = Indicator for Including Key Date
Text Symbol: 102 = OTC Transaction; New subscreen has been added in the same screen
Text Symbol: 101 = Listed Options / Futures; New subscreen has been added in the same screen





Text Symbol: 100 = Securities; New subscreen has been added in the same screen
Text Symbol: GDD = MM, Forex, OTC Derivatives
Text Symbol: LOA = Loans
Text Symbol: OUT = Output Control
Text Symbol: POS = Listed Options/Futures
Text Symbol: PRC = processed
Text Symbol: PRD = Product Groups
Text Symbol: PRO = Specific Selections
Text Symbol: PST = Posting Control
Text Symbol: SEC = Securities
Text Symbol: SPC = Selection Parameters
Text Symbol: XDO = Instead of Current Date
Text Symbol: XPO = Instead of Key Date
Text Symbol: XRE = Instead of Day After Acc./Def. Key Date
Text Symbol: XRO = Instead of Day After Posting


INCLUDES used within this REPORT RTPM_ACCRUAL_DEFERRAL

INCLUDE RTPM_ACCRUAL_DEFERRAL_TOP.
INCLUDE RTPM_AD_VARIANT_SELECTION.


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_AD_SELECT_TRL_POSITIONS CALL FUNCTION 'TPM_AD_SELECT_TRL_POSITIONS' EXPORTING im_key_date = p_keydat im_flg_securities = p_sec im_flg_option_future = p_pos im_flg_deals = p_dea im_rngcompanycodes = so_bukrs[] im_rngvalareas = so_varea[] im_rngproducttypes = so_pt[] im_rngvalclasses = so_vcls[] im_rng_fund = so_fund[] im_rng_grant_nbr = so_grant[] im_rngsecurityids = so_ranl[] im_rngsecurityaccounts = so_secac[] im_rngaccountgroups = so_acgrp[] im_rngportfolios = so_portf[] im_rngsecuritypids = so_ranlp[] im_rngpositionaccounts = so_posac[] im_tab_bukrs_dealnumber = g_tab_sel_otc_deal im_rng_product_cats = so_sanlf[] im_rng_position_curr = so_curr[] im_rng_account_ref = so_ac_rf[] im_rng_changename = so_user[] im_rng_changedate = so_up_dt[] im_rng_transaction_curr = so_crcy[] im_rng_ext_ref = so_xref[] IMPORTING * ex_tab_position_guid = g_tab_positions.

TPM_TRG_READ_CUSTOMIZING CALL FUNCTION 'TPM_TRG_READ_CUSTOMIZING' EXPORTING im_application = '3' IMPORTING ex_wa_groupname = g_wa_groupname ex_wa_max_tasks = g_wa_max_tasks ex_tab_message = g_tab_message ex_flag_ad = g_flag_multi.

AUTHORITY_CHECK_RFC CALL FUNCTION 'AUTHORITY_CHECK_RFC' EXPORTING functiongroup = 'TPM_TRLI_AD' EXCEPTIONS user_dont_exist = 1 rfc_no_authority = 2 OTHERS = 3.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = g_wa_progress_percent text = g_wa_progress_text.

TPM_AD_ACCRUAL_DEFERRAL CALL FUNCTION 'TPM_AD_ACCRUAL_DEFERRAL' EXPORTING im_progr = p_progr im_keydat = p_keydat im_includ = p_includ im_ultimo = p_ultimo im_test = p_test im_fidate = p_fidate im_rdate = p_rdate im_rfidat = p_rfidat im_docdat = p_docdat im_fiper = p_fiper im_rdoc = p_rdoc im_rfiper = p_rfiper im_tab_flowt = so_flowt[] im_flg_post = p_post im_only_fixed_var_int = p_only_f im_tab_positions_guid = g_tab_position_pkg im_tcode = sy-tcode IMPORTING ex_tab_ph_message = g_tab_ph_message ex_tab_accp = g_tab_accp ex_tab_accr = g_tab_accr ex_flg_accrued = g_flag_accrued.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = g_wa_progress_percent text = g_wa_progress_text.

TPM_AD_ACCRUAL_DEFERRAL CALL FUNCTION 'TPM_AD_ACCRUAL_DEFERRAL' STARTING NEW TASK g_wa_taskname DESTINATION IN GROUP g_wa_groupname PERFORMING ad_receive_data_positions ON END OF TASK EXPORTING im_progr = p_progr im_keydat = p_keydat im_includ = p_includ im_ultimo = p_ultimo im_test = p_test im_fidate = p_fidate im_rdate = p_rdate im_rfidat = p_rfidat im_docdat = p_docdat im_fiper = p_fiper im_rdoc = p_rdoc im_rfiper = p_rfiper im_tab_flowt = so_flowt[] im_flg_post = p_post im_only_fixed_var_int = p_only_f im_tab_positions_guid = g_tab_position_pkg im_tcode = sy-tcode EXCEPTIONS import_not_sufficient = 1 communication_failure = 2 system_failure = 3 resource_failure = 4 OTHERS = 5.

SPBT_GET_PP_DESTINATION CALL FUNCTION 'SPBT_GET_PP_DESTINATION' IMPORTING rfcdest = g_wa_ad_info-servername EXCEPTIONS OTHERS = 1.



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