SAP Reports / Programs

RCOCB009 SAP ABAP Report - Deletion Program for Process Messages







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CO62 - Delete Process Messages


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 RCOCB009. "Basic submit
SUBMIT RCOCB009 AND RETURN. "Return to original report after report execution complete
SUBMIT RCOCB009 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: 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


INCLUDES used within this REPORT RCOCB009

INCLUDE ICOCMT01.


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:

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.



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