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

RFTBAB00 SAP ABAP Report - Treasury: Accrual/Deferral of Expenses and Revenues







RFTBAB00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program makes accruals/deferrals of expenses and revenues resulting from Treasury deals, i...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFTBAB00 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

TBB4 - 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 RFTBAB00. "Basic submit
SUBMIT RFTBAB00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFTBAB00 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: P_DDOCU = Document date
Selection Text: P_DPOST = Postg date of accrual/deferral
Selection Text: P_DREVE = Posting date of reset
Selection Text: P_DSTICH = Key date
Selection Text: P_ERRS = Reduced log
Selection Text: P_HOR = Time Horizon By End of Term
Selection Text: P_KURST = D .
Selection Text: P_OPVAL = D .
Selection Text: P_RELEAS = D .
Selection Text: P_SINCL = Inclusive
Selection Text: P_SPOST = Post immediately
Selection Text: P_STEST = Test run
Selection Text: P_SULT = Month-end
Selection Text: P_TI = D .
Selection Text: P_TM = D .
Selection Text: P_TX = D .
Selection Text: S_BUKRS = D .
Selection Text: S_DATE = Date
Selection Text: S_FACNR = D .
Selection Text: S_KONTRH = D .
Selection Text: S_NORD = D .
Selection Text: S_RFHA = D .
Selection Text: S_RMAID = D .
Selection Text: S_RPORTB = D .
Selection Text: S_SAKTIV = D .
Selection Text: S_SANLF = D .
Selection Text: S_SFHAAR = D .
Selection Text: S_SGSART = D .
Selection Text: S_USER = User
Selection Text: S_WGSCHF = Currency
Selection Text: S_ZUONR = D .
Selection Text: P_CRATE = Translate Using Key Date Price
Selection Text: P_ALLVAL = D .
Title: Treasury: Accrual/Deferral of Expenses and Revenues
Text Symbol: B01 = Application
Text Symbol: CLA = |Due date FTyp D P Flow type Amount Crcy Calc.from M Calc.to M Days Calc.method
Text Symbol: CLB = Doc. no. Post.date
Text Symbol: COM = General selections





Text Symbol: CON = Control
Text Symbol: DDO = Doc. date
Text Symbol: DPO = Postg date of accrual/deferral
Text Symbol: DRE = Posting date of reset
Text Symbol: DST = Key date
Text Symbol: H01 = Time Horizon By End of Term
Text Symbol: HOR = Accrue/Defer Transactions X Years After Their End of Term
Text Symbol: PAM = Accrual/deferral log: Messages
Text Symbol: PAN = Logs and Messages
Text Symbol: PAP = Accrual/deferral log
Text Symbol: PAT = Accrual/deferral log: Test run
Text Symbol: PPM = Posting log: Messages
Text Symbol: PPP = Posting log
Text Symbol: PPT = Posting log: Test run
Text Symbol: RB1 = Post Operative Only
Text Symbol: RB2 = Post All Valuation Areas
Text Symbol: SIN = Inclusive
Text Symbol: SUL = Month-end
Text Symbol: SUM = Total
Text Symbol: T01 = Transaction
Text Symbol: T02 = Flow
Text Symbol: UPD = Entered/Last Changed by
Text Symbol: XDO = instead of current date
Text Symbol: XPO = instead of key date
Text Symbol: XRE = instead of day after posting


INCLUDES used within this REPORT RFTBAB00

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:

TPM_TRG_OBSOLETE_TRANSACTIONS CALL FUNCTION 'TPM_TRG_OBSOLETE_TRANSACTIONS' EXPORTING im_old_transaction = 'TBB4' im_new_transaction = 'TPM44'.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'SELECTION' EXCEPTIONS OTHERS = 0.

TB_POSTING_MESSAGE_STORE CALL FUNCTION 'TB_POSTING_MESSAGE_STORE' EXPORTING deal = lwa_vtbfha flg_deal = xtrue msgid = '69' msgno = '483' msgty = 'I' msgv1 = lwa_vtbfha-bukrs msgv2 = lwa_vtbfha-rfha TABLES msgpost = i_msgaccr.

TB_POSTING_MESSAGE_STORE CALL FUNCTION 'TB_POSTING_MESSAGE_STORE' EXPORTING deal = lwa_vtbfha flg_deal = xtrue msgid = '69' msgno = '483' msgty = 'S' msgv1 = lwa_vtbfha-bukrs msgv2 = lwa_vtbfha-rfha TABLES msgpost = i_msgaccr.

TB_POSTING_MESSAGE_STORE CALL FUNCTION 'TB_POSTING_MESSAGE_STORE' EXPORTING deal = lwa_vtbfha flg_deal = xtrue msgid = 'FTR0' msgno = '203' msgty = 'E' msgv1 = lwa_vtbfha-bukrs msgv2 = lwa_vtbfha-rfha TABLES msgpost = i_msgaccr.

TM_ACTIVITY_CHAIN_GET_IDS





