SAP SCMA_TASKLIST_CREATE Function Module for









SCMA_TASKLIST_CREATE is a standard scma tasklist create 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 create FM, simply by entering the name SCMA_TASKLIST_CREATE 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_CREATE 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_CREATE'"
EXPORTING
IS_HEADER = "

TABLES
CT_TASKLIST = "Schedule Manager: Task list
CT_TASKLIST_TEXT = "Schedule Manager: Texts for Task Plan
* ET_TASKGROUP_NOT_USED = "Schedule Manager: Task list
* ET_TASKGROUP_EMPTY = "Schedule Manager: Task list

EXCEPTIONS
TASKLIST_NOT_QUALIFIED = 1 SEQUENCE_NOT_QUALIFIED = 10 SEQUENCE_NOT_FOUND = 11 TRNSACT_OR_PROG_NOT_QUALIFIED = 12 TRANSACTION_NOT_FOUND = 13 TASK_TEXT_NOT_QUALIFIED = 14 TASK_OWNER_NOT_FOUND = 15 OFFSET_TYPE_INCONSISTENT = 16 START_TIME_NOT_QUALIFIED = 17 START_DAY_NOT_QUALIFIED = 18 START_DAY_INVALID = 19 TASKLIST_FOUND = 2 START_TIME_INVALID = 20 FIRST_DAY_OF_WEEK_INVALID = 21 ANALYZATION_RANGE_INVALID = 22 OVERVIEW_STARTTIME_INVALID = 23 MINUTE_INTERVAL_INVALID = 24 NUMBER_OF_LINES_INVALID = 25 DATABASE_INSERT_ERROR = 26 LANGUAGE_NOT_QUALIFIED = 27 TASKGROUP_NUMBER_NOT_QUALIFIED = 3 TASK_NUMBER_NOT_QUALIFIED = 4 TASK_TYPE_NOT_FOUND = 5 TASKGROUP_TEXT_NOT_QUALIFIED = 6 REPORT_NOT_QUALIFIED = 7 VARIANT_NOT_QUALIFIED = 8 REPORT_NOT_FOUND = 9
.



IMPORTING Parameters details for SCMA_TASKLIST_CREATE

IS_HEADER -

Data type: TSCMA
Optional: No
Call by Reference: Yes

TABLES Parameters details for SCMA_TASKLIST_CREATE

CT_TASKLIST - Schedule Manager: Task list

Data type: SCMA_TASKLIST
Optional: No
Call by Reference: Yes

CT_TASKLIST_TEXT - Schedule Manager: Texts for Task Plan

Data type: SCMA_TASKLIST_TEXT_T
Optional: No
Call by Reference: Yes

ET_TASKGROUP_NOT_USED - Schedule Manager: Task list

Data type: SCMA_TASKLIST_TASKS
Optional: Yes
Call by Reference: Yes

ET_TASKGROUP_EMPTY - Schedule Manager: Task list

Data type: SCMA_TASKLIST_TASKS
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

TASKLIST_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

SEQUENCE_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

SEQUENCE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

TRNSACT_OR_PROG_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

TRANSACTION_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

TASK_TEXT_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

TASK_OWNER_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

OFFSET_TYPE_INCONSISTENT -

Data type:
Optional: No
Call by Reference: Yes

START_TIME_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

START_DAY_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

START_DAY_INVALID -

Data type:
Optional: No
Call by Reference: Yes

TASKLIST_FOUND -

Data type:
Optional: No
Call by Reference: Yes

START_TIME_INVALID -

Data type:
Optional: No
Call by Reference: Yes

FIRST_DAY_OF_WEEK_INVALID -

Data type:
Optional: No
Call by Reference: Yes

ANALYZATION_RANGE_INVALID -

Data type:
Optional: No
Call by Reference: Yes

OVERVIEW_STARTTIME_INVALID -

Data type:
Optional: No
Call by Reference: Yes

MINUTE_INTERVAL_INVALID -

Data type:
Optional: No
Call by Reference: Yes

NUMBER_OF_LINES_INVALID -

Data type:
Optional: No
Call by Reference: Yes

DATABASE_INSERT_ERROR - Error while data was inserted in the database

Data type:
Optional: No
Call by Reference: Yes

LANGUAGE_NOT_QUALIFIED - No language was entered for the note

Data type:
Optional: No
Call by Reference: Yes

TASKGROUP_NUMBER_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

TASK_NUMBER_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

TASK_TYPE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

TASKGROUP_TEXT_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

REPORT_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

VARIANT_NOT_QUALIFIED -

Data type:
Optional: No
Call by Reference: Yes

REPORT_NOT_FOUND - Program not found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCMA_TASKLIST_CREATE 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:
lv_is_header  TYPE TSCMA, "   
lt_ct_tasklist  TYPE STANDARD TABLE OF SCMA_TASKLIST, "   
lv_tasklist_not_qualified  TYPE SCMA_TASKLIST, "   
lv_sequence_not_qualified  TYPE SCMA_TASKLIST, "   
lv_sequence_not_found  TYPE SCMA_TASKLIST, "   
lv_trnsact_or_prog_not_qualified  TYPE SCMA_TASKLIST, "   
lv_transaction_not_found  TYPE SCMA_TASKLIST, "   
lv_task_text_not_qualified  TYPE SCMA_TASKLIST, "   
lv_task_owner_not_found  TYPE SCMA_TASKLIST, "   
lv_offset_type_inconsistent  TYPE SCMA_TASKLIST, "   
lv_start_time_not_qualified  TYPE SCMA_TASKLIST, "   
lv_start_day_not_qualified  TYPE SCMA_TASKLIST, "   
lv_start_day_invalid  TYPE SCMA_TASKLIST, "   
lv_tasklist_found  TYPE SCMA_TASKLIST, "   
lt_ct_tasklist_text  TYPE STANDARD TABLE OF SCMA_TASKLIST_TEXT_T, "   
lv_start_time_invalid  TYPE SCMA_TASKLIST_TEXT_T, "   
lv_first_day_of_week_invalid  TYPE SCMA_TASKLIST_TEXT_T, "   
lv_analyzation_range_invalid  TYPE SCMA_TASKLIST_TEXT_T, "   
lv_overview_starttime_invalid  TYPE SCMA_TASKLIST_TEXT_T, "   
lv_minute_interval_invalid  TYPE SCMA_TASKLIST_TEXT_T, "   
lv_number_of_lines_invalid  TYPE SCMA_TASKLIST_TEXT_T, "   
lv_database_insert_error  TYPE SCMA_TASKLIST_TEXT_T, "   
lv_language_not_qualified  TYPE SCMA_TASKLIST_TEXT_T, "   
lt_et_taskgroup_not_used  TYPE STANDARD TABLE OF SCMA_TASKLIST_TASKS, "   
lv_taskgroup_number_not_qualified  TYPE SCMA_TASKLIST_TASKS, "   
lt_et_taskgroup_empty  TYPE STANDARD TABLE OF SCMA_TASKLIST_TASKS, "   
lv_task_number_not_qualified  TYPE SCMA_TASKLIST_TASKS, "   
lv_task_type_not_found  TYPE SCMA_TASKLIST_TASKS, "   
lv_taskgroup_text_not_qualified  TYPE SCMA_TASKLIST_TASKS, "   
lv_report_not_qualified  TYPE SCMA_TASKLIST_TASKS, "   
lv_variant_not_qualified  TYPE SCMA_TASKLIST_TASKS, "   
lv_report_not_found  TYPE SCMA_TASKLIST_TASKS. "   

  CALL FUNCTION 'SCMA_TASKLIST_CREATE'  "
    EXPORTING
         IS_HEADER = lv_is_header
    TABLES
         CT_TASKLIST = lt_ct_tasklist
         CT_TASKLIST_TEXT = lt_ct_tasklist_text
         ET_TASKGROUP_NOT_USED = lt_et_taskgroup_not_used
         ET_TASKGROUP_EMPTY = lt_et_taskgroup_empty
    EXCEPTIONS
        TASKLIST_NOT_QUALIFIED = 1
        SEQUENCE_NOT_QUALIFIED = 10
        SEQUENCE_NOT_FOUND = 11
        TRNSACT_OR_PROG_NOT_QUALIFIED = 12
        TRANSACTION_NOT_FOUND = 13
        TASK_TEXT_NOT_QUALIFIED = 14
        TASK_OWNER_NOT_FOUND = 15
        OFFSET_TYPE_INCONSISTENT = 16
        START_TIME_NOT_QUALIFIED = 17
        START_DAY_NOT_QUALIFIED = 18
        START_DAY_INVALID = 19
        TASKLIST_FOUND = 2
        START_TIME_INVALID = 20
        FIRST_DAY_OF_WEEK_INVALID = 21
        ANALYZATION_RANGE_INVALID = 22
        OVERVIEW_STARTTIME_INVALID = 23
        MINUTE_INTERVAL_INVALID = 24
        NUMBER_OF_LINES_INVALID = 25
        DATABASE_INSERT_ERROR = 26
        LANGUAGE_NOT_QUALIFIED = 27
        TASKGROUP_NUMBER_NOT_QUALIFIED = 3
        TASK_NUMBER_NOT_QUALIFIED = 4
        TASK_TYPE_NOT_FOUND = 5
        TASKGROUP_TEXT_NOT_QUALIFIED = 6
        REPORT_NOT_QUALIFIED = 7
        VARIANT_NOT_QUALIFIED = 8
        REPORT_NOT_FOUND = 9
. " SCMA_TASKLIST_CREATE




ABAP code using 7.40 inline data declarations to call FM SCMA_TASKLIST_CREATE

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!