SAP Function Modules

EAM_TASKLIST_CREATE SAP Function module - Create API for task list







EAM_TASKLIST_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name EAM_TASKLIST_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: EAM_TL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM EAM_TASKLIST_CREATE - EAM TASKLIST CREATE





CALL FUNCTION 'EAM_TASKLIST_CREATE' "Create API for task list
  EXPORTING
    is_header =                 " eam_s_hdr_ins  Task List API: Header data insert structure
*   iv_date = SY-DATUM          " datum         Date
*   iv_profile = SPACE          " profid_std    Profile
*   iv_clear_buffer_if_error = 'X'  " char1     Indicator to clear the buffers if exception occurs
*   iv_update_shorttext = ABAP_TRUE  " flag     Update shorttext from first line of longtext
  IMPORTING
    ev_plnnr =                  " plnnr         Key for Task List Group
    ev_plnal =                  " plnal         Group Counter
* TABLES
*   it_operations =             " eam_t_tl_opr  Task List: Table for Operations Insert/Update in API
*   it_components =             " eam_t_component_ins  Table Type for material Components Used for Task Lists
*   it_prts =                   " eam_t_tl_prt  Task List API: Table for PRT Detail
*   it_relations =              " eam_t_tl_rel  Task List Relations Dialog Table Type
*   it_spack_lines =            " eam_t_tl_spack  Task List API: Serviceline Data Detail
*   it_spack_outlines =         " eam_t_tl_spack_outline  Task list API: Table containing service package outlines
*   it_spack_limits =           " eam_t_tl_spack_limits  Task list API: Service package limit data
*   it_spack_contr_limits =     " eam_t_tl_spack_contr_limits  Task list API: Service package contract limits
*   it_mpackages =              " eam_t_tl_mpack  Task List API Table of Maintenance Packages
*   it_text =                   " eam_t_text    Table with Text Header for Task List APIs
*   it_text_lines =             " eam_t_text_lines  Table with Text Lines for Task List APIs
*   et_return =                 " bapirettab    Table with BAPI Return Information
    .  "  EAM_TASKLIST_CREATE

ABAP code example for Function Module EAM_TASKLIST_CREATE





The ABAP code below is a full code listing to execute function module EAM_TASKLIST_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ev_plnnr  TYPE PLNNR ,
ld_ev_plnal  TYPE PLNAL ,
it_it_operations  TYPE STANDARD TABLE OF EAM_T_TL_OPR,"TABLES PARAM
wa_it_operations  LIKE LINE OF it_it_operations ,
it_it_components  TYPE STANDARD TABLE OF EAM_T_COMPONENT_INS,"TABLES PARAM
wa_it_components  LIKE LINE OF it_it_components ,
it_it_prts  TYPE STANDARD TABLE OF EAM_T_TL_PRT,"TABLES PARAM
wa_it_prts  LIKE LINE OF it_it_prts ,
it_it_relations  TYPE STANDARD TABLE OF EAM_T_TL_REL,"TABLES PARAM
wa_it_relations  LIKE LINE OF it_it_relations ,
it_it_spack_lines  TYPE STANDARD TABLE OF EAM_T_TL_SPACK,"TABLES PARAM
wa_it_spack_lines  LIKE LINE OF it_it_spack_lines ,
it_it_spack_outlines  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_OUTLINE,"TABLES PARAM
wa_it_spack_outlines  LIKE LINE OF it_it_spack_outlines ,
it_it_spack_limits  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_LIMITS,"TABLES PARAM
wa_it_spack_limits  LIKE LINE OF it_it_spack_limits ,
it_it_spack_contr_limits  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_CONTR_LIMITS,"TABLES PARAM
wa_it_spack_contr_limits  LIKE LINE OF it_it_spack_contr_limits ,
it_it_mpackages  TYPE STANDARD TABLE OF EAM_T_TL_MPACK,"TABLES PARAM
wa_it_mpackages  LIKE LINE OF it_it_mpackages ,
it_it_text  TYPE STANDARD TABLE OF EAM_T_TEXT,"TABLES PARAM
wa_it_text  LIKE LINE OF it_it_text ,
it_it_text_lines  TYPE STANDARD TABLE OF EAM_T_TEXT_LINES,"TABLES PARAM
wa_it_text_lines  LIKE LINE OF it_it_text_lines ,
it_et_return  TYPE STANDARD TABLE OF BAPIRETTAB,"TABLES PARAM
wa_et_return  LIKE LINE OF it_et_return .

DATA(ld_is_header) = 'Check type of data required'.
DATA(ld_iv_date) = 'Check type of data required'.
DATA(ld_iv_profile) = 'Check type of data required'.
DATA(ld_iv_clear_buffer_if_error) = 'Check type of data required'.
DATA(ld_iv_update_shorttext) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_operations to it_it_operations.

"populate fields of struture and append to itab
append wa_it_components to it_it_components.

"populate fields of struture and append to itab
append wa_it_prts to it_it_prts.

"populate fields of struture and append to itab
append wa_it_relations to it_it_relations.

