CREATE_TASK SAP Method Create Task Instance









Below is documentation, parameters and attributes of ABAP Method CREATE_TASK within SAP class TH_STC_TASK_TEST. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name TH_STC_TASK_TEST into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method CREATE_TASK can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method CREATE_TASK

.

NameTypeData TypeDescriptionDefault Value
IV_TASKNAMEImportingTYPE
STC_TASK_ID
Task ID
IV_TASKTYPEImportingTYPE
STC_TASK_TYPE
Task Type
RO_TASKReturningTYPE REF TO
IF_STCTM_TASK
Technical Configuration Task



Exceptions of Method CREATE_TASK

CX_STC_TASK_TEST_ERROR - Test Helper Exception Class for TC Tasks

Example ABAP coding


DATA: lv_IV_TASKNAME TYPE STC_TASK_ID,
lv_IV_TASKTYPE TYPE STC_TASK_TYPE,
lv_RO_TASK TYPE IF_STCTM_TASK,
lv_other TYPE c.

CALL METHOD TH_STC_TASK_TEST=>CREATE_TASK(
EXPORTING
IV_TASKNAME = lv_IV_TASKNAME
IV_TASKTYPE = lv_IV_TASKTYPE
RECEIVING
RO_TASK = lv_RO_TASK )



"Alternate coding for Method Call with returning parameter
lv_RO_TASK = TH_STC_TASK_TEST=>CREATE_TASK(
EXPORTING
IV_TASKNAME = lv_IV_TASKNAME
IV_TASKTYPE = lv_IV_TASKTYPE ).

Links to Related Class(s)

TH_STC_T...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!