SAP EAM_TASKLIST_CHANGE Function Module for Change API for task list









EAM_TASKLIST_CHANGE is a standard eam tasklist change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change API for task list processing and below is the pattern details for this FM, 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 eam tasklist change FM, simply by entering the name EAM_TASKLIST_CHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: EAM_TL
Program Name: SAPLEAM_TL
Main Program: SAPLEAM_TL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function EAM_TASKLIST_CHANGE 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 'EAM_TASKLIST_CHANGE'"Change API for task list
EXPORTING
IV_PLNTY = "Task List Type
* IV_PLNNR = "Key for Task List Group
* IV_EQUNR = "Equipment Number
* IV_TPLNR = "Functional Location
* IV_DATE = SY-DATUM "Date
* IV_CLEAR_BUFFER_IF_ERROR = 'X' "Indicator to clear the buffers if exception occurs
* IS_HIERARCHY_TOP_KEY = "HTL Key for Top Hierarchy Level
* IV_UPDATE_SHORTTEXT = ABAP_TRUE "Update shorttext from first line of longtext

IMPORTING
EV_PLNNR = "Key for Task List Group

TABLES
* IT_HEADER_DEL = "Task list header dialog table type
* IT_COMPONENTS_UPD = "Table type for material components used for task lists
* IT_COMPONENTS_UPDX = "Task list: table with update flags for material components
* IT_PRTS_INS = "Task list API: table for PRT update
* IT_PRTS_DEL = "Task list API: table for PRT update
* IT_PRTS_UPD = "Task list API: table for PRT update
* IT_PRTS_UPDX = "Task list API: table for PRT update indicators
* IT_RELATIONS_INS = "Task list relations dialog table type
* IT_RELATIONS_DEL = "Task list relations dialog table type
* IT_RELATIONS_UPD = "Task list relations dialog table type
* IT_RELATIONS_UPDX = "Task list: table containing update flags for relations
* IT_HEADER_UPD = "Task list: table for header update in API
* IT_SPACK_LINES_INS = "Task list API: service line data detail
* IT_SPACK_LINES_UPD = "Task list API: service line data detail
* IT_SPACK_LINES_UPDX = "Update structure for MM-SRV services in task list
* IT_SPACK_DEL = "Task List API: Serviceline data detail
* IT_SPACK_OUTLINES_INS = "Task list API: Table containing service package outlines
* IT_SPACK_OUTLINES_UPD = "Task list API: Table containing service package outlines
* IT_SPACK_OUTLINES_UPDX = "Task list API: Flag structure for service pack outlines
* IT_SPACK_OUTLINES_DEL = "Task list API: Table containing service package outlines
* IT_SPACK_LIMITS_INS = "Task list API: Service package limit data
* IT_SPACK_LIMITS_UPD = "Task list API: Service package limit data
* IT_HEADER_UPDX = "Task list API: table for task list header update indicators
* IT_SPACK_LIMITS_UPDX = "Task list API: Update flags for service limit data
* IT_SPACK_LIMITS_DEL = "Task list API: Service package limit data
* IT_SPACK_CONTR_LIMITS_INS = "Task list API: Service package contract limits
* IT_SPACK_CONTR_LIMITS_UPD = "Task list API: Service package contract limits
* IT_SPACK_CONTR_LIMITS_UPDX = "Task list API: Update flags for service contract limits
* IT_SPACK_CONTR_LIMITS_DEL = "Task list API: Service package contract limits
* IT_MPACKAGES_INS = "Task list API table of maintenance packages
* IT_MPACKAGES_DEL = "Task list API table of maintenance packages
* IT_TEXT_INS = "Table with text header for task list APIs
* IT_TEXT_LINES_INS = "Table with text lines for task list APIs
* IT_OPERATIONS_INS = "Task list operation dialog table type
* IT_TEXT_DEL = "Table with text header for task list APIs
* IT_TEXT_UPD = "Table with text header for task list APIs
* IT_TEXT_LINES_UPD = "Table with text lines for task list APIs
* ET_RETURN = "Table with BAPI return information
* IT_OPERATIONS_DEL = "Task list operation dialog table type
* IT_OPERATIONS_UPD = "Task list operation dialog table type
* IT_OPERATIONS_UPDX = "Task list: table with update flags for operations
* IT_COMPONENTS_INS = "Table type for material components used for task lists
* IT_COMPONENTS_DEL = "Table type for material components used for task lists
.



