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

Problems with Smart Forms

Former Member
0 Likes
352

Hi, i have a problem with smart form, i want compare numeric values ( reference: data element NETWR_AP ) inside text.

example:

**************************************

/: IF &MVALW& GE '0'

= <C2>&VALORW&</>,,

/: ELSE

= <C3>&VALORW&</>,,

/: ENDIF.

**************************************

-MVALW is a value of data type NETWR_AP.

Target: Print text &VALORW& with caracter format C2(blue color) if MVALW's value is >= 0.

Print text &VALORW& with caracter format C3(red color) if MVALW's value is < 0.

Resut ( Actually 😞

Print both values: VALORW with carcater format C2 and C3.

Can you tell me why happend this??

Thanks a lot.

LG.

2 REPLIES 2
Read only

Former Member
0 Likes
332

You can compare the values in the Condition tab or have a program line where you do the comparison and set a variable. Then check the value of the variable in the condition tab.

Regards,

Ramesh

Read only

0 Likes
332

Thanks for your response...

It worked perfectly

But then i can't do compare numeric values inside text of a smartform???( like sap script )

LG.