cancel
Showing results for 
Search instead for 
Did you mean: 

I can't use a decimal number in a update routine

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you Amrita for your answer.

The number must be between '. I mean '1.5' worked.

Regrds.

Answers (1)

Answers (1)

former_member209702
Active Participant
0 Kudos

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

Former Member
0 Kudos

Thank you for your answer.

The number must be like this: '1.5'.

Regards.