CALL FUNCTION 'TM_ACTIVITY_CHAIN_GET_IDS' EXPORTING bukrs = lwa_vtbfha-bukrs rfha = lwa_vtbfha-rfha rfhazul = lwa_vtbfha-rfhazul TABLES t_rfhazu = l_tab_fhazu_chain EXCEPTIONS OTHERS = 1.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'WORK' EXCEPTIONS OTHERS = 0.

TRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'TRCA_COMPANYCODE_GETDETAIL' EXPORTING companycode = trca_company-companycode IMPORTING companyname = trca_company-companyname currency = trca_company-currency chart_accounts = trca_company-chrt_accts EXCEPTIONS OTHERS = 1.

TB_PROGRESS_INDICATOR CALL FUNCTION 'TB_PROGRESS_INDICATOR' EXPORTING id = 'OUTPUT' EXCEPTIONS OTHERS = 0.

ENQUEUE_E_VTBFHA CALL FUNCTION 'ENQUEUE_E_VTBFHA' EXPORTING bukrs = fha-bukrs rfha = fha-rfha EXCEPTIONS foreign_lock = 01 system_failure = 02.

TB_POSTING_MESSAGE_STORE CALL FUNCTION 'TB_POSTING_MESSAGE_STORE' EXPORTING deal = fha flg_deal = xtrue flow = vtbfhapo msgid = 'T0' msgno = '901' msgty = 'E' msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 TABLES msgpost = i_msgaccr.

TB_POSTING_MESSAGE_STORE CALL FUNCTION 'TB_POSTING_MESSAGE_STORE' EXPORTING deal = fha flg_deal = xtrue flow = vtbfhapo msgid = 'T0' msgno = '902' msgty = 'E' msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 TABLES msgpost = i_msgaccr.

TB_ACCRUAL_DEFERRAL_FOR_DEAL CALL FUNCTION 'TB_ACCRUAL_DEFERRAL_FOR_DEAL' EXPORTING currency_local = trca_company-currency date_accr_defr = p_dstich date_accr_defr_inclusive = hlp_sincl date_accr_defr_last_of_month = p_sult date_posting = p_dpost date_posting_reversal = p_dreve deal = fha flg_test = p_stest type_of_rate = p_kurst flg_use_current_rate = p_crate notice_date = l_notice_date IMPORTING flg_error = flg_error TABLES flows = fhapo_abz flows_accr_defr_new = fhapo_new flows_accr_defr_old = fhapo_abg flow_accr_defr_custom = i_at19 messages = i_msgaccr.

TB_TRANSACTIONS_UPDATE CALL FUNCTION 'TB_TRANSACTIONS_UPDATE' TABLES a_fhapo = fhapo_old n_fhapo = fhapo_new.

TB_TRANSACTIONS_UPDATE_ONLY CALL FUNCTION 'TB_TRANSACTIONS_UPDATE_ONLY' IN UPDATE TASK TABLES fhapo = fhapo_new.

DEQUEUE_E_VTBFHA CALL FUNCTION 'DEQUEUE_E_VTBFHA' EXPORTING bukrs = fha-bukrs rfha = fha-rfha.

TB_FI_DOCUMENTS_CREATE CALL FUNCTION 'TB_FI_DOCUMENTS_CREATE' EXPORTING chart_of_accounts = trca_company-chrt_accts control_data = vtbposting deal = fha local_currency = trca_company-currency iref_badi_tax = g_iref_badi_tax iref_badi_statrep = g_iref_badi_statrep TABLES activities = i_fhazu flows = t_fhapo messages = i_msgpost posting_details = i_ikofi EXCEPTIONS error_activities = 01 error_flows = 02.

TB_DEAL_FIX_POST CALL FUNCTION 'TB_DEAL_FIX_POST' EXPORTING control_data = vtbposting deal = fha local_currency = trca_company-currency protocol_handler = protocol IMPORTING error_flg = c_flg_error TABLES activities = i_fhazu flows = t_fhapo messages = i_nachricht.

TB_POSTING_DEAL_INFO_WRITE CALL FUNCTION 'TB_POSTING_DEAL_INFO_WRITE' EXPORTING companycode = fha-bukrs deal = fha-rfha dealtype = fha-sfhaart producttype = fha-sgsart.

TB_DOMAINVALUE_GET_TEXT CALL FUNCTION 'TB_DOMAINVALUE_GET_TEXT' EXPORTING name = 'SZBMETH' value = vtbfhapo-szbmeth IMPORTING text = hlp_xzbmeth.

TB_POSTING_DEAL_INFO_WRITE CALL FUNCTION 'TB_POSTING_DEAL_INFO_WRITE' EXPORTING companycode = i_fhapo-bukrs deal = i_fhapo-rfha dealtype = i_fhapo-sfhaart producttype = i_fhapo-sgsart.

TB_POSTING_DEAL_INFO_WRITE CALL FUNCTION 'TB_POSTING_DEAL_INFO_WRITE' EXPORTING companycode = i_fhapo-bukrs deal = i_fhapo-rfha dealtype = i_fhapo-sfhaart producttype = i_fhapo-sgsart.

