Skip to Content

Subroutine with 'EN' and Sy-langu

Hello Folks.

I have to make the subroutine with both EN as well as in Local language i.e, Sy-langu.

Here is the piece of code:

LOOP AT lt_display.

     hotspot = lt_display-hotspot.

     IF lt_display-curr_filed = 'X'.

       PERFORM build_lst_table_wcurr USING  lt_display-column_len   (It will be in EN)

                                                                    lt_display-field_desc--> (It needs to be in Sy-langu)

                                                                    lt_display-fieldname-> (EN)


                                                                   hotspot. -> (EN)

Only I need to make ->   lt_display-field_desc  as sy-langu and remaining will be in 'EN'.

It is a description field so, it needs to be in local language.

Do i need to add another loop for this or how to achieve this?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 06, 2015 at 08:12 AM


    Maintain the text symbol for the field description and do translation as required in languages for the text symbol.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 06, 2015 at 08:41 AM

    Hi Ethan,

    From where are you picking the Description Information?

    If it's from the text Table, then while taking the Description column information, you can pass the Language Column condition  as SY-LANGU.

    And while arranging the Information, you no need to change the language again.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ethan,

      in the same way, when you are querying the text table (Language = SY-LANGU). and after that I think, you are arranging the information in IT_DISPLAY table.

      So while arranging only pass the Description Value from the text table into IT_DISPLAY-Field_desc.

      and then your rest of the logic will be same.