SAP Reports / Programs

RFTBBS00 SAP ABAP Report - Treasury: Reverse Posting Documents







RFTBBS00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program reverses financial accounting documents relating to flows which are to be reversed...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 RFTBBS00 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

TBB2 - Reverse postings
TBB2_OP_ONLY - Reverse postings


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 RFTBBS00. "Basic submit
SUBMIT RFTBBS00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFTBBS00 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: S_SGSART = D Product type
Selection Text: S_SFHAAR = D Transaction type
Selection Text: S_RPORTB = D Portfolio
Selection Text: S_RFHA = D Transaction
Selection Text: S_BUKRS = D Company code
Selection Text: P_TX = D Foreign exchange
Selection Text: P_TS = D Securities
Selection Text: P_TM = D Money market
Selection Text: P_TI = D Derivatives
Selection Text: P_TEST = D Test run
Selection Text: P_STGRD = FI reversal reason
Selection Text: P_MONAT = D Posting period
Selection Text: P_BUDAT = D Posting date
Title: Treasury: Reverse Posting Documents
Text Symbol: T02 = Flow
Text Symbol: T01 = Transaction
Text Symbol: S01 = Application
Text Symbol: HF2 = |Pmnt date FTyp D P Flow type Doc.no. Year Error message
Text Symbol: HF1 = Error log
Text Symbol: HB3 = Posting log: test run
Text Symbol: HB1 = Posting log
Text Symbol: CTR = Posting control
Text Symbol: C01 = General selections


INCLUDES used within this REPORT RFTBBS00

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 = transaktion im_new_transaction = 'TPM10' .

TB_PROGRESS_INDICATOR call function 'TB_PROGRESS_INDICATOR' exporting id = 'SELECTION' exceptions others = 0.

TB_PROGRESS_INDICATOR call function 'TB_PROGRESS_INDICATOR' exporting id = 'WORK' exceptions others = 0.

ENQUEUE_E_VTBFHA call function 'ENQUEUE_E_VTBFHA' exporting bukrs = i_fha-bukrs rfha = i_fha-rfha exceptions foreign_lock = 01 system_failure = 02.

TB_DEAL_AUTHORITY_CHECK call function 'TB_DEAL_AUTHORITY_CHECK' exporting bukrs = vtbfha-bukrs sgsart = vtbfha-sgsart sfhaart = vtbfha-sfhaart rportb = vtbfha-rportb rldepo = vtbfha-rldepo tbegru = vtbfha-tbegru trfct = c_trfct actvt = h_actvt exceptions others = 1.

TB_POSTING_MESSAGE_STORE call function 'TB_POSTING_MESSAGE_STORE' exporting deal = vtbfha flg_deal = xtrue flow = vtbfhapo msgid = sy-msgid msgno = sy-msgno msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 tables msgpost = i_nachricht.

TB_POSTING_MESSAGE_STORE call function 'TB_POSTING_MESSAGE_STORE' exporting deal = vtbfha 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_nachricht.

TB_POSTING_MESSAGE_STORE call function 'TB_POSTING_MESSAGE_STORE' exporting deal = vtbfha 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_nachricht.

TB_POSTING_MESSAGE_STORE call function 'TB_POSTING_MESSAGE_STORE' exporting deal = vtbfha flg_deal = xtrue flow = vtbfhapo msgid = 'TPM_TRAC1' msgno = '653' msgty = 'E' msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 tables msgpost = i_nachricht.

TB_PROGRESS_INDICATOR call function 'TB_PROGRESS_INDICATOR' exporting id = 'OUTPUT' exceptions others = 0.

TB_POSTING_MESSAGE_STORE * call function 'TB_POSTING_MESSAGE_STORE' * exporting * deal = vtbfha * flg_deal = xfalse * flow = i_fhapo * msgid = 'TPM_TRAC1' * msgno = '653' * msgty = 'E' * msgv1 = sy-msgv1 * msgv2 = sy-msgv2 * msgv3 = sy-msgv3 * msgv4 = sy-msgv4 * tables * msgpost = i_nachricht.

TB_TRANSACTIONS_UPDATE_ONLY call function 'TB_TRANSACTIONS_UPDATE_ONLY' in update task tables fhapo = i_fhapo.

DEQUEUE_E_VTBFHA * call function 'DEQUEUE_E_VTBFHA' * exporting * bukrs = i_fhapo-bukrs * rfha = i_fhapo-rfha.

