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

RFTBCO_ADJUST_SSTATUS SAP ABAP Report - Set SSTATUS Field in Old Data Records of Table VTBKORES







RFTBCO_ADJUST_SSTATUS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Adjustment of 'status-relevant' flag When you upgrade your system from a release < 4...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 RFTBCO_ADJUST_SSTATUS 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 RFTBCO_ADJUST_SSTATUS. "Basic submit
SUBMIT RFTBCO_ADJUST_SSTATUS AND RETURN. "Return to original report after report execution complete
SUBMIT RFTBCO_ADJUST_SSTATUS 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_TEST = Test run
Selection Text: P_BUKRS = D Company code
Selection Text: SOP_CTYP = Status-managing corresp. type
Selection Text: SOP_SGSA = D Product type
Selection Text: SOP_SANL = D Product category
Selection Text: SOP_RFHA = D Transaction
Selection Text: SOP_KONT = D Business partner
Selection Text: SOP_DATE = Date entered/changed
Title: Set SSTATUS Field in Old Data Records of Table VTBKORES
Text Symbol: 013 = Text
Text Symbol: 020 = Test run log
Text Symbol: 021 = Log
Text Symbol: 130 = Error when reading a correspondence type
Text Symbol: 131 = No conversion since more than 1 external correspondence type
Text Symbol: 012 = Number of correspond. data records
Text Symbol: 001 = Correspondence data was processed for the following business transactions:
Text Symbol: 003 = Correspondence data records could not be enhanced
Text Symbol: 004 = No data was selected
Text Symbol: 010 = Transaction:
Text Symbol: 011 = Activty:
Text Symbol: 132 = Activity already has data record with SSTATUS = 'X'
Text Symbol: 133 = Internal correspondence type &&1 is not status-relevant
Text Symbol: 134 = No external correspondence types for activity!


INCLUDES used within this REPORT RFTBCO_ADJUST_SSTATUS

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_CORR_CHECK call function 'TB_CORR_CHECK' exporting cortyp = sop_ctyp-low flg_extern_check = xtrue exceptions cortyp = 1 cortyp_not_external = 2 others = 3.

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

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

TB_CORRESPONDENSE_READ call function 'TB_CORRESPONDENSE_READ' exporting companycode = vtb_control-bukrs dealnumber = vtb_control-rfha activity = vtb_control-rfhazu tables correspondense = g_kores_old.

FTR_CORRESPONDENCE_UPDATE call function 'FTR_CORRESPONDENCE_UPDATE' in update task tables new_kores = g_kores_new[] old_kores = g_kores_old[].

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

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



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