SAP ECP_SRV_MEASUREM_POINTS_READ Function Module for get all allowed measurement points
ECP_SRV_MEASUREM_POINTS_READ is a standard ecp srv measurem points read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for get all allowed measurement points 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 ecp srv measurem points read FM, simply by entering the name ECP_SRV_MEASUREM_POINTS_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: ECP_ESERVICE1
Program Name: SAPLECP_ESERVICE1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function ECP_SRV_MEASUREM_POINTS_READ 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 'ECP_SRV_MEASUREM_POINTS_READ'"get all allowed measurement points.
EXPORTING
MEASUREMENT_POINT_OBJECT = "Object key
ALLOWED_MEASPOINTS = "
* DO_AUTH_CHECK = 'X' "boolean variable (X=true, -=false, space=unknown)
OBJTYPE = "Object type
* PORTALUSER = "SAP System, user logon name
IMPORTING
MESSAGE = "Error msg. for Portal display
TABLES
IMPT_TAB = "
EXCEPTIONS
NO_ENTRY_FOUND = 1 NO_ENTRY_ALLOWED = 2
IMPORTING Parameters details for ECP_SRV_MEASUREM_POINTS_READ
MEASUREMENT_POINT_OBJECT - Object key
Data type: AMYO_S_OBJ-OBJKEYOptional: No
Call by Reference: No ( called with pass by value option)
ALLOWED_MEASPOINTS -
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
DO_AUTH_CHECK - boolean variable (X=true, -=false, space=unknown)
Data type: DATATYPE-BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJTYPE - Object type
Data type: AMYO_S_OBJ-OBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
PORTALUSER - SAP System, user logon name
Data type: SY-UNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ECP_SRV_MEASUREM_POINTS_READ
MESSAGE - Error msg. for Portal display
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ECP_SRV_MEASUREM_POINTS_READ
IMPT_TAB -
Data type: IMPTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ENTRY_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ECP_SRV_MEASUREM_POINTS_READ 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_message | TYPE STRING, " | |||
lt_impt_tab | TYPE STANDARD TABLE OF IMPT, " | |||
lv_no_entry_found | TYPE IMPT, " | |||
lv_measurement_point_object | TYPE AMYO_S_OBJ-OBJKEY, " | |||
lv_no_entry_allowed | TYPE AMYO_S_OBJ, " | |||
lv_allowed_measpoints | TYPE STRING, " | |||
lv_do_auth_check | TYPE DATATYPE-BOOLEAN, " 'X' | |||
lv_objtype | TYPE AMYO_S_OBJ-OBJTYPE, " | |||
lv_portaluser | TYPE SY-UNAME. " |
  CALL FUNCTION 'ECP_SRV_MEASUREM_POINTS_READ' "get all allowed measurement points |
EXPORTING | ||
MEASUREMENT_POINT_OBJECT | = lv_measurement_point_object | |
ALLOWED_MEASPOINTS | = lv_allowed_measpoints | |
DO_AUTH_CHECK | = lv_do_auth_check | |
OBJTYPE | = lv_objtype | |
PORTALUSER | = lv_portaluser | |
IMPORTING | ||
MESSAGE | = lv_message | |
TABLES | ||
IMPT_TAB | = lt_impt_tab | |
EXCEPTIONS | ||
NO_ENTRY_FOUND = 1 | ||
NO_ENTRY_ALLOWED = 2 | ||
. " ECP_SRV_MEASUREM_POINTS_READ |
ABAP code using 7.40 inline data declarations to call FM ECP_SRV_MEASUREM_POINTS_READ
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 OBJKEY FROM AMYO_S_OBJ INTO @DATA(ld_measurement_point_object). | ||||
"SELECT single BOOLEAN FROM DATATYPE INTO @DATA(ld_do_auth_check). | ||||
DATA(ld_do_auth_check) | = 'X'. | |||
"SELECT single OBJTYPE FROM AMYO_S_OBJ INTO @DATA(ld_objtype). | ||||
"SELECT single UNAME FROM SY INTO @DATA(ld_portaluser). | ||||
Search for further information about these or an SAP related objects