Skip to Content
0
Nov 02, 2005 at 09:54 AM

Smartforms: Conditions in Textincludes don't work

357 Views

Hi,

we use in SAPSCRIP a generic Textinclude 'FORM_HEADER' which is included in all our Forms. In the standard text 'FORM_HEADER' there are we include different Text Includes: e.g.

&ztest-company_name&

/: if &ztest-date& < '20040101'

/: include zlogo1 OBJECT TEXT ID ST LANGUAGE DE

/: else

/: include zlogo1 OBJECT TEXT ID ST LANGUAGE DE

/: endif

In doing so we just change the text include 'FORM_HEADER' once if the company decides to change e.g. the logo. This works perfectly in all SAPSCRIPT Forms.

Now we want to use the same solution for smatforms. I created a new text element type include-text and filled in the name of the text 'FORM_HEADER'. The company name is printed correctly but the conditions are ignored. Does any one know if it is possible to include a text with conditions?

With best regards yours Johannes