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

RFTBCO04_TR SAP ABAP INCLUDE - FORM Routines







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


Text pool values


Title: FORM Routines


INCLUDES used within this REPORT RFTBCO04_TR

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 = 'SELECTION' exceptions others = 0.

TB_CORR_CUSTOMIZING_READ call function 'TB_CORR_CUSTOMIZING_READ' exporting automatic = ' ' cortyp = p_cortyp bukrs = i_key_tab-bukrs sgsart = i_key_tab-sgsart sfhaart = i_key_tab-sfhaart sfgzustt = i_key_tab-sfgzustt sfunktl = i_key_tab-sfunktl sfunktv = i_key_tab-sfunktv tables i_at80 = h_at80 i_at81 = h_at81 exceptions others = 1.

TB_CORR_CHECK call function 'TB_CORR_CHECK' exporting cortyp = h_at80-cortyp flg_extern_check = xtrue exceptions cortyp = 1 cortyp_not_external = 2.

TB_CORR_ALLOCATION_DETERMIN call function 'TB_CORR_ALLOCATION_DETERMIN' exporting companycode = i_key_tab-bukrs cortyp = p_cortyp counterparty = i_key_tab-kontrh sfhaart = i_key_tab-sfhaart sgsart = i_key_tab-sgsart i_zgp = xtrue importing corr_allocation = vtbsta2 exceptions allocation_not_found = 1 sfhaart_not_found = 2 sgsart_not_found = 3 others = 4.

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

FTR_CORRESPONDENCE_UPDATE_PREP call function 'FTR_CORRESPONDENCE_UPDATE_PREP' exporting i_uname = sy-uname i_datum = gbl_sav_dat i_uzeit = gbl_sav_tim tables new_kores = n_vtbkores old_kores = o_vtbkores.

FTR_CORRESPONDENCE_UPDATE call function 'FTR_CORRESPONDENCE_UPDATE' tables new_kores = n_vtbkores old_kores = o_vtbkores.

TB_CHANGEDOCUMENT_CREATE call function 'TB_CHANGEDOCUMENT_CREATE' exporting bukrs = i_key_tab-bukrs rfha = i_key_tab-rfha tables n_kores = n_vtbkores o_kores = o_vtbkores.

TB_CORR_CUSTOMIZING_READ call function 'TB_CORR_CUSTOMIZING_READ' exporting automatic = ' ' cortyp = cortyp bukrs = l_vtbfha-bukrs sgsart = l_vtbfha-sgsart sfhaart = l_vtbfha-sfhaart sfgzustt = l_vtbfhazu-sfgzustt sfunktl = l_vtbfhazu-sfunktl sfunktv = l_vtbfhazu-sfunktv tables i_at80 = i_at80 i_at81 = i_at81 exceptions error = 1.

TB_CORRESPONDENSE_READ call function 'TB_CORRESPONDENSE_READ' exporting companycode = l_vtbfha-bukrs dealnumber = l_vtbfha-rfha tables correspondense = o_vtbkores.

TB_CORR_ALLOCATION_DETERMIN call function 'TB_CORR_ALLOCATION_DETERMIN' exporting companycode = l_vtbfha-bukrs cortyp = i_at80-cortyp counterparty = l_vtbfha-kontrh sfhaart = l_vtbfha-sfhaart sgsart = l_vtbfha-sgsart i_zgp = xtrue importing corr_allocation = vtbsta2 exceptions others = 4.

TB_CORR_EXISTENCE_CHECK call function 'TB_CORR_EXISTENCE_CHECK' exporting cortyp = i_at80-cortyp i_vtbfhazu = l_vtbfhazu corr_medium_i = selection_controls-medium importing * VTBKORES_ENTRY = SAV_VTBKORES_ENTRY "global save corr_exists = corr_exist_flg.

TB_MESSAGE_BUILD_TEXT call function 'TB_MESSAGE_BUILD_TEXT' exporting msgid = exp_err_enqueue_tab-msgid msgno = exp_err_enqueue_tab-msgno msgv1 = exp_err_enqueue_tab-msgv1 msgv2 = exp_err_enqueue_tab-msgv2 msgv3 = exp_err_enqueue_tab-msgv3 msgv4 = exp_err_enqueue_tab-msgv4 importing text = l_text.

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting titlebar = 'Korrespondenzplansätze anlegen?'(120) diagnose_object = 'F_TR_CORR_MODIFY_VTBKORES_PL' text_question = 'Wollen Sie fortfahren?'(121) importing answer = p_answer exceptions text_not_found = 1 others = 2.



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