Changing OTR texts
I need to change some texts in a standard Web Dynpro.
I think the easiest way is to change them in the OTR, but after changing them they continue to appear as before. What do I have to do for the changes to appear?
I've noticed that when editing the texts I have to provide a country and an "Industry", and the only option I get for Industry is /0CUST/.
After saving the changes, in the OTR list I still get the old text, but if I select it and press the Contexts button,
I get a list that looks like this:
Ctry Indust. C Text
X Original text
ES /0CUST/ New text
What do I do for the Web Dynpro to show the new text?
Thanks in advance.
Hi Soledad,
the workaround described in SAP Note [1048263|https://service.sap.com/sap/support/notes/1048263] "OTR: (Translated) texts not correctly displayed at runtime" should be helpful in your case.
Best regards,
Andreas
Similar Messages
-
How can we transport the standard changed OTR texts w.r.t translation?
How can we transport the standard changed OTR texts with out effecting the translation concept.?
means i need to see the text in different languages which ever logged in.using the function module SOTR_API_WB_TRANSLATE you can maintain translation in different languages for the OTR texts maintained in your WDA.
No need to transport,you can directly execute this FM by passing the below parameters:
SOURCE_LANGU EN
TARGET_LANGU FR
PGMID LIMU
OBJECT WDYV
OBJ_NAME %
FLAG_STRING
EDIT_MODE T -
Change to OTR Text in Title changes UI look and feel
We are running:
ECC 6 EhP3
NW7
LSO 603
We were asked to change the title of
Package: LSO_FRONTEND
Alias: LSO_FRONTEND/ACTIVITIES
When I tried to change it in the OTR it allowed the change but removed the tray around the title in the portal screen.
We do not have the most current version of R3trans Transport Program. The version we use is Release 700 May 3, 2009.
What is the process to correct the loss of the UI elements?
Points will be awarded for instructions to correct the problem.
Thanks,
D. MaupinThe following SAP Notes have been reviewed and none of these solutions worked:
NOTE Title Date
1247020 OTR: Texts are not transported 4/08/09
575367 Text changes are not transported 9/24/08
1102260 UI element texts are not transported 10/11/07
997513 Changed UI element texts are not transported 11/13/06 -
What happens to the changes made to the standard OTR texts in E-recruitment
Hi all,
I have to change the <b>OTR texts of e-recruitment</b>. But I doubt whether they remain changed or overwritten in upgrade if I directly change the OTR text itself.
Any one please help me in this issue.
If I want to keep the changes in upgrade how should I proceed.
Thanks in advance.
RaviHi,
Yoy will get propbaly SPAU. Check http://help.sap.com/saphelp_nw70/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/frameset.htm for details.
Therefore it's advisable to make a copy of standard SAP stuff.
Eddy
PS. Reward useful answers and earn points yourself -
How do I change the text on a label for a SAP delivered WD view
Hi,
I need to change the text that is being displayed for a label in a SAP delivered WD ABAP View. When I look at the properties for this label, the Text property is currently empty, so I assume that the text that is being displayed in the view is coming from the dictionary. I was hoping to change the text of the label via the Enhancement Framework. I created an OTR entry, then went into SE80 for the WD Component, I navigated to the view in question, I pressed the Enhance button and entered $OTR:<package>/<alias name> in the text property for the label. Finally I saved and activated and was prompted to create an Enhancement Implementation, which I did and I selected it. Everything seems to be fine (no errors or warnings). I then ran the WD application. My change was not there. I then went back into SE80 for the WD Component that I created the enhancement. I navigated to the View and looked in the text property of the label and saw that my change was not there. I repeated this process several times and each time when I added the OTR entry to the text property of the label, it saves and activates without issue (in enhancement mode), but when I run the WD App the change does not show up and when I go back to the WD View, my change to the text property is gone. I know that if I really wanted to I could register the object and add the OTR entry to the text attribute of the label, but I am trying to perform this change using a modification free enhancement. Can this be done via an Enhancement, or do I have to register the object and make my change using a modification?Hi Gregg,
excellent question. I had the same problem as well before.
What I have learned is that you cannot change a UI Element via Enhancements.
You can add new UI Elements (e.g. new label) or remove existing elements, but you cannot change them (except the layout properties (e.g. colspan) maybe).
The only possibilities I see is
1. Remove the existing label, and add a new label with your desired text
2. Do it as a modification
3. Do it as a configuration (This means you go to the webdynpro application in SE80, right click and select "Create/Change Configuration)
4. Do it as customizing (This means you add the URL parameter sap-config-mode=X to the URL, navigate to the label, right click on it, and select "Change Settings for Current Configuration").
The disadvatages of 3) and 4) are
- texts in configurations and customizing are not translatable (as far as I know)
- if you have multiple configurations, you have to change the label multiple times
Hope this helps a bit,
Daniel -
How to change the text color of a formLayoutColumnHeader ?
Hi all,
I'm working on a BSP on SAP NetWeaver 2004s and would need to change the (OTR) text color to red in a
formLayoutColumnHeader, but there is no attribute about it. I searched for other threads and tried with the
tag <font color=....> before the OTR tag, but the tag is shown with the OTR text on the UI...
Example:
<phtmlb:formLayoutColumnHeader id = "PublInfoGroupHeader"
text = "<%= otr(xxxxxxxx) %>" />
Thx in advance, best regards.
Angelodid you try
text = "<font color='red'><%= otr(xxxxxxxx) %></font>" -
OTR text not displayed correctly
Hi,
I have view in which there are 3 tables with 3 colums each.
All the data binding etc is fine and it is displayed correctly in the portal.
My issue is with the OTR texts maintained. The text for column headings in the table is binded with the OTR texts (created through transaction sotr_edit) $OTR:<package>/<alias> in properties value field.
We have an option to change the language in the portal. So when a language is selected, the texts for these column heading is displayed in the corresponding language selected.
But for some langauges selected, the texts show some random language instead of the one selected.
Any idea on how this can be corrected.Thanks for the reply Thomas.
And sorry for delayed reply.
I could see that the binding of the OTR was not correctly done with the texts.
After i made the changes, the languages were displayed correctly.
My concern here is that i have made the changes as this is a custom development and the issue was solved.
But this same issue is seen in a standard component where the text was not displayed in the language selected and this issue is coming only for the users assigned to a particular role. And for all others, the texts are displayed with the language selected.
Any inputs on this would be helpful.
Thanks. -
Best practice with otr texts in wd
hi,
when I enhance a wd component I want to work with otr texts and I have two questions:
1. Is the best way to store the otr texts in a separate new package or in the still existing package of the enhanced wd component?
2. Makes it sense to fetch even the static texts in the abap coding (not the ui elements) like message manager from the otr or is it then overacting?
thanksHi,
Answer to your questions.
1. Is the best way to store the otr texts in a separate new package or in the still existing package of the enhanced wd component?
A. You can create OTR texts any where as long as the transport goes along with the webdynpro component. Its always good to have the OTR in the same package. Its more like the text element concept in ABAP.
2. Makes it sense to fetch even the static texts in the abap coding (not the ui elements) like message manager from the otr or is it then overacting?
A. Its a good habit to fetch all the static text from OTR. this helps in several ways.
a) If the message is used n number of times then you just have to change the text in OTR and it reflects all
b) If the message needs to be displayed in a different language then just the OTR needs to be maintained for the alias in a different language.
Regards,
Kinshuk -
What if OTR texts in JS contains " ?
I have a BSP page that contains the following
<script...>
alert("<%otr(ITSM/mytext)%>");
</script>
I the original language, the text was i.e. "Wrong value in field 'printer'!". But unfortunately, the translators changed the 's to "s in some languages.
Ok, I could tell the translators to use single quotes instead of doubled or to use \", but I don't want to bother them with JS specifics. Is there a better way to assure that an OTR text doesn't contain characters that JS can't handle?Try the following code. It worked for me.
[code]
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="phtmlb" prefix="phtmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title="Main page " >
<htmlb:form>
<script>
<%
data: otr_string type string.
otr_string = page->OTR_TRIM( '$TMP/mytext' ).
%>
alert("<%= cl_bsp_utility=>encode_string( in = otr_string encoding = if_bsp_writer=>co_javascript ).%>");
</script>
</htmlb:form>
</htmlb:page>
</htmlb:content>
[/code] -
Hi Experts,
I have a standard webdynpro screen which has a Tabstrip having different tabs. For one of the tabs in the Tab Strip I want to change the Tab text on certain condition during runtime.
When I check the Tab property, the propery Caption is holding the Text for the Tab. Is it possible to change the text during runtime?
I would need to create and assign an OTR text to make enable the text in other login, so I is it possible to create another caption and bind it during runtime? or anyother option?Srinivas Kalluri wrote:
Is it possible to change the text during runtime?
> I would need to create and assign an OTR text to make enable the text in other login, so I is it possible to create another caption and bind it during runtime? or anyother option?
As the text property of the caption of the Tab is bindable, Yes you can bind it at runtime. As you mentioed it is standard component, you need to use enhancment concepts to do this.
you can create OTR and then use below code,
data: lw_alias TYPE sotr_alias,
lw_otr TYPE string.
data: l_otr type ref to cl_sotr.
IF NOT l_otr IS BOUND.
CREATE OBJECT l_otr.
ENDIF.
lw_alias = 'Z_OTR_TAB_TEXT'.
* Get OTR text
CALL METHOD l_otr->get_text_by_alias
EXPORTING
i_alias = lw_alias
IMPORTING
e_text = lw_otr.
* set single attribute
lo_el_tab_text->set_attribute(
EXPORTING
name = `TAB_TEXT` "TAB_TEXT is attribute having type string
value = lw_otr. ).
Thanks,
Chandra -
Hi all.
I need to translate a lot of OTR texts. First I uploaded a file with the aliases, original OTR texts and all the translations to internal table. I tried to use batch input for transaction se63 (translations), but it doesn't work. Please suggest any other ways for mass OTR texts translation.
TIA,
regards, Nikolai.Hi NIk,
Hi,
Trasaction for the OTR is SOTR_EDIT .
following steps:
1: Go to Transaction SOTR_EDIT
2: Put the Alias name and display
3: Go to Change menu (Edit>Context>Change)
4:Do not choose anything in the popup. Just Hit Enter.
5: You will be in change mode. Now select the language (e.g. DE)
6: Blank out the Length field. Enter the text in Text field.
The length will come automatically. (Or you can also specify the max value here).
7: Now Press Save button. The text has been saved.
8: Now select other language from dropdown
(E.g. EL Greek) and change the Text and blank out the Length field
(you can also specify Max length here as per your choice)
And press Save. In similar way,
you can just create the OTR for Multilanguageu2019s.
9: At last save and come out. Enter another Alias and repeat the procedure.
Hope this will Help You
Thanks
Kalyan -
i have this code
htmlb:label for = "<%= CL_BSP_HAP_DOCUMENT_CS=>C_BSP_INPUT_APPRAISAL_NAME %>"
id = "INPUT_DOCUMENT_DESCR"
required = "<%= l_mandatory %>"
text ="Document Name"/>
i need to make the translation so that when the client is opened in different language it should display translated version of the
<b>"Document Name"</b> in that respective language.I gone through some forum threads but could not able to get the out put.
help me out
ThanksHi,
try this:
Change the Text "Document Name" to
"<%= otr(ZPACKAGE/DOCUMENTNAME) %>" where ZPACKAGE is the Package of your BSP. Doubleklick on the OTR Element and fill the text.
After that you can translate the OTR-Text with transaction SE63_OTR.
Hope this help.
Best regards
Renald
PS: Ooops, Eddy was faster
Message was edited by: Renald Wittwer -
How to change the text in the legend of a graph programmat​ically in labview
I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?
Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
Tim
Attachments:
legend.vi 12 KB -
How do I change the text color of footers on select pages? (InDesign CS6)
Good afternoon,
Months ago, I worked with a graphic designer to put together a 100-page workbook for my training company. He turned all of the files over to me and I'd like to make a small change before we print another run for a new client. Specifically, I'm having trouble changing the text color on select pages. Since a picture says 1,000 words, let me give you an example:
As you can see, the copyright information on the right side of the page is difficult to read here when placed over the photo (you may have to look closely, but it's along the guy's sleeve). What I'd love to do is change that part of the footer (not the left, page number side) to white text. This would make it quite a bit easier to read. There's a number of other pages in the book that I want to make this change to. I'm not sure why I never noticed it or mentioned it to the designer. I suppose I've become more discerning since then.
Let me tell you what I've tried to do:
I learned how to override master pages by CTRL+SHIFT clicking on the footer. However, this has not worked for me. It allows me to change the page number part, but not the copyright side. Additionally, sometimes when I override the master the formatting of the footer goes goofy. For instance, the left side and right side come together and end up in the middle of the page I'm working on.
I'm looking for a quick way to go through and make the footers easier to read on pages where they are backed by a photo. Hoping you can help me. Please let me know if you need any other information.
Best,
TaylorI think you should have left it as it was. It seems like what you had was single pages flowing as spreads within InDesign. Like below. That is the correct way, and when you changed it to all single, it did create your footer problems.
Will you be sending the file as a PDF to your online printer? If so, then leaving the InDesign file set as below is fine. The PDF output will separate the pages.
All you have to do is make sure that Pages, not Spreads, is chosen when you output the PDF -
Unable to change group text name or add person to some group texts in iOS 8
I really like the ability to change group text names as it helps me separate work group texts from personal especially when I have coworkers that have separate business phones. I'm unable to change the name of some group texts as the option is not there when I go into details. I'm also unable to add contact to the same group texts that I'm unable to change the name on. Is this a glitch or am I missing something?
Hi CaliWingsFan,
If you are having issues with renaming and adding users to group texts, you may want to try some things to troubleshoot.
First, quit all running applications and test again -
iOS: Force an app to close
Next, I would try restarting the iPhone -
Turn your iOS device off and on (restart) and reset
If the issue is still present, you may want to restore the iPhone as a new device -
iOS: How to back up your data and set up your device as a new device
Thanks for using Apple Support Communities.
Best,
Brett L
Maybe you are looking for
-
Just purchased a 27" apple cinema display for an older G5. Was told I also needed "Dr Bott Digital Video Link" adapter to convert mini dvi to the standard dvi... will not work... anyone have any luck with similar issue?
-
Some SQL fields not showing data in Crystal XI R2
I have a report that is using a stored procedure. In this stored procedure we have many fields that are being passed over to Crystal. A small portion of these fields do not show any data when you browse them in Crystal. But when you check on the S
-
Reverts to non drop frame without a tape
Whenever I try to just log timecodes into Final Cut without a tape, it reverts to non-drop frame timecode. How do I tell final cut to always revert to drop frame?
-
I forgot my answers to security questions. I could not change and I am unable to make purchases at the Apple store. What do I do?
-
May I know how to prevent my iPhone from using data? [I've tried fake APN]
Greetings. I'd like to see the help of the community, for this problem has persisted for a month plus. Being unable to use my prepaid credit and having it deducted for no reason can be a little frustrating. So here's what I've done so far. 1. I've up