
There are various types of texts available for the interface layout of your Web application:
More Information:
Help Texts for Web Dynpro Applications
Use
In your Web applications views you can work with text literals and texts from theOnline Text Repository (OTR).
If you use OTR texts only, you have the advantage that your Web application will be language-independent. All the texts defined in the OTR are displayed at runtime in the logon language. If the texts are not yet available in the logon language, they are displayed in the system language. The OTR texts that you create are automatically translated, or are forwarded to the translation transaction (SE63) and are entered in the translator's work list.
More Information:Translating OTR Texts
If necessary, you can change any OTR texts that you create later.
Features
OTR aliases are included in the View Designer for all properties of translatable text type. (WDY_MD_TRANSLATABLE_TEXT). You can find out what these types by choosing the F4 help symbol.
Moving a component with OTR aliases from a local package to a transportable package can cause problems.
Activities
The window Text Selection appears. You will see all the OTR aliases contained in the packet that your component is also assigned to.
If the alias does not exist, you will be asked if you want to create it. Confirm with Yes and enter a name of your choice in the next dialog box. The text length can be a maximum of 255 characters.
Resetting OTR Buffers
When executing an application that uses OTR texts, some texts may not be displayed correctly even though they have been correctly translated.
At runtime the texts are read from a buffer that is not automatically reset when the texts are translated. In this case you can reset the OTR buffer manually by entering /$OTR in the OK code field.
If your texts are not compiled until runtime or if they contain variables, you can use text symbols from the assistance class. For more information seeWorking with the Assistance Class.
The UI elementFormattedTextView is used for displaying long texts. Pay particular attention to the section Converting SAPscript Texts into Formatted Texts in the documentation for this UI element. You can find an example in the system in the Web Dynpro application WDR_TEST_MISC.
Similar to the FormattedTextView, the UI elementFormattedTextEdit is provided for editing longer texts.
If you want to use SE61 texts to display long texts, note that not all SAPscript properties can be implemented in Web Dynpro ABAP.
We do not recommend or support the use OTR long texts, nor their display in text view.