Get Directory name in Chinese and Chinese chars to Excel

Hi,
<b>Question:1</b>
I use "cl_gui_frontend_services=>directory_browse"
to get the Directory name from the presentation server.
It works good for the directory names in English.
However I need to perform a similar operation when the
user has logged in "<b>Chinese</b>" at OS level,
say Chinese Version of Windows. In this case this FM
doesn't get properly the directory names in chinese.
This might be  because the directory name is of type
string. is there any other way to achieve this?
SAP Ver: 4.7
<b>Question:2</b>
I need to download chinese description to an excel file from an internal table. I could able to achieve this when I use Chinese version of windows and log into SAP in <b>'ZH'</b>.
I agree that to see the chinese characters properly we may need to log in the chinese version of Windows. But I don't understand the reason that why do we need to log into chinese version of SAP? i.e 'ZH'. I have decla=red the description field as character in the internal table declaration and in the FM 'GUI_DOWNLOAD', I specify the file type as <b>'ASC'</b>. Any clues on this to get this executed being logged in <b>EN</b> version of SAP?
Thanks,
Siva

Hey there KCR875015,
It sounds like like you need to change the language your iPad is set to, but you cannot understand the language it currently is. The following article should help you do that:
iOS: How to change the language when it's set to one you don't understand
http://support.apple.com/kb/ht2371
Thank you for using Apple Support Communities.
All the best,
Sterling

