Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to create single layout in multiple languages.

Former Member
0 Likes
1,234

Hi,

Could anybody tell me how to create single layout in multiple languages.

Its urgent.

Regards,

Gautami.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
893

Hi Gautami,

have to creat the layout in how many languagesis required by going se71.

If it is English go to se71 and give the layoutset name and then give the language.

Write the logic required.

If it is German go to se71 and give the layoutset name and then give the language.

Write the logic required in german.

write the code in print program that it should pick the layout basing on logon language.

Regards,

Sunil.

Hi,

Could anybody tell me how to create single layout in multiple languages.

Its urgent.

Regards,

Gautami.

4 REPLIES 4
Read only

Former Member
0 Likes
894

Hi Gautami,

have to creat the layout in how many languagesis required by going se71.

If it is English go to se71 and give the layoutset name and then give the language.

Write the logic required.

If it is German go to se71 and give the layoutset name and then give the language.

Write the logic required in german.

write the code in print program that it should pick the layout basing on logon language.

Regards,

Sunil.

Read only

Former Member
0 Likes
893

hi use this program i had used to perform to get the different language texts depending on the user selection.here ucan pass the language to get the exact language if u delete the radio buttons here in the output and place the parameters:p_lang in the selection-scree.

hope it helps u..

REPORT ZVENKATTEST0.

tables:mara,makt.

TYPE-POOLS:SLIS.

data:begin of it_mara occurs 0,

matnr like mara-matnr,

meins like mara-meins,

mtart like mara-mtart,

end of it_mara.

data: begin of it_makt occurs 0,

matnr like mara-matnr,

maktx like makt-maktx,

SPRAS like makt-spras,

end of it_makt.

data:begin of it_final occurs 0,

matnr like mara-matnr,

meins like mara-meins,

mtart like mara-mtart,

maktx like makt-maktx,

end of it_final.

DATA:IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,

IT_LAYOUT TYPE SLIS_LAYOUT_ALV.

select-options:s_matnr for mara-matnr.

parameters: p_lang like sy-langu.

parameters:p_rad1 radiobutton group g1 DEFAULT 'X',

p_rad2 radiobutton group g1,

p_rad3 radiobutton group g1.

AT SELECTION-SCREEN OUTPUT.

if p_rad1 = 'X'.

p_lang = 'EN'.

endif.

if p_rad2 = 'X'.

p_lang = 'DE'.

endif.

if p_rad3 = 'X'.

p_lang = 'FR'.

endif.

START-OF-SELECTION.

select matnr

meins

mtart

from mara

into table it_mara

where matnr in s_matnr.

select matnr

maktx

spras

from makt

into table it_makt

for all entries in it_mara

where matnr = it_mara-matnr

and spras = p_lang.

loop at it_mara.

it_final-matnr = it_mara-matnr.

it_final-meins = it_mara-meins.

it_final-mtart = it_mara-mtart.

read table it_makt with key matnr = it_mara-matnr.

it_final-maktx = it_makt-maktx.

append it_final.

clear it_final.

endloop.

WA_FIELDCAT-FIELDNAME = 'MATNR'.

WA_FIELDCAT-TABNAME = 'IT_FINAL'.

WA_FIELDCAT-REF_FIELDNAME = 'MATNR'.

WA_FIELDCAT-REF_TABNAME = 'MARA'.

APPEND WA_FIELDCAT TO IT_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-FIELDNAME = 'MEINS'.

WA_FIELDCAT-TABNAME = 'IT_FINAL'.

WA_FIELDCAT-REF_FIELDNAME = 'MEINS'.

WA_FIELDCAT-REF_TABNAME = 'MARA'.

APPEND WA_FIELDCAT TO IT_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-FIELDNAME = 'MTART'.

WA_FIELDCAT-TABNAME = 'IT_FINAL'.

WA_FIELDCAT-REF_FIELDNAME = 'MTART'.

WA_FIELDCAT-REF_TABNAME = 'MARA'.

APPEND WA_FIELDCAT TO IT_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-FIELDNAME = 'MAKTX'.

WA_FIELDCAT-TABNAME = 'IT_FINAL'.

WA_FIELDCAT-REF_FIELDNAME = 'MATKX'.

WA_FIELDCAT-REF_TABNAME = 'MAKT'.

APPEND WA_FIELDCAT TO IT_FIELDCAT.

CLEAR WA_FIELDCAT.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-REPID

IS_LAYOUT = IT_LAYOUT

IT_FIELDCAT = IT_FIELDCAT

TABLES

T_OUTTAB = IT_FINAL.

regards,

venkat.

Read only

Former Member
0 Likes
893

Hi friend,

A Smartform can be maintained in many languages other than the language that it is created. Translations for the texts have to be maintained for this purpose.

To maintain the translations:

Go to transaction SE63 in R/3.

Go to menu Translation->R/3 Enterprise->Other Long Texts

Select the object type in the pop up. Smartform(SSF) object type is found under Forms and Styles(FS).

Enter the name of the Smart form and choose the source and target language. This would open a screen with the Smartform code in Source language on the top and an editor with the same code in the bottom.

Find the text for which you need to maintain the translation and insert the translation in that place. As usual after required texts are maintained Save and Activate.

To see the translated Smartform create an output type and assign the smartform and the driver program to this output type. In the transaction that sends output to this smartform, select the output type and select the language in which the smartform has to be displayed (translations have to be maintained in this lanuage).This will give the smartform in the required language.

Reward if it is useful.

Regards,

Swetha.

Read only

Former Member
0 Likes
893

Hi,

GOTO SE71

Utilities --> copy from client.

Give source and target.

GOTO SE71

Enter SE71 --> Give target script name

Change--> goto administrative data --> select radio button for all languages

Activate it...

If you want to convert the original language... Goto SE71--> script name & original language

Click change Utilities --> conver original language

Regards