SAP SCMA_TASKLIST_SCHEDULE Function Module for
SCMA_TASKLIST_SCHEDULE is a standard scma tasklist schedule SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for scma tasklist schedule FM, simply by entering the name SCMA_TASKLIST_SCHEDULE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCMA_SERVICES
Program Name: SAPLSCMA_SERVICES
Main Program: SAPLSCMA_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCMA_TASKLIST_SCHEDULE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SCMA_TASKLIST_SCHEDULE'".
EXPORTING
I_TASKLIST = "Schedule Manager: Task list
* I_ALL_TASKLIST_TASKS = "
* I_ALL_TASKGROUP_TASKS = "
* I_IMMEDIATE_START = 'X' "Immediate Start
* I_START_DATE = "Start Date
* I_START_TIME = "Start time
* I_RELEASED = 'X' "
* I_TEXT = "Schedule Manager: Instance Text for a Tasklist
* I_SCMA_TRANSACTION = "
* I_NEW_VARIANT = "
* I_EXTERN_CALL = "
* I_NODE_ID = "Node ID
* I_EXTERN_CALLER_ID = "
* I_EXTERN_RFCDEST_S = "
* I_EXTERN_RFCDEST_C = "
* I_EXTERN_USER = "
* I_EXTERN_RFCDIA_C = "
* I_EXTERN_RFCDIA_S = "
* I_NO_TEXTS = '' "
* I_TASKGROUP_NUMBER = "Number of the Task Group
* I_TASK_NUMBER = "
* I_SCMA_REPORT = "ABAP Program Name
* I_SCMA_VARIANT = "Schedule Manager: Variant
* I_SCMA_SEQUENCE = "Schedule Manager: Flow Definition
* I_OCCURRENCE = 1 "
* I_GROUP_ONLY = "
TABLES
* IT_TVARV = "Schedule Manager Variable
* ET_TASKS_SCHEDULED = "Scheduled Tasks
* ET_TASKS_NOT_SCHEDULED = "
* IT_PARAMETER = "
* IT_SELOPT = "
* ET_SCMATREED = "
EXCEPTIONS
TASKLIST_NOT_FOUND = 1 TRANSACTION_NOT_FOUND = 10 SUBMIT_CANCELLED = 11 TASKGROUP_NOT_FOUND = 2 TASK_NOT_FOUND = 3 TASK_NOT_SCHEDULABLE = 4 TASK_NOT_SCHEDULED = 5 REPORT_NOT_FOUND = 6 VARIANT_NOT_FOUND = 7 SEQUENCE_NOT_FOUND = 8 SCHEDULED_TIME_INVALID = 9
IMPORTING Parameters details for SCMA_TASKLIST_SCHEDULE
I_TASKLIST - Schedule Manager: Task list
Data type: PEPPROFILEOptional: No
Call by Reference: Yes
I_ALL_TASKLIST_TASKS -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
I_ALL_TASKGROUP_TASKS -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
I_IMMEDIATE_START - Immediate Start
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
I_START_DATE - Start Date
Data type: SYDATUMOptional: Yes
Call by Reference: Yes
I_START_TIME - Start time
Data type: SYUZEITOptional: Yes
Call by Reference: Yes
I_RELEASED -
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
I_TEXT - Schedule Manager: Instance Text for a Tasklist
Data type: SCMA_TPI_TEXTOptional: Yes
Call by Reference: Yes
I_SCMA_TRANSACTION -
Data type: SCMA_TRANSACTIONOptional: Yes
Call by Reference: Yes
I_NEW_VARIANT -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
I_EXTERN_CALL -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
I_NODE_ID - Node ID
Data type: SCMA_NODEOptional: Yes
Call by Reference: Yes
I_EXTERN_CALLER_ID -
Data type: TZNTSTMPLOptional: Yes
Call by Reference: Yes
I_EXTERN_RFCDEST_S -
Data type: RFCDESTOptional: Yes
Call by Reference: Yes
I_EXTERN_RFCDEST_C -
Data type: RFCDESTOptional: Yes
Call by Reference: Yes
I_EXTERN_USER -
Data type: UNAMEOptional: Yes
Call by Reference: Yes
I_EXTERN_RFCDIA_C -
Data type: RFCDESTOptional: Yes
Call by Reference: Yes
I_EXTERN_RFCDIA_S -
Data type: RFCDESTOptional: Yes
Call by Reference: Yes
I_NO_TEXTS -
Data type: CHAR1Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TASKGROUP_NUMBER - Number of the Task Group
Data type: SCMA_NUMBEROptional: Yes
Call by Reference: Yes
I_TASK_NUMBER -
Data type: SCMA_NUMBEROptional: Yes
Call by Reference: Yes
I_SCMA_REPORT - ABAP Program Name
Data type: PROGRAMMOptional: Yes
Call by Reference: Yes
I_SCMA_VARIANT - Schedule Manager: Variant
Data type: SCMA_VARIANTOptional: Yes
Call by Reference: Yes
I_SCMA_SEQUENCE - Schedule Manager: Flow Definition
Data type: SCMA_SEQUENCEOptional: Yes
Call by Reference: Yes
I_OCCURRENCE -
Data type: NUMC4Default: 1
Optional: Yes
Call by Reference: Yes
I_GROUP_ONLY -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
TABLES Parameters details for SCMA_TASKLIST_SCHEDULE
IT_TVARV - Schedule Manager Variable
Data type: TVARVOptional: Yes
Call by Reference: Yes
ET_TASKS_SCHEDULED - Scheduled Tasks
Data type: SCMA_TASKLISTOptional: Yes
Call by Reference: Yes
ET_TASKS_NOT_SCHEDULED -
Data type: SCMA_TASKLISTOptional: Yes
Call by Reference: Yes
IT_PARAMETER -
Data type: RSPARAMSOptional: Yes
Call by Reference: Yes
IT_SELOPT -
Data type: RSPARAMSOptional: Yes
Call by Reference: Yes
ET_SCMATREED -
Data type: SCMATREEDOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
TASKLIST_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
TRANSACTION_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
SUBMIT_CANCELLED -
Data type:Optional: No
Call by Reference: Yes
TASKGROUP_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
TASK_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
TASK_NOT_SCHEDULABLE - The task cannot be scheduled
Data type:Optional: No
Call by Reference: Yes
TASK_NOT_SCHEDULED -
Data type:Optional: No
Call by Reference: Yes
REPORT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
VARIANT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
SEQUENCE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
SCHEDULED_TIME_INVALID -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SCMA_TASKLIST_SCHEDULE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_it_tvarv | TYPE STANDARD TABLE OF TVARV, " | |||
| lv_i_tasklist | TYPE PEPPROFILE, " | |||
| lv_tasklist_not_found | TYPE PEPPROFILE, " | |||
| lv_i_all_tasklist_tasks | TYPE CHAR1, " | |||
| lv_transaction_not_found | TYPE CHAR1, " | |||
| lv_submit_cancelled | TYPE CHAR1, " | |||
| lv_i_all_taskgroup_tasks | TYPE CHAR1, " | |||
| lv_i_immediate_start | TYPE CHAR1, " 'X' | |||
| lv_i_start_date | TYPE SYDATUM, " | |||
| lv_i_start_time | TYPE SYUZEIT, " | |||
| lv_i_released | TYPE CHAR1, " 'X' | |||
| lv_i_text | TYPE SCMA_TPI_TEXT, " | |||
| lv_i_scma_transaction | TYPE SCMA_TRANSACTION, " | |||
| lv_i_new_variant | TYPE CHAR1, " | |||
| lv_i_extern_call | TYPE CHAR1, " | |||
| lv_i_node_id | TYPE SCMA_NODE, " | |||
| lt_et_tasks_scheduled | TYPE STANDARD TABLE OF SCMA_TASKLIST, " | |||
| lv_taskgroup_not_found | TYPE SCMA_TASKLIST, " | |||
| lv_i_extern_caller_id | TYPE TZNTSTMPL, " | |||
| lv_i_extern_rfcdest_s | TYPE RFCDEST, " | |||
| lv_i_extern_rfcdest_c | TYPE RFCDEST, " | |||
| lv_i_extern_user | TYPE UNAME, " | |||
| lv_i_extern_rfcdia_c | TYPE RFCDEST, " | |||
| lv_i_extern_rfcdia_s | TYPE RFCDEST, " | |||
| lv_i_no_texts | TYPE CHAR1, " '' | |||
| lv_task_not_found | TYPE CHAR1, " | |||
| lv_i_taskgroup_number | TYPE SCMA_NUMBER, " | |||
| lt_et_tasks_not_scheduled | TYPE STANDARD TABLE OF SCMA_TASKLIST, " | |||
| lt_it_parameter | TYPE STANDARD TABLE OF RSPARAMS, " | |||
| lv_i_task_number | TYPE SCMA_NUMBER, " | |||
| lv_task_not_schedulable | TYPE SCMA_NUMBER, " | |||
| lt_it_selopt | TYPE STANDARD TABLE OF RSPARAMS, " | |||
| lv_i_scma_report | TYPE PROGRAMM, " | |||
| lv_task_not_scheduled | TYPE PROGRAMM, " | |||
| lt_et_scmatreed | TYPE STANDARD TABLE OF SCMATREED, " | |||
| lv_i_scma_variant | TYPE SCMA_VARIANT, " | |||
| lv_report_not_found | TYPE SCMA_VARIANT, " | |||
| lv_i_scma_sequence | TYPE SCMA_SEQUENCE, " | |||
| lv_variant_not_found | TYPE SCMA_SEQUENCE, " | |||
| lv_i_occurrence | TYPE NUMC4, " 1 | |||
| lv_sequence_not_found | TYPE NUMC4, " | |||
| lv_i_group_only | TYPE CHAR1, " | |||
| lv_scheduled_time_invalid | TYPE CHAR1. " |
|   CALL FUNCTION 'SCMA_TASKLIST_SCHEDULE' " |
| EXPORTING | ||
| I_TASKLIST | = lv_i_tasklist | |
| I_ALL_TASKLIST_TASKS | = lv_i_all_tasklist_tasks | |
| I_ALL_TASKGROUP_TASKS | = lv_i_all_taskgroup_tasks | |
| I_IMMEDIATE_START | = lv_i_immediate_start | |
| I_START_DATE | = lv_i_start_date | |
| I_START_TIME | = lv_i_start_time | |
| I_RELEASED | = lv_i_released | |
| I_TEXT | = lv_i_text | |
| I_SCMA_TRANSACTION | = lv_i_scma_transaction | |
| I_NEW_VARIANT | = lv_i_new_variant | |
| I_EXTERN_CALL | = lv_i_extern_call | |
| I_NODE_ID | = lv_i_node_id | |
| I_EXTERN_CALLER_ID | = lv_i_extern_caller_id | |
| I_EXTERN_RFCDEST_S | = lv_i_extern_rfcdest_s | |
| I_EXTERN_RFCDEST_C | = lv_i_extern_rfcdest_c | |
| I_EXTERN_USER | = lv_i_extern_user | |
| I_EXTERN_RFCDIA_C | = lv_i_extern_rfcdia_c | |
| I_EXTERN_RFCDIA_S | = lv_i_extern_rfcdia_s | |
| I_NO_TEXTS | = lv_i_no_texts | |
| I_TASKGROUP_NUMBER | = lv_i_taskgroup_number | |
| I_TASK_NUMBER | = lv_i_task_number | |
| I_SCMA_REPORT | = lv_i_scma_report | |
| I_SCMA_VARIANT | = lv_i_scma_variant | |
| I_SCMA_SEQUENCE | = lv_i_scma_sequence | |
| I_OCCURRENCE | = lv_i_occurrence | |
| I_GROUP_ONLY | = lv_i_group_only | |
| TABLES | ||
| IT_TVARV | = lt_it_tvarv | |
| ET_TASKS_SCHEDULED | = lt_et_tasks_scheduled | |
| ET_TASKS_NOT_SCHEDULED | = lt_et_tasks_not_scheduled | |
| IT_PARAMETER | = lt_it_parameter | |
| IT_SELOPT | = lt_it_selopt | |
| ET_SCMATREED | = lt_et_scmatreed | |
| EXCEPTIONS | ||
| TASKLIST_NOT_FOUND = 1 | ||
| TRANSACTION_NOT_FOUND = 10 | ||
| SUBMIT_CANCELLED = 11 | ||
| TASKGROUP_NOT_FOUND = 2 | ||
| TASK_NOT_FOUND = 3 | ||
| TASK_NOT_SCHEDULABLE = 4 | ||
| TASK_NOT_SCHEDULED = 5 | ||
| REPORT_NOT_FOUND = 6 | ||
| VARIANT_NOT_FOUND = 7 | ||
| SEQUENCE_NOT_FOUND = 8 | ||
| SCHEDULED_TIME_INVALID = 9 | ||
| . " SCMA_TASKLIST_SCHEDULE | ||
ABAP code using 7.40 inline data declarations to call FM SCMA_TASKLIST_SCHEDULE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_i_immediate_start) | = 'X'. | |||
| DATA(ld_i_released) | = 'X'. | |||
| DATA(ld_i_no_texts) | = ''. | |||
| DATA(ld_i_occurrence) | = 1. | |||
Search for further information about these or an SAP related objects