cancel
Showing results for 
Search instead for 
Did you mean: 

PO in script showing 0 as value

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member205763
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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: