cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions In Smartform Text Editor

Former Member
0 Kudos

Helo All.

I have to print like this in smartform:

'Export Charges' (Hard Coded) 12 (Variable)

'Freight Charges' (Hard Coded) 20 (Variable)

Now I want to print the description (Export, Freight Charges) which is hard coded only when the corresponding variable value is Greater Than Zero.

I tried to enter the If-Endif condition in smartform text editor where I am printing this text, but its not working.

Please suggest some solution !!!

Points are assured

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Use condition Tab in Text Node

In Field Name give the Variable Name aND in R give greater Than(>) and in Value give 0.

Regards

Sandipan

Former Member
0 Kudos

Hi,

You can take the same approach as you could in SAPscript, include the text within the &'s.

E.g.

&'Export Charges 'EXP_CHARGE&

&'Freight Charges 'FRT_CHARGE&

If the variables are initial nothing is displayed.

Regards,

Nick

Former Member
0 Kudos

Hi,

1.In smartforms if-else can't work.Instead of that Use alternative Node.

->TRUE(text elementshard coded text and &var&) in conditions tab of Alternative ,specify var gt 0.

->FALSE(text elementshard coded text and &var&)

Regards,

Shiva.

Former Member
0 Kudos

Hi,

We cannot use the text editor for if-else statements . Either you will have to write in the conditions tab of the text element where you have hard coded the values .

Or before the text add program lines.

Right-click on the window -> create->flow logic-> program lines

I hope this is useful to you.

Regards

Nisrin.