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

Different Language`s field description Issue

Former Member
0 Likes
17,973

Hi,

I have a requirement, where if a person login to the system with different language, whenever he execute the program, the field description should come in the language he logged on.

It is working fine with EN, but when i tried in DE(German) only field names were displaying( instead of its description, only field name). So how to resolve this?

As per my knowledge, I can do with 2 select queries

SELECT * FROM /<table> INTO itab

                       WHERE field = itab-field

                         AND langu = sy-langu.              "#EC *

    IF sy-subrc <> 0.

      SELECT * FROM <table> INTO itab

                             WHERE field = itab-field

                               AND langu = 'EN'.            "#EC *

    ENDIF.

I am not sure about it. kindly help me

Regards,

Kiran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
11,524

For this, doing SE63 and changing language with respect to the language required is the best one.. or another way is using Translator.... 

thanks for all ur replies

I am closing this thread.

Hi,

I have a requirement, where if a person login to the system with different language, whenever he execute the program, the field description should come in the language he logged on.

It is working fine with EN, but when i tried in DE(German) only field names were displaying( instead of its description, only field name). So how to resolve this?

As per my knowledge, I can do with 2 select queries

SELECT * FROM /<table> INTO itab

                       WHERE field = itab-field

                         AND langu = sy-langu.              "#EC *

    IF sy-subrc <> 0.

      SELECT * FROM <table> INTO itab

                             WHERE field = itab-field

                               AND langu = 'EN'.            "#EC *

    ENDIF.

I am not sure about it. kindly help me

Regards,

Kiran

13 REPLIES 13
Read only

Former Member
0 Likes
11,524

I believe the issue is with the translations, i.e. maintain the translation in Transaction SE63 for the field descriptions in th respective languages, your issue will get resolved.   

Read only

Former Member
0 Likes
11,524

Hi Kiran,

Could you please explain in detail, Which table you are using to fetch description.

Better you maintain translation using SE63.

Regards,

Shyam Sunder Goyal

Read only

0 Likes
7,009

How to maintain this, can you please explain, which object type to select

Read only

Former Member
0 Likes
11,524

Hi All,

My issue is different languages apart from english. whenever the enduser Login to sap with German or any other language, a Tcode(custom) should display the field description in its input entry.

For English it is working superfine, but for other language, it is not working. it is displaying only field name, not its description of the language that the user had logged on.

Read only

0 Likes
11,524

If you are talking about translation of selection screen fields then go to text elements --> selection texts --> then go to Translation, That will help you.

Read only

ThangaPrakash
Active Contributor
0 Likes
11,524

Hello Kiran,

If it is a Z report then we have to maintain the translation of the text elements for whatever languages you need or the users login.

Regards,

TP

Read only

Former Member
0 Likes
11,524

Hi..

I know I can do the translation by going in Text element -> selection Text.

But I need to write a select query where when an User login with different language, it should process everything in same language itself..

kindly help me out

Regards,

Kiran

Read only

0 Likes
11,524

Hi, Kiran

You should be use standard function module.

TRANSLATE_TEXT_TEXTLOG

Regards

Niraj

Read only

0 Likes
11,524

Hi Niraj,

Cant it be done by using Select Statements? using code inspector!

SELECT * FROM /<table> INTO itab

                       WHERE field = itab-field

                         AND langu = sy-langu.              "#EC *

    IF sy-subrc <> 0.

      SELECT * FROM <table> INTO itab

                             WHERE field = itab-field

                               AND langu = 'EN'.            "#EC *

    ENDIF.

Read only

0 Likes
11,524

Hi Kiran,

which table are you using to fetch the description.

However that logic will also work only thing is that description should be maintain in particular table in logging language.

Regards,

Shyam Sunder  Goyal

Read only

former_member202818
Active Contributor
0 Likes
11,524

Hi Kiran,

You have to maintain different language text in table DD01T.

Then according to log in language system will fetch and display.

Regards

Sreekanth

Read only

Former Member
0 Likes
11,524

Hi,

The select query will give you correct results only if values are maintained for that language. So, you need to get confirmation form the FA for the data to be maintained in the respective language.

If the data is not maintained the you will have to maintain the translations as suggested above for all the languages which user would log in with.

Regards,

Shruti

Read only

Former Member
0 Likes
11,525

For this, doing SE63 and changing language with respect to the language required is the best one.. or another way is using Translator.... 

thanks for all ur replies

I am closing this thread.