SAP MEASUREM_POINTS_COPY_TO_OBJECT Function Module for NOTRANSL: Kopieren der Meßpunkte eines Vorlageobjekts in den Dialogpuffer









MEASUREM_POINTS_COPY_TO_OBJECT is a standard measurem points copy to object 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: Kopieren der Meßpunkte eines Vorlageobjekts in den Dialogpuffer 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 points copy to object FM, simply by entering the name MEASUREM_POINTS_COPY_TO_OBJECT 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_POINTS_COPY_TO_OBJECT 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_POINTS_COPY_TO_OBJECT'"NOTRANSL: Kopieren der Meßpunkte eines Vorlageobjekts in den Dialogpuffer
EXPORTING
SOURCE_OBJECT_FOR_COPY = "
MEASUREMENT_POINT_OBJECT = "
* TARGET_OBKEY = ' ' "Key of Object to Be Classified
* TARGET_OBTAB = "Name of Database Table for Object
* TARGET_TPLMA = ' ' "Superior functional location
* WITH_LONGTEXT = 'X' "
* WITH_CLASSIFICATION = 'X' "
* WITH_DOCUMENTS = 'X' "
* UPDATE_ON_COMMIT = 'X' "

IMPORTING
NUMBER_OF_POINTS = "
.




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_POINTS_COPY_TO_OBJECT

SOURCE_OBJECT_FOR_COPY -

Data type: IMPT-MPOBJ
Optional: No
Call by Reference: No ( called with pass by value option)

MEASUREMENT_POINT_OBJECT -

Data type: IMPT-MPOBJ
Optional: No
Call by Reference: No ( called with pass by value option)

TARGET_OBKEY - Key of Object to Be Classified

Data type: RMCLF-OBJEK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TARGET_OBTAB - Name of Database Table for Object

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

TARGET_TPLMA - Superior functional location

Data type: IFLOT-TPLMA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_LONGTEXT -

Data type: IREF-IIND
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_CLASSIFICATION -

Data type: IREF-IIND
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_DOCUMENTS -

Data type: IREF-IIND
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPDATE_ON_COMMIT -

Data type: IREF-IIND
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MEASUREM_POINTS_COPY_TO_OBJECT

NUMBER_OF_POINTS -

Data type: SY-TFILL
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MEASUREM_POINTS_COPY_TO_OBJECT 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_number_of_points  TYPE SY-TFILL, "   
lv_source_object_for_copy  TYPE IMPT-MPOBJ, "   
lv_measurement_point_object  TYPE IMPT-MPOBJ, "   
lv_target_obkey  TYPE RMCLF-OBJEK, "   SPACE
lv_target_obtab  TYPE TCLA-OBTAB, "   
lv_target_tplma  TYPE IFLOT-TPLMA, "   SPACE
lv_with_longtext  TYPE IREF-IIND, "   'X'
lv_with_classification  TYPE IREF-IIND, "   'X'
lv_with_documents  TYPE IREF-IIND, "   'X'
lv_update_on_commit  TYPE IREF-IIND. "   'X'

  CALL FUNCTION 'MEASUREM_POINTS_COPY_TO_OBJECT'  "NOTRANSL: Kopieren der Meßpunkte eines Vorlageobjekts in den Dialogpuffer
    EXPORTING
         SOURCE_OBJECT_FOR_COPY = lv_source_object_for_copy
         MEASUREMENT_POINT_OBJECT = lv_measurement_point_object
         TARGET_OBKEY = lv_target_obkey
         TARGET_OBTAB = lv_target_obtab
         TARGET_TPLMA = lv_target_tplma
         WITH_LONGTEXT = lv_with_longtext
         WITH_CLASSIFICATION = lv_with_classification
         WITH_DOCUMENTS = lv_with_documents
         UPDATE_ON_COMMIT = lv_update_on_commit
    IMPORTING
         NUMBER_OF_POINTS = lv_number_of_points
. " MEASUREM_POINTS_COPY_TO_OBJECT




ABAP code using 7.40 inline data declarations to call FM MEASUREM_POINTS_COPY_TO_OBJECT

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 TFILL FROM SY INTO @DATA(ld_number_of_points).
 
"SELECT single MPOBJ FROM IMPT INTO @DATA(ld_source_object_for_copy).
 
"SELECT single MPOBJ FROM IMPT INTO @DATA(ld_measurement_point_object).
 
"SELECT single OBJEK FROM RMCLF INTO @DATA(ld_target_obkey).
DATA(ld_target_obkey) = ' '.
 
"SELECT single OBTAB FROM TCLA INTO @DATA(ld_target_obtab).
 
"SELECT single TPLMA FROM IFLOT INTO @DATA(ld_target_tplma).
DATA(ld_target_tplma) = ' '.
 
"SELECT single IIND FROM IREF INTO @DATA(ld_with_longtext).
DATA(ld_with_longtext) = 'X'.
 
"SELECT single IIND FROM IREF INTO @DATA(ld_with_classification).
DATA(ld_with_classification) = 'X'.
 
"SELECT single IIND FROM IREF INTO @DATA(ld_with_documents).
DATA(ld_with_documents) = 'X'.
 
"SELECT single IIND FROM IREF INTO @DATA(ld_update_on_commit).
DATA(ld_update_on_commit) = 'X'.
 


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!