Start of Content Area

Function documentation Defining and Maintaining Text Mapping  Locate the document in its SAP Library structure

Use

With a further function of the Web Dynpro Content Administrator you can assign other terms (texts) for terms that were already defined within a Web Dynpro application. The texts defined in the Web Dynpro application need not be changed. These text mappings are used at runtime to replace certain technical terms and texts.

Function Call

You normally call the Web Dynpro Content Administrator from the start page of the J2EE Engine with the URL http://<YourHost>:<Port>/webdynpro/welcome by selecting Content Administrator. By selecting Content Administrator, the URL http://<YourHost>:<Port>/webdynpro/dispatcher/sap.com/tc~wd~tools/Explorer  which starts the Web Dynpro Content Administrator, is launched.

If you add parameter app.EnableTextMappings=true to this URL after starting the Web Dynpro Content Administrator and then call the URL again, an additional pushbutton labeled Customize Text Mappings appears in the toolbar.

Note

When entering the parameter in the URL, make sure that you add a question mark (?) in front of the parameter if it is the first additional parameter. Add an ampersand (&) in front of the parameter if it is a further parameter.

If you press Customize Text Mappings, a popup appears in which you can edit and customize the user interface texts.

Text Types of the Text Mapping

There are two different text types to which new terms can be assigned for the text mapping:

·        Translatable text that was defined for user interface elements

·        Message texts

Texts that were defined for user interface elements are only copied as complete character strings since this improves the performance. This includes for example the value of property text of the button user interface element for labeling a pushbutton or the property tooltip of the InputField user interface element for displaying a tooltip. This means that you must define a text mapping for Search Customer if you want to change the label of the pushbutton from Search Customer to Search Customer Partner.

Individual words, and not the entire message, are replaced in message texts. The message Changed data for customer was successfully saved is therefore only changed to the message Changed data for business partner was successfully saved if you defined a text mapping for Customer auf Business Partner.

Caution

If you define a text mapping for a text containing a space or an equals sign, you must insert a backslash between the individual words of the text to be changed when you make an entry in the key column. For example, if you want to change the text Search customer to Search Business Partner, you must enter Search\ customer. Do not forget the space after the backslash.

Prerequisites

In order to be able to use this function, you must make various settings in the configuration of the Web Dynpro runtime environment. You must configure the following parameters:

·        sap.textMapping.enable

·        sap.textMapping.object

·        sap.textMapping.separators

·        sap.textMapping.systemName

·        sap.textMapping.systemNumber.

You can find a detailed description of the individual parameters and how to configure these parameters in the procedure Configuring the Web Dynpro Runtime Environment.

Constraints

The assignments made are valid for all the Web Dynpro applications deployed on a J2EE Engine.

  

  

 

End of Content Area