cancel
Showing results for 
Search instead for 
Did you mean: 

Very Urgent Text Modules - Smartform in diff lang

Former Member
0 Kudos

Hi,

Could any one give me a detailed info on how to use one text module in Smartform to other languages <b>without logging</b> into the system in that language.

I <b>tried</b> Example in the thread containing as below nut unable to succeed.

/: INCLUDE z_txt OBJECT TEXT ID txt LANGUAGE &Variable&

Name: z_text

Object: Text

Text id: Txt (Text id from SO10)

Language: variable[/code][/code][/code]

Its very Urgent

Thanks

Dan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Naresh,

Nothing is working put either with text elements or test modules. Could u help me insome way.

where do i need to specify &CONTROL_PARAMETERS-REPLANGU1&

in text elements? in the conditions tab?

Or are there any system settings to have a look

?

pls reply.

thanks

DAN

marius_greeff
Active Participant
0 Kudos

Hi Dan,

CONTROL_PARAMETERS is one of the structures passed to the form from the print program. If you use a custom print program you can use the field mentioned and populate it with a language key. In the form insert the field in the language field and remember the &'s.

If you are using a SAP standard print program you can define a field in global definitions "LANGU LIKE SY-LANGU" and create program lines before your text element by right clicking - create - flow logic - program lines. To set the fields value use normal abap code and include your fields used in the input or output parameters as required.

Good luck.

Former Member
0 Kudos

Dan...

you want to give the Language for Text elemetn dinamically..

in genaral attributes of the Text Module winodow..

Text name: xxxxxxx

Text Object: Text

Text ID: ST

Language: as below...

so wht i am suggesting is give the &CONTROL_PARAMETERS-REPLANGU1& (if it contain the Language)..

in Language tab.. Press the button right side of this element ">" then the text box will be become large.. then enter &CONTROL_PARAMETERS-REPLANGU1&..

if it is not clear plese tell wht exactly you r requirement again

<b>Please Close this thread.. when u r problem ise solved</b>

Reward if Helpful

Regards

Naresh Reddy K

Former Member
0 Kudos

Hi Naresh/ Marius,

I had done as you told. In Include text i specified the text module name

text name : <zz_Text1>

text id: ST

Text Object :TEXT

LANGUAGE : DE or <CONTROL_PARAMETERS-REPLANGU1 = DE>

i had <CONTROL_PARAMETERS-REPLANGU1 = DE> in the code in initialization tab.

is this right? please tell me what furhter i should do?

thanks

Dan

Former Member
0 Kudos

if you want to pass the language dinamically you do this as in TExt elements

<b>write as follows....

&CONTROL_PARAMETERS-REPLANGU1&</b>

Please Close this thread.. when u r problem ise solved

Reward if Helpful

Regards

Naresh Reddy K

marius_greeff
Active Participant
0 Kudos

Hi There,

I asume you are already at the part where you have changed your text type to Include text. When you fill in the fields on the right hand side there is a button for each line with a triangle on it. By default it points right and by clicking on it will point left. When pointing left you can use a paramter in the space now much longer than before like &LANGU&.

Hope this helps.

Regards,

MG

Former Member
0 Kudos

dear Dan..

if you want to inclde a text module in Smartforms...

Create a text element--> in genaral attributes of the TextElement selec as "Text Module" by Default it will be as "Text Element.

There you can Enter the TEXT MModuile Name, Text ID and LAnguage

If it is not clear dont hesitate to come agian..

<b>Close this thread if when u r problem ise solved</b>

Regards

Naresh Reddy K

Message was edited by:

Naresh Reddy