Similar Messages

  • Get directory name problem

    hi all
    i use developer6i ,client/server mode,win2000
    i want to get directory name of my fmx files,
    for example if my fmx files are in this locatin ---> d:\xxx
    i want to get this path in runtime .
    is there any solution in form6i for my problem?
    if you have any idea or an example code for this problem
    please help me.
    i 'd really appreciate it .
    thanks
    shoja
    ([email protected])

    I am a bit curious why you need to do it. Do you want it for use in CALL_FORM, NEW_FORM, OPEN_FORM etc. If so, your application would be more portable if you omit the path altogether and rely on the configuration of the runtime environment to provide it.

  • Stored procedure for getting host name, host instance and status of that host is it running or stopped.

    Hello all,
    yesterday I got one task in that I have to stored procedure for getting host name, host instance and status of that host is it running or stopped.
    any body knows where exactly, In which table this details are there in BizTalk databases.
    thanks

    Status of the host instance is not stored in the SQL database for you to query the status using stored procedure. You have to either use Powershell or WMI to get the status.
    In SQL, following table contains the details about the host like Name, LoginName, IsDisables etc but status of the host instance is not stored in the database.
    SELECT * FROM BizTalkMgmtDb..adm_HostInstance
    Powershell to get the status:
    http://axonolympus.nl/?page_id=186&post_id=969&cat_id=6&lang=en
    WMI to get the status:
    https://msdn.microsoft.com/en-us/library/aa561820.aspx?f=255&MSPPError=-2147217396
    https://msdn.microsoft.com/en-us/library/aa578621.aspx
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Is there any way to get the list of Essbase and planning users  in excel wi

    Is there any way to get the list of Essbase and planning users in excel with last login details.

    Hi,
    This tool might be of some help to you, 'OlapUnderground Advanced Security Manager'. I havent used it personally but went through its features. Give it a try!
    Thanks,
    Junaid

  • How to get text name text object and text id for long text

    Hi,
    I am trying to fetch Long text for a given order number from transaction CO04 in SAPScript. I know that I have to use Include X (OBJECT) XX ID XXX.
    How do I get the text name, text object and text id for the order header long text from Transaction CO04.
    Points will be awarded..
    Tushar

    Tushar,
    When you are in CO02, and are at the Long Text Tab,click on the Icon that is next to the Order Number at the top of the screen (this icon looks like a Pencil and a Pad of Paper and is called "Change Long Text"). When you click on this it will take you to the SAPscript Editor. Now hit Goto->Header and you will get the data you require.
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly award Reward Points as appropriate.

  • When trying to install Firefox 3.6.11, after extraction, I get the message "The directory name is invalid", and the installation won't continue (Windows Vista Home Basic 6.0).

    That's about it.

    I downloaded a program from Roboform called rfwipeout.exe. I backed up my passwords, identities, etc and completely removed all traces of roboform. This did not help. When I re-installed the roboform new release it got the same message that it thinks I am using version 3.6 of Firefox instead of 11.0. There must be some setting in the Firefox folders that never gets changed when you update to a new version.
    Soon after that I ran a backup of Firefox profiles identities, etc using MOZ BACKUP. I had never noticed this until then but the message asks if I want to backup Mozilla Firefox 3.6. Since 2 completely different programs refer to my installation as 3.6 there must be something wrong in one of the Firefox files.

  • Getting directory names

    Hi there,
    I am writing an application to read the contents of a user specified directory. What I am wondering is, if I specify the cd-rom drive for example, is there any way of getting the 'title' of the cd, ie what would appear in windows explorer next to the drive letter eg 'media_name [E:]'. I have looked through the java.io.File class in the API, however, all I could find that might be relevant is getName(), but this only returns the file name eg E:\ in this case.
    If anyone has any ideas it would be greatly appreciated.
    Thanks

    I do not have a CDROM on this computer, so I do not know if this is what you completely want, but here goes:
    import javax.swing.filechooser.*;
    import java.io.*;
    public class FileViewTest
         public static void main(String[] args)
              File f = new File("c:/");
              FileSystemView fsv = FileSystemView.getFileSystemView();
              System.out.println(fsv.getSystemDisplayName(f));
    }When I ran this the output was: Local Disk (C:)

  • Dynamic Target Directory name: DEV QUA and PRD

    Dear All,
    Scenario Idoc to File:
    I need to configure file directory's dynamically - when the object is moved to D, Q and Prd. for that am using plant and location to differenciate.
    InExample: D:\SX\Common\ <plant><location>
    TinAdvance
    Swarna.

    Swarna wrote:
    Dear All,
    >
    > Scenario Idoc to File:
    >
    > I need to configure file directory's dynamically - when the object is moved to D, Q and Prd. for that am using plant and location to differenciate.
    >
    > InExample: D:SXCommon <plant><location>
    >
    > TinAdvance
    > Swarna.
    I am assuming that the plan and location fields are part of the data structure and the path D:SXCommon will always remain the same in all the environments.
    In that case, you can write a generic UDF for this that will handle in Dev, QA and PRD
    use this blog to help you - Dynamic Configuration vs Variable Substitution - The Ultimate Battle for the File Name

  • Getting directory name

    Hi All,
    What I would like to do is use a directory we've created, say XMLDIR.
    XMLDIR points to /home/xml/
    (Have got read/write permissions on directory)
    This is the portion of the PL/SQL code(below) where I would like to use it. As you
    can see I'm saving an XML file. Now I need to save this XML file to the XMLDIR directory.
    How do I use this directory that has been created?
    xmldom.writeToFile(
    doc
    , 'ec_' || p_Order_No || '.xml'
    v_Filenme := p_Order_No || '.xml';
    v_FilePath := 'ec_' || p_Order_No || '.xml';
    xmldom.freeDocument(doc);
    At the moment the xml file is saved, but to the default oracle directory.
    Why doesn't this work?:
    xmldom.writeToFile(
    doc
    , XMLDIR || 'ec_' || p_Order_No || '.xml'
    Do I need to declare this directory somewhere in my package, or do I need to prefix it with
    some command to be able to access it?
    Any info or example would be most welcome.
    Thanks,
    Francois

    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath
    use the following in you jsp
    <%=application.getRealPath("/")%>this will give you the application root directory.

  • Function Module to get directory on F4

    Hello Experts,
    Is there a FM to get Directory name on selection screen when the users hit F4, kinda like "KD_GET_FILENAME_ON_F4" for getting the filename?
    Thanks.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
      DATA: l_dir   TYPE string.
    * Browse the Directories
      CALL METHOD cl_gui_frontend_services=>directory_browse
    *     EXPORTING
    *       WINDOW_TITLE        =
    *      INITIAL_FOLDER       =
        CHANGING
          selected_folder      = l_dir
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4
    this is what you need i guess..

  • Jakata POI excel: get column name

    Hi All
    Is there a way I can get column name where a particular cell is: (In excel spreadsheet)
    Ex: If I have column number 2: I should get "C" ( given col numbers are 0 based).
    Please let me know.
    Thanks
    bib

    It's not as easy as it might seem, since the letter sequence system is not compatible with common numeric sequence system.
    See here:
    [Java, POI - Converting number to Excel columns letter names|http://ondra.zizka.cz/stranky/programovani/java/converting_number_to_excel_column_letters_name.texy]

  • Zip.ZipInputStream cannot extract files with Chinese chars in name

    Dear friends,
    Peace b upon u!
    I am trying to read a zip file (~3000 files)containing one
    or more files with Chinese, Japanese or Korean names, the
    getNextEntry method throws an IllegalArgumentException as below after extracting just ~300 files as below:-
    java.lang.IllegalArgumentException
            at java.util.zip.ZipInputStream.getUTF8String(Unknown Source)
            at java.util.zip.ZipInputStream.readLOC(Unknown Source)
            at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
            at testZipFiles.getZipFiles(testZipFiles.java:65)
            at testZipFiles.main(testZipFiles.java:18) issue:java.util.zip.ZipInputStream cannot extract files with Chinese chars in name
    Category java:classes_util_jarzip
    Plz let me know 1 of the ways which I can solve this issue.
    1)if someone has JAVA DCOMPILER plz send the SOURCE Code
    for the ZipInputStream.class to me..I need to edit it using 1 of the solutions as provided below which I googled.
    2)If there is an alternate or upgraded java.util.zip.ZipInputStream or any org.apache.tools.zip.* package which can read such files..If yes where I can download the same on net.
    3)Any other easier solution, which can let me extract all files (by excluding Chinese files thru CATCH) without the extractor process to fail altogether.
    On net I found that the only solution with this is:-
    - edit the new ZipEntry, remove the static initializer that calls
    the native methods initIDs().
    this step seems a bit scary, but it's according to the
    workaround
    to bug #4244499 (the workaround of Olive64, THU JUN 05
    01:55 P.M. 2003),
    that handles a similar bug at the ZipOutputStream.
    Now you have a ZipInputStream that supports multi-bytes
    entry names.
    to extract the zip file, using the fixed code that is offered
    above,
    create a function that gets an "encoding" string, a "destPath"
    string
    and a "sourceFile" (zipped) and does :
    ZipInputStream zipinputstream = null;
    ZipEntry zipentry;
    zipinputstream = new ZipInputStream(new FileInputStream
    (sourceFile),encoding);
    zipentry = zipinputstream.getNextEntry();
    while (zipentry != null) { //for each entry to be extracted
        String entryName = zipentry.getName();
        int n;
        FileOutputStream fileoutputstream = new FileOutputStream
    ( destPath + entryName );
        while ((n = zipinputstream.read(buf, 0, 1024)) > -1)
            fileoutputstream.write(buf, 0, n);
        fileoutputstream.close();
        zipinputstream.closeEntry();
        zipentry = zipinputstream.getNextEntry();
    }//while
    zipinputstream.close();

    Hi friend,
    We'd better to ask one question in each thread. If you have another issue, you can consider to open up a new thread in this forum.
    Now for the first question, do you mean this picture? It throws access exception in archive2.
    If so , because your extractPath is a path, not a directory.You should add +"xxx.zip". For more information, please refer to
    ZipFile.Open
    Method (String, ZipArchiveMode).
    For the second question, you can use the following code to skip the error message.
    while (true)
    try
    //do something;
    catch (Exception ex)
    { continue; }
    Good day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get the original file name in chinese with upload component?

    It is inconvenience for user to upload file with name only in english. When upload a file with chinese file name, the file name gotten from "fileUpload1.getUploadedFile().getOriginalName()" is just like "&#32515;&#25120;&#31926;&#37733;&#65533;.jpg". Do somebody have a good idea?

    I spoke to the component engineers regarding this issue
    First please check if the s page encoding is set correctly, as browsers tend to default to use the encoding that was used for the page when submitting the request.
    (Because of how the JSF response writer is written, multibyte characters can be written correctly even if the encoding is not set correctly so the fact that form correctly rendered chinese characters is not proof that the encoding was set correctly).
    If you established that the page encoding is correct, then there is a
    bug in the FileUpload. The method that gets the name is a straight
    shot through to an Apache FileUpload library method. Technically this
    ought to be resolved by that method checking the request body
    character set before parsing the parameters.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Get filename and directory name during runtime

    Hi guys,
    I am developing a file to file interface without content conversion, just a simple file transfer from one ftp server to another. I have to read the same filename (invent.txt) from multiple folders (mstransfer/M01/IN1, mstransfer/M02/IN1, mstransfer/M03/IN1....) that represent different stores and transfer it as it is with the same name to exactly the same directory name in the target ftp location.
    My problem is found inside a dummy mapping that I have created in order to specify the target directory and the name of the file. I am doing the following:
    A) A Java UDF to specify the filename
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String filename = conf.get(key);
    trace.addWarning("filename = "+filename);
    conf.put(key, filename);
    return "";
    //return filename;
    B) A Java UDF to specify the directory name
       //write your code here
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String directory  = conf.get(key);
    trace.addWarning("directory before = "+directory);
    directory = "/usr/sap/trans"+directory;
    trace.addWarning("directory after = "+directory);
    conf.put(key, directory);
    return "";
    //return "/usr/sap/trans"+directory;
    In receiver file adapter I do not specify neither a filename nor a target directory.
    When I am testing it, I always get a mapping runtime error.
    Any ideas?
    --Evaggelos

    Guys,
    First of all, I am doing an end to end testing, i.e. I let the FTP adapter pick the file up and another FTP adapter delivers the file to target folder. I am definitely not testing the mapping in mapping editor.
    I get the error in Request message mapping (pipeline step, which I can see in SXMB_MONI transaction) which is a dummy mapping between two message types that I have created and are based on two data types with two fields each.
    The UDF's that I have created go in-between the source and target fileds of the message types/data types.
    The error that I see in the trace section of the XML message in SXMB_MONI is the following:
    "<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_G_SRS_FileTransfer_MNS_</Trace>
      <Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at"
    I have included some trace.addWarning() lines in Java code to help me debug my code, but I cannot see them anywhere inside the trace to be getting executed.
    I will try Bhavesh's idea and I will write the code in the Java Section of my message mapping ( either Intialization or Destrcution ) section.

  • Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    Hi, Im trying to get the whole path in my server, so i tried that with this following code
    Get-ChildItem $sourceFolder  -Recurse | ?{$_.PsIsContainer} |Get-Acl
    But then, it showed me somtehing like this :
    Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
     I tried to find the solver everywhere and mostly they propose to change the path name, which is impossible, since I am working with my company server, and those folder have already there before i start to work here, then the other ask me to use robocopy,
    but all of the trick just dont work
    is there any way to solve this problem? thanks

    There is no simple solution to this. And it is not a limitation of powershell itself, but of the underlying NTFS file system.
    If the problem is that a folder with a name longer than 248 exists anywhere within your directory structure, you are hooped.
    If the problem is that some fully qualified path names exceed 260 characters, then, in those cases, the solution already given is to create a psdrive partway up the path from the drive letter or server/share root of the path. Unfortunately, the output produced
    will be relative to that psdrive and not to what is specified as the $sourcefolder.
    unless you already know where those problematic paths are, you might consider trying to trap those errors and have your script figure out where it needs to create psdrives. You might then be able to calculate the equivalent path for each file or folder and
    output that. the programming effort would be simpler to just created a psdrive for each folder encountered, however I expect that would be very inefficient.
    Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

