Change Smartform Language Dynamically

Hello Guys,
I got a requirement to display the Smartform text in Russian language from English with the user Login to SAP. I know the way to change the static text with TCode SE63. It also changes the text with user login but what about dynamic text, which we get with our select query in smartform.
For example: Employee description from KNA1. All the list should automatically changed to the Logged in user language, in my case Russian.
I have searched on SDN and found only for the static text maintained via Text module or Text element can be converted. Is there any way around, we can achieve this functionality dynamically.
Regards,
Chandan

Hi,
Check if you have in ADRC the russian info for the Customer .
To get the data you will need kna1-adrnr .
This is how it is done here .
And finally a tip: In the future try to put all your data extraction in the calling program .
Also note the use of parameter CONTROL_PARAMETERS field LANGU .
Regards.

Similar Messages

  • How to change the language in smartform?

    hi
    how to change the language in smartform?

    Hi,
    U can't change the language in the smartform, the main language of the smartform is the language used to create it (so the language used for SAP log on.
    But u can translate it (by trx SE63) and if u need to print in a new language u have to indicate it when the smartform is called.
    U can transfer the language to be used for the print in the parameter CONTROL_PARAMETERS, like structure SSFCTRLOP, here u can indicate the language in the field LANGU.
    see this..
    Use transaction SE63, after activate your smartform, to translate.
    In the First Page of your Smart Forms click on Global Settings under that click Form Attributes
    now in the Right side screen Go to Subscreen Language Attributes.
    select the Radiobutton Translate To all Languages
    from the Translate subscreen out of three radio buttons.
    rewaards if useful
    regards,
    nazeer

  • Changing language dynamically

    hi all,
    I want to have buttons on my pages to change the language of the application dynamically. I tried to do this with no result; for example I want my application to support two languages arabic and english. Here is what I did:
    I added the following code to faces-config.xml
    <locale-config>
    <default-locale> en </default-locale>
    <supported-locale> ar </supported-locale>
    </locale-config>
    Then, I added the following code to adf-faces-config.xml
    <right-to-left>true</right-to-left>
    Finally, I've created a button with the following action:
    FacesContext fc = FacesContext.getCurrentInstance();
    Application app = fc.getApplication();
    DCBindingContainer binding = (DCBindingContainer)app.getVariableResolver().resolveVariable(fc,"bindings");
    BindingContext bc = binding.getBindingContext();
    LocaleContext en = new DefLocaleContext(new Locale("en"));
    LocaleContext ar = new DefLocaleContext(new Locale("ar"));
    if(bc.getLocaleContext().getLocale().getLanguage().equalsIgnoreCase("ar"))
    bc.setLocaleContext(en);
    else
    bc.setLocaleContext(ar);
    return null;
    Did I miss something ??
    I am stucked here, any help plz?
    Bassam

    hi all,
    now it works with only this action:
    public String commandButton_action() {
    // Add event code here...
    FacesContext fc = FacesContext.getCurrentInstance();
    if(fc.getCurrentInstance().getViewRoot().getLocale().getLanguage().equalsIgnoreCase("ar"))
    fc.getCurrentInstance().getViewRoot().setLocale(new Locale("en"));
    else
    fc.getCurrentInstance().getViewRoot().setLocale(new Locale("ar"));
    return null;
    Note: I found it on another thread
    Bassam

  • Problem, change the language with dynamic text

    I am looking for a way to change simply the language of my flash animation
    I work with flash cs4
    of course I got Mylocale.as:
    import mx.lang.Locale;
    class MyLocale extends mx.lang.Locale {
    static function start():Void {  
    var langCode:String = xmlLang;
    currentXMLMapIndex = 0;
    xmlDoc.load(xmlMap[langCode][0]);
    static function setXMLLang(langCode:String):Void {
    xmlLang = langCode;
    and different xml files in the same folder than my swf file
    in string , I ticked : "replace  strings automatically during the execution"
      with a default language (I am wondering if the problem is not from there)
      if I tick: "replace strings manually using the scene language " or "replace strings via actionscript"
    my code does not work.
      then I kept: "replace strings automatically during the execution"
    in my flash animation I have several scenes (pages)
    p1, p2, p3, p4
    in p1
    I created a language bar
    then 2 layers inside
    Layer--action:
    langListener = new Object();
    langListener.change = function(eventObj) {
    var target = eventObj.target;
    var newLang = target.selectedItem.data;
    MyLocale.setXMLLang(newLang);
    MyLocale.start();
    lang_cb.addEventListener("change", langListener);
    // Force Japanese
    lang_cb.selectedIndex = 1;
    lang_cb.dispatchEvent({type:"change"});
    Layer--language ex Fr:
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "fr") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    ex Ja :
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "ja") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    When I change the language in p1 , the language is also modified in p2, p3 and p4
    however , after a navigation in p2, p3 and p4 , once I come back in p1 , the default language is back automatically although I did not touch the language bar!!
    I don't know how to solve the problem
    to my mind , the script reset itself each time I come back on p1
    is there a way to keep the saved settings even when I am back on p1 until I modify manually again the language bar
    thanks a lot

    I am looking for a way to change simply the language of my flash animation
    I work with flash cs4
    of course I got Mylocale.as:
    import mx.lang.Locale;
    class MyLocale extends mx.lang.Locale {
    static function start():Void {  
    var langCode:String = xmlLang;
    currentXMLMapIndex = 0;
    xmlDoc.load(xmlMap[langCode][0]);
    static function setXMLLang(langCode:String):Void {
    xmlLang = langCode;
    and different xml files in the same folder than my swf file
    in string , I ticked : "replace  strings automatically during the execution"
      with a default language (I am wondering if the problem is not from there)
      if I tick: "replace strings manually using the scene language " or "replace strings via actionscript"
    my code does not work.
      then I kept: "replace strings automatically during the execution"
    in my flash animation I have several scenes (pages)
    p1, p2, p3, p4
    in p1
    I created a language bar
    then 2 layers inside
    Layer--action:
    langListener = new Object();
    langListener.change = function(eventObj) {
    var target = eventObj.target;
    var newLang = target.selectedItem.data;
    MyLocale.setXMLLang(newLang);
    MyLocale.start();
    lang_cb.addEventListener("change", langListener);
    // Force Japanese
    lang_cb.selectedIndex = 1;
    lang_cb.dispatchEvent({type:"change"});
    Layer--language ex Fr:
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "fr") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    ex Ja :
    // Forces combobox to have the correct value
    on (release) {
    var component = _parent.lang_cb;
    for (var i=0; i< component.length; i++) {
    var item = component.getItemAt(i);
    if (item.data == "ja") {
    component.setSelectedIndex(i);
    component.dispatchEvent({type:"change"});
    break;
    When I change the language in p1 , the language is also modified in p2, p3 and p4
    however , after a navigation in p2, p3 and p4 , once I come back in p1 , the default language is back automatically although I did not touch the language bar!!
    I don't know how to solve the problem
    to my mind , the script reset itself each time I come back on p1
    is there a way to keep the saved settings even when I am back on p1 until I modify manually again the language bar
    thanks a lot

  • Smartform Language Conversion

    Hi,
    The Origin of Smartform is in GERMAN Lang. Afterthat  Changes(added 4 fields to display using text elements) has been Done in ENGLISH. Now the Issue while Display the Smartform in French the values for the above four fields are not getting displayed.
    We tried to change the language in german and for English and german only it is getting displayed . but in case of FRENCH it is not getting displayed. Kindly  Advice.
    Thanx in Advance

    Hi Jack,
    I tried but still i am facing the problem. In Debugging mode i checked for both english and French. In English it is working fine ( i.e it is displaying the text and values) but in french it is displaying the text only. (Note: In the debugging mode while checking the text element, i found that the text is getting displayed but the variables which holds the values are not there. I tried to give the variables manually and then it is getting displayed)
    Can u tell me why the variables are not displayed while i try to display in french???
    Thanx in advance..

  • How to change the language of the displayed exceptions in JDeveloper

    Hello all,
    I am using JDeveloper 10.1.3.2 and wish to see all exception messages in English instead of Greek. Almost always my browser messes code-page information and I end up seeing "?"'s instead of text.
    Thanks in advance
    Thanassis

    Hi Thanassis,
    you can:
    1) Change your browser settings to the desired language
    1.1) in Firefox:
    . select menu Tools -> Options...
    . select "Advanced"
    . click "Choose" under "Languages"
    . Select the language to add
    . click OK twice
    1.2) in Internet Explorer:
    . select menu Tools -> Internet Options...
    . click button "Languages"
    . click button "Add..."
    . Select the language to add
    . click OK twice
    2) Set the following options in your Project properties, f.ex.:
    -Djbo.default.language=fr -Djbo.default.country=BE. Double-click your project
    . in the Project Properties, select "Run/Debug"
    . select a Configuration and click "Edit..."
    . add the Java Options
    . click OK twice
    (however, the default is en/US, so that should be OK in your case)
    NB:
    . I think option 2 takes precedence on option 1
    but I'm not sure of what happens when the jbo.default... properties are not defined and the browser is set up to use another language than English.
    . you can also change the locale dynamically.
    See "Change Preferred UI Locale with a Button in the Page" in Steve Muench's sample page (http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#95)
    Regards,
    Didier.

  • Smartforms Language Problem

    Hi freinds,
    My requirement was to out get the output of the form in two languages English and french.
    I got the output in English.
    Can anyone please let me know the way to output the form in french.
    Please help me in doing this.
    Thank you,
    Nivedhitha.

    Hi Niveditha,
    In order to get the output of the SMARTFORM in French language or any other language , First check the <b>Translate to all Languages</b> radio button.
    Then design the Snmartform.
    Later logon using the French Language and then call the required Smartform, and then execute it.
    Otherwise change the Smartform language to French Language.
    Hope this resolves your query.
    <b>Reward all the helpful answers.</b>
    Regards

  • HT5312 I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? th

    I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? then I was unable to enter until 8 hours then called Apple Japan 4 times each time threy asked me would you like to speak with an English speaker,I said yes then they told me sorry today is Sunday no English speakers ,but they refused to speak Japanese, then I called 5th time and a kind guy could speak English we were on 1and 1/2 hours he got me to log in but the reset key chain could not be completed still pending.
    He said do not mess with that ! then I got a text from somewhere to reset 4 pins suddenly it was very strange I said to him that I got this pin this morning but it said you can use maximum 3 hours it had a UK number and I told him I do not like this and will not enter the code he said do not do it if it is from the UK and then I said to him ok you did a lot to help but we can not go any further ! and we cut of I went back to my computer to re do the ID but I found everything a mess so I call and a stupid sounding Japanese women with a squeaky voice came on I was calm at first and they want your phone number your IMEI number your iPhone serial number date of birth Address email address it takes 10 munutes to check then they ask what are you caling about so I try to explain my keychain is broken or problems with language security questions and can not change my pasword because the security question have failed me so it is ONE BIG HEADACHE AND I START I GET STRESSED she says Do want an ENGLISH speaker ,I say yes ,that guy i talked to earlier but I never got his name and first time I ever talked to him but they said he is not here so I said ok and then she said today is sunday so call back in the morning ,I said ,well ok in Japanese but they make you feel stupid because they do not want to speak Jap@anese with none natives and they are to busy,And they feel that I should not bother them ,then I say that Apple Japan is trying to refuse Apple foreign customers and then she wants to hang up and ask me to visit the shop ,but they are the same I have a very bad time with Apple Japan since they do not discuss software problems or security with customer meaning if you have a problem they ask you to come on a time 20 minutes max so they do hardware test and say you phone is fine then I say no I can not reset my ID they say you must call call centre so I am going around in circles ,When I call English it is usually Australia so if my problem is in Japan surely if do not want me to talk to them in Japanese and they ask me to call Australia but every time my call charge is expensive after asking them is this free because I have Apple care they say yes but when the call goes to Australia 0120 277 535 it might change to paid call so I call then I have to ask is this charging they say we can not give you that information ! so what can I do I have have been at the computer and phone all day on my day off work and in tre week I am so busy and can not use my phone I can not work without it ,this new technology for you ,they can not cope with the fact that the customer have problems yet they do not want to deal with us because they can not solve it and so it shows them to be useless they like to walk around in their cool tee shirts and retro shop but when it comes to functionality we are unwelcome they got the money so do not return because apple is perfect that nothing should go wrong .
    But it does somehow my English security answers do not work on a Japanese Question especialy if I did not choose that question I set  up the multiple choice In English and wrote the answers in English or Roman and set them langauge preferences in English, do you really think you can correctly write english name or word in Japanese they write a police patrol car  pato caa パトカア they do not have r and l .So it is my choice to make my security easy for me and as difficult for others to hack.But they also have patororoo choo meaning ' now patrolling ' so why they have pato caa patrol car and patoro patrol and have thousands of Chinese words kanji they can find patrol.
    I am getting off the topic but I am at a loss to fix this problem when they hold the keys and i have all the info to verify my ID.

    You have to enter the Apple ID and password. You are running into the Activation Lock
    iCloud: Find My iPhone Activation Lock in iOS 7
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • How can i disable Illustrator from changing my language / keyboard layout.

    I have an azerty laptop and a qwerty external keyboard. Switching from any application to illustrator changes the language and therefore also my keyboard layout. No other application does this.

    Thanks for the reply Mike
    But i have a laptop with azerty layout (Belgian) and an external qwerty keyboard (Brittish).
    So i need both languages selected in the System Pref >> Keyboard >> Input source
    When "Brittish" is selected and i switch from Apple Mail to Photoshop to Skype to Chrome to ... it all works fine.
    Only when i switch to Illustrator it also changes my language/layout from "Brittish" to "Belgian" and stays like that. I need to manually change it back in the menu in Finder.
    I like the brittish better (with a qwerty keyboard) because of the shortcuts (eg. sqare brackets -> shortcuts for order in Illustrator are not even on an azerty (Belgian) keyboard).
    Any idea?
    b.

  • How to change sap-language parameter at runtime

    Hi
    I want to create a Change Language button on an webdynpro Application. I know that the parameter is determined during url creation, but i need the to give the user the posibility of changing the language without closing the browser and logging out etc.
    My idea is to us an Outbound plug assigned to lets say a Button. The plug is connected to an Inbound plug og the very same Window. So actually the Application will reload.
    The action on the button is like this
    data: l_language type sy-langu.
    l_language = cl_wd_runtime_services=>get_url_parameter( name = 'sap-language' ).
    wd_this->fire_language_plg(  ).
    Then i read the current language - i.ex: E
    But of course i will need to change the parameter sap-language to the new language - lets say: K
    But how?

    Hi,
    As far I know, there is no way to get the current url in browser. Alternately, you can get the url parameters and then construct the url with the parameters.
    write the below code in HANDLEDEFAULT method of Window:
    DATA: lt_parameters TYPE tihttpnvp.
    *Get URL params
      Wdevent->get_data(
      EXPORTING name = if_wd_application=>all_url_parameters
      IMPORTING value = lt_parameters ).
    *Construct URL
    CALL METHOD cl_wd_utilities=>construct_wd_url
         EXPORTING
           application_name = 'APPL_NAME' " your appl name
           it_parameters    = lt_parameters  " to this params itself you can append the sap-language
         IMPORTING
           out_absolute_url = lv_url.
    you may refer this document: Read URL Parameters in Web Dynpro ABAP
    Regards,
    Kiran

  • How to change PO Language Key

    Hi people , hope anyone can help with this. How can i change de Language Key at the comunications TAB on the PO Header ? it`s grey from the start and i´m not being able to change it , even before i enter the Vendor. I´ve checked the IMG config menus and it`s marked as "Optional" but still i´m not being able to change it. I know this language key comes from the vendor master , but the idea of my client is to be able to change it while doing the PO . Is it posibble ? thanks a lot !

    Hi
    Pls let us all know , how you solved this issue .. Pls share the steps followed by you
    Rgds
    Ashok

  • Hi All,i am currently working on a flex application that will allow the user to change the language

    Hi All,i am currently working on a flex application that will allow the user to change the language within the application from english to Japanese and vice versa. And everything works fine.
    I am using flex 4.5
    We allow the user to save records with english or japanese texts.
    problem
    When the user manually enters Japanese text and tries to save it the record defaults back to the default name (which is in english). But if you copy the entered text and paste it and then save it.It works fine.
    Any idea , why this is happening?
    Please let me know if the question is not clear.
    Looks like there was already a bug
    https://issues.apache.org/jira/browse/FLEX-28894?page=com.atlassian.jira.plugin.system.iss uetabpanels:all-tabpanel
    Not sure why does it say , Resolved .
    -KB
    Message was edited by: bKartik.b

    By Payal integration , you mean paypal button html ? or payment gateway setup etc ? If its a gateway configuration for your site domain then single page for all layout will work , but if you are using button code for all renditions then you would need to create separate pages for all.
    Thanks,
    Sanjit

  • How to calculate the Percent change in a dynamic

    hi All,
    I'm trying to get the percent increase/change of two dynamic
    colums.  In my report, the user has a checkbox where he can select two colums to calculate the percent growth.
    My DataSet is PilarName, Calification(is a decimal value) and Period (this is a string).  I created the Matrix this way:
    PilarName [Period]
    [PilarName] [Calification]
    Which give me these values:
    So, now I need to create another column to calculate the percentage change between these two colums.  I tried this:
    I added a Adjacent column group for Period column and I grouped by the calculated column "ColumnDiff".  Add the following expression.
    =(SUM(Fields!Calificacion.Value)- Previous(SUM(Fields!Calificacion.Value),"ColumnDiff"))/Previous(SUM(Fields!Calificacion.Value),"ColumnDiff")
    After that I get: 
    I'm getting the sum of the two columns instead.
    Any clue about what I'm doing wrong? Please help me, I've been looking for the answer but any solution works for me.
    Luis Carlos

    Hi Luis,
    According to your description, you have a report with different dynamic columns. Now what you want is show your user percentage growth in your matrix report after your user select two of those columns (I think you may use parameter to achieve your “checkbox”
    function). Is my understanding correct?
    In Reporting Service, we can’t calculate dynamic columns with our build-in arrogation functions. So we need to add custom code into our report, and call those functions which defined in custom code in our expression. We have tested your scenario in our local
    environment. Here are steps and screenshots for your reference.
    Go to your Report Properties, add the custom code below into your report:
    Dim Shared Num1 As Double
    Dim shared Num2 As Double
    Public Function GetCalification(Calification as Double,Type as String,Type2 as String) 
    If Type = Type2 Then
       Num1=Calification
    Else
       Num2=Calification
    End If 
    Return Calification 
    End Function
    Public Function GetPec()
    Return (Num2-Num1)/Num1
    End function
    Create a matrix. Put PilarName into Row field, put Period into Column field. In Data field, put the expression below into the textbox:
    =Code.GetCalification(Fields!Calification.Value,Fields!Period.Value,Parameters!Period.Value(0))
    In our sample report, we created a parameter (named Period) for selecting two columns. You can replace “Parameters!Period.Value(0)” with your own parameter.
    Add an outside column at right (%Growth), put the expression below into the textbox:
    =Code.GetPec()
    Save and preview. The matrix and result looks like below:
    Reference:
    Custom Code and Assembly References in Expressions in Report Designer (SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • I,m using macbook pro retina, I have changed the language to Arabic but still I find that password and downloading are coming in arabia

    I,m using macbook pro retina, I have changed the language from arabic to Endlish through system preference, but still I find that password and downloading are coming in arabia, when I start my computer it show password request in Arabic.

    http://support.apple.com/kb/ht4102

  • How can I change the language in Motion 5 from German to English

    Hi Folks,
    I just bought Motion 5 and I am eager to learn. I also bought some video tutorials about the program.
    Now my problem is, that motion is set to German, since I live there and that's my native language. But the tutorials are english. so in order for me to understand the program even better; i'd like to change the language in motion to english without changing my whole system.
    Ist that even possible?
    Thnaks for your help
    Cheers from Germany
    Pat

    That worked out great
    Thanks a bunch for your quick help

Maybe you are looking for