Dump on Currency IF condition
When i compare Sales Document currency field with Uganda Shelling it goes for dump how do i correct this error.
VBAK-WAERK (Document Currency)
IF VBAK-WAERK = 'UGX'.
In this case it says VBAK-WAERK is a numeric field and it cannot compare with a char and goes to dump.
But VBAK-WAERK is not a Numeric field.
Please help me to solve this error.
I tested as follows,
VBAK-WAERK = 'UGX'. IF VBAK-WAERK = 'UGX'. WRITE : VBAK-WAERK. ELSE. WRITE : 'None'. ENDIF.
I got output as follow,
If assign JPY in it, it displays 'None'.
It is working fine and you can compare.
I am working in ECC 6.0 . What about you?