Skip to Content
avatar image
Former Member

Control command

Hello All,

I have problem with an IF condition in my script.

DATA : gf_vat like kbetr.

/: IF gv_vat = 0

P1 write text

/: ENDIF

When the variable is zero, system does not print the text. what can be the problem ? I observed that at run time value of GF_VAT is coming as 0.00

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 06, 2007 at 10:26 AM

    hi!!!!!!!!!!

    if u observe gf_vat is of type kbetr, kbetr is rate is of typr curr , length is 11 and

    decimal is 2 ,

    so that why , its giving u the initial value as 0.00

    rewrad if useful..

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi,

      I tried below combinations.

      /: IF &gv_vat& = 0.00

      P1 write text

      /: ENDIF

      /: IF &gv_vat& = 0

      P1 write text

      /: ENDIF

      It does not work.

      The problem is only with IF statement. Without IF statement it prints the text

  • avatar image
    Former Member
    Dec 06, 2007 at 11:01 AM

    Hi Ray,

    Are you sure you are using it in right way, are you missing &, I mean

    /: IF &gv_vat& = 0

    P1 write text

    /: ENDIF

    Thanks,

    Mark

    Add comment
    10|10000 characters needed characters exceeded