SAP Reports / Programs | Basis Components | SAP NetWeaver Mobile - Use subcomponents(BC-MOB) SAP BC

MEREP_PURGE SAP ABAP Report - Purge Tool







MEREP_PURGE 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 MEREP_PURGE 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

MEREP_PURGE - Purge Tool


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 MEREP_PURGE. "Basic submit
SUBMIT MEREP_PURGE AND RETURN. "Return to original report after report execution complete
SUBMIT MEREP_PURGE 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: TTIME =
Selection Text: TDATE =
Selection Text: SOSTAT_O = Sender Worklist Status
Selection Text: SOSTAT_I = Handler Worklist Status
Selection Text: OUTBOX = Outbox Data
Selection Text: MOBILEID = D .
Selection Text: LOGMSG = Log Message
Selection Text: FTIME =
Selection Text: FDATE =
Title: Purge Tool
Text Symbol: 106 = Delete Only CCMS Processed Alerts
Text Symbol: 105 = Days Until Deletion
Text Symbol: 104 = Test run
Text Symbol: 033 = ME Outbox
Text Symbol: 032 = Simulate
Text Symbol: 031 = To Date/Time
Text Symbol: 030 = From Date/Time
Text Symbol: 029 = Key mapping table S01
Text Symbol: 028 = Key mapping table T01/T51
Text Symbol: 027 = Runtime Data
Text Symbol: 026 = Job
Text Symbol: 024 = Sender Worklist
Text Symbol: 023 = Outbox
Text Symbol: 022 = Synchronizer Worklist
Text Symbol: 021 = Handler Worklist
Text Symbol: 020 = Inbox
Text Symbol: 016 = Do you really want to purge all device data? (Execution time will be long)
Text Symbol: 008 = Output Detail Result List
Text Symbol: 007 = Record Numbers
Text Symbol: 006 = Runtime Data(Handler/Synchronizer/Sender Worklist, Inbox/Outbox Data, Logs)
Text Symbol: 005 = Log Messages
Text Symbol: 004 = Outbound Messages(Sender Worklist, Outbox Data)
Text Symbol: 003 = Inbound Messages(Handler and Synchronizer Worklists, Inbox Data)
Text Symbol: 002 = Purge Object Types
Text Symbol: 001 = Select Options


INCLUDES used within this REPORT MEREP_PURGE

MEREP_CONSTANTS01 ,
MEREP_MACRO_RANGE .


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:

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-016 IMPORTING answer = ldf_answer.

ENQUEUE_MEREP_601 CALL FUNCTION 'ENQUEUE_MEREP_601' EXPORTING mode_merep_601 = 'E' mandt = sy-mandt runnum = -runnum EXCEPTIONS foreign_lock = 1 system_failure = 2 others = 3.

DEQUEUE_MEREP_601 CALL FUNCTION 'DEQUEUE_MEREP_601' EXPORTING mode_merep_601 = 'E' mandt = sy-mandt runnum = -runnum.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING es_list_scroll = lds_list_scroll.

REUSE_ALV_LIST_LAYOUT_INFO_SET *** call function 'REUSE_ALV_LIST_LAYOUT_INFO_SET' *** exporting *** is_list_scroll = lds_list_scroll.

REUSE_ALV_BLOCK_LIST_INIT CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT' EXPORTING i_callback_user_command = 'USER_COMMAND' i_callback_program = ldf_program_current.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_SUM' it_events = ldt_event TABLES t_outtab = gdt_sum.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL601PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl601purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL602PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl602purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL604PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl604purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL504INBOX_PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl504inbox_purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL504OUTBOX_PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl504outbox_purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL505HANDLER_PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl505handler_purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL505SENDER_PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl505sender_purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL506PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl506purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL111PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl111purge.

REUSE_ALV_BLOCK_LIST_APPEND CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' EXPORTING is_layout = lds_layout it_fieldcat = ldt_fieldcat i_tabname = 'GDT_MBL112PURGE' it_events = ldt_event TABLES t_outtab = gdt_mbl112purge.

REUSE_ALV_BLOCK_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.

REUSE_ALV_FIELDCATALOG_MERGE





CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = prf_tabname i_client_never_display = gcf_off CHANGING ct_fieldcat = prt_fieldcat.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'DD02T' CHANGING ct_fieldcat = prt_fieldcat.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TRMWUL' CHANGING ct_fieldcat = prt_fieldcat.



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