Skip to Content
0
Jun 16, 2021 at 12:45 PM

Error with coding for popup message

81 Views Last edit Jun 16, 2021 at 01:03 PM 3 rev

Hi,

I need SAP to open a popup message when some dimensional values of lenght and height are out of some defined limits. I have writen a procedure in CU01/CU02 but i have an error message E28016, "too long expression". Do you know how to correct this error ?

Thank you

The code i've written is

DFUNCTION A_FEHMELD(
Fehler_00 = 'Attention dimension hors standard !')

if ((largeur in (1601 - 1700)) and (hauteur > 800)) or

if ((largeur in (1701 - 1800)) and (hauteur > 200)) or

if ((largeur in (1801 - 1900)) and (hauteur > 600)) or

if ((largeur in (1901 - 2000)) and (hauteur > 900)) or

if ((largeur in (2001 - 2100)) and (hauteur > 100)) or

if ((largeur in (2101 - 2800)) and (hauteur > 500)) or

if ((largeur in (2801 - 3100)) and (hauteur > 900)) or

if ((largeur in (3101 - 3200)) and (hauteur > 200)).