SAP Knowledge Base Article - Public

3587801 - Error while creating Measuring Point Condition using API_MEASURINGPOINT in SAP S/4HANA Cloud Public Edition

Symptom

  • An attempt to create Measuring Point Condition data using API call in SAP S/4HANA Cloud Public Edition encountered an issue.
  • The error message is: "Creating operations are disabled for association '_MEASURINGPOINTCONDITION', source entity '$SRVD_A2X#API_MEASURINGPOINT~A_MSRGPOINTCONDITIONL'".

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

Following the documentation API Hub - Measuring Point and attempt to create Measuring Point Condition data using API_MEASURINGPOINT.

Cause

Resolution

Below example can be used as reference to create condition for measuring point:

POST <Hostname>/sap/opu/odata4/sap/api_measuringpoint/srvd_a2x/sap/measuringpoint/0001/MeasuringPointCondition

Payload:

{
  "MeasuringPoint" : "<MeasPoint>",
  "MeasuringPointCondition" : "1",
  "MeasuringPtConditionIsActive" : "X",
  "MeasuringPtConditionObjectType" : "Y1",
  "MsrgPointConditionPriority" : "",
  "MsrgPtConditionObjectTypeDesc" : "MAX - TEST API",
  "MsrgPtConditionHasLongText" : "X",
  "_MsrgPointConditionLongText" : {
    "MeasuringPoint" : "<MeasPoint>",
    "MeasuringPointCondition" : "1",
    "Language" : "EN",
    "LongText" : "MAX - LONG TEXT TEST"
  }
}

Note: To enable condition for measuring point, the prerequisite is maximum and minimum threshold value must be maintained for measuring point, otherwise, error message "Enter a measuring point maximum threshold" will be raised while calling above API. The threshold value can be updated with API_MEASURINGPOINT as well, see examples in API Help documentation - Update a Measuring Point.

See Also

API Hub - Measuring Point

API Help documentation - Update a Measuring Point

Keywords

API_MEASURINGPOINT, Measuring Point Condition, MEASURINGPOINTCONDITION, Threshold. , KBA , PM-EQM-SF-MPC-2CL , Measuring points and counters (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions