MR_CLEARUP is a standard Executable ABAP Report 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 MR_CLEARUP 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.
Title: Cleanup Tool for Mime Repository
Text Symbol: T09 = Delete SKWF_ROOT Entry
Text Symbol: T08 = Delete Application Folder
Text Symbol: T07 = Display MIME Type
Text Symbol: T06 = Search for MIME in Requests
Text Symbol: T05 = Display Path up to Root
Text Symbol: T04 = Display MIME Objects of a Folder
Text Symbol: T03 = Display MIME Object Attributes
Text Symbol: M13 = Object was reassigned
Text Symbol: M12 = SKWF_ROOT entry has not been deleted
Text Symbol: M11 = SKWF_ROOT entry has been deleted
Text Symbol: M10 = Objects were reassigned to the new folder
Text Symbol: M09 = SKWF Root Folder was created
Text Symbol: 037 = Absolute URL
Text Symbol: 031 = Folder Role
Text Symbol: 030 = Folder GUId
Text Symbol: 029 = Set Folder Role for Context Menu
Text Symbol: 028 = Display Object Directory Entry
Text Symbol: 027 = Search for MIME Objects with Same Name
Text Symbol: 018 = With All Attributes
Text Symbol: 017 = Reassign All Subnodes
Text Symbol: 016 = Enter Alternative
Text Symbol: 014 = BSP Application
Text Symbol: 013 = MIME Object GUId
Text Symbol: 012 = MIME Object Name
Text Symbol: 011 = Or
Text Symbol: 009 = Namespace GUId
Text Symbol: 008 = New GUId
Text Symbol: 007 = Current GUId
Text Symbol: 006 = Rename Parent Reference
Text Symbol: 005 = Create Namespace in SKWF_ROOT
Text Symbol: 004 = Delete namespace in SKWF_ROOT that does not exist
Text Symbol: 003 = Namespace Name
Text Symbol: 001 = Delete Application Folder Without BSP Application
INCLUDE MR_CHECK_MIMESF00.
INCLUDE MR_CHECK_MIMESF02.
No SAP DATABASE tables are accessed within this REPORT code!
WBMR_DELETE_APPL_FOLDER CALL FUNCTION 'WBMR_DELETE_APPL_FOLDER' EXPORTING folder_name = foldername namespace = nspname.
SKWF_IOS_PROPERTIES_GET CALL FUNCTION 'SKWF_IOS_PROPERTIES_GET' TABLES ios = l_ios properties_request = l_prop_requests properties_result = l_properties bad_ios = l_bad_ios.
SKWF_FOLDER_IOS_DETACH CALL FUNCTION 'SKWF_FOLDER_IOS_DETACH' EXPORTING folder = l_old_parent_io IMPORTING error = l_error TABLES ios = l_ios.
SKWF_APPL_ROOT_IOS_ATTACH CALL FUNCTION 'SKWF_APPL_ROOT_IOS_ATTACH' EXPORTING appl = wbmr_c_skwf_appl_name inpos = l_inpos IMPORTING error = l_error TABLES ios = l_ios.
SKWF_IOS_PROPERTIES_GET CALL FUNCTION 'SKWF_IOS_PROPERTIES_GET' TABLES ios = l_ios properties_request = l_prop_requests properties_result = l_properties bad_ios = l_bad_ios.
SKWF_FOLDER_IOS_GET CALL FUNCTION 'SKWF_FOLDER_IOS_GET' EXPORTING folder = l_old_parent_io io_type = skwfc_obtype_any IMPORTING error = l_error TABLES ios = l_ios.
SKWF_FOLDER_IOS_DETACH CALL FUNCTION 'SKWF_FOLDER_IOS_DETACH' EXPORTING folder = l_old_parent_io IMPORTING error = l_error TABLES ios = l_ios.
SKWF_FOLDER_IOS_ATTACH CALL FUNCTION 'SKWF_FOLDER_IOS_ATTACH' EXPORTING folder = l_new_parent_io connection_space = l_connection_space inpos = l_inpos IMPORTING error = l_error TABLES ios = l_ios bad_ios = l_bad_ios.
SKWF_APPL_LOCK CALL FUNCTION 'SKWF_APPL_LOCK' EXPORTING appl = wbmr_c_skwf_appl_name IMPORTING error = l_error.
SKWF_APPL_UNLOCK CALL FUNCTION 'SKWF_APPL_UNLOCK' EXPORTING appl = wbmr_c_skwf_appl_name.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.