Maybe you are looking for

  • Virus on Nokia 5800?

    I keep getting sms messages advising I need to update my software so I eventually did this through the Nokia site. Now I can't use my phone I have open apps which I can't get rid of, can't turn off the phone, can't make calls, receive sms etc etc etc

  • Exchange rate is redetermined during sales document copy

    Dear expert, When we copy a quote, CRM re-determines the exchange rate based on the today's date.It does not keep the exchange rate and exchange rate date which were used in the original quote. I can't change the exchange rate date in order to have t

  • About BADI Coding

    Hello Experts, 1. I have to update a Table (Ztable) using SD_COND_SAVE_A for any changes to pricig conditions PB00  entered through TCODE VK11, VK12, VK31, VK32. I have also to mapp this Z table with  Material Master & Condition Record. How to code f

  • Loading an image to a Canvas problem.

    I have constructed a simple GUI, with a menu and a Canvas for displaying images(jpg,gif). In the menu I have a Load button(menuItem), which is coupled with an ActionPerformed so that the image will be loaded when I choose Load in the menu. Here is th

  • Headings not downloaded using GUI_DOWNLOAD, used DBF as a file type

    Hello,              I have used the function module to download the data into an excel file using GUI_DOWNLOAD FM. I have given the file type as 'DBF', because if I give DAT type then the data for the amount not downloading properly. and preceeding z