Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Strange! GT and LT does not work...

IF p_co LT c_llimit.

MESSAGE ID hr_msg_class TYPE 'E' NUMBER '170'.

ENDIF.

IF p_co GT c_hlimit.

MESSAGE ID hr_msg_class TYPE 'E' NUMBER '170'.

ENDIF.

Here p_co, c_llimit, c_hlimit are all of char type and lt. 3.

And constant val;ues assigned to c_llimit and c_hlimit are 95 and 105.

But if I enter a value say p_co equal to 99, it enters the second IF condition even though it is NOT GT than 105! and Similarly if I enter a value p_co = 100 it enters the first IF condition even though it is NOT LT 95!

Please help.

Edited by: Julius Bussche on Jul 26, 2009 10:30 PM

Subject title improved...

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question