Skip to Content
avatar image
Former Member

PO in script showing 0 as value

Hi,

I have developed scripts and I get certain values as 0 (zero). I do not want to print the lines which show the value 0.

What is the correct logic to be followed to prevent the entire line along with 0 not to be printed.

Thanks

Reshma

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 07, 2010 at 09:45 AM

    there are several ways to achieve that.

    Easiest way is to let you know that you can do "IF-Statements" in sap-script.

    But well this mostly destroys the understandability of your form.

    so you could as well go for following:

    assuming vbap-netwr = 5,00.

    &VBAP-NETWR& EUR -> will print: 5,00 EUR

    &VBAP-NETWR' EUR'& -> will print: 5,00 EUR

    &'price: 'VBAP-NETWR' EUR'& -> will print: prince: 5,00 Eur

    assuming vbap-netwr = 0,00.

    &VBAP-NETWR& EUR -> will print: 0,00 EUR

    &VBAP-NETWR' EUR'& -> will print:

    &'price: 'VBAP-NETWR' EUR'& -> will print:

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 07, 2010 at 10:05 AM

    The values that u r printing put them between IF and ENDIF block with a condition on "amount is not initial"

    Add comment
    10|10000 characters needed characters exceeded