01-06-2015 7:48 AM
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)
'WAERS'
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?
Regards,
EH
01-06-2015 8:12 AM
Hi,
Maintain the text symbol for the field description and do translation as required in languages for the text symbol.
01-06-2015 8:34 AM
Hi,
How to maintain text symbols for a specific field?
I only needed for lt_display-field_desc .
01-06-2015 8:36 AM
Hi,
lt_display-field_desc = text-001.
Double click text-001 and then maintain in original language and then do translate it in target language.
01-06-2015 8: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.
Regards.
Praveer.
01-06-2015 9:08 AM
Hi,
Thanks for the reply..
yes, the description info is from a table which is having description of a fields.
I am using
PERFORM build_lst_table_wcurr USING lt_display-column_len
lt_display-field_desc
-----------------
-------
So how do i achieve for a particular lt_display-field_desc?
01-06-2015 9:21 AM
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.
Regards.
Praveer.