SAP MEASUREM_DOCUM_AFFECTED_INTVLS Function Module for NOTRANSL: Meßwertweitergabe: Betroffene Intervallbelege zum Bezugszeitpunk
MEASUREM_DOCUM_AFFECTED_INTVLS is a standard measurem docum affected intvls 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: Betroffene Intervallbelege zum Bezugszeitpunk 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 docum affected intvls FM, simply by entering the name MEASUREM_DOCUM_AFFECTED_INTVLS into the relevant SAP transaction such as SE37 or SE38.
Function Group: IMR0
Program Name: SAPLIMR0
Main Program: SAPLIMR0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MEASUREM_DOCUM_AFFECTED_INTVLS 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_DOCUM_AFFECTED_INTVLS'"NOTRANSL: Meßwertweitergabe: Betroffene Intervallbelege zum Bezugszeitpunk.
EXPORTING
ROOT_TRANSMITTER = "Measuring Point from Which Meas. Reading Was Transferred
REFERENCE_DATE = "Date: Valid To
REFERENCE_TIME = "Time: Valid To (Inclusive)
TABLES
* IMRG_TAB = "Measurement Document
* IMPH_TAB = "Measurement and Counter Reading Transmission History
* IMPT_RECEIVE = "Measuring Point (Structure)
* IMPT_MISSING = "Measuring Point (Structure)
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_DOCUM_AFFECTED_INTVLS
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-DATHIOptional: No
Call by Reference: No ( called with pass by value option)
REFERENCE_TIME - Time: Valid To (Inclusive)
Data type: IMPH-TIMHIOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MEASUREM_DOCUM_AFFECTED_INTVLS
IMRG_TAB - Measurement Document
Data type: IMRGOptional: Yes
Call by Reference: Yes
IMPH_TAB - Measurement and Counter Reading Transmission History
Data type: IMPHOptional: Yes
Call by Reference: Yes
IMPT_RECEIVE - Measuring Point (Structure)
Data type: IMPTOptional: Yes
Call by Reference: Yes
IMPT_MISSING - Measuring Point (Structure)
Data type: IMPTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
IMPTT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
RECURSIVENESS_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MEASUREM_DOCUM_AFFECTED_INTVLS 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_imrg_tab | TYPE STANDARD TABLE OF IMRG, " | |||
| lv_imptt_not_found | TYPE IMRG, " | |||
| lv_root_transmitter | TYPE IMPH-TRANS, " | |||
| lt_imph_tab | TYPE STANDARD TABLE OF IMPH, " | |||
| lv_reference_date | TYPE IMPH-DATHI, " | |||
| lv_recursiveness_found | TYPE IMPH, " | |||
| lt_impt_receive | TYPE STANDARD TABLE OF IMPT, " | |||
| lv_reference_time | TYPE IMPH-TIMHI, " | |||
| lt_impt_missing | TYPE STANDARD TABLE OF IMPT. " |
|   CALL FUNCTION 'MEASUREM_DOCUM_AFFECTED_INTVLS' "NOTRANSL: Meßwertweitergabe: Betroffene Intervallbelege zum Bezugszeitpunk |
| EXPORTING | ||
| ROOT_TRANSMITTER | = lv_root_transmitter | |
| REFERENCE_DATE | = lv_reference_date | |
| REFERENCE_TIME | = lv_reference_time | |
| TABLES | ||
| IMRG_TAB | = lt_imrg_tab | |
| IMPH_TAB | = lt_imph_tab | |
| IMPT_RECEIVE | = lt_impt_receive | |
| IMPT_MISSING | = lt_impt_missing | |
| EXCEPTIONS | ||
| IMPTT_NOT_FOUND = 1 | ||
| RECURSIVENESS_FOUND = 2 | ||
| . " MEASUREM_DOCUM_AFFECTED_INTVLS | ||
ABAP code using 7.40 inline data declarations to call FM MEASUREM_DOCUM_AFFECTED_INTVLS
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 DATHI FROM IMPH INTO @DATA(ld_reference_date). | ||||
| "SELECT single TIMHI FROM IMPH INTO @DATA(ld_reference_time). | ||||
Search for further information about these or an SAP related objects