TB_POSTING_MESSAGE_STORE call function 'TB_POSTING_MESSAGE_STORE' exporting deal = vtbfha flg_deal = xfalse flow = i_fhapo msgid = 'TPM_TRAC1' msgno = '653' msgty = 'E' msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 tables msgpost = i_nachricht.

TB_POSTING_DEAL_INFO_WRITE call function 'TB_POSTING_DEAL_INFO_WRITE' exporting companycode = bwg-bukrs deal = bwg-rfha dealtype = geschaeftsart producttype = produktart.

TB_POSTING_DEAL_INFO_WRITE call function 'TB_POSTING_DEAL_INFO_WRITE' exporting companycode = bwg-bukrs deal = bwg-rfha dealtype = geschaeftsart producttype = produktart.

TB_POSTING_FLOW_INFO_WRITE call function 'TB_POSTING_FLOW_INFO_WRITE' exporting flow = bwg.

TB_POSTING_FLOW_INFO_WRITE call function 'TB_POSTING_FLOW_INFO_WRITE' exporting flow = bwg.

TB_FI_DOCUMENT_REVERSE





call function 'TB_FI_DOCUMENT_REVERSE' exporting companycode = bwg-bukrs document = bwg-belnr document2 = bwg-belnr2 year = bwg-gjahr obj_key = bwg-awkey date_of_reversal = p_budat period_of_reversal = p_monat reason_for_reversal = p_stgrd flow_in = bwg simulation = simulation exceptions error = 1.

TB_POSTING_MESSAGE_STORE call function 'TB_POSTING_MESSAGE_STORE' exporting deal = vtbfha flg_deal = xfalse flow = i_fhapo msgid = sy-msgid msgno = sy-msgno msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 tables msgpost = i_nachricht.

TB_PAYMENT_REQUEST_REVERSE call function 'TB_PAYMENT_REQUEST_REVERSE' exporting i_keyno = bwg-prkey * i_dialog = xtrue i_dialog = xfalse
i_stgrd = p_stgrd i_stdat = p_budat exceptions others = 1.

TB_PAYMENT_REQUEST_REV_CHECK call function 'TB_PAYMENT_REQUEST_REV_CHECK' exporting i_keyno = bwg-prkey i_stgrd = p_stgrd i_stdat = p_budat exceptions others = 1.

TB_POSTING_MESSAGE_STORE call function 'TB_POSTING_MESSAGE_STORE' exporting deal = vtbfha flg_deal = xfalse flow = i_fhapo msgid = sy-msgid msgno = sy-msgno msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 tables msgpost = i_nachricht.

TB_POSTING_DEAL_INFO_WRITE call function 'TB_POSTING_DEAL_INFO_WRITE' exporting companycode = i_nachricht-bukrs deal = i_nachricht-rfha dealtype = i_nachricht-sfhaart producttype = i_nachricht-sgsart.

TB_POSTING_DEAL_INFO_WRITE call function 'TB_POSTING_DEAL_INFO_WRITE' exporting companycode = i_nachricht-bukrs deal = i_nachricht-rfha dealtype = i_nachricht-sfhaart producttype = i_nachricht-sgsart.

TB_MESSAGE_BUILD_TEXT call function 'TB_MESSAGE_BUILD_TEXT' exporting langu = sy-langu msgid = i_nachricht-msgid msgno = i_nachricht-msgno msgv1 = i_nachricht-msgv1 msgv2 = i_nachricht-msgv2 msgv3 = i_nachricht-msgv3 msgv4 = i_nachricht-msgv4 importing text = nachricht_text.

TB_POSTING_COLUMN_HEADER_WRITE call function 'TB_POSTING_COLUMN_HEADER_WRITE' exporting class = '3' exceptions class = 01.

TRCA_FI_DOCUMENT_DISPLAY call function 'TRCA_FI_DOCUMENT_DISPLAY' exporting companycode = hide_bereich-bukrs document = hide_bereich-belnr year = hide_bereich-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_bereich-msgid msgno = hide_bereich-msgno msgv1 = hide_bereich-msgv1 msgv2 = hide_bereich-msgv2 msgv3 = hide_bereich-msgv3 msgv4 = hide_bereich-msgv4 text = hide_bereich-text title = titel.



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