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
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.
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!
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RFTBCO_ADJUST_SSTATUS - Set SSTATUS Field in Old Data Records of Table VTBKORES RFTBCO_ADJUST_SSTATUS - Set SSTATUS Field in Old Data Records of Table VTBKORES RFTBCOSI_COPY - Standing Instructions for Correspondence (Mass Copy Function) RFTBCOSI_COPY - Standing Instructions for Correspondence (Mass Copy Function) RFTBCOSI4_DEL - Standing Instructions for Derived Flows: Delete Function RFTBCOSI4_DEL - Standing Instructions for Derived Flows: Delete Function