IMPORTING Parameters details for EAM_TASKLIST_CHANGE

IV_PLNTY - Task List Type

Data type: PLNTY
Optional: No
Call by Reference: No ( called with pass by value option)

IV_PLNNR - Key for Task List Group

Data type: PLNNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_EQUNR - Equipment Number

Data type: EQUNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TPLNR - Functional Location

Data type: TPLNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_DATE - Date

Data type: DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CLEAR_BUFFER_IF_ERROR - Indicator to clear the buffers if exception occurs

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_HIERARCHY_TOP_KEY - HTL Key for Top Hierarchy Level

Data type: EAM_S_TL_KEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_UPDATE_SHORTTEXT - Update shorttext from first line of longtext

Data type: BOOLE
Default: ABAP_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EAM_TASKLIST_CHANGE

EV_PLNNR - Key for Task List Group

Data type: PLNNR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for EAM_TASKLIST_CHANGE

IT_HEADER_DEL - Task list header dialog table type

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

IT_COMPONENTS_UPD - Table type for material components used for task lists

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

IT_COMPONENTS_UPDX - Task list: table with update flags for material components

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

IT_PRTS_INS - Task list API: table for PRT update

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

IT_PRTS_DEL - Task list API: table for PRT update

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

IT_PRTS_UPD - Task list API: table for PRT update

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

IT_PRTS_UPDX - Task list API: table for PRT update indicators

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

IT_RELATIONS_INS - Task list relations dialog table type

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

IT_RELATIONS_DEL - Task list relations dialog table type

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

IT_RELATIONS_UPD - Task list relations dialog table type

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

IT_RELATIONS_UPDX - Task list: table containing update flags for relations

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

IT_HEADER_UPD - Task list: table for header update in API

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

IT_SPACK_LINES_INS - Task list API: service line data detail

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

IT_SPACK_LINES_UPD - Task list API: service line data detail

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

IT_SPACK_LINES_UPDX - Update structure for MM-SRV services in task list

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

IT_SPACK_DEL - Task List API: Serviceline data detail

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

IT_SPACK_OUTLINES_INS - Task list API: Table containing service package outlines

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

IT_SPACK_OUTLINES_UPD - Task list API: Table containing service package outlines

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

IT_SPACK_OUTLINES_UPDX - Task list API: Flag structure for service pack outlines

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

IT_SPACK_OUTLINES_DEL - Task list API: Table containing service package outlines

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

IT_SPACK_LIMITS_INS - Task list API: Service package limit data

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

IT_SPACK_LIMITS_UPD - Task list API: Service package limit data

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

IT_HEADER_UPDX - Task list API: table for task list header update indicators

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

IT_SPACK_LIMITS_UPDX - Task list API: Update flags for service limit data

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

IT_SPACK_LIMITS_DEL - Task list API: Service package limit data

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

IT_SPACK_CONTR_LIMITS_INS - Task list API: Service package contract limits

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

IT_SPACK_CONTR_LIMITS_UPD - Task list API: Service package contract limits

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

IT_SPACK_CONTR_LIMITS_UPDX - Task list API: Update flags for service contract limits

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

IT_SPACK_CONTR_LIMITS_DEL - Task list API: Service package contract limits

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

IT_MPACKAGES_INS - Task list API table of maintenance packages

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

IT_MPACKAGES_DEL - Task list API table of maintenance packages

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

IT_TEXT_INS - Table with text header for task list APIs

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

IT_TEXT_LINES_INS - Table with text lines for task list APIs

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

IT_OPERATIONS_INS - Task list operation dialog table type

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

IT_TEXT_DEL - Table with text header for task list APIs

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

IT_TEXT_UPD - Table with text header for task list APIs

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

IT_TEXT_LINES_UPD - Table with text lines for task list APIs

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

ET_RETURN - Table with BAPI return information

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

IT_OPERATIONS_DEL - Task list operation dialog table type

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

IT_OPERATIONS_UPD - Task list operation dialog table type

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

IT_OPERATIONS_UPDX - Task list: table with update flags for operations

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

IT_COMPONENTS_INS - Table type for material components used for task lists

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

IT_COMPONENTS_DEL - Table type for material components used for task lists

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

