SAP ABAP Message Class 28 Message Number 025 (Syntax error in constraint)
Hierarchy
SAP_ABA (Software Component) Cross-Application Component
   CA-GTF-DEP (Application Component) Object Dependencies
     CUMT (Package) Maintenance Environment for Dependencies
Attribute
Message class 28  
Short Description Configuration    
Message Number 025  
Documentation status      
Authorization check Error Message      
Changed On    
Message Text
Syntax error in constraint
Help Document

Diagnosis

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

System Response

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

Procedure

Check your entry and correct the error. You have the following options for 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 in your source code and, if required, you can also look at the long text of the detailed message for further information. If the detailed message does not apply to your error, you can repeat this check function, selecting a different detailed message. See below for an example of a constraint.
  • Rename any keys (such as characteristic names) which may contain hyphens. To do this, on the basic data screen of characteristics maintenance functions, choose function Characteristic -> Rename.
  • If changes to master data which are made in parallel to object dependency maintenance are not recognized, start the maintenance function again.
  • You can still save your dependency if the syntax is incorrect. The status of the dependency is then set to locked, and the dependency 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'),

History
Last changed on/by 19951026  SAP 
SAP Release Created in