SAP Message 28025 - Syntax error in constraint

Diagnosis
The syntax check found errors in the condition. Please note that, as arule, hyphens ("-") should not be used in keys (names ofcharacteristics, classes, tables, and functions). Also, changes tomaster data which are made in parallel to object dependency maintenanceare not always recognized due to buffering of data.

System Response
The cursor marks the place where the error occurs. You may have a listof detailed causes of errors to choose from.

Procedure
Check your entry and correct the error. You have the following optionsfor analyzing and correcting the error:

  • If you cannot see immediately what is wrong, selet the Details
  • pushbutton to see a detailed message. The cursor marks the place inyour source code and, if required, you can also look at the long textof the detailed message for further information. If the detailedmessage does not apply to your error, you can repeat this checkfunction, selecting a different detailed message. See below for anexample of a constraint.
    • Rename any keys (such as characteristic names) which may contain
    • hyphens. To do this, on the basic data screen of characteristicsmaintenance functions, choose function Characteristic -> Rename.
      • If changes to master data which are made in parallel to object
      • dependency maintenance are not recognized, start the maintenancefunction again.
        • You can still save your dependency if the syntax is incorrect. The
        • status of the dependency is then set to locked, and thedependency cannot be used in configuration.
          Example of a constraint:
          OBJECTS:
          ?S IS_A (300)STAIRCASE
          WHERE ?A = ANGLE; ?HB = HEIGHT_BANNISTER,
          ?P IS_A (200)POST
          where ?HP = HEIGHT; ?PTS = POSITION_ON_STEP.
          CONDITION:
          PART_OF(?P, ?S).
          RESTRICTION:
          ?HP = ?HB+?PTS*TAN(2*3.14/360 * ?A).
          INFERENCES:
          ?HP, ?HB, ?PTS
          Example of how an object is declared in a constraint:
          OBJECTS:
          ?O IS_OBJECT
          (DOCUMENT)(017)(TYPE=DRW, VERSION=00, PART=000, NR='ST-12345'),