Testing on Multi-language Web Dynpro program

Dear all,
I am trying to create a new translation for my web dynpro program with no luck, checked with the document many times and find no idea what's goind wrong...
Here my last finding, please let me know anythings I can check:
1) I tried to add a new xlf for _en and this work
2) After I switch the language, I find that the text "row x of y" in the table control changed to the language I specific, but the label still using the one in *_en.xlf
3) I also tried to use the application property to specific the sap.locale, but point 2 still happen
Thanks in advance
Regards
Bill

Hi Bill,
You can get the user's locale like this:
IWDClientUser clientUser = WDClientUser.forceLoggedInClientUser();
Locale userLocale = clientUser.getLocale();
Afterwards you can use the Locale's methods getCountry() and getLanguage().
One thing you have to remember is reloading your WebDynpro project after adding a new language for a xlf file. Rebuilding is not enough, you have to reload your WebDynpro project (right click on the project folder in the WebDynpro Explorer and choose "Reload" in the context menu. Only then will all the property files for the corresponding xlf files generated.
Cheers Marcel

Similar Messages

  • Logical database in web dynpro program

    Hi all,
    I want to add LDB (PNP) into my web dynpro program.by which i can get the data from database to the Application server.After Authrization check.
    I also want to use Infotypes 0082 in my program.
    Points will be sured.
    Thanks.

    Sanket,
    Can you explain "add LDB"? Webdynpro gets data and displays data from R/3. So any LDB has to be part of the RFC/BAPI you call.
    Same with infotype. If you want to "use" the structure of an infotype in Webdynpro, this structure needs to be part of the import/export of RFC/BAPI's signature.
    Thanks,
    Rajit

  • Multi language web site

    Multi language web site
    What is the best way to have my web site switchable (initially from links on the main index.html page) between different languages?
    Do I simply clone the English version (including all the sub-directories and structure) into a sub-directory and translate each page and put a link on the main index.html page to a translated copy of the index.html page in the German sub-directory
    That would mean I effectively have two websites to maintain.
    More when it is translated into more languages.
    Currently all the English pages are made from a template (dwt file)
    I assume this adds a level of complication to the design.
    Or is there a better/easier way?
    thanks

    This is a website that the client did not continue with http://ncca.com.au/new/, hence it has not been finished.
    In the top right hand corner are two flags, Dutch and English. By clicking on a flag, the language session variable is changed. This session variable is used througout the website to determine the content as in
    if ($_SESSION['lang'] == 'en') {include("home_en.php");}
    if ($_SESSION['lang'] == 'nl') {include("home_nl.php");}
    If there are more languages it is better to use the select switch rather than an if statement.

  • Error while compiling Web Dynpro program due to missing JAR files

    Hi Experts,
    I am getting error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    HI Stuart,
    you are missing the jar files required for sending mail in java
    Installing JavaMail
    You will need the latest version of JavaMail (Version 1.2) available here:
    http://java.sun.com/products/javamail/
    Download and unzip the file, in the newly created top level JavaMail directory you will find a number of jar files,
    these need adding to your classpath.
    To do this in Eclipse, right click on your project in the tree view, select properties, select the libraries tab.
    Now click the 'Add external jars' button, navigate to your JavaMail directory and click on the jars.
    The tutorial also makes use of the Java Activation Framework, which is available here:
    http://java.sun.com/products/javabeans/glasgow/jaf.html
    Instalation of JAF is identical to JavaMail
    activation.jar / mail.jar are 2 distinct names i remember rest you will get above
    P.S: close the question to assist other users narrow the search and find solutions
    Message was edited by:
            Armin Reichert

  • Java error while compiling Web Dynpro program

    Hi Experts,
    I am getting following error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    Hi,
    Have you imported the required JavaMail jar?
    Please tell me what API you are using for the same.
    Also check Barcode Printing from EP --using barcode4J (Gurus kindly help me) forum to check how to add external jar files into WebDynpro project
    Let me know if you need more help on it.
    Regards,
    Ashutosh

  • Calling one Web-Dynpro program into Another

    Hi All,
    I'm currently working on a Web-Dynpro program in which I am display 3 tabs(Using TabStrip) and in each tab I have a ViewContainer.  
    I want to be able to execute other Web-Dynpro programs within the Viewcontainers of the Tabs. 
    If the End-User goes from tab to tab, I want to pass a select number of parameters between tabs.   
    Is this possible to do and if so, how can I set this up?
    Thanking you in advance.

    Hello Lisa,
    I'm not sure what you really want...
    If you want to share data between several views of one webdynpro component, you should use the [context|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/444941db42f423e10000000a155106/frameset.htm] of your [component controller|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e2/434941db42f423e10000000a155106/frameset.htm].
    If you mean by "execute other Web-Dynpro programs within the Viewcontainers" to embed another webdynpro component you should have a look at [Cross-Component Programming|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a7/1d8b412bb5b35fe10000000a1550b0/frameset.htm].
    Regards,
    Alej

  • How to use the catalog in our own Web Dynpro program?

    Hi Expert,
    How to access MDM catalog and bring the product data back to a our own Web Dynpro program?

    Hi  Masa,
    The Catalog Search UI of SRM that is referred to as UI as aforementioned is a page which is capable of the selection of catalog items is linked from the shopping cart creation.
    Our biz requirement content two scenarioes to processing the purchase requirement.
    A.  Create shopping cart via the catalog (PR) --> SRM PO Process --> SUS(PO and Invoice) 
    This is the standard SRM purchase scenario and we have already implemented that.
    B. Create a requirement document via the catalog (This document is same with the SC but very simple, and we create this function by the own web dynpro program) --> transfer the requirement document to other purchasing system(none SAP)  in our intranet.
    So the key problems we faced are below:
    1. How to connect to the catalog search UI from our own web dynpro program.
    ( If we connect the catalog via the MDM ABAP API, that will make the catalog serach UI could not be used;
    Also  it has been failed to simulate the function of SC's connection to the catalog;
    So we decide to link the catalog serach UI via the URL, the linkage is "http://<J2EEserver:J2EEport>/SRM-MDM/SRM_MDM?sap-locale=EN&HOOK_URL=&mask=&namedSearch=General&username=&password=&catalog=<Repository Name>&server=&datalanguage=EN". )
    2. How to transfer the catalog item data to our own web dynpro program.
    If we link the catalog search UI by URL, we can not find any good method to transfer the catalog item data to our own program.

  • Including gauges, bars, pie-diagram etc in Web Dynpro program

    Hi Experts,
    I am developing one Web Dynpro program. In this program, we have to include fancy features like progress bars, pie-diagram, gauges etc. These items should be related to some R/3 table. For example, if total hours allocated for some work is 50 hours and person has not used his time than the Bar should show that 100% time is unused. If person has used 25 hours, then Bar should show that 50% time is utilized. We have to use multiple colors also.
    Similarlly we have to use pie-diagram and Gauges. Again these should be related to some R/3 table.
    Can you please let me know how we can do so?
    Regards,
    Brian

    Hi Brain,
    Please go throught the following site, in that "UI Elements"-->"Using Business Graphics in Web Dynpro Applications"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d [original link is broken]
    regards
    Anil
    reward points if useful

  • Upload excel file to internal table in web dynpro program

    Hi friend's
    In web dynpro program how to upload excel file into  internal table and finally data will be save Y table.

    hi,
    See the properties of File Upload UI element..
    Link: [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/732f0510d83ff6e10000000a42189c/frameset.htm]
    Goto References -> User Interface Elements -> Integration Category -> File upload..
    After creating the 'FILE UPLOAD' element in a view.. Bind a datasource(a context attribute with STRING) with the data property..
    Double click on ONACTION_UPLOAD method. Write a code as given below.
    METHOD onactionon_upload .
    TYPES :   BEGIN OF str_itab,
           name(10) TYPE c,
           age(10) TYPE c,
           END OF str_itab.  DATA : t_table1 TYPE STANDARD TABLE OF str_itab,
             i_data TYPE STANDARD TABLE OF string,
             l_string TYPE string,
             fs_table TYPE str_itab,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
    DATA : t_table TYPE if_main=>elements_data_tab,
             data_table TYPE if_main=>elements_data_tab.
    * get single attribute 
    wd_context->get_attribute(  
    EXPORTING    
    name =  `DATASOURCE`  
    IMPORTING    
    value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string. 
    SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    * Bind With table Element.
    LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
       READ TABLE fields INTO lv_field INDEX 1.
        fs_table-name = lv_field.  
    READ TABLE fields INTO lv_field INDEX 2.
        fs_table-age = lv_field.   
    APPEND fs_table TO t_table1.     "Append to  the internal  table
      ENDLOOP.
    Edited by: Rameshkumar Raamasamy on Feb 9, 2010 9:39 AM

  • Conversion of SAP Internet services / ITS programs to Web Dynpro programs

    Hi,
    I am new to Web Dynpro. The basic information in I need to know is, what are all the ways we can convert the exisitng Internet (ITS) services to Web Dynpro programs.
    Is there any tool available to convert them directly or does it involve any programming.
    Regards
    Satya

    I dont think that there is any tool available to do the conversion. you have to recode them
    Regards
    Raja

  • Error when Deploying Web Dynpro program

    Hello,
    I am new to Web Dynpro. Today I have written my first program and when I tried to deploy it, I got the following error
    "Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !"
    Can anybody please tell me how to catch or resolve this exception or problem.
    Priya

    HI
    GOOD
    GO THROUGH THE FOLLOWING LINKS, WHICH WILL HELP YOU TO GIVE THE IDEA ABOUT THE CATCHING EXCEPTION IN WEBDYNPRO.
    http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/e085d6421a4d9de10000000a155369/content.htm
    /people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3795 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    THANKS
    MRUTYUN

  • Multi-language Help in a multi-language web app

    Hello!
    I had posted this on the RH HTML forum but removed that and
    posted here for a wider audience...
    ***Please note: this question is not specific to RH but is
    applicable now that RH 7 is unicode enabled. If you have experience
    that does not relate to RH, please share anyway!
    Once I have developed WebHelp (for example) in multiple
    languages, how do I connect the help files to the web application
    that the help is about? How does the correct language output get
    displayed? For example, the application (that the help documents)
    changes its interface based on browser language. Can the
    appropriate help content be displayed based on browser language?
    How is multi-language help generally implemented for an end user?
    And, equally important, how does context-sensitive help
    (mapping) work with multiple languages?
    I have never been involved in a multi-language development
    effort and so I have no experience to relate this to. Any guidance
    will be greatly (and gratefully
    ) appreciated!
    Kathy

    That's how our developers do it, but I just want to throw in
    one other detail. The help output for each language has to be in a
    separate directory. So if you have 5 languages, you'll have 5
    directories. It's up to the developers to code the app so it
    detects the browser language, then looks in the appropriate help
    directory when the user clicks your help link or icon.
    --Ben

  • Basic Steps to create a web dynpro program

    Hi Gurus,
    I am an Abaper and i am very much interesting in Webdynpro... i don't have basic knowledge on Web Dynpro...
    So can any one of you provide me the basic steps to create a program or If you have any docs then kindly share with me
    Regards
    Sameer([email protected])

    Hi
    This link will help you
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    you can also search sdn for more helps and examples
    Also check this thread
    https://forums.sdn.sap.com/click.jspa?searchID=9213934&messageID=4627099
    Regards
    Sarath

  • STAD + Getting Web Dynpro program names with FM SAPWL_READ_STATISTIC_FILES

    Hi, does anyone knows why I can't seem to get the report-names of a web dynrpo app with this FM?
    Is there maybe an other FM with which I can get the results of transaction STAD?

    Hi,
    they use different fields for web dynpro applications. Check note 1261535.
    Cheers

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

Maybe you are looking for

  • Problem with vista and 5.1

    problem with vista and 5. i install my old audigy 2 zs exp pro with DTT2500 speaker In my new pc. i install vista 64 and SBAX_PCDRV_LB_2_8_000 driver from creative site. when i go to control panel/sound and test the 5. surrund ' iget only the two fro

  • Windows Vista Service Pack 2

    ThinkPad T61p 6459-CTO on Windows Vista Home Premium. For over two months, Windows Vista SP 2 has been trying to get installed in my system but it systematically fails installation. I have tried everything, from Google searching, posting in Microsoft

  • I have over 16.000 duplicated addresses in my address book how do I get rid of them?

    Mac osx 10.9.5.... 2.4GHz core duo..  4 GB 800 MHz DDR2 SDRAM. I have over 16.000 cards in my address book.... due to duplicates I should have less then 1000?  how do I fix this?

  • Files saved from Automtor to desktop visually disappear

    I have an automator task for pics I take, any file starting with "dscn" that's dropped on my desktop automatically opens the automator script and prompts me to rename the file. Once renamed, the file is then appended with ".jpg" and saved to my deskt

  • Boot Camp 4 - Installer disc not recognised

    Hi All, I am trying to create a Windows 7 partition on my Macbook Pro (late 2009) running OSX Lion 10.7.2 with Boot Camp 4. Clicking on "Install" button to create the partition and install Windows with the disc in the drive gives an "The windows inst