Replacing Interface Texts at Runtime
With the Web Dynpro Content Administrator you can assign other texts to already defined terms. The original texts of the Web Dynpro application do not have to be changed since the texts are mapped at runtime. One possible use for the mapping function is, for example, to replace technical terms with a more intuitive interface.
You can assign new terms to two different text types:
● Translatable interface element texts
○ This includes, for example, the value of the property text on a button, and the property tooltip on the InputField interface element for displaying a quick info.
○ Texts defined for interface elements are always mapped as a whole string.
● Message texts
○ Individual words, and not the entire message, are replaced in message texts.
The assignments made are generally valid for all the Web Dynpro applications deployed on the Java Engine.
1. The following Web Dynpro runtime parameters must be configured:
○ sap.textMapping.enable
○ sap.textMapping.object
○ sap.textMapping.separators
○ sap.textMapping.systemName
○ sap.textMapping.systemNumber
2. The Web Dynpro Content Administrator is running.
3.
Add
parameter app.EnableTextMappings=true to URL http://<YourHost>:<Port>/webdynpro/dispatcher/sap.com/
tc~wd~tools/Explorer. If
this is the first parameter added to the URL, make sure that you put a
question mark (?) in front of the parameter. If it is the
only parameter to follow an existing parameter, add an ampersand (&) in
front of the parameter.
4. A further pushbutton Customize Text Mappings appears in the tools list. Choose Customize Text Mappings, and edit the texts on the user interface to your requirements.
5. If you define a text mapping containing a space or an equals sign, you have to insert a backslash (\) between the individual words of the text to be changed when making an entry in the key column.
Old text: Search customer
New text: Search Business Partner
Required text input: Search\ customer
Example: A success message is to be changed at runtime as follows:
Old text: Changed data for customer was successfully saved
New text: Changed data for business partner was successfully saved
To display the new message text on the interface, you have to specify a text mapping for Customer to Business Partner.