Reputation: 3669
I was under the assumption that each time I use the following statement during the runtime of an ABAP report, the text-symbols from the respective language would be used from there on out (if they were translated accordingly):
SET LANGUAGE 'EN'.
However, this language switch only seems to work once, because in my report (where I want the user to be able to select the output language) I can use any language I want during the first run. But once I go back to the selection screen and enter a different language code, the second SET LANGUAGE
does not have any effect.
Is there some sort of text-symbols caching involved? Is there a way to prevent that for a single report or trigger a refresh at runtime?
Upvotes: 0
Views: 3237
Reputation: 3669
I just found the solution: There is none, since there is none needed.
SAP is not caching the language-dependent text symbols. You can at any point in the execution change the runtime language via:
SET LANGUAGE 'EN'.
The reason I thought it did not work was, that I was using an HTML control inlined in the SAP GUI that did not properly refresh and therefore on the second HTML display still showed the old language texts.
Upvotes: 0
Reputation: 14616
Probably, it worths to use CL_GUI_TIMER to refresh the screen after you switched language. You can check it with SAP_TIMER_DEMO program.
Upvotes: 0