Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript command is not working

Former Member
0 Kudos

H experts ,

I have put one command if &LV_NETWO_DISP& GE '0' in my script .

But this is not working , right now the value of &LV_NETWO_DISP& is -7.28 , but it still gose inside the if condition .

ideally it should come out of the if condition .

plz let me know how to compare the zero , negative and null values in sapscript?

Thanks is advance ,

sweetu..

4 REPLIES 4

kesavadas_thekkillath
Active Contributor
0 Kudos

in your program check

if LV_NETWO_DISP > 0.

flag = 'T'.

endif.

in ur script then check

if &flag& = 'T'.

endif.

got it.....

Former Member
0 Kudos

Dear Sweetu,

GE may not worked in sapscripts. In the print program, do the validations and pass some value.

now in the script u can check those values.

Rgds,

Kiran

Former Member
0 Kudos

Hi,

Try like this

if &LV_NETWO_DISP& GE '0.00'

else

endif.

Former Member
0 Kudos

Hi Sweetu,

It will not work definetly...!

because,, you are posting in a wrong place...

Before posting " Post New ThreaT/D", Just to look at the first line just very below, there what does the forum rules say there...

-


& Try >= instead GE once

-Dileep .C