"populate fields of struture and append to itab
append wa_it_spack_lines to it_it_spack_lines.

"populate fields of struture and append to itab
append wa_it_spack_outlines to it_it_spack_outlines.

"populate fields of struture and append to itab
append wa_it_spack_limits to it_it_spack_limits.

"populate fields of struture and append to itab
append wa_it_spack_contr_limits to it_it_spack_contr_limits.

"populate fields of struture and append to itab
append wa_it_mpackages to it_it_mpackages.

"populate fields of struture and append to itab
append wa_it_text to it_it_text.

"populate fields of struture and append to itab
append wa_it_text_lines to it_it_text_lines.

"populate fields of struture and append to itab
append wa_et_return to it_et_return. . CALL FUNCTION 'EAM_TASKLIST_CREATE' EXPORTING is_header = ld_is_header * iv_date = ld_iv_date * iv_profile = ld_iv_profile * iv_clear_buffer_if_error = ld_iv_clear_buffer_if_error * iv_update_shorttext = ld_iv_update_shorttext IMPORTING ev_plnnr = ld_ev_plnnr ev_plnal = ld_ev_plnal * TABLES * it_operations = it_it_operations * it_components = it_it_components * it_prts = it_it_prts * it_relations = it_it_relations * it_spack_lines = it_it_spack_lines * it_spack_outlines = it_it_spack_outlines * it_spack_limits = it_it_spack_limits * it_spack_contr_limits = it_it_spack_contr_limits * it_mpackages = it_it_mpackages * it_text = it_it_text * it_text_lines = it_it_text_lines * et_return = it_et_return . " EAM_TASKLIST_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ev_plnnr  TYPE PLNNR ,
ld_is_header  TYPE EAM_S_HDR_INS ,
it_it_operations  TYPE STANDARD TABLE OF EAM_T_TL_OPR ,
wa_it_operations  LIKE LINE OF it_it_operations,
ld_ev_plnal  TYPE PLNAL ,
ld_iv_date  TYPE DATUM ,
it_it_components  TYPE STANDARD TABLE OF EAM_T_COMPONENT_INS ,
wa_it_components  LIKE LINE OF it_it_components,
ld_iv_profile  TYPE PROFID_STD ,
it_it_prts  TYPE STANDARD TABLE OF EAM_T_TL_PRT ,
wa_it_prts  LIKE LINE OF it_it_prts,
ld_iv_clear_buffer_if_error  TYPE CHAR1 ,
it_it_relations  TYPE STANDARD TABLE OF EAM_T_TL_REL ,
wa_it_relations  LIKE LINE OF it_it_relations,
ld_iv_update_shorttext  TYPE FLAG ,
it_it_spack_lines  TYPE STANDARD TABLE OF EAM_T_TL_SPACK ,
wa_it_spack_lines  LIKE LINE OF it_it_spack_lines,
it_it_spack_outlines  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_OUTLINE ,
wa_it_spack_outlines  LIKE LINE OF it_it_spack_outlines,
it_it_spack_limits  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_LIMITS ,
wa_it_spack_limits  LIKE LINE OF it_it_spack_limits,
it_it_spack_contr_limits  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_CONTR_LIMITS ,
wa_it_spack_contr_limits  LIKE LINE OF it_it_spack_contr_limits,
it_it_mpackages  TYPE STANDARD TABLE OF EAM_T_TL_MPACK ,
wa_it_mpackages  LIKE LINE OF it_it_mpackages,
it_it_text  TYPE STANDARD TABLE OF EAM_T_TEXT ,
wa_it_text  LIKE LINE OF it_it_text,
it_it_text_lines  TYPE STANDARD TABLE OF EAM_T_TEXT_LINES ,
wa_it_text_lines  LIKE LINE OF it_it_text_lines,
it_et_return  TYPE STANDARD TABLE OF BAPIRETTAB ,
wa_et_return  LIKE LINE OF it_et_return.

ld_is_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_operations to it_it_operations.
ld_iv_date = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_components to it_it_components.
ld_iv_profile = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_prts to it_it_prts.
ld_iv_clear_buffer_if_error = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_relations to it_it_relations.
ld_iv_update_shorttext = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_spack_lines to it_it_spack_lines.

"populate fields of struture and append to itab
append wa_it_spack_outlines to it_it_spack_outlines.

"populate fields of struture and append to itab
append wa_it_spack_limits to it_it_spack_limits.

"populate fields of struture and append to itab
append wa_it_spack_contr_limits to it_it_spack_contr_limits.

"populate fields of struture and append to itab
append wa_it_mpackages to it_it_mpackages.

"populate fields of struture and append to itab
append wa_it_text to it_it_text.

"populate fields of struture and append to itab
append wa_it_text_lines to it_it_text_lines.

"populate fields of struture and append to itab
append wa_et_return to it_et_return.

SAP Documentation for FM EAM_TASKLIST_CREATE


Application interface for creating task lists in the buffer table. This function module enables you to create the components of a single task ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name EAM_TASKLIST_CREATE or its description.