SAP EAM_TASKLIST_GET_DETAIL Function Module for Read API for task list
EAM_TASKLIST_GET_DETAIL is a standard eam tasklist get detail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read 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 get detail FM, simply by entering the name EAM_TASKLIST_GET_DETAIL 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_GET_DETAIL 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_GET_DETAIL'"Read API for task list.
EXPORTING
IV_PLNTY = "Task List Type
* IV_DATE = SY-DATUM "Date
* IV_REFRESH_BUFFER = "refresh buffer -> read from DB
* IV_LOCK = "Indicator: Read with lock
* IV_PLNNR = "Key for Task List Group
* IV_EQUNR = "Equipment Number
* IV_TPLNR = "Functional Location
* IV_PLNAL = "Group Counter
* IV_USAGE = "Use by user or system
* IV_STATUS = "Status
* IV_PLANT = "Plant
* IV_PLNGR = "Responsible planner group/department
TABLES
* ET_HEADERS = "Task List API: Header Data with Technical Objects IDs
* ET_MPACKAGES = "Task List API Table of Maintenance Packages
* ET_TEXT = "Table with Text Header for Task List APIs
* ET_TEXT_LINES = "Table with Text Lines for Task List APIs
* ET_HDR_HIERARCHY = "Task List API: Header Data with Technical Objects IDs for Hierarchy
* ET_OPR_HIERARCHY = "Task List Operation Dialog Table Type for Hierarchy
* ET_RETURN = "Table with BAPI Return Information
* ET_OPERATIONS = "Task List Operation Dialog Table Type
* ET_COMPONENTS = "Table Type for Material Components Used for Task Lists
* ET_PRTS = "Task List API: Table for PRT Detail
* ET_RELATIONS = "Task List Relations Dialog Table Type
* ET_SPACK_LINES = "Task List API: Serviceline Data Detail
* ET_SPACK_OUTLINES = "Task list API: Table containing service package outlines
* ET_SPACK_LIMITS = "Task list API: Service package contract limits
* ET_SPACK_CONTR_LIMITS = "Task list API: Service package limit data
IMPORTING Parameters details for EAM_TASKLIST_GET_DETAIL
IV_PLNTY - Task List Type
Data type: PLNTYOptional: No
Call by Reference: No ( called with pass by value option)
IV_DATE - Date
Data type: DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_REFRESH_BUFFER - refresh buffer -> read from DB
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LOCK - Indicator: Read with lock
Data type: FLG_ENQOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PLNNR - Key for Task List Group
Data type: PLNNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_EQUNR - Equipment Number
Data type: EQUNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TPLNR - Functional Location
Data type: TPLNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PLNAL - Group Counter
Data type: PLNALOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_USAGE - Use by user or system
Data type: VERWEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_STATUS - Status
Data type: PLNSTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PLANT - Plant
Data type: WERKS_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PLNGR - Responsible planner group/department
Data type: VAGRPOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EAM_TASKLIST_GET_DETAIL
ET_HEADERS - Task List API: Header Data with Technical Objects IDs
Data type: EAM_T_PLKOD_EXTOptional: Yes
Call by Reference: Yes
ET_MPACKAGES - Task List API Table of Maintenance Packages
Data type: EAM_T_PLWPDOptional: Yes
Call by Reference: Yes
ET_TEXT - Table with Text Header for Task List APIs
Data type: EAM_T_TEXTOptional: Yes
Call by Reference: Yes
ET_TEXT_LINES - Table with Text Lines for Task List APIs
Data type: EAM_T_TEXT_LINESOptional: Yes
Call by Reference: Yes
ET_HDR_HIERARCHY - Task List API: Header Data with Technical Objects IDs for Hierarchy
Data type: EAM_T_PLKOD_EXTOptional: Yes
Call by Reference: Yes
ET_OPR_HIERARCHY - Task List Operation Dialog Table Type for Hierarchy
Data type: EAM_T_PLPODOptional: Yes
Call by Reference: Yes
ET_RETURN - Table with BAPI Return Information
Data type: BAPIRETTABOptional: Yes
Call by Reference: Yes
ET_OPERATIONS - Task List Operation Dialog Table Type
Data type: EAM_T_PLPODOptional: Yes
Call by Reference: Yes
ET_COMPONENTS - Table Type for Material Components Used for Task Lists
Data type: EAM_T_TL_COMPONENTOptional: Yes
Call by Reference: Yes
ET_PRTS - Task List API: Table for PRT Detail
Data type: EAM_T_TL_PRT_DETAILOptional: Yes
Call by Reference: Yes
ET_RELATIONS - Task List Relations Dialog Table Type
Data type: EAM_T_PLABDOptional: Yes
Call by Reference: Yes
ET_SPACK_LINES - Task List API: Serviceline Data Detail
Data type: EAM_T_TL_SPACKOptional: Yes
Call by Reference: Yes
ET_SPACK_OUTLINES - Task list API: Table containing service package outlines
Data type: EAM_T_TL_SPACK_OUTLINEOptional: Yes
Call by Reference: Yes
ET_SPACK_LIMITS - Task list API: Service package contract limits
Data type: EAM_T_TL_SPACK_LIMITSOptional: Yes
Call by Reference: Yes
ET_SPACK_CONTR_LIMITS - Task list API: Service package limit data
Data type: EAM_T_TL_SPACK_CONTR_LIMITSOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for EAM_TASKLIST_GET_DETAIL 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_iv_plnty | TYPE PLNTY, " | |||
| lt_et_headers | TYPE STANDARD TABLE OF EAM_T_PLKOD_EXT, " | |||
| lv_iv_date | TYPE DATUM, " SY-DATUM | |||
| lt_et_mpackages | TYPE STANDARD TABLE OF EAM_T_PLWPD, " | |||
| lt_et_text | TYPE STANDARD TABLE OF EAM_T_TEXT, " | |||
| lv_iv_refresh_buffer | TYPE FLAG, " | |||
| lv_iv_lock | TYPE FLG_ENQ, " | |||
| lt_et_text_lines | TYPE STANDARD TABLE OF EAM_T_TEXT_LINES, " | |||
| lt_et_hdr_hierarchy | TYPE STANDARD TABLE OF EAM_T_PLKOD_EXT, " | |||
| lt_et_opr_hierarchy | TYPE STANDARD TABLE OF EAM_T_PLPOD, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRETTAB, " | |||
| lv_iv_plnnr | TYPE PLNNR, " | |||
| lt_et_operations | TYPE STANDARD TABLE OF EAM_T_PLPOD, " | |||
| lv_iv_equnr | TYPE EQUNR, " | |||
| lt_et_components | TYPE STANDARD TABLE OF EAM_T_TL_COMPONENT, " | |||
| lt_et_prts | TYPE STANDARD TABLE OF EAM_T_TL_PRT_DETAIL, " | |||
| lv_iv_tplnr | TYPE TPLNR, " | |||
| lv_iv_plnal | TYPE PLNAL, " | |||
| lt_et_relations | TYPE STANDARD TABLE OF EAM_T_PLABD, " | |||
| lv_iv_usage | TYPE VERWE, " | |||
| lt_et_spack_lines | TYPE STANDARD TABLE OF EAM_T_TL_SPACK, " | |||
| lv_iv_status | TYPE PLNST, " | |||
| lt_et_spack_outlines | TYPE STANDARD TABLE OF EAM_T_TL_SPACK_OUTLINE, " | |||
| lv_iv_plant | TYPE WERKS_D, " | |||
| lt_et_spack_limits | TYPE STANDARD TABLE OF EAM_T_TL_SPACK_LIMITS, " | |||
| lv_iv_plngr | TYPE VAGRP, " | |||
| lt_et_spack_contr_limits | TYPE STANDARD TABLE OF EAM_T_TL_SPACK_CONTR_LIMITS. " |
|   CALL FUNCTION 'EAM_TASKLIST_GET_DETAIL' "Read API for task list |
| EXPORTING | ||
| IV_PLNTY | = lv_iv_plnty | |
| IV_DATE | = lv_iv_date | |
| IV_REFRESH_BUFFER | = lv_iv_refresh_buffer | |
| IV_LOCK | = lv_iv_lock | |
| IV_PLNNR | = lv_iv_plnnr | |
| IV_EQUNR | = lv_iv_equnr | |
| IV_TPLNR | = lv_iv_tplnr | |
| IV_PLNAL | = lv_iv_plnal | |
| IV_USAGE | = lv_iv_usage | |
| IV_STATUS | = lv_iv_status | |
| IV_PLANT | = lv_iv_plant | |
| IV_PLNGR | = lv_iv_plngr | |
| TABLES | ||
| ET_HEADERS | = lt_et_headers | |
| ET_MPACKAGES | = lt_et_mpackages | |
| ET_TEXT | = lt_et_text | |
| ET_TEXT_LINES | = lt_et_text_lines | |
| ET_HDR_HIERARCHY | = lt_et_hdr_hierarchy | |
| ET_OPR_HIERARCHY | = lt_et_opr_hierarchy | |
| ET_RETURN | = lt_et_return | |
| ET_OPERATIONS | = lt_et_operations | |
| ET_COMPONENTS | = lt_et_components | |
| ET_PRTS | = lt_et_prts | |
| ET_RELATIONS | = lt_et_relations | |
| ET_SPACK_LINES | = lt_et_spack_lines | |
| ET_SPACK_OUTLINES | = lt_et_spack_outlines | |
| ET_SPACK_LIMITS | = lt_et_spack_limits | |
| ET_SPACK_CONTR_LIMITS | = lt_et_spack_contr_limits | |
| . " EAM_TASKLIST_GET_DETAIL | ||
ABAP code using 7.40 inline data declarations to call FM EAM_TASKLIST_GET_DETAIL
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. | |||
Search for further information about these or an SAP related objects