cancel
Showing results for 
Search instead for 
Did you mean: 

Include text in SMARTForm

former_member200271
Participant
0 Kudos

Hi all~

I want to insert a PO header text in two kinds of languages in sf, so I use two "include text"

One's language is 'En',

the other's language is 'ZH'.

Both with correct text name, object and ID

Sometimes, text is maintained in English only,but sf print the english text twice which should be printed only once.

So, I deleted the language key 'ZH' in the second text,but it was still printed with language key 'EN'

I tried the checkbox 'No error if no text exists', nothing changed......

Even "No error if notext exists" is space, program didn't pop up any error message

Is there anyone know the reason?

Accepted Solutions (1)

Accepted Solutions (1)

former_member200271
Participant
0 Kudos

Thanks for all your quick reply~

But maybe I didn't descript my problem clearly

I do want include texts of BOTH language printed in one form if they are maintained.

If text is maintained in both two English, then print them all

If only one of them is maintained, print just one

If Nothing is maintained, print nothing

There should be nothing to do with sy-langu I think, No matter which language I log in, I want the same result

Former Member
0 Kudos

Hello,

Try to check in STXH table, before printing it. With all the inputs, Object, ID, name and Lang.

If text is maintained for language EN or ZH or else both. Based on that keep conditions to print.

Former Member
0 Kudos

you can use in standard text LANGUAGE &CONTROL_PARAMETERS-LANGU&

former_member200271
Participant
0 Kudos

Thanks, I can achieve my purpose by check stxh first

and then use conditions print both or one of them

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

U can use two include text.

Just put condition under condition tab of each - sy-langu = 'EN'

sy-langu = 'ZH'.

Former Member
0 Kudos

hi insted of using two text elements u can use only one text element .

In langauge u can use control parameres language.

control_parameters-langu.

use this parameter in place of language.

and for translation u can use SE63 tcode.

Edited by: vinay raj on May 11, 2009 10:32 AM

former_member195383
Active Contributor
0 Kudos

you should use one text node in EN, and then logging in ZS go to SE63 , and maintain translation for that text in ZS. That will serve your purpose.

If u use two nodes, the texts will be printed twice. So please avoid that.