Skip to Content

How to Display Selection Text in English Language Only if my Logon Language is not English?

Hi Experts,

I have a requirement where I need to Display my ABAP Report Selection Screen parameters text in English language only. Even if the user logins using login Language: GE or FR and executes the report, all the selection text in the selection screen should show in English. Now if I login using different language sayin 'DE' the selection screen is showing as below

The client uses at-least 6 different languages to login and execute the report, irrespective of the Logon Language the report should show the Selection Screen Input Text field in English.

How can I achieve this? I googled and found the "SET LANGUAGE" but it is not working. Can anyone kindly suggest how to solve this issue

Regards

GopaKumar

capture1.jpg (18.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 12, 2017 at 12:55 PM

    Hi Gopa,

    In event LOAD-OF-PROGRAM just call SET LOCALE LANGUAGE with necessary language. It's works.

    LOAD-OF-PROGRAM.
    SET LOCALE LANGUAGE langu.

    Best regards,

    Kateryna

    Add comment
    10|10000 characters needed characters exceeded

    • This should be the best solution to this specific question (if it is your own program and you can change the code).

      Interesting enough it works for selections screens (also in front of CALL SELECTION-SCREEN) but not for normal dynpros (in front of CALL SCREEN), sigh ...

  • Jan 12, 2017 at 10:17 AM

    See the second hint in the documentation of

    SET LANGUAGE

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 12, 2017 at 11:45 AM

    Hi,

    As Horst said, you cannot use SET LANGUAGE for the selection text.

    But you can make a program that call the transaction and use SET LOCALE LANGUAGE first.

    Something like that:

    SET LOCALE LANGUAGE p_langu.
    CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
      EXPORTING
        tcode                   = p_tcode.
    
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 12, 2017 at 02:33 PM

    Hi Gopa,

    You can maintain translation using text elements.

    Maintain same english langugae text for DE or any other language then this problem wont come.

    Thanks,

    Gaurav Phadnis

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 12, 2017 at 02:37 PM

    Hi Gopa,

    You can maintain translation using text elements.

    Maintain same english langugae text for DE or any other language then this problem wont come.te1.pngte2.png

    Please find attached document for same.

    Thanks,

    Gaurav Phadnis

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2017 at 09:18 PM

    Maybe you can use the secondary language (profile parameter 'zcsa/second_language') ? (which is also the first hint of documentation of SET LANGUAGE)

    The original language of the program should be defined as this secondary language. It works well for selection texts as long as the text pool does not exist in the user's logon language (to make sure, look at table REPOTEXT). More info in note 1303261 - ABAP text pool and selection texts.

    Add comment
    10|10000 characters needed characters exceeded