Copy and paste ABAP code example for EAM_TASKLIST_CHANGE 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_ev_plnnr  TYPE PLNNR, "   
lv_iv_plnty  TYPE PLNTY, "   
lt_it_header_del  TYPE STANDARD TABLE OF EAM_T_PLKOD, "   
lt_it_components_upd  TYPE STANDARD TABLE OF EAM_T_COMPONENT_INS, "   
lt_it_components_updx  TYPE STANDARD TABLE OF EAM_T_TL_PLMZ_UP, "   
lt_it_prts_ins  TYPE STANDARD TABLE OF EAM_T_TL_PRT, "   
lt_it_prts_del  TYPE STANDARD TABLE OF EAM_T_TL_PRT, "   
lt_it_prts_upd  TYPE STANDARD TABLE OF EAM_T_TL_PRT, "   
lt_it_prts_updx  TYPE STANDARD TABLE OF EAM_T_TL_PRT_UP, "   
lt_it_relations_ins  TYPE STANDARD TABLE OF EAM_T_TL_REL, "   
lt_it_relations_del  TYPE STANDARD TABLE OF EAM_T_TL_REL, "   
lt_it_relations_upd  TYPE STANDARD TABLE OF EAM_T_TL_REL, "   
lt_it_relations_updx  TYPE STANDARD TABLE OF EAM_T_TL_REL_UP, "   
lv_iv_plnnr  TYPE PLNNR, "   
lt_it_header_upd  TYPE STANDARD TABLE OF EAM_T_HDR_UPD, "   
lt_it_spack_lines_ins  TYPE STANDARD TABLE OF EAM_T_TL_SPACK, "   
lt_it_spack_lines_upd  TYPE STANDARD TABLE OF EAM_T_TL_SPACK, "   
lt_it_spack_lines_updx  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_UPDX, "   
lt_it_spack_del  TYPE STANDARD TABLE OF EAM_T_TL_SPACK, "   
lt_it_spack_outlines_ins  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_OUTLINE, "   
lt_it_spack_outlines_upd  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_OUTLINE, "   
lt_it_spack_outlines_updx  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_OUTLINES_UP, "   
lt_it_spack_outlines_del  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_OUTLINE, "   
lt_it_spack_limits_ins  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_LIMITS, "   
lt_it_spack_limits_upd  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_LIMITS, "   
lv_iv_equnr  TYPE EQUNR, "   
lt_it_header_updx  TYPE STANDARD TABLE OF EAM_T_PLKOD_UP, "   
lt_it_spack_limits_updx  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_LIMITS_UP, "   
lt_it_spack_limits_del  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_LIMITS, "   
lt_it_spack_contr_limits_ins  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_CONTR_LIMITS, "   
lt_it_spack_contr_limits_upd  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_CONTR_LIMITS, "   
lt_it_spack_contr_limits_updx  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_CONTR_LIMITS_UP, "   
lt_it_spack_contr_limits_del  TYPE STANDARD TABLE OF EAM_T_TL_SPACK_CONTR_LIMITS, "   
lt_it_mpackages_ins  TYPE STANDARD TABLE OF EAM_T_TL_MPACK, "   
lt_it_mpackages_del  TYPE STANDARD TABLE OF EAM_T_TL_MPACK, "   
lt_it_text_ins  TYPE STANDARD TABLE OF EAM_T_TEXT, "   
lt_it_text_lines_ins  TYPE STANDARD TABLE OF EAM_T_TEXT_LINES, "   
lv_iv_tplnr  TYPE TPLNR, "   
lt_it_operations_ins  TYPE STANDARD TABLE OF EAM_T_TL_OPR, "   
lt_it_text_del  TYPE STANDARD TABLE OF EAM_T_TEXT, "   
lt_it_text_upd  TYPE STANDARD TABLE OF EAM_T_TEXT, "   
lt_it_text_lines_upd  TYPE STANDARD TABLE OF EAM_T_TEXT_LINES, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRETTAB, "   
lv_iv_date  TYPE DATUM, "   SY-DATUM
lt_it_operations_del  TYPE STANDARD TABLE OF EAM_T_TL_OPR, "   
lt_it_operations_upd  TYPE STANDARD TABLE OF EAM_T_TL_OPR, "   
lv_iv_clear_buffer_if_error  TYPE CHAR1, "   'X'
lt_it_operations_updx  TYPE STANDARD TABLE OF EAM_T_TL_OPR_UP, "   
lv_is_hierarchy_top_key  TYPE EAM_S_TL_KEY, "   
lt_it_components_ins  TYPE STANDARD TABLE OF EAM_T_COMPONENT_INS, "   
lv_iv_update_shorttext  TYPE BOOLE, "   ABAP_TRUE
lt_it_components_del  TYPE STANDARD TABLE OF EAM_T_COMPONENT_INS. "   

  CALL FUNCTION 'EAM_TASKLIST_CHANGE'  "Change API for task list
    EXPORTING
         IV_PLNTY = lv_iv_plnty
         IV_PLNNR = lv_iv_plnnr
         IV_EQUNR = lv_iv_equnr
         IV_TPLNR = lv_iv_tplnr
         IV_DATE = lv_iv_date
         IV_CLEAR_BUFFER_IF_ERROR = lv_iv_clear_buffer_if_error
         IS_HIERARCHY_TOP_KEY = lv_is_hierarchy_top_key
         IV_UPDATE_SHORTTEXT = lv_iv_update_shorttext
    IMPORTING
         EV_PLNNR = lv_ev_plnnr
    TABLES
         IT_HEADER_DEL = lt_it_header_del
         IT_COMPONENTS_UPD = lt_it_components_upd
         IT_COMPONENTS_UPDX = lt_it_components_updx
         IT_PRTS_INS = lt_it_prts_ins
         IT_PRTS_DEL = lt_it_prts_del
         IT_PRTS_UPD = lt_it_prts_upd
         IT_PRTS_UPDX = lt_it_prts_updx
         IT_RELATIONS_INS = lt_it_relations_ins
         IT_RELATIONS_DEL = lt_it_relations_del
         IT_RELATIONS_UPD = lt_it_relations_upd
         IT_RELATIONS_UPDX = lt_it_relations_updx
         IT_HEADER_UPD = lt_it_header_upd
         IT_SPACK_LINES_INS = lt_it_spack_lines_ins
         IT_SPACK_LINES_UPD = lt_it_spack_lines_upd
         IT_SPACK_LINES_UPDX = lt_it_spack_lines_updx
         IT_SPACK_DEL = lt_it_spack_del
         IT_SPACK_OUTLINES_INS = lt_it_spack_outlines_ins
         IT_SPACK_OUTLINES_UPD = lt_it_spack_outlines_upd
         IT_SPACK_OUTLINES_UPDX = lt_it_spack_outlines_updx
         IT_SPACK_OUTLINES_DEL = lt_it_spack_outlines_del
         IT_SPACK_LIMITS_INS = lt_it_spack_limits_ins
         IT_SPACK_LIMITS_UPD = lt_it_spack_limits_upd
         IT_HEADER_UPDX = lt_it_header_updx
         IT_SPACK_LIMITS_UPDX = lt_it_spack_limits_updx
         IT_SPACK_LIMITS_DEL = lt_it_spack_limits_del
         IT_SPACK_CONTR_LIMITS_INS = lt_it_spack_contr_limits_ins
         IT_SPACK_CONTR_LIMITS_UPD = lt_it_spack_contr_limits_upd
         IT_SPACK_CONTR_LIMITS_UPDX = lt_it_spack_contr_limits_updx
         IT_SPACK_CONTR_LIMITS_DEL = lt_it_spack_contr_limits_del
         IT_MPACKAGES_INS = lt_it_mpackages_ins
         IT_MPACKAGES_DEL = lt_it_mpackages_del
         IT_TEXT_INS = lt_it_text_ins
         IT_TEXT_LINES_INS = lt_it_text_lines_ins
         IT_OPERATIONS_INS = lt_it_operations_ins
         IT_TEXT_DEL = lt_it_text_del
         IT_TEXT_UPD = lt_it_text_upd
         IT_TEXT_LINES_UPD = lt_it_text_lines_upd
         ET_RETURN = lt_et_return
         IT_OPERATIONS_DEL = lt_it_operations_del
         IT_OPERATIONS_UPD = lt_it_operations_upd
         IT_OPERATIONS_UPDX = lt_it_operations_updx
         IT_COMPONENTS_INS = lt_it_components_ins
         IT_COMPONENTS_DEL = lt_it_components_del
. " EAM_TASKLIST_CHANGE




ABAP code using 7.40 inline data declarations to call FM EAM_TASKLIST_CHANGE

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_iv_date) = SY-DATUM.
 
 
 
DATA(ld_iv_clear_buffer_if_error) = 'X'.
 
 
 
 
DATA(ld_iv_update_shorttext) = ABAP_TRUE.
 
 


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!