SAP MEASUREM_POINT_TRANSFER Function Module for Assign Reference Measuring Point









MEASUREM_POINT_TRANSFER is a standard measurem point transfer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assign Reference Measuring Point 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 point transfer FM, simply by entering the name MEASUREM_POINT_TRANSFER 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): Normal Function Module
Update:



Function MEASUREM_POINT_TRANSFER 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_POINT_TRANSFER'"Assign Reference Measuring Point
EXPORTING
IV_TARGET_POINT = "Measuring Point
IV_SOURCE_POINT = "Measuring Point from Which Meas. Reading Was Transferred
* IV_START_DATE = SY-DATUM "Date: Valid From
* IV_END_DATE = '99991231' "Date: Valid To
* IV_START_TIME = SY-UZEIT "Time: Valid From (Exclusive)
* IV_END_TIME = '235959' "Time: Valid To (Inclusive)
* IV_ORIGIN_TYPE = 'D' "Indicator That Measurement Reading Transfer is Supported
* IV_TRANSFER_MODE = "Mode of Counter Reading Transfer

IMPORTING
ET_MESSAGE = "Return parameter table
.




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_POINT_TRANSFER

IV_TARGET_POINT - Measuring Point

Data type: IMRC_POINT
Optional: No
Call by Reference: No ( called with pass by value option)

IV_SOURCE_POINT - Measuring Point from Which Meas. Reading Was Transferred

Data type: IMRC_TRANS
Optional: No
Call by Reference: No ( called with pass by value option)

IV_START_DATE - Date: Valid From

Data type: IMRC_DATLO
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_END_DATE - Date: Valid To

Data type: IMRC_DATHI
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_START_TIME - Time: Valid From (Exclusive)

Data type: IMRC_TIMLO
Default: SY-UZEIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_END_TIME - Time: Valid To (Inclusive)

Data type: IMRC_TIMHI
Default: '235959'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_ORIGIN_TYPE - Indicator That Measurement Reading Transfer is Supported

Data type: IMRG-GENER
Default: 'D'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TRANSFER_MODE - Mode of Counter Reading Transfer

Data type: IMRC_MODTR
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MEASUREM_POINT_TRANSFER

ET_MESSAGE - Return parameter table

Data type: BAPIRET2_T
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MEASUREM_POINT_TRANSFER 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_message  TYPE BAPIRET2_T, "   
lv_iv_target_point  TYPE IMRC_POINT, "   
lv_iv_source_point  TYPE IMRC_TRANS, "   
lv_iv_start_date  TYPE IMRC_DATLO, "   SY-DATUM
lv_iv_end_date  TYPE IMRC_DATHI, "   '99991231'
lv_iv_start_time  TYPE IMRC_TIMLO, "   SY-UZEIT
lv_iv_end_time  TYPE IMRC_TIMHI, "   '235959'
lv_iv_origin_type  TYPE IMRG-GENER, "   'D'
lv_iv_transfer_mode  TYPE IMRC_MODTR. "   

  CALL FUNCTION 'MEASUREM_POINT_TRANSFER'  "Assign Reference Measuring Point
    EXPORTING
         IV_TARGET_POINT = lv_iv_target_point
         IV_SOURCE_POINT = lv_iv_source_point
         IV_START_DATE = lv_iv_start_date
         IV_END_DATE = lv_iv_end_date
         IV_START_TIME = lv_iv_start_time
         IV_END_TIME = lv_iv_end_time
         IV_ORIGIN_TYPE = lv_iv_origin_type
         IV_TRANSFER_MODE = lv_iv_transfer_mode
    IMPORTING
         ET_MESSAGE = lv_et_message
. " MEASUREM_POINT_TRANSFER




ABAP code using 7.40 inline data declarations to call FM MEASUREM_POINT_TRANSFER

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_start_date) = SY-DATUM.
 
DATA(ld_iv_end_date) = '99991231'.
 
DATA(ld_iv_start_time) = SY-UZEIT.
 
DATA(ld_iv_end_time) = '235959'.
 
"SELECT single GENER FROM IMRG INTO @DATA(ld_iv_origin_type).
DATA(ld_iv_origin_type) = 'D'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!