Application Development and Automation 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: 
Read only

Sapscript - Using numeric value in condition

Former Member
0 Likes
503

Within the sapscript I need to code it like this

IF &KOMVD-KAWRT& = '0'

Where KAWRT is CURR 15

What is the correct syntax for this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
455

Hi Megan,

Use the below syntax:

IF &KOMVD-KAWRT& = '                0.00'

Regards,

SB.

3 REPLIES 3
Read only

Former Member
0 Likes
456

Hi Megan,

Use the below syntax:

IF &KOMVD-KAWRT& = '                0.00'

Regards,

SB.

Read only

Former Member
0 Likes
455

Isnt there a better way than this? This just seems so error prone.

Read only

Former Member
0 Likes
455

Hi Megan,

This is the approach we are following and I didn't face any issue on this.

deffinately the syntax will work without any error.

Regards,

SB.