SAP Reports / Programs | Basis Components | Installation Tools | Content for ABAP based automated TC(BC-INS-TC-CNT) SAP BC

STC_SC_UI_COMMON_CLEANUP SAP ABAP Report - System Copy: Task Manager UI for Common ABAP Table Cleanup







STC_SC_UI_COMMON_CLEANUP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Use this task to delete source system entries from the following tables: ABAP basis tables Tables SWNCMONI and SWNCMONIINDEX that contain statistics data Additional tables that you want to be cleaned up...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 STC_SC_UI_COMMON_CLEANUP 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 STC_SC_UI_COMMON_CLEANUP. "Basic submit
SUBMIT STC_SC_UI_COMMON_CLEANUP AND RETURN. "Return to original report after report execution complete
SUBMIT STC_SC_UI_COMMON_CLEANUP 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: LS_TAB = Filter for Table Cleanup
Selection Text: PDC_ADDI = Additional Information
Title: System Copy: Task Manager UI for Common ABAP Table Cleanup
Text Symbol: IF1 = BAdI Info: No Customer BAdI is implemented
Text Symbol: IF2 = BAdI Info: Not able to determine BAdI implementation
Text Symbol: IF3 = Reason:
Text Symbol: P01 = Additional Information for Customer Exit
Text Symbol: P02 = Filter for Table Cleanup (Component: OTHERS)
Text Symbol: TM1 = NOTE: Execution is done with Task Manager (transaction STC01)


INCLUDES used within this REPORT STC_SC_UI_COMMON_CLEANUP

INCLUDE SCTC_SC_INCL_COMPONENTS.


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:

SCTC_REFRESH_GET_DIR_COMP CALL FUNCTION 'SCTC_REFRESH_GET_DIR_COMP' EXPORTING dir_export = lv_dir_refresh component = 'CUSTOMER' IMPORTING subrc = lv_rc export_timestamp = lv_time TABLES e_tab_return = lt_return.

SCTC_REFRESH_GET_COMPONENT CALL FUNCTION 'SCTC_REFRESH_GET_COMPONENT' EXPORTING component = lv_customer IMPORTING subrc = lv_subrc.

SCTC_GET_WHITELIST CALL FUNCTION 'SCTC_GET_WHITELIST' EXPORTING i_component_name = cv_others i_action = cv_truncate io_msg_handler = lo_msg_handler iv_flg_check_auth = '-' IMPORTING e_whitelist = lt_oth_tables.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'TABNAME' dynpprog = sy-cprog dynpnr = sy-dynnr dynprofield = 'LS_TAB-LOW' value_org = 'S' TABLES value_tab = lt_value_tab return_tab = lt_return_tab EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING program = lv_program restriction = ls_restrict EXCEPTIONS too_late = 1 repeated = 2 selopt_without_options = 3 selopt_without_signs = 4 invalid_sign = 5 empty_option_list = 6 invalid_kind = 7 repeated_kind_a = 8 OTHERS = 9.



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