
In your BSP applications, you can work with text literals and texts from the Online Text Repository (OTR).
If you only want to use OTR texts, you have the advantage that your BSP 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 worklist.
If necessary, you can change any OTR texts that you create later.
You can also call OTR texts directly from ABAP, regardless of whether you are using the BSP programming model or not. For more information see OTR Texts in ABAP.
See also:
SAP Notes 944279 and 448220.
When you create an BSP application, you can choose between two different types of OTR text:
Alias texts
Alias OTR texts are texts shorter than 255 characters. These texts often appear on the interface and can be reused many times.
Alias texts are addressed in the BSP using <%=otr(alias-name)%>.
Long texts
OTR long texts are texts longer than 255 characters. They are displayed in the interface of your BSP application. Among other things, they can contain for the end user information for working with the Web application in question. These texts occur only in a simple format and are seldom reused.
Long texts are addressed in the BSP using <otr> text.........</otr>.
In the sections below, you can learn how to create alias and long texts in the OTR and how to use them in your BSP application.