TB_POSTING_FLOW_INFO_WRITE CALL FUNCTION 'TB_POSTING_FLOW_INFO_WRITE' EXPORTING flow = vtbfhapo posting_details = i_ikofi.

TB_POSTING_DEAL_INFO_WRITE CALL FUNCTION 'TB_POSTING_DEAL_INFO_WRITE' EXPORTING companycode = i_msgpost-bukrs deal = i_msgpost-rfha dealtype = i_msgpost-sfhaart producttype = i_msgpost-sgsart.

TB_POSTING_DEAL_INFO_WRITE CALL FUNCTION 'TB_POSTING_DEAL_INFO_WRITE' EXPORTING companycode = i_msgpost-bukrs deal = i_msgpost-rfha dealtype = i_msgpost-sfhaart producttype = i_msgpost-sgsart.




TB_POSTING_MESSAGE_WRITE CALL FUNCTION 'TB_POSTING_MESSAGE_WRITE' EXPORTING msgpost = i_msgpost IMPORTING msgpost_text = msgpost_text.

TRCA_BATCH_HEADING call function 'TRCA_BATCH_HEADING' exporting i_bhdgd = bhdgd.

TB_POSTING_COLUMN_HEADER_WRITE CALL FUNCTION 'TB_POSTING_COLUMN_HEADER_WRITE' EXPORTING class = '1' EXCEPTIONS class = 01.

TRCA_BATCH_HEADING call function 'TRCA_BATCH_HEADING' exporting i_bhdgd = bhdgd.

TB_POSTING_COLUMN_HEADER_WRITE CALL FUNCTION 'TB_POSTING_COLUMN_HEADER_WRITE' EXPORTING class = '2' EXCEPTIONS class = 01.

TRCA_BATCH_HEADING call function 'TRCA_BATCH_HEADING' exporting i_bhdgd = bhdgd.

TRCA_BATCH_HEADING call function 'TRCA_BATCH_HEADING' exporting i_bhdgd = bhdgd.

TB_POSTING_COLUMN_HEADER_WRITE CALL FUNCTION 'TB_POSTING_COLUMN_HEADER_WRITE' EXPORTING class = '2' EXCEPTIONS class = 01.

TRCA_FI_DOCUMENT_DISPLAY CALL FUNCTION 'TRCA_FI_DOCUMENT_DISPLAY' EXPORTING companycode = hide_data-bukrs document = hide_data-belnr year = hide_data-gjahr * OBJ_TYPE = * OBJ_KEY = * OBJ_SYS = EXCEPTIONS not_found = 1 OTHERS = 2 .

TB_MESSAGE_SHOW_HELPSCREEN CALL FUNCTION 'TB_MESSAGE_SHOW_HELPSCREEN' EXPORTING langu = sy-langu msgid = hide_data-msgid msgno = hide_data-msgno msgv1 = hide_data-msgv1 msgv2 = hide_data-msgv2 msgv3 = hide_data-msgv3 msgv4 = hide_data-msgv4 text = hide_data-text title = titel.

DEALDATA_READ CALL FUNCTION 'DEALDATA_READ' EXPORTING all_conditions_and_positions = xtrue companycode = fha-bukrs currently_active_status = xtrue dealno = fha-rfha via_statuspointer = xtrue IMPORTING deal = vtbfha status = vtbfhazu TABLES conditions = i_finko positions = i_fhapo EXCEPTIONS OTHERS = 01.

TM_CASHFLOW_CONSTRUCT_NOTICE CALL FUNCTION 'TM_CASHFLOW_CONSTRUCT_NOTICE' EXPORTING cut_off_date = hlp_cut_off_date fha = vtbfha fhazu = vtbfhazu reversal = xfalse TABLES fhapo_in = i_fhapo fhapo_out = f_fhapo finko = i_finko.

TB_ACCDEF_TRD_TRANS_CREATE CALL FUNCTION 'TB_ACCDEF_TRD_TRANS_CREATE' EXPORTING im_transaction = u_transaction im_document_date = u_document_date im_flag_test = u_test im_auto_post = u_auto_post im_protocol = u_protocol im_flg_all_val_areas = vtbposting-sall_val_areas im_type_of_rate = vtbposting-kurstyp im_sfhazu = s_fhazu IMPORTING ex_flag_error = c_flg_error ex_tab_messages = l_tab_messages CHANGING ch_tab_flow = l_tab_flows_accdef EXCEPTIONS OTHERS = 1.

FTR_GDPDU_CHECK_OVERLAP CALL FUNCTION 'FTR_GDPDU_CHECK_OVERLAP' EXPORTING im_application = 'TR-TM' im_company_code = pi_bukrs im_user = sy-uname im_program = sy-cprog im_start_date = pi_dblfz im_end_date = pi_delfz IMPORTING ex_flg_tax_auditor = l_tax_auditor EXCEPTIONS no_authority = 1 wrong_input = 2 OTHERS = 3.



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