Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Smartform: Command Line (If condition)


Can't we use a command line inside a text element in smartforms?

I want to put some IF conditions inside the text element. However.

All the IF condtions are simply being ignored and the values are being printed unconditionally.

I use the SAPscript type of editor where I can choose /: for command

so it looks like this


P1 &PRINTDATA& where P1 is a paragraph type


However the IF condition is simply being ignored.

and PRINTDATA is always being printed. I dont want to use the conditions tab

for the text element. I need this inside the text element

Former Member

I guess toy cannot use conditions inside text element as you use in your SAPscript editor, smartforms are provided with many options for placing conditions, you can place your condition in condition tab or you can create alternative which give us an option of true or false... not only this you can create program lines and place your conditions and basing on the condition you can populate the field.

Lastly, smartform concept is entirely different from SAPscript, once smartform is activated function module is generated in backgroud...

Close the thread once your question is answered.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question