FileUpload UI-Element sap-language

Hello,
I use the FileUpload UI-Element in my Webdynpro application.
When I switch the sap-language from DE to EN the text of the Button does not change from "Durchsuchen" (DE) to "Browse" (EN).
Does anyone know the problem and has a solution to it?
Thx in advance
Silke Ramm

>
Silke Ramm wrote:
> Hello,
>
> I use the FileUpload UI-Element in my Webdynpro application.
> When I switch the sap-language from DE to EN the text of the Button does not change from "Durchsuchen" (DE) to "Browse" (EN).
>
> Does anyone know the problem and has a solution to it?
>
> Thx in advance
> Silke Ramm
This is just a guess, but I know from my BSP days that the Browse button for File Uploads can be a little bit different because it is often provided by the browser itself.  It might be that the text isn't being provided by the backend, but by the browser.  You might try changing your language settings within the browser and see if this changes the button label.

Similar Messages

  • FileUpload UI element -"browse"label is not coming in Hungrian for Hungrian

    Folks,
    We are using FileUpload ui element in our application, our application supports English , Hugrian languages, Problem is here , label on browse button coming in English for hungrian users.
    I believe  no need to add any translation to browse label in .xlf file,
    can any one tell me how to add Hungrian translation to Browse label, how to check standard translations of file upload ui element?
    Thanks & Regards,
    Veera.

    Hi Anup,
    portal User language is already hungray and rest of the labels in page are coming in hungrian as we maintained in -hu.xlf file.but for FileUpload ui element there is no option to map label of  "browse"  button with a message pool attribute.
    Thanks & Regards,
    Veera.

  • Fileupload  UI element in WD ABAP

    Hi ,
    Any one have worked using fileupload UI element in Webdynpro ABAP.
    Regards
    Usha

    Hi usha...
    try this tutorial....
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40">upload/download file in WD</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/39tutwd_fileupdownload.zip">File upload/download project</a>
    regards,
    Vijay

  • Upload / Save file via FileUpload UI Element under predefined path

    Hi,
    I am pretty new to this topic and need some help.
    I need a Web Dynpro App where I can select a file via FileUpload UI Element and save this file to a predefined path e.g. to a server. I already found [this help|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71?quicklink=index&overridelayout=true] but in this example the file is stored at the SAP Server!
    How can I achieve this? May you give me a sample code?
    I appreciate your help.
    Regards

    Hi Martni, Above answer was incomplete
    try{                         
         File fp = new File(relativePath+ fileName);
         fp.createNewFile();
         FileOutputStream fos = new FileOutputStream(fp);
         BufferedOutputStream bos = new BufferedOutputStream(fos);
         InputStream l_is_FileStream = elAttachmentsElement.getVa_Resource().read(false);
         int l_int_NoOfBytes = l_is_FileStream.available();
         byte[] byteArray = new byte[l_int_NoOfBytes];
         l_is_FileStream.read(byteArray, 0, l_int_NoOfBytes);
         bos.write(byteArray);
         bos.flush();
    catch (Exception e) {
         wdComponentAPI.getMessageManager().reportException("Cannot save the file: "+fileName);
    In the above snippet "relativePath" is the path to the folder in WAS and  "filename" is the name of the file along with its extn Ex. test.doc, or image.jpg
    InputStream l_is_FileStream = elAttachmentsElement.getVa_Resource().read(false)
    The above line of code is the sixth line in the snippet and here "elAttachmentsElement" is the element of the node having "Va_Resource" context attribute, which is bound to FileUpload UI element.
    Regards,
    Vishweshwara P.K.M
    Edited by: Vishweshwara P.K.M on Jun 28, 2010 1:31 PM

  • WebDynpro FileUpload UI Element

    Hi All,
    Iam using a FileUpload UI Element in a View of a WebDynpro project. If i selected a file using the 'browse' button, then you click on any tab in the  View and the file path in the inputfield of the fileupload control disappears.When i come back to the tab which has the Fileupload UI element , the file path is missing. Version :CE 7.1
    Has anyone tried this and faced similar issue?
    I have seen others posts , there is no filename attibute to the FileUpload UI element in CE. Is there any other way out to hold back the file resource path in the UI elements when swtcing between tabs?
    Thanks,
    Uma.

    Hi,
    Its a limitation with the fileupload UI. You can check this in its documentation:
    [http://help.sap.com/saphelp_nw70/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm]
    Well there is a workaround for displaying the file name. You can display the file name using label or textview just beside the fileupload UI.
    There is method called getResourceName() for IWDResource to get the filename.
    Hope this will help you.
    thanks & regards,
    Manoj

  • Problem in FileUpload UI element

    Hi All,
           I have done all the operations that are there in this lilnk of FileUpload UI element and I am giving the link also
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40
    Here, Web Dynpro runtime automatically transports different types of MIME files between the client-side user interface or UI element and the server-side controller context.
      Now I have to take that file from server-side conroller
    context and I have to place that file into my desired server path.
      please help me regarding this issue.
    Thanks All

    Hi,
    When u create FileOutputStream object, u can specify the location where u want to place the file in the server. If the file is already in the server, create a FileInputStream object of that file and copy that file in a new location in the server.
    Regards,
    Piyush.

  • FileUpload UI element ...

    Hi guys,
    I have placed FileUpload UI element into a FileUploadView and binded it to context attributes PdfSource (binary type) and PdfName (string type). Also I have placed a button into the view. Folowing code should be executed after selecting some PDF file and clicking on the button:
    public void onActionShowFormPressed(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionShowFormPressed(ServerEvent)
         wdThis.wdGetUploadDownloadInteractiveFormCompController().wdGetContext().currentContextElement().setPdfSource(wdContext.currentContextElement().getPdfSource());
         //wdThis.wdFirePlugToFormView();   
         byte[] content = wdContext.currentContextElement().getPdfSource();
                         String name = wdContext.currentContextElement().getPdfName();
    The "name" variable contains the real name of uploaded file. It's right. But the "content" variable contains array of zero size.
    Do you have any idea why?
    Thaks a lot in advance!
    Regards
    Zbynek

    Hi
    Try binding the Resource property of File Upload UI element to 'Resource' under Java Native Type. Once the file is browsed using the Browse button, ask user to click a button say Attach where it would upload to the Web Dynpro context by server round trip. So no coding required.
    Now you can get the File name and Resource type using:
    String file Name = wdContext.currentContextElement().getVa_Resource().getResourceName();
    String resType = wdContext.currentContextElement().getVa_Resource().getResourceType();
    The data property is bound to an attribute whose value would not denote the data in the file but would be used to store some property of the same file. Say, in case you need to store the name of the file then you can get it from the resource and set it there so that next time if somebody is trying to access the same file, the file name can be retrieved direcly from the attribute bound to data. That is why when you try printing the length of the byte array it would be always zero rather than what you expected.
    Regards,
    Tushar Sinha

  • 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

  • Sending an email with attachments in Java using FileUpload UI Element

    Hello Experts,
    I'm using NWDS 7.01 SP6.
    I have an application that has a FileUpload ui element. The elements resource property is bound to a context node of type Resource from the Local Dictionary from uielementsdefinitions.
    The question I have is, how can I take the uploaded file from the context, and attach it to an email using the javax.mail.* api?
    Do I need to store it somewhere first or can it be taken directly from the context attribute? If I need to store it, where do I store it? 
    Any help or suggestions are appreciated.
    Thanks
    MM

    Hello Experts,
    I'm using NWDS 7.01 SP6.
    I have an application that has a FileUpload ui element. The elements resource property is bound to a context node of type Resource from the Local Dictionary from uielementsdefinitions.
    The question I have is, how can I take the uploaded file from the context, and attach it to an email using the javax.mail.* api?
    Do I need to store it somewhere first or can it be taken directly from the context attribute? If I need to store it, where do I store it? 
    Any help or suggestions are appreciated.
    Thanks
    MM

  • Getting an error in KPI Modeler as "{"customMessage":"failed to detect the sap language of the current session language","status":500}"

    Hi Experts,
    We have installed UISKPI01 in SAP NetWeaver Gateway System for Fiori Analytical Apps (KPI modeler is necessary to model the KPI) but while trying to create and Save the Group, we are Getting an error in KPI Modeler as "{"customMessage":"failed to detect the sap language of the current session language","status":500}". Similarly, when we are trying to edit the existing KPI template and assigning the Variants and Evaluations, we are facing the same error as failed to detect the sap language of the current session language","status":500.
    Any idea on above error?
    Thanking you,
    ~ Mahendra

    Hello Mahendra,
    Check if you have entries in the T002 table of SAP_SSB schema.
    If not follow the steps mentioned in the admin guide of SAP Smart business to populate data.
    This should resolve this issue.
    Note: My assumption is that, you are accessing the KPI modeler in English Language.
    Thanks,
    Debasish

  • How to limit file size for FileUpload UI element?

    Hi all,
    I'm using the FileUpload UI element in NW2004s SP20.
    I want to limit the size of the uploaded file.
    The simple option is to load the file to the context, check the size, by using
    InputStream stream = resource.read(false);
    double size = stream.available();
    and report errors if any.
    However, I don't want to store huge files in the context or flie system (even temporarily) nor 'spend' network resources for uploading a file that I won't be use...
    Is there a way to limit the file size by using some property for the fileUpload UI element in the server?
    Is there a way to check the file size before it's uploaded (for example like GMAIL does - checks the file BEFORE the actual upload)
    Regards,
    Omri

    Hi Omri,
    "(but this can be checked AFTER the file was uploaded)" - what do you really mean here? I mean your main query is to restrict the file upload if it crosses certain size-limit. What is the use if you check the size after upload?
    My problem is the network traffic and the CPU load if users are trying to download huge files..., if the upload is restricted for size this download problem will not come .. correct?
    Not sure about the UI element properties has something to restrict the size, and if its really related to Network traffic and CPU utilization, i think you've to check with Basis team to re-sizing the servers to meet this new requirement of upload/download if its not considered before.
    Or the last option i could see is to use KM Upload iView if sizing is done with these considerations.
    Thanks,
    MS

  • Ho to create fileupload ui element dynimically?

    Hi,
    Experts,
    I want to create fileupload ui element dynamically in web dynpro for abap and how to pass parameters.
    please suggest me on that.
    Thanks in advance.
    Shabeer ahmed.

    Hi Shabeer,
    Please let us know your complete requirement.
    Thanks,
    Anand

  • How portal finds the vale for the sap-language parameter for iView

    In the portal one of the ABAP WebDynpro iView is getting displayed in German. The reason for that is the sap-language parameter is being passed as DE. All other iViews in the system are passing the sap-language parameter is as en.
    In our system the Logon Language property is blank for the all the iViews. Could you tell me why one specific iView the sap-language is being passed as a DE?
    How the portal finds the value for the sap-language parameter?

    Hello Venkata,
    Check if your Component locale is set to DE.
    Component locale
    This locale is defined by the following component profile properties:
    --ForcedRequestLanguage
    --ForcedRequestCountry
    Check this for more:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/938297a5061d69e10000000a1553f6/content.htm
    Greetings,
    Praveen Gudapati
    p.s Points are always welcome for helpful answers

  • Is there a way to find out if the sap-language parameter was supplied?

    Hi all,
    I wanted to find out if the url parameter sap-language was supplied or not. I thought that I can read that with request->get_form_field, but the system automatically applies the new language and the parameter is not accessible this way. Is there any other way to check that? I could try it using javascript on the layout, check the url from the javascript and then using self-submitting form transfer that to the backend, but maybe there is some nicer solution?
    Thanks in advance.
    Marcin

    Why do you want to get it from browser URL while you can get it from ABAP?
    I think you can try SY-LANGU to get the language of user.
    Best regards,
    Chinnu

  • SAP language parameter setting

    Dears:
    The parameter zcsa/installed_languages which is in RZ10, control the sap language parameter setting, but i am not very understand how to set the value, i find some set the value to 123EM, i don't know that the 123 meaning here. And some just set it to DE2, D is for Germany, and E is for English, so what is 2 for? Do you know the standard value setting for this parameter?

    The language environment that comes with the standard SAP installation includes German and English. To use SAP with other languages, you must perform a language import or supplement (use transaction SMLT). Changes in the language environment usually require changes in the codepage setup, which requires changes in some database tables and in the profile files.
    Most language administration can be done with transactions SMLT and SP12, and reports RSCP0001, RSCP0004, RSCP0017, and RSCP0020.
    The codepage environment is summarized in the report RSCP0001. Running the report will generate a screen with codepage parameters drawn from different places. A proper codepage setup usually requires that all codepage parameters are the same. This table show the output of the RSCP0001 report, and where its data is drawn from:  Report output Source 
    1.  Table TCPDB   
    Code page for transparent data in the database  Entry in TCPDB table 
    Code page for non-transparent data in the
    database (for example, pools and clusters)  Entry in TCP0C table (can change from online report above) 
    2.  System profile parameters   
    Code page for transparent data in the database  install/codepage/db/transp = 8300 
    Code page for non-transparent data in the
    database (for example, pools and clusters)  install/codepage/db/non_transp = 8300 
    Code pages used by this application server  install/codepage/appl_server = 8300 
    Code pages used by SAPTEMU  saptemu/Codepage = 8300 
    For example, changes in the instance profile, for Traditional Chinese, might look like:
    Change Installed languages to include M (Traditional Chinese)
    zcsa/installed_languages = DEM
    Change to desired language for logon screen
    zcsa/system_language = E
    Add the following parameters for Chinese Character Set
    install/codepage/appl_server = 8300
    install/codepage/db/transp = 8300
    install/codepage/db/non_transp = 8300
    saptemu/Codepage = 8300
    abap/locale_ctype = Chinese(Taiwan)_Taiwan.950
    install/collate/active = 0
    abap/locale_all/needed = 0
    rscp/TCP0B = TCP0D
    abap/set_text_env_at_new_mode =1
    abap/import_char_conversion = 0

Maybe you are looking for