Skip to content

/AWS1/CL_SND=>CANCELTASK()

About CancelTask

Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED state. Tasks that are already running can't be cancelled.

A task might still run if it's processed from the queue before the CancelTask operation changes the task's state.

Method Signature

IMPORTING

Required arguments:

IV_TASKID TYPE /AWS1/SNDTASKID /AWS1/SNDTASKID

The ID of the task that you are attempting to cancel. You can retrieve a task ID by using the ListTasks operation.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SNDCANCELTASKOUTPUT /AWS1/CL_SNDCANCELTASKOUTPUT