SAP Reports / Programs

SRT_UTIL_CANCEL SAP ABAP Report - Web Service Utilities: Mass Cancelling







SRT_UTIL_CANCEL 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 SRT_UTIL_CANCEL into the relevant SAP transactions such as SE38 or SE80


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 SRT_UTIL_CANCEL. "Basic submit
SUBMIT SRT_UTIL_CANCEL AND RETURN. "Return to original report after report execution complete
SUBMIT SRT_UTIL_CANCEL 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: ADAPTYPE = Adapter Type:
Selection Text: APPERROR = Application Error
Selection Text: DATEFR = Date From:
Selection Text: DATETO = Date To:
Selection Text: IBIFNAME = IB Interface Name:
Selection Text: IBIFNS = IB Interface Namespace:
Selection Text: IBPARTY = IB Party:
Selection Text: OBIFNAME = OB Interface Name:
Selection Text: OBIFNS = OB Interface Namespace:
Selection Text: OBPARTY = OB Interface Party:
Selection Text: SYSAPPER = Erroneous
Selection Text: SYSERROR = System Error
Selection Text: TIMEFR = Time From:
Selection Text: TIMETO = Time To:
Selection Text: UNAME = Username:
Title: Web Service Utilities: Mass Cancelling
Text Symbol: 040 = Processing, waiting or erroneous:
Text Symbol: 041 = Successful:
Text Symbol: 042 = Cancelled or isolated:
Text Symbol: 043 = Used selection query:
Text Symbol: 044 = Processing state:
Text Symbol: 045 = From: Date:
Text Symbol: 046 = Time:
Text Symbol: 047 = To: Date:
Text Symbol: 048 = Adapter Type:
Text Symbol: 049 = Username:
Text Symbol: 050 = Outbound party:
Text Symbol: 051 = Outbound interface name:
Text Symbol: 052 = Outbound interface namespace:
Text Symbol: 053 = Inbound party:
Text Symbol: 054 = Inbound interface name:
Text Symbol: 055 = Inbound interface namespace:
Text Symbol: 056 = Selected messages cancelled successfully
Text Symbol: 057 = Cancel failed for
Text Symbol: 058 = message(s)
Text Symbol: 059 = Cancel failed for selected messages
Text Symbol: 060 = Do you really want to cancel messages selected by query?
Text Symbol: 061 = Not cancelable consumer messages are ignored





Text Symbol: 062 = No messages selected
Text Symbol: 063 = No messages matching selection query
Text Symbol: 001 = Cancel messages - Message view
Text Symbol: 002 = Number
Text Symbol: 003 = Processing status
Text Symbol: 004 = Error information
Text Symbol: 005 = Created by
Text Symbol: 006 = Changed Date
Text Symbol: 007 = Changed time
Text Symbol: 008 = Adapter type
Text Symbol: 009 = Location
Text Symbol: 010 = Message ID
Text Symbol: 011 = Creation date
Text Symbol: 012 = Creation time
Text Symbol: 013 = Message status
Text Symbol: 014 = Error version
Text Symbol: 015 = OB party
Text Symbol: 016 = OB interface
Text Symbol: 017 = OB namespace
Text Symbol: 018 = IB party
Text Symbol: 019 = IB interface
Text Symbol: 020 = IB namespace
Text Symbol: 021 = Eventing
Text Symbol: 022 = Groupware Scenario
Text Symbol: 023 = IDoc
Text Symbol: 024 = Erroneous
Text Symbol: 025 = Application error
Text Symbol: 026 = System error
Text Symbol: 027 = E-Mail inbound
Text Symbol: 028 = Mapping
Text Symbol: 029 = Plain SOAP
Text Symbol: 030 = Shortcut
Text Symbol: 031 = Standard Webservice
Text Symbol: 032 = Local Adapter for XI
Text Symbol: 033 = Display job overview after cancelling messages selected by query in background?
Text Symbol: 034 = Yes
Text Symbol: 035 = No
Text Symbol: 036 = Number of messages matching selection query:
Text Symbol: 037 = Cancelled:





Text Symbol: 038 = Failed to cancel:
Text Symbol: 039 = Status of failed messages:


INCLUDES used within this REPORT SRT_UTIL_CANCEL

INCLUDE SRT_UTIL_CANCEL_TOP. " GLOBAL DATA


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:

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'gs_selection-state_group' ##NO_TEXT values = lt_values.

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'gs_selection-adapter_type' ##NO_TEXT values = lt_values.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = 'Do you really want to cancel messages selected by query?'(060) text_button_1 = 'Yes'(034) text_button_2 = 'No'(035) display_cancel_button = abap_false IMPORTING answer = lv_answer.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = 'Display job overview after cancelling messages selected by query in background?'(033) text_button_1 = 'Yes'(034) text_button_2 = 'No'(035) IMPORTING answer = lv_answer.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING delanfrep = ' ' jobgroup = ' ' jobname = lco_job_name sdlstrtdt = sy-datum sdlstrttm = sy-uzeit IMPORTING jobcount = lv_jobcount EXCEPTIONS cant_create_job = 01 invalid_job_data = 02 jobname_missing = 03.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = lv_jobcount jobname = lco_job_name strtimmed = lv_starttimeimmediate EXCEPTIONS cant_start_immediate = 01 invalid_startdate = 02 jobname_missing = 03 job_close_failed = 04 job_nosteps = 05 job_notex = 06 lock_failed = 07 OTHERS = 99.



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