RSDB409C is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report reorganizes table and index history statistics stored in DBSTATHDB4 and DBSTAIHDB4 to prevent these tables overflowing...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 RSDB409C 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 DBSTA+HDB4
Text Symbol: 001 = entries deleted
Text Symbol: 002 = No entries deleted.
Text Symbol: 003 = Delete history before
Text Symbol: 004 = Cleanup table history
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SAPWL_PARAMETERS_READ call function 'SAPWL_PARAMETERS_READ' IMPORTING parameter_table = param_table EXCEPTIONS OTHERS = 99.
SAPWL_PARAM_GET_DEFAULT_VALUE call function 'SAPWL_PARAM_GET_DEFAULT_VALUE' EXPORTING parameter_list = parameter_names IMPORTING parameter_table = param_table EXCEPTIONS OTHERS = 99.
GUI_IS_AVAILABLE call function 'GUI_IS_AVAILABLE' importing return = gui_exist.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TEXTLINE1 = TEXT_LINE TEXTLINE2 = DATE_LINE TITEL = TITLE_LINE IMPORTING ANSWER = DEL_FLAG EXCEPTIONS OTHERS = 1. "#EC FB_OLDED
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.