Translation of enumeration texts

I'm calling an RFC module, one of the parameters' type is a user-defined data element. Its value range is defined as
Fixed value |  Short text
1               |      Text1
2               |      Text2
3               |      Text3
When I choose Goto->Translation, I can see all of these texts are translated.
Now, I'm using following Java Web Dynpro code to get text on the screen:
ISimpleValueSet values =
wdContext.nodeP().getNodeInfo().getAttribute("D").getSimpleType().getSVS
ervices().getValues();
for (int j = 0; j < values.size(); j++) {
        if (someShort.compareTo((Short) values.getKey(j)) == 0)
                storeString = values.getText(j);
Now, the original language the type is defined in is English, the portal language is set to French. I use this code several times for different values of someShort, and for some I get the translated text, while for others, I get the original. Any ideas what might be the problem?

Can you explain it more detail, when you dont get correct translations.
Use the below code to get the text from the enumeration.
IWDAttributeInfo contextElementAttributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateTextView.IContextElement.TEST_ELE);
ISimpleTypeModifiable sim = contextElementAttributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet labelValues = sim.getSVServices().getModifiableSimpleValueSet();
labelValues.getText(key) - will retun text for the key from enumeration.
labelValues - will contain your enumeration types.
Regards,
Sridhar

Similar Messages

  • HOW TO translate the address text in smartforms ?

    hi!
       I want to translate the address text  from english description to Chinese description in smartforms, could you tell me the detail process about it,  I need your help .
       thanks in advance!
      regards
      yi zhu

    To translate text from English to chinese  use http://babelfish.altavista.com/
    Then after translation go to SE63
    on the top menu - click on translation - ABAP objects - Other long texts - Forms - SSF Form and styles - SAP Smartforms.
    Open your address module and paste the chinese translation and activate.

  • Language translations for dynamic texts

    Hi
    can somebody pls help me on doing the translations for dynamic texts, for eg, I am getting some values into a checkbox group and dropdowns  at runtime , these values are not stored in any .xlf files,
    pls let me the know the procedure of translating these dynamic values.
    appreciate your help
    Thanks
    RAD

    Hi poojith,
    thanks for your response,
    how can I use this message pool in my code. I know the message pool has been used for warning messages and can be called in the application as wdcomponentAPI.getmessagemanager.reportWarning (.....)..
    but in my case it is a checkbox group where fields will be fetched from a database dynamically when we run the application
    for (int i = 0; i < abcprp.length; i++) {
              ICheckboxGroupElement theElement =     wdContext.nodeCheckboxGroup().createCheckboxGroupElement();
              strName = abcprp<i>.getName().toString();
                    theElement.setFieldNames(strName);
    wdContext.nodeCheckboxGroup().addElement(theElement);
    I have got more than 50 fields which I will get from the above code..
    can somebody pls explain me in the above scenario hw can we use the translation
    Edited by: RAD on Sep 15, 2010 10:03 AM
    Edited by: RAD on Sep 15, 2010 10:21 AM

  • Translation of the Text Elements...

    Hi Friends,
    Is going to transaction SE63 and type for each and every text element, the only way to do translation for the text elements? or is there any other easy way to do it?
    Since I have hundreds of the text elements and it is an hectic work to do the translation for each every element from one language to another.
    Some body please suggest me.
    Thanx in advance,
    ram

    Hi Ram,
    U cannot translate it bulkly...
    Please check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/frameset.htm
    Regards,
    Abdul
    Message was edited by: Abdul Hakim

  • Sender Idoc needs to be translated into 4 text files

    Hi,
    Could you please guide me how can i achieve this.
    Within XI this Idoc message needs to be translated into 4 text files:
    Could you pls. confirm as...can i use MultiMapping or shall i go for BPM?
    Thanks & Regards,
    Y.Raj.

    Should also work in your case:
    1. Create your mapping program that will map the information from the source file
    into the destination idoc. This has to be a 1:N split. Just make sure that the destination message type and message interface are are of occurrence N.
    2. Also, you will have 2 destination interfaces and 2 interface mapping, one for the IDOC and one for the mail.
    Now, there are a few essential steps in your configuration,
    1. In the receiver determination, specify the 2 receiver systems, one for your IDOC and the other for your MAIL.
    2. Now, you will have a condition window. Just type the condition on the basis of which the receiver has to be determined for the mail and the idoc business system. Just remember that the condition can be specified only for the source message.
    3. In the Interface Determination, you have an option called RB CLASSIC and RB SPLIT. To do a 1:N split, you will have to do a RB_SPLIT.
    You can even use xslt mapping to split source message type into multiple target messages types.for more information on the same check this link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm

  • Functionality to Translate the Table Texts??

    Hello Gurus.
    Iam translating Payment advice form from EN to FR language USING se63.
    But in the source text i found one Table Text. Here i have to translate Payment advice into French.
    But this Payment advice text they are getting it from Table .Can any one explain how to translate the Table texts.
    Regards,
    Shiva.

    Hi
    If it is a dictionary field and then dictionary will take care of the translations.
    Regards
    Neha

  • How do I translate POPUP Message Text in Web dynpro program?

    I have hardcoded some Text message for POPUP inside webdynpro program. It works properly for English Language. But not getting translated for other languages. So how do i solve this.? Can i make use of OTR text or Text Elements here?  I am new to Webdynpro. Please clarify.
    My Code :
      ls_text = 'You want to cancel changes...Are you sure?'.
      INSERT ls_text INTO TABLE lt_text.
    lo_window = lo_window_manager->create_popup_to_confirm( text = lt_text
      button_kind     = if_wd_window=>co_buttons_yesno
      message_type    = if_wd_window=>CO_MSG_TYPE_WARNING
      window_title    = 'Information to Confirm...'
      window_position = if_wd_window=>co_center ).
    Regards,
    Anand R

    Hi Anand,
    You can make use of OTR text.
    - Use TCode SOTR_EDIT to create OTR Text
    - Get the text with FM  SOTR_GET_TEXT_KEY by passing ALIAS, LANGU and receive the text in E_TEXT parameter.
    Hope it helps. Cheers!

  • Problem in Translation of Report Texts from EN to FR

    Hello friends,
    I translated texts of one of my report from EN to FR language using SE63 and saved it. When I saved my texts, message was Still 41 texts to be processed out of 41. And color of text elements was yellow (Not Green)
    Secondly I added my report name in my transport request with Program ID as LIMU and Object type as REPT.
    Like LIMU REPT ZZABC.
    When I released and transported my request to quality system, I found that translation was not transported.
    Can anyone help me at which step I made a mistake?
    Best Regards,
    Navin

    I have a similar question too and the document link does not seem to address the question of status not changing from yellow to green. Should there be a step performed to get the status of translated texts to change to green? Just saving says 95 of 95 texts to be processed.
    Any insight would be appreciated.

  • Problem in translation of english text into arabic language

    Hello Everybody,
    Application:
    I had developed an applciation which needs to be run in both EN / AR languages.
    In the applIcation I am using POPUP_TO_CONFIRM FM for confirmation before exiting from a screen.
    I am using a TEXT-ELEMENT  for the text of tht FM , I had translated the text in that text element into
    Arabic successfully.
    Query:
    When i am looged in through arabic lang , if the screen direction is LTR (Left to right) then
    the text in the pop up was displaying properly in arabic.
    but if the screen direction is from RTL (Right to left) then the text in the pop up is coming in a special symbols like ... or weird symbols. I am not understanding why?
    Could any body give suggestion regarding this .
    Thanks,
    Pavan.

    Hi,
    try using the fm SPELL_AMOUNT
    with language key AR so that you wil get your desired output.
    Regards,
    Madhumahesh

  • Smart form Text module translation and Standard text

    Hi i have a requirement in smartforms in which i need to create text modules and transtale into diffrent languages.
    I have created text modules they are in my transport,
    when i am translating through SE63 into target language it is not asking for any transport request , Can any one help me regarding how i can assign Transaltion thing to my transport.
    Another thing is i require to use standard text, i am not much aware of it also as per my understanding i need to create it through SO10 Transaction , and i can use it in include text please correct me if i am wrong, i need this standart text also in two language but while creating standard text it is not asking transport request, and how i would convert standard text in diff lang and how can i assign to my transport.
    Surely i would provide points for the valid reply.
    Thanks in advance.

    Hi Gudia San,
                 To transport Standard text, use the standard Report Program <b>RSTXTRAN</b>, execute it, on the selection screen, enter your standard text name as
    <b>Text key - name</b>, press F8, it will display a ouput list. Now press F5 key and it will ask for transport request number.
      Regards,
       Abdul.
    P.S: Rewards points, if useful!

  • Translate the harcoded text written inside Script Editor in Adobe forms

    Hi Experts,
    In Adobe form, I have hardcoded a text inside the Script Editor.
    Now i need to maintain translation for it in another language.  Is it possible?
    I have checked option Goto -> Translation. But that text is not available there.
    Kindly give me some suggestions!

    I know what you are trying to do and that is NOT the way to handle it. haha This is EXACTLY why I never put texts to display within my script (Javascript). The better way to do it is this.....have a hidden text element on your form. Then show/hide it using your script. Since it is PART of the actual form, you can then translate it like you do anything else on the form. Works great!
    If you absolutely HAVE to do the text as a pop-up or something "off form", then there are ways to do it very similarly but takes a little more thought/work (ie. have your script read the text element's text and use that in your pop-up...again, since the text element is ON the form, you will get the correct translation.)
    Hope this helps!

  • Translation a Standard text

    Hi Experts,
          Can u suggest how to Transalate a standard text its self to transalate in to another lanaguage.
    And How to Generate a transport Request for that New standard text?

    hi,
    goto SE63->menu
    TRANSLATIONS->R/3 enterprise->
    click it.
    select L5-F1 HELP (Open the tree for this)
    choose RE Reports, Function Groups, Logical Databases
    on the transalation give
    Source language - EN ( seems like not editable, but value can entered from the f4 help)
    Target language - new  language
    give ur object name also.
    thats all..
    rgds
    anver
    pls rwd points for all helpful answers

  • Translation of standard text urgent

    Hi All,
        I need to translate standard text that I have created in English languague to other languagues. How can I do this. If I have to do this in transaction SE63 then please provide me complete steps to do this.
    Thanks,
    shravan G

    Hi
    Refer these links
    Standard Text thru SO10
    [url] http://help.sap.com/saphelp_nw04/helpdata/en/c1/becc9313767243bde0a8a3e85b4021/frameset.htm [/url]
    Regards
    Raj

  • Translating a selection text that was added to a Logical DB How?

    What do you do in SE63?
    Text keeps showing up German?
    Thanks.

    Hi Tom,
    Let´s that you see "Note 1149795 - Translating English Customizing entries into German", perhaps can help you.
    Regards.

  • Translations,folders and text modules in smartforms

    Hi Everyone,
    Please help me to learn :
    1. Translations into different languages in smartforms
    2. Creating folders in smartforms
    3. Creating and  the usage of text modules.
    4. More information about page navigations in smartforms.
    Helpful links and reference material would be helpful.
    KK

    hi kk,
    text modules:
    these r like global texts, which we created once can be used in any smartform.
    u can create this in t-code: smartforms
    select the radio button text modules, in the editor give the text which u want.
    to use this in our form:
    select the window -> create text
    in genaral attributes -> text type -> select text module
    give the name, language(generally en) which u created. then it gets the text which u gave in text module.
    note: when using existing text modules, as we r not aware of text size, it is better to use them in main window. so that we wont lose any data.
    hope it helps u. reward if helpful.

Maybe you are looking for

  • Need help in writing a select query to pull required data from 3 tables.

    Hi, I have three tables EmpIDs,EmpRoles and LatestRoles. I need to write a select Query to get roles of all employees present in EmpIDs table by referring EmpRoles and LatestRoles. The condition is first look into table EmpRoles and if it has more th

  • External drive - USB or Fire wire or AC

    Hello I dont know where to put this question so: Which would be the best for a 500GB external drive, USB & fire wire or AC? I want a portable external drive (2.5) but am not sure whether AC is best route or if USB/Fire wire? Thank you Veedeekay

  • Simple introduction/tutorial on how to make Cocoa-Applescript Applets?

    I'm looking for a simple tutorial on how to make Cocoa-Applescript Applets.  I'm pretty new to Applescript, but fairly good at it, and I was wondering how Cocoa-Applescript Applets worked.  I was curious as I've been wondering if it was possible to s

  • Including multiple resources into response

    In a servlet, I am including a text file and an image seperately using RequestDispatcher.include() method. But when I view the output in the browser, i see the content of the text file along with the content of the image, instead of the image itself.

  • Fail to run Oracle Net Configuration Assistant

    I was installing 64 bits Oracle 10.2.0 on Red Hat Linux 2.6.9-89.ELsmp. I did not encounter any problem of upgrading and linking Oracle libraries, and building the Oracle executables. But when it tried to build the database, it ran into problem with