SAP DMC_MIG_EAM_TASKLIST Function Module for Migration of EAM task list
DMC_MIG_EAM_TASKLIST is a standard dmc mig eam tasklist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Migration of EAM 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 dmc mig eam tasklist FM, simply by entering the name DMC_MIG_EAM_TASKLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: EAM_DATA_MIG_GRP
Program Name: SAPLEAM_DATA_MIG_GRP
Main Program: SAPLEAM_DATA_MIG_GRP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DMC_MIG_EAM_TASKLIST 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 'DMC_MIG_EAM_TASKLIST'"Migration of EAM task list.
EXPORTING
IS_HEADER = "Task List API: Header data insert structure
* IV_DATE = SY-DATUM "Date
* IV_PROFILE = ' ' "Profile
* IV_CLEAR_BUFFER_IF_ERROR = 'X' "Single-Character Flag
* IV_UPDATE_SHORTTEXT = ABAP_TRUE "General Flag
* TESTRUN = "Switch to Simulation Session for Write BAPIs
IMPORTING
EV_PLNNR = "Key for Task List Group
EV_PLNAL = "Group Counter
TABLES
* IT_OPERATIONS = "Task list : Structure for operation update / insert
* IT_TEXT = "Text Header for Task List APIs
* IT_TEXT_LINES = "Text Lines for Task List APIs
* ET_RETURN = "Return Parameter
* IT_COMPONENTS = "Tasklist: Structure for update or create material components
* IT_PRTS = "Task List API: PRT data for create or change
* IT_RELATIONS = "Task list: Structure relations for insert / change in API
* IT_SPACK_LINES = "Task List API: Service data for read detail
* IT_SPACK_OUTLINES = "Task list API: Service package outline data
* IT_SPACK_LIMITS = "Task list API: Limit data of service package
* IT_SPACK_CONTR_LIMITS = "Task list API: Contract limits of service package
* IT_MPACKAGES = "Task List API: Data for maintenance packag update / insert
IMPORTING Parameters details for DMC_MIG_EAM_TASKLIST
IS_HEADER - Task List API: Header data insert structure
Data type: EAM_S_HDR_INSOptional: 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_PROFILE - Profile
Data type: PROFID_STDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CLEAR_BUFFER_IF_ERROR - Single-Character Flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_UPDATE_SHORTTEXT - General Flag
Data type: FLAGDefault: ABAP_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Switch to Simulation Session for Write BAPIs
Data type: BAPIE1GLOBAL_DATA-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DMC_MIG_EAM_TASKLIST
EV_PLNNR - Key for Task List Group
Data type: PLNNROptional: No
Call by Reference: No ( called with pass by value option)
EV_PLNAL - Group Counter
Data type: PLNALOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DMC_MIG_EAM_TASKLIST
IT_OPERATIONS - Task list : Structure for operation update / insert
Data type: EAM_S_TL_OPROptional: Yes
Call by Reference: Yes
IT_TEXT - Text Header for Task List APIs
Data type: EAM_S_TEXTOptional: Yes
Call by Reference: Yes
IT_TEXT_LINES - Text Lines for Task List APIs
Data type: EAM_S_TEXT_LINESOptional: Yes
Call by Reference: Yes
ET_RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
IT_COMPONENTS - Tasklist: Structure for update or create material components
Data type: EAM_S_TL_PLMZ_UPOptional: Yes
Call by Reference: Yes
IT_PRTS - Task List API: PRT data for create or change
Data type: EAM_S_TL_PRTOptional: Yes
Call by Reference: Yes
IT_RELATIONS - Task list: Structure relations for insert / change in API
Data type: EAM_S_TL_RELOptional: Yes
Call by Reference: Yes
IT_SPACK_LINES - Task List API: Service data for read detail
Data type: EAM_S_TL_SPACKOptional: Yes
Call by Reference: Yes
IT_SPACK_OUTLINES - Task list API: Service package outline data
Data type: EAM_S_TL_SPACK_OUTLINEOptional: Yes
Call by Reference: Yes
IT_SPACK_LIMITS - Task list API: Limit data of service package
Data type: EAM_S_TL_SPACK_LIMITOptional: Yes
Call by Reference: Yes
IT_SPACK_CONTR_LIMITS - Task list API: Contract limits of service package
Data type: EAM_S_TL_SPACK_CONTR_LIMITOptional: Yes
Call by Reference: Yes
IT_MPACKAGES - Task List API: Data for maintenance packag update / insert
Data type: EAM_S_TL_MPACKOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for DMC_MIG_EAM_TASKLIST 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_is_header | TYPE EAM_S_HDR_INS, " | |||
| lt_it_operations | TYPE STANDARD TABLE OF EAM_S_TL_OPR, " | |||
| lt_it_text | TYPE STANDARD TABLE OF EAM_S_TEXT, " | |||
| lt_it_text_lines | TYPE STANDARD TABLE OF EAM_S_TEXT_LINES, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_iv_date | TYPE DATUM, " SY-DATUM | |||
| lv_ev_plnal | TYPE PLNAL, " | |||
| lt_it_components | TYPE STANDARD TABLE OF EAM_S_TL_PLMZ_UP, " | |||
| lt_it_prts | TYPE STANDARD TABLE OF EAM_S_TL_PRT, " | |||
| lv_iv_profile | TYPE PROFID_STD, " SPACE | |||
| lt_it_relations | TYPE STANDARD TABLE OF EAM_S_TL_REL, " | |||
| lv_iv_clear_buffer_if_error | TYPE CHAR1, " 'X' | |||
| lt_it_spack_lines | TYPE STANDARD TABLE OF EAM_S_TL_SPACK, " | |||
| lv_iv_update_shorttext | TYPE FLAG, " ABAP_TRUE | |||
| lv_testrun | TYPE BAPIE1GLOBAL_DATA-TESTRUN, " | |||
| lt_it_spack_outlines | TYPE STANDARD TABLE OF EAM_S_TL_SPACK_OUTLINE, " | |||
| lt_it_spack_limits | TYPE STANDARD TABLE OF EAM_S_TL_SPACK_LIMIT, " | |||
| lt_it_spack_contr_limits | TYPE STANDARD TABLE OF EAM_S_TL_SPACK_CONTR_LIMIT, " | |||
| lt_it_mpackages | TYPE STANDARD TABLE OF EAM_S_TL_MPACK. " |
|   CALL FUNCTION 'DMC_MIG_EAM_TASKLIST' "Migration of EAM task list |
| EXPORTING | ||
| IS_HEADER | = lv_is_header | |
| IV_DATE | = lv_iv_date | |
| IV_PROFILE | = lv_iv_profile | |
| IV_CLEAR_BUFFER_IF_ERROR | = lv_iv_clear_buffer_if_error | |
| IV_UPDATE_SHORTTEXT | = lv_iv_update_shorttext | |
| TESTRUN | = lv_testrun | |
| IMPORTING | ||
| EV_PLNNR | = lv_ev_plnnr | |
| EV_PLNAL | = lv_ev_plnal | |
| TABLES | ||
| IT_OPERATIONS | = lt_it_operations | |
| IT_TEXT | = lt_it_text | |
| IT_TEXT_LINES | = lt_it_text_lines | |
| ET_RETURN | = lt_et_return | |
| IT_COMPONENTS | = lt_it_components | |
| IT_PRTS | = lt_it_prts | |
| IT_RELATIONS | = lt_it_relations | |
| IT_SPACK_LINES | = lt_it_spack_lines | |
| IT_SPACK_OUTLINES | = lt_it_spack_outlines | |
| IT_SPACK_LIMITS | = lt_it_spack_limits | |
| IT_SPACK_CONTR_LIMITS | = lt_it_spack_contr_limits | |
| IT_MPACKAGES | = lt_it_mpackages | |
| . " DMC_MIG_EAM_TASKLIST | ||
ABAP code using 7.40 inline data declarations to call FM DMC_MIG_EAM_TASKLIST
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_profile) | = ' '. | |||
| DATA(ld_iv_clear_buffer_if_error) | = 'X'. | |||
| DATA(ld_iv_update_shorttext) | = ABAP_TRUE. | |||
| "SELECT single TESTRUN FROM BAPIE1GLOBAL_DATA INTO @DATA(ld_testrun). | ||||
Search for further information about these or an SAP related objects