SAP MIG_WELL_COMPLETION_DATA Function Module for RFC to migrate well completion data from PRA to UOM
MIG_WELL_COMPLETION_DATA is a standard mig well completion data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RFC to migrate well completion data from PRA to UOM 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 mig well completion data FM, simply by entering the name MIG_WELL_COMPLETION_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: UPO_MIG_PARALLEL
Program Name: SAPLUPO_MIG_PARALLEL
Main Program: SAPLUPO_MIG_PARALLEL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MIG_WELL_COMPLETION_DATA 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 'MIG_WELL_COMPLETION_DATA'"RFC to migrate well completion data from PRA to UOM.
EXPORTING
IT_WELL_COMPLETION = "Table Type to hold Well completion details
IV_TRIAL = "General Flag
IS_CONFIG_DEFAULT = "PRA to UOM Configuration Migration Defaults
IT_WELL_COMPLETION_DATED = "Table Type to hold well completions dated information
IT_ENTITY_MAP = "Migration Configuration table type for Entity Mapping
IT_REGION = "Table type for UOM-->PRA Region Map Table
IT_DEFAULT = "Defaults for UPO Migration
IT_WC_SEPERATOR = "Well and Well Completion Separator in WC ID
IT_WC_MEASUREMENT = "Well Test Measurement Type Derivation
IT_TASKLIST_MAP = "PRA measurement type to tasklist mapping
IT_PRA_OBJECT_MAP = "table type of pra object Map
IMPORTING
ET_MESSAGES = "Message Table (enhanced)
IMPORTING Parameters details for MIG_WELL_COMPLETION_DATA
IT_WELL_COMPLETION - Table Type to hold Well completion details
Data type: UPOTT_MIG_WELL_COMP_DETAILOptional: No
Call by Reference: No ( called with pass by value option)
IV_TRIAL - General Flag
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
IS_CONFIG_DEFAULT - PRA to UOM Configuration Migration Defaults
Data type: UPOC_MIG_ENT_MAPOptional: No
Call by Reference: No ( called with pass by value option)
IT_WELL_COMPLETION_DATED - Table Type to hold well completions dated information
Data type: UPOTT_MIG_WELL_COMP_DATEDOptional: No
Call by Reference: No ( called with pass by value option)
IT_ENTITY_MAP - Migration Configuration table type for Entity Mapping
Data type: UPOTT_MIG_EMAP_MDOptional: No
Call by Reference: No ( called with pass by value option)
IT_REGION - Table type for UOM-->PRA Region Map Table
Data type: UPOTT_MIG_REGION_MAPOptional: No
Call by Reference: No ( called with pass by value option)
IT_DEFAULT - Defaults for UPO Migration
Data type: UPOTT_MIG_DEFAULTOptional: No
Call by Reference: No ( called with pass by value option)
IT_WC_SEPERATOR - Well and Well Completion Separator in WC ID
Data type: UPOTT_MIG_WC_SEPOptional: No
Call by Reference: No ( called with pass by value option)
IT_WC_MEASUREMENT - Well Test Measurement Type Derivation
Data type: UPOTT_MIG_WELL_TEST_MAPOptional: No
Call by Reference: No ( called with pass by value option)
IT_TASKLIST_MAP - PRA measurement type to tasklist mapping
Data type: UPOTT_MIG_TKL_MAPOptional: No
Call by Reference: No ( called with pass by value option)
IT_PRA_OBJECT_MAP - table type of pra object Map
Data type: UPOTT_MIG_OBJECT_MAPOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MIG_WELL_COMPLETION_DATA
ET_MESSAGES - Message Table (enhanced)
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MIG_WELL_COMPLETION_DATA 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_et_messages | TYPE BAPIRETTAB, " | |||
| lv_it_well_completion | TYPE UPOTT_MIG_WELL_COMP_DETAIL, " | |||
| lv_iv_trial | TYPE FLAG, " | |||
| lv_is_config_default | TYPE UPOC_MIG_ENT_MAP, " | |||
| lv_it_well_completion_dated | TYPE UPOTT_MIG_WELL_COMP_DATED, " | |||
| lv_it_entity_map | TYPE UPOTT_MIG_EMAP_MD, " | |||
| lv_it_region | TYPE UPOTT_MIG_REGION_MAP, " | |||
| lv_it_default | TYPE UPOTT_MIG_DEFAULT, " | |||
| lv_it_wc_seperator | TYPE UPOTT_MIG_WC_SEP, " | |||
| lv_it_wc_measurement | TYPE UPOTT_MIG_WELL_TEST_MAP, " | |||
| lv_it_tasklist_map | TYPE UPOTT_MIG_TKL_MAP, " | |||
| lv_it_pra_object_map | TYPE UPOTT_MIG_OBJECT_MAP. " |
|   CALL FUNCTION 'MIG_WELL_COMPLETION_DATA' "RFC to migrate well completion data from PRA to UOM |
| EXPORTING | ||
| IT_WELL_COMPLETION | = lv_it_well_completion | |
| IV_TRIAL | = lv_iv_trial | |
| IS_CONFIG_DEFAULT | = lv_is_config_default | |
| IT_WELL_COMPLETION_DATED | = lv_it_well_completion_dated | |
| IT_ENTITY_MAP | = lv_it_entity_map | |
| IT_REGION | = lv_it_region | |
| IT_DEFAULT | = lv_it_default | |
| IT_WC_SEPERATOR | = lv_it_wc_seperator | |
| IT_WC_MEASUREMENT | = lv_it_wc_measurement | |
| IT_TASKLIST_MAP | = lv_it_tasklist_map | |
| IT_PRA_OBJECT_MAP | = lv_it_pra_object_map | |
| IMPORTING | ||
| ET_MESSAGES | = lv_et_messages | |
| . " MIG_WELL_COMPLETION_DATA | ||
ABAP code using 7.40 inline data declarations to call FM MIG_WELL_COMPLETION_DATA
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