SAP MEASUREM_COPY_CHAIN_EXPLODE Function Module for NOTRANSL: Meßwertweitergabe: Weitergabeketten als Hierarchie auflösen
MEASUREM_COPY_CHAIN_EXPLODE is a standard measurem copy chain explode SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Meßwertweitergabe: Weitergabeketten als Hierarchie auflösen 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 measurem copy chain explode FM, simply by entering the name MEASUREM_COPY_CHAIN_EXPLODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: IMR0
Program Name: SAPLIMR0
Main Program: SAPLIMR0
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MEASUREM_COPY_CHAIN_EXPLODE 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 'MEASUREM_COPY_CHAIN_EXPLODE'"NOTRANSL: Meßwertweitergabe: Weitergabeketten als Hierarchie auflösen.
EXPORTING
ROOT_TRANSMITTER = "Measuring Point from Which Meas. Reading Was Transferred
* REFERENCE_DATE = SY-DATUM "Date: Valid To
* REFERENCE_TIME = SY-UZEIT "Time: Valid To (Inclusive)
* TRY_TO_ENQUEUE = ' ' "Yes/No (X/ )
* EXCLUDE_DELETE_IND = ' ' "Yes/No (X/ )
* EXCLUDE_UNIT_NOT_CONV = ' ' "Yes/No (X/ )
* EXCLUDE_DIFF_INDCT = ' ' "Yes/No (X/ )
* EXCLUDE_NOT_FOUND = ' ' "Yes/No (X/ )
IMPORTING
NUMBER_OF_RECEIVERS = "ABAP System Field: Number of Rows in Internal Tables
HIGHEST_MESSAGE_TYPE = "ABAP System Field: Message Type
TABLES
* RECEIVER_TAB = "Measuring Point (Structure)
* IMPH_TAB = "Measurement and Counter Reading Transmission History
* FOREIGN_LOCKS = "Structure for Table Lines With Locked Measuring Point
* PROBLEM_MESSAGES = "Return Parameter
EXCEPTIONS
IMPTT_NOT_FOUND = 1 RECURSIVENESS_FOUND = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIMR0_001 User Exit Before Update of Measuring Points/Documents (After COMMIT WORK)
EXIT_SAPLIMR0_002 User Exit for Customer Function in Measuring Point Menu
EXIT_SAPLIMR0_003 User Exit for Customer Function in Measurement Document Menu
EXIT_SAPLIMR0_004 Exit after standard checks for new measurement documents
IMPORTING Parameters details for MEASUREM_COPY_CHAIN_EXPLODE
ROOT_TRANSMITTER - Measuring Point from Which Meas. Reading Was Transferred
Data type: IMPH-TRANSOptional: No
Call by Reference: No ( called with pass by value option)
REFERENCE_DATE - Date: Valid To
Data type: IMPH-DATHIDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
REFERENCE_TIME - Time: Valid To (Inclusive)
Data type: IMPH-TIMHIDefault: SY-UZEIT
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRY_TO_ENQUEUE - Yes/No (X/ )
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCLUDE_DELETE_IND - Yes/No (X/ )
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCLUDE_UNIT_NOT_CONV - Yes/No (X/ )
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCLUDE_DIFF_INDCT - Yes/No (X/ )
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCLUDE_NOT_FOUND - Yes/No (X/ )
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MEASUREM_COPY_CHAIN_EXPLODE
NUMBER_OF_RECEIVERS - ABAP System Field: Number of Rows in Internal Tables
Data type: SY-TFILLOptional: No
Call by Reference: No ( called with pass by value option)
HIGHEST_MESSAGE_TYPE - ABAP System Field: Message Type
Data type: SY-MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MEASUREM_COPY_CHAIN_EXPLODE
RECEIVER_TAB - Measuring Point (Structure)
Data type: IMPTOptional: Yes
Call by Reference: No ( called with pass by value option)
IMPH_TAB - Measurement and Counter Reading Transmission History
Data type: IMPHOptional: Yes
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCKS - Structure for Table Lines With Locked Measuring Point
Data type: IMPT_LOCKDOptional: Yes
Call by Reference: No ( called with pass by value option)
PROBLEM_MESSAGES - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
IMPTT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RECURSIVENESS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MEASUREM_COPY_CHAIN_EXPLODE 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: | ||||
| lt_receiver_tab | TYPE STANDARD TABLE OF IMPT, " | |||
| lv_imptt_not_found | TYPE IMPT, " | |||
| lv_root_transmitter | TYPE IMPH-TRANS, " | |||
| lv_number_of_receivers | TYPE SY-TFILL, " | |||
| lt_imph_tab | TYPE STANDARD TABLE OF IMPH, " | |||
| lv_reference_date | TYPE IMPH-DATHI, " SY-DATUM | |||
| lv_recursiveness_found | TYPE IMPH, " | |||
| lv_highest_message_type | TYPE SY-MSGTY, " | |||
| lt_foreign_locks | TYPE STANDARD TABLE OF IMPT_LOCKD, " | |||
| lv_reference_time | TYPE IMPH-TIMHI, " SY-UZEIT | |||
| lv_try_to_enqueue | TYPE IREF-IIND, " SPACE | |||
| lt_problem_messages | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_exclude_delete_ind | TYPE IREF-IIND, " SPACE | |||
| lv_exclude_unit_not_conv | TYPE IREF-IIND, " SPACE | |||
| lv_exclude_diff_indct | TYPE IREF-IIND, " SPACE | |||
| lv_exclude_not_found | TYPE IREF-IIND. " SPACE |
|   CALL FUNCTION 'MEASUREM_COPY_CHAIN_EXPLODE' "NOTRANSL: Meßwertweitergabe: Weitergabeketten als Hierarchie auflösen |
| EXPORTING | ||
| ROOT_TRANSMITTER | = lv_root_transmitter | |
| REFERENCE_DATE | = lv_reference_date | |
| REFERENCE_TIME | = lv_reference_time | |
| TRY_TO_ENQUEUE | = lv_try_to_enqueue | |
| EXCLUDE_DELETE_IND | = lv_exclude_delete_ind | |
| EXCLUDE_UNIT_NOT_CONV | = lv_exclude_unit_not_conv | |
| EXCLUDE_DIFF_INDCT | = lv_exclude_diff_indct | |
| EXCLUDE_NOT_FOUND | = lv_exclude_not_found | |
| IMPORTING | ||
| NUMBER_OF_RECEIVERS | = lv_number_of_receivers | |
| HIGHEST_MESSAGE_TYPE | = lv_highest_message_type | |
| TABLES | ||
| RECEIVER_TAB | = lt_receiver_tab | |
| IMPH_TAB | = lt_imph_tab | |
| FOREIGN_LOCKS | = lt_foreign_locks | |
| PROBLEM_MESSAGES | = lt_problem_messages | |
| EXCEPTIONS | ||
| IMPTT_NOT_FOUND = 1 | ||
| RECURSIVENESS_FOUND = 2 | ||
| . " MEASUREM_COPY_CHAIN_EXPLODE | ||
ABAP code using 7.40 inline data declarations to call FM MEASUREM_COPY_CHAIN_EXPLODE
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.| "SELECT single TRANS FROM IMPH INTO @DATA(ld_root_transmitter). | ||||
| "SELECT single TFILL FROM SY INTO @DATA(ld_number_of_receivers). | ||||
| "SELECT single DATHI FROM IMPH INTO @DATA(ld_reference_date). | ||||
| DATA(ld_reference_date) | = SY-DATUM. | |||
| "SELECT single MSGTY FROM SY INTO @DATA(ld_highest_message_type). | ||||
| "SELECT single TIMHI FROM IMPH INTO @DATA(ld_reference_time). | ||||
| DATA(ld_reference_time) | = SY-UZEIT. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_try_to_enqueue). | ||||
| DATA(ld_try_to_enqueue) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_exclude_delete_ind). | ||||
| DATA(ld_exclude_delete_ind) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_exclude_unit_not_conv). | ||||
| DATA(ld_exclude_unit_not_conv) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_exclude_diff_indct). | ||||
| DATA(ld_exclude_diff_indct) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_exclude_not_found). | ||||
| DATA(ld_exclude_not_found) | = ' '. | |||
Search for further information about these or an SAP related objects