CREATE_FROM_SCENARIO SAP Method Create Tasklist from Task List
Below is documentation, parameters and attributes of ABAP Method CREATE_FROM_SCENARIO within SAP class CL_STCTM_TASKLIST. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_STCTM_TASKLIST 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 directlyThe following technical details of method CREATE_FROM_SCENARIO can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_FROM_SCENARIO
.| Name | Type | Data Type | Description | Default Value |
| IT_TASKNAME | Importing | TYPE IF_STCTM_TASK=>TT_TASKNAME | List of Tasks | |
| I_SCENARIO_ID | Importing | TYPE STC_SCENARIO_ID | TC Task List | |
| IR_SCENARIO | Importing | TYPE REF TO IF_STC_SCENARIO | Task List Interface | |
| IR_SESSION | Importing | TYPE REF TO CL_STCTM_SESSION | Task List Run | |
| ER_MESSAGES | Exporting | TYPE REF TO CL_STCTM_MESSAGES | Task List Messages | |
| CR_TASKLIST | Changing | TYPE REF TO CL_STCTM_TASKLIST | Configured List of Tasks |
Exceptions of Method CREATE_FROM_SCENARIO
CL_STCTM_MESSAGES
Example ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lv_CR_TASKLIST TYPE CL_STCTM_TASKLIST,
lv_ER_MESSAGES TYPE CL_STCTM_MESSAGES,
lv_IT_TASKNAME TYPE IF_STCTM_TASK=>TT_TASKNAME,
lv_I_SCENARIO_ID TYPE STC_SCENARIO_ID,
lv_IR_SCENARIO TYPE IF_STC_SCENARIO,
lv_IR_SESSION TYPE CL_STCTM_SESSION,
lv_other TYPE c.
CALL METHOD CL_STCTM_TASKLIST=>CREATE_FROM_SCENARIO(
EXPORTING
IT_TASKNAME = lv_IT_TASKNAME
I_SCENARIO_ID = lv_I_SCENARIO_ID
IR_SCENARIO = lv_IR_SCENARIO
IR_SESSION = lv_IR_SESSION
IMPORTING
ER_MESSAGES = lv_ER_MESSAGES
CHANGING
CR_TASKLIST = lv_CR_TASKLIST ).
Links to Related Class(s)
CL_STCTM...Full list of available SAP object classes
Search for further information about these or an SAP related objects