service.sap.com/notes
4.1.1.1.5 Text Input Dialog
Use
The text input dialog is used to display text for certain parameters in Web items. You can enter the following text types using the dialog:
● Language-independent texts
● Language-dependent texts, in the object (Web template or reusable Web item)
● Language-dependent texts, store in tables
● Language-dependent report texts (obsolete)
Integration
The text input dialog is part of the Web Application Designer and is called when you set certain Web item parameters, such as parameter tray - in which you can give the tray for the Web item a label. Using the text input dialog, you can enter the hyperlink text (parameter TEXT_CONTENT) and the quick info text (parameter TOOLTIP) for the Link Web item, for example.
Features
You can create the following text types with the text input dialog:
● Language-independent texts
When you select this text type, you can enter the free text of your choice. The text is not translated.
● Language-dependent texts, in the object (Web template or reusable Web item) If you select this text type, you can enter free texts that are either specific for the Web template or specific for a reusable Web item. Texts of this type are translated and transported with the associated object (Web template or reusable Web item). See Transport System [External].
Choose New to enter a new text of your choice. Then save the text.
To edit a text that has already been saved, proceed as follows:
...
a. From the dropdown box of the dialog segment Text Properties, choose the text you wish to change.
b. Choose Edit.
c. Edit the text in the text dialog segment and then save it.
● Language-dependent texts, store in tables
When you select this type of text, you can edit texts that are saved in the
RSBEXTEXTS table of the BI system and that have a translation connection and you can also create new ones. The texts are not transported with the object, but they can be used in other BEx tools (such as the Report Designer).
...
a. Choose the Maintain button in the Text Properties dialog segment. The BEx text maintenance dialog box appears.
b. In the text maintenance dialog, choose the text that you wish to change and make the changes
or
In an empty row of the text maintenance dialog, enter your text into the Key and Text fields.
c. Choose Save Changes. Your changes are made in the table.
● Language-dependent report texts (obsolete)
When you select this text type, you can select the texts of an ABAP report program that you have created. These texts have a translation connection; they are not transported with the object and have to be created in the BI system within the associated report program. See also Generating an ABAP Program to Maintain Language-Dependent Texts [Page 42] .
...
a. Under Report, in the Text Properties dialog segment, enter the report program names and enter the key for the text to be edited under Key.
b. Choose Get Text. The selected text is shown under Text.
4.1.1.1.5.1 Creating ABAP Programs for Maintaining Language-Dependent Texts
Use
To make Web applications independent from static texts, you can maintain and translate the text in an ABAP table. The Web application is then filled with the corresponding texts according to the logon language.
Prerequisites
You are in the ABAP Editor (transaction SE38)
Procedure
...
1. In the Program field enter the name of the program, for example ZHTML_TEXTS and in the subobject screen, select Source Code.
2. Choose (Create). You reach the ABAP: Program Properties <Name of Program>
Change screen.
3. Enter the title of the program, for example Web Application Texts.
4. Under Type in the Attributes field, choose Executable Program and then Save. The Create Object Catalog Entry dialog box appears.
5. In the Attributes field under Package enter $TMP and save the program as a Local Object.
You have created an ABAP report called ZHTML_TEXTS
6. In the menu bar choose Goto → Text Elements → Text Symbols. You reach the ABAP Text Elements: Display Text Symbols Language English screen. Choose (Create
<-> Change).
Enter your texts in the empty table.
...
a. In the Sym field enter the numerical key of the new text element (0-999), for example, 001.
b. In the Text field, enter the name of the text element, for example, Credit Memos.
The dLen field is filled automatically with the actual length of the text you entered, for example, 12 in the case of Credit Memos.
c. In the mLen field, enter the maximum length of the text field.
If the maximum length of the text field (nLen) is smaller than the actual length of the text field (dLen), the system asks you whether you want the text to be shortened to the maximum length.
d. When you have entered all your texts, choose (Activate). You reach the ABAP Text Elements: Change Text Symbols Language English screen.
7. In the menu bar of the ABAP Text Elements: Change Text Symbols Language English, choose Goto → Translation. You reach the Target Language for Translation screen.
...
a. Select the target language, into which you want to translate the texts, for example, DE and choose (Continue). You reach the Translation: ABAP Text Pool: <Name of Program> ($) from Language <X> to <Y>, on which your texts and translation proposals from the ABAP text pool are displayed. For example,
“Credit Memos” is translated as “Gutschriften”. You can transfer the proposals or edit them as you wish.
The program generated the text translations from the ABAP text pool if
corresponding entries are available there. For texts without proposals you have to enter the translation yourself.
b. Choose Save.
Result
In the Web template you can select this program text using the fourth option of the text input dialog.