on 06-14-2011 11:15 AM
Hi,
I want to use a decimal number in a udate routine (in a updating rule). I've a code similar to this:
IF COMM_STRUCTURE-/BIC/ZSATIAUX1 LT 1,5.
RESULT = 'GOOD'.
And when I save the routine I get the following error:
E:Comma without preceding colon (after IF ?).
The COMM_STRUCTURE-/BIC/ZSATIAUX1 field is numeric field with three decimal positions.
Can anybody tell me why I can't use decimals in my routine?
Thanks in advance.
Regards.
Hi try to write the statement using single codes .
IF COMM_STRUCTURE-/BIC/ZSATIAUX1 LT '1.5'.
RESULT = 'GOOD'.
Also use 1.5 instead of 1,5 and check
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try following code:
Data: Val type COMM_STRUCTURE-/BIC/ZSATIAUX1 .
val = 1.5.
IF COMM_STRUCTURE-/BIC/ZSATIAUX1 LT val.
RESULT = 'GOOD'.
endif.
Regards,
Geetanjali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.