Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with Error E28038 inside CONSTRAINT

0 Likes
707

Hi,

I've an error E28038 "Numerical expression is expected here".
How can i solve this error ?

Here is the code :

--------------------------------------------------------------------------------------------------------------------------------------

*To install a dimensional limit for a swimming pool (maximal width and lenght) when it's a particular model
*is choosen in RESTRICTION

*If the dimensions are out of the size range specified in CONDITION then SAP doesn't accept the dimensions

OBJECTS:

res is_a (300)cl_swimming_pool

CONDITION:

( res.LENGHT in ('1000' , '10000')

and res.WIDTH in ('1000' , '5000') )

.

RESTRICTIONS:

*this coding means the selected swimming pool serie is 'Garden' and the 'model' is 'Atlantic'

if (

res.SERIE = 'Garden' and
res.MODEL = 'Atlantic'

).

FALSE.

--------------------------------------------------------------------------------------------------------------------------------------

1 ACCEPTED SOLUTION
Read only

0 Likes
632

The error was here

( res.LENGHT in ('1000' , '10000')

and res.WIDTH in ('1000' , '5000') )

It is a lenght and width range and the correct code is

( res.LENGHT in (1000 - 10000)

and res.WIDTH in (1000 - 5000) )

1 REPLY 1
Read only

0 Likes
633

The error was here

( res.LENGHT in ('1000' , '10000')

and res.WIDTH in ('1000' , '5000') )

It is a lenght and width range and the correct code is

( res.LENGHT in (1000 - 10000)

and res.WIDTH in (1000 - 5000) )