cancel
Showing results for 
Search instead for 
Did you mean: 

How can i give conditions in smartform text editor

Former Member
0 Kudos

Hi all,

i want to display something based on some condition using text element in smartforms , how can i do it.

in SAP Scripts normally we give conditions in text element using command line(/:)

but it wont work in smartforms , how can i give the same in smartforms ?

please help me soon.

thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

when you will right click on node u will get the ALTERNATIVE options...

use this one to display text based on conditions...

put the conditions in general attributes tab...

when the condition is TRUE insert a text which u want to display...else in False..

Regards.

Former Member
0 Kudos

Hi Prashant,

Can you pls. ellaborate on your suggestions.

Rgds,

Sandeep

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can use the Conditions tab for the corresponding text.

ex: in the text-editor consider you are displaying a name field based on a variable

<b>

ws_name

ws_variable</b>

In the text give the field to be displayed

&ws_name&

In the conditions tab give

ws_variable = 'X'

This will print the value from ws_name only when ws_Variable = 'X'.

Regards,

Tushar

Former Member
0 Kudos

Hi,

You can use the COMMAND option or, CODE option which is available in the flow logic to display something based on the condition.

Regards,

Ajith V

Former Member
0 Kudos

u have same COMMAND lines in SF also , just right click u will get the option.

Regards

Prabhu