RCOCB009 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 RCOCB009 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
CO62 - Delete Process Messages
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: AGE = Messages older than (days)
Selection Text: LOG_REQU = Create deletion log
Selection Text: PLNT_RAN = Plant
Selection Text: PRT_ONLY = Only message logs
Selection Text: SND_ONLY = Only messages sent successf.
Title: Deletion Program for Process Messages
Text Symbol: 001 = Delete Process Messages ;;Title for dialog box
Text Symbol: 002 = Do you want to delete all data ;;Confirmation prompt (2 lines)
Text Symbol: 003 = matching the selection criteria? ;;continuation of 002
Text Symbol: 010 = Selections
Text Symbol: 011 = Scope of deletion
Text Symbol: 012 = Log
Text Symbol: 101 = Delete Process Messages: Evaluate Logs
Text Symbol: 102 = Delete Process Messages: Display Log
INCLUDE ICOCMT01.
No SAP DATABASE tables are accessed within this REPORT code!
COCM_MESSAGE_DELETE CALL FUNCTION 'COCM_MESSAGE_DELETE' EXPORTING DELETE_MESS_LOGS_ONLY = PRT_ONLY WRITE_DELETION_LOG = LOG_REQU IMPORTING NUM_OF_DELETED_MESSAGES = NUM_MESS NUM_OF_MESS_WITH_LOGS_DELETED = NUM_MESS_LOGS TABLES ACOMH = SCOMH EXCEPTIONS NO_AUTHORITY_TO_DELETE_LOGS = 1.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
APPL_LOG_DISPLAY CALL FUNCTION 'APPL_LOG_DISPLAY' EXPORTING OBJECT = LOG_OBJECT DATE_FROM = SY-DATLO TIME_FROM = '000000' DATE_TO = SY-DATLO TIME_TO = SY-TIMLO TITLE_SELECTION_SCREEN = TEXT-101 TITLE_LIST_SCREEN = TEXT-102 COLUMN_SELECTION = COLUMN_SELECTION SUPPRESS_SELECTION_DIALOG = 'X' EXCEPTIONS NO_AUTHORITY = 1.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = NO TEXTLINE1 = TEXT-002 TEXTLINE2 = TEXT-003 TITEL = TEXT-001 IMPORTING ANSWER = HLP-ANSWER EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.