OTR Texts

Hi everyone,
I have several Adobe print forms to translate. Most of the static texts on this form already exist in our online text repository used by BSP applications.
Is there a way to access those texts inside the pdf form layout?
Thanks for your help.
Daniel
Edited by: Daniel Sulzer on Oct 14, 2008 12:11 PM

Hi Daniel,
You can access those text in your form. In case you are using WD ABAP just create a node in context and create an attribute of type string in that. Now bind this attribute to field on the form where you want to print this OTR text.
In case you are using WD Java you have to make RFC to access these texts to WD Java and the remaining procedure is same as explained in WD ABAP.
In case you are using normal ABAP you have to create context node through SFP transaction and there you have to create and bind the attribute to the form.
Regards,
Vaibhav Tiwari.

Similar Messages

  • How to create a OTR Text in Web Dynpro ?

    Hi All,
    Please help, How to create a OTR Text in Web Dynpro ?
    Urgent.
    Thanks in advance.
    Kaleem.

    Hi Kaleemullah,
    To create OTR Text, T-Code is SOTR_EDIT. If you run this transaction then one screen will appear. There you can choose Long Text or Short Text based on your
    Text. You can choose language also. In Text field you can enter your text. You can put WDYV in your Object Type field. In Text block Length can be increased to 25 as it may be problem if language conversion of Text happens. You must fill your package field and save the OTR.
    I hope you can be able to create OTR Text now.
    Best Regards,
    bansidhar

  • How to use OTR text in normal ABAP UI (Not in webdynpro)

    Hello ,
    I hav a requirement to assign an OTR text to a UI element in ABAP screen. How can we do that...?
    I tried the syntax $OTR:<pkgname>/<aliasname> in the properties tab of the UI element,
    But on executinf the screen am gewtting the syntax itself as tooltip....
    Please give some inputs...
    Linda.

    Hello
    I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.
    You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.
    Regards
    Ranganath

  • How to use OTR Text!

    Hi gurus,
    I am using the CRM Survey Suite to create a Survey form.
    I am supposed to create a PBO through which the OTR Texts will be displayed based on conditional checks.
    I have also created the OTR Texts via transaction Sotr_edit and  I am able to retrieve them via FM sotr_get_concept.
    Pl. let me know how I can show them on the web page, i.e. my survey form.
    I have searched and found that they can be used readily in BSP but how to use them in a Survey Form.
    Regards
    Atul

    Hello
    I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.
    You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.
    Regards
    Ranganath

  • 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.

  • 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. Maupin

    The 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

  • 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?
    thanks

    Hi,
    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 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.
    Ravi

    Hi,
    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

  • Otr-texts and country-specific

    Hi,
    can someone explain how the context section for the OTR-texts works ??  I have my OTR-texts in english and the application has been rolled out to more countries in english. Now, some funny guys don´t want the texts as they are, but as they need it.
    OTR-Text: ZACC_FORECAST
    Text: Forecast bonus relevant           "<-- UK
    People in NL want that text like "Forecast objectives"
    I know there´s the option in the context for specifying a country, which I already did but the main question is now how do I call the OTR-text from my code ??  using the portal logon language I see no text.
    Thanks.

    Hello,
    thanks but this does not have something to do with the translation. We´re using english in Holland for the BSP application but as I explained, UK wants something and NL wants something else.
    Unfortunately I found no documentation neither in SDN nor in the online help nor in internet for field Country in section context of SOTR_EDIT.

  • Can we replace OTR text with Images?

    Hi All,
    I just wanted to know can we replace OTR text with Images?
    or
    Can we define an image as an OTR text? so that it can be placed in the page where OTR text is used.
    regards...
    Ravi

    Hi Ravi,
    it is possible to replace an OTR Text with an image.
    You first have to define the Link in the OTR Text where your image is located. This can be everywhere in the Internet or better on a secured intranet server which everyone can reach easily without permission problems. Maybe in the DMZ.
    You can even link it into the MIME Repository of your SAP System as well.
    Then you have to put that OTR Text into a
    <htmlb:textview> Tag and ensure that the switch
    " encode = "TRUE" is enabled.
    Well thats all.
    Keep in mind that the a different language, set in the Internet Explorer or other viewing instances, disables the link if it not "translated" into that language.
    This can also be an advantage if you got multilingual fixed pictures with drawn text in it.
    I suggest you put all your links ( with a Value Field and at least a name field) into a seperate table into the repository for easy maintaining.
    Greetings,
    Dominik
    Edited by: Dominik Lemke on Dec 19, 2007 12:02 PM

  • Multi line tool tip / OTR text

    Hello experts,
    do you know a possibility to apply a multi-line tool tip to a ui element in abap web dynpro ?
    The OTR compresses multiple lines to one long line...
    Thanks in advance.

    Hi,
    I realize this is a very old thread, but in case others, like myself, finds it, here's a simple fix for this. In the OTR text add a constant for the desired linefeed - for example "\n":
    Alias ZPACKAGE/ALIAS: Line 1\nLine 2
    * Generate tooltip text
    DATA:
      lo_el_ui TYPE REF TO if_wd_context_element,
      lv_tooltip TYPE string.
    lv_tooltip = cl_wd_utilities=>get_otr_text_by_alias( 'ZPACKAGE/ALIAS' ).
    REPLACE ALL OCCURRENCES OF '\n' IN lv_tooltip WITH cl_abap_char_utilities=>newline.
    lo_el_ui->set_attribute( name = 'TOOLTIP' value = lv_tooltip ).
    The same technique can be used for tabulators (using constant
    cl_abap_char_utilities=>horizontal_tab), however, there's no guarantee how this will presented in the browser.
    Best regards,
    Jacob Laursen

  • 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]

  • 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

  • Regarding Assigning Package to OTR Text

    Hi All,
    I've created one webdynpro Component and saved it in Local Object. Inside that component i've created OTR Text...
    But nw i want to assign Package to that Webdynpro Component. I assigned Package to that Component.But I cant able to assign Package to that OTR Text.
    Wat should i do for assigning package to the OTR text ?
    Regards,
    Padmam.

    Hi,
    1. Go to TCode: SOTR_EDIT
    2. Select Short Text and click button Find
    3. Select Object Type and search your OTR Text
    4. Go to: Menu -> Concept -> Reassign.
    5. Choose your new package.
    Regards,
    $=====$
    Are you newbie? Check this out: [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

  • What is Concept in OTR texts and how does it work?

    Hi,
    Can someone explain me how does concepts in OTR texts work?
    I have a problem with one of BSP Applications where I'm using a OTR text. I think the problem is with this concept.
    Thanks,
    Chaith.

    hi chaitanya,
    By using  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
    To create an OTR long text from your BSP application, you do not have to go explicitly into the OTR. Proceed as follows:
    In the page editor select the texts relevant for translation, using the <OTR>... </OTR> tag.
    When you generate your BSP, all these text fragments are passed from the system to the OTR. The concept returned by the OTR is generated in the relevant place on your page and serves as the unique identifier for your text.
    Continue as normal creating your BSP application.
    U can go through following link u will get more idea on how to use OTR.
    http://help.sap.com/saphelp_nw70/helpdata/en/2a/6ad43aa654be55e10000000a11402f/content.htm
    Edited by: anusha sabbineni on May 5, 2008 3:57 PM

  • Access multiple OTR texts at once

    Hi,
    I need to access multiple OTR texts in my Web Dynpro view at once,I know the method CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS will retrieve one OTR text when alias is provided.
    I need to pass multiple aliases to retrieve their respective OTR texts.
    Can any one let me know how to get this done?
    Thanks.
    Regards,
    Salma

    Get all the OTR texts by passing all the alias...
    I don't think we can get all the OTR texts by passing all the alias one time..If we does want all the texts, i think we can only use the Internal table..For example:
    Loop at lt_table into ls_table.
       CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS( ls_table-alias ).
    Endloop.
    So sorry for my Joke..._..
    Best wishes..

Maybe you are looking for