Skip to Content

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

Dump on Currency IF condition

Hi Experts,

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.

Regards,

Hari

Tags:
replied

Hi Hari,

I tested as follows,

  VBAK-WAERK = 'UGX'.
  IF VBAK-WAERK = 'UGX'.
    WRITE : VBAK-WAERK.
  ELSE.
    WRITE : 'None'.
  ENDIF.

I got output as follow,


  UGX

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?

Regards,

R.Nagarajan.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question