Urgent !!! csv to File function for international characters

Hi ,
We are using fileToBinary() function provided by the samples of Weblogic Integration
Server to read one csv file.
It works absolutely fine when all characters in the csv file are english.
But when we have some japanese characters , they are going to be tempered and
replaced by '?'
Any solutions to this problem at the earliest would be really helpful to us.
Thanks and Regards
Pavitra

Well that was weird??
I just installed all the fonts here:
Japanese
otf-ipafont - Formal style Japanese Gothic (sans-serif) and Mincho (serif) fonts set; one of the highest quality open source font. Default of openSUSE-ja. (AUR)
ttf-vlgothic - Japanese Gothic fonts. Default of Debian/Fedora/Vine Linux (AUR)
ttf-mplus - Modern Gothic style Japanese outline fonts. It includes all of Japanese Hiragana/Katakana, Basic Latin, Latin-1 Supplement, Latin Extended-A, IPA Extensions and most of Japanese Kanji, Greek, Cyrillic, Vietnamese with 7 weights (proportional) or 5 weights (monospace). (AUR)
ttf-ipa-mona, ttf-monapo - Japanese fonts to show 2channel Shift JIS art properly. (AUR)
ttf-sazanami - Japanese free TrueType font. This is outdated and not maintained any more, but may be defined as a fallback font on several environments.
which automatically configures the font cache however, when run mate-terminal with Japanese kanji style fonts; the terminal still shows a bunch of #### signs where the Kanji should be displayed?
Now I'm lost :-S

Similar Messages

  • Aggregate functions for internal table.

    Hi Gurus,
    I'm just wondering whether we can use aggregate functions for internal table. I wanted to know the max value for a particular column in my internal table. How can I achieve this easily and quickly.
    Thanks,
    David.

    sort the table on which you want the maximum value and read it. Please find below example code.
    TYPES : BEGIN OF ty_mvke,
            matnr TYPE mvke-matnr,
            vkorg TYPE mvke-vkorg,
            vtweg TYPE mvke-vtweg,
           AUMNG type mvke-AUMNG,
            END OF ty_mvke.
    DATA : wa_mvke TYPE ty_mvke,
           it_mvke TYPE STANDARD TABLE OF ty_mvke.
    data : temp_AUMNG type AUMNG.
    START-OF-SELECTION.
      SELECT matnr vkorg vtweg AUMNG FROM mvke INTO
            table it_mvke.
    sort it_mvke by AUMNG.
    read TABLE it_mvke into wa_mvke INDEX 1.
    if sy-subrc = 0.
    move wa_mvke-AUMNG to temp_AUMNG.
    write : temp_AUMNG.
    endif.
    Thanks,
    Sreekala.

  • How to create Support function for internal Class use

    I have created a class to find the MoonRise and Set time. There is a java code available and I am translating it to Obj-C.
    My problem is that for the calculation there are many support functions which is internally used. When I try to duplicate this as follows
    -(double) frac:(double)x {
    // returns the fractional part of x as used in minimoon and minisun
    double a;
    a = x - floor(x);
    if (a < 0) a += 1;
    return a;
    -(void)minimoon:(double)t {
    // takes t and returns the geocentric ra and dec in an array mooneq
    // claimed good to 5' (angle) in ra and 1' in dec
    // tallies with another approximate method and with ICE for a couple of dates
    double L0, L, LS, F, D, H, S, N, DL, CB, L_moon, B_moon, V, W, X, Y, Z, RHO;
    //var mooneq = new Array;
    L0 = frac(0.606433 + 1336.855225 * t); // mean longitude of moon
    At this point it gives an error implicit declaration of function frac,
    My question is how to create such helper functions which are used internally, actually there are many such functions where functionA call B which calls C.
    Thanks
    Raj

    Here's yet another approach (creating a private category):
    @interface MYClass (Private)
    - (double)frac:(double)x;
    @end
    @implementation MYClass
    - (void)minimoon:(double)t {
    // takes t and returns the geocentric ra and dec in an array mooneq
    // claimed good to 5' (angle) in ra and 1' in dec
    // tallies with another approximate method and with ICE for a couple of dates
    double L0, L, LS, F, D, H, S, N, DL, CB, L_moon, B_moon, V, W, X, Y, Z, RHO;
    //var mooneq = new Array;
    L0 = [self frac:(0.606433 + 1336.855225 * t)]; // mean longitude of moon
    - (double)frac:(double)x
    // returns the fractional part of x as used in minimoon and minisun
    double a;
    a = x - floor(x);
    if (a < 0) a += 1;
    return a;
    @end
    <div class="jive-quote">rajkhand wrote:
    I liked the first method as I don't have to change much of the java code.
    I like it too. I use that very regularly (though I often use C++/Objective C++), since there is typically a lot of implementation in any class that does not need to be an ObjC instance method. This approach helps to reduce the object's interface to its essentials while keeping maintenance low.
    I'll put all the helper functions above the implementation.
    Is there a good book/web site where I can get such insight? I know C and Delphi/pascal
    Well, Objective-C is a superset of C. If you're porting Java, you'll find protocols (ObjC) similar to interfaces (Java).
    *Getting Started*
    Apple's version of ObjC is different from others. For the language, Apple's docs are the standard (IMO):
    Language:
    http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/ObjC.pdf
    If you are comfortable with C, this guide will help learning Objective-C quickly, though it has not been updated for (Apple's) Objective-C 2.0:
    http://www.amazon.com/Objective-C-Pocket-Reference-Andrew-Duncan/dp/0596004230/r ef=sr14?ie=UTF8&s=books&qid=1245404236&sr=8-4
    There are a few books on the ObjC2 language, but I have not read them (I just read Apple's docs for this).
    OOP/Design:
    http://developer.apple.com/documentation/Cocoa/Conceptual/OOPObjC/OOPObjC.pdf
    Research
    Good site for archives of tips, tricks, and even some hacks:
    http://www.cocoadev.com/
    Apple's lists (Cocoa, Xcode, ObjC, and specific technologies):
    http://lists.apple.com/mailman/listinfo
    This one sees the most traffic for Cocoa, and ObjC topics :
    http://lists.apple.com/mailman/listinfo/cocoa-dev
    Online archive for aforementioned Xcode and Cocoa list submissions:
    http://www.cocoabuilder.com/
    There are a lot of good sites/blogs out there as well.
    Questions
    Apple's lists (linked above) will typically yield good answers in a short time, you can also try here.
    Thanks a million
    Raj
    You're Welcome,
    J

  • Urgent!! Sum function for subtotals.,Exporting BA does not list Workbooks

    Hi,
    I m facing this issue when calculating subtotals in the report. When i use the sum function, the subtotals are not getting displayed. I tried usin the Cell Sum Distinct function and it sums up only if the amounts are different. For example when i have two amounts of 5.00 each, it sums as 5.00 only in the subtotal. Can anyone help me resolve this?
    Also, i m facing one more issue. When i export the BA, the user wants the list of workbooks under that that would be exported. (The list is shown when exporting the EUL as such), but the list is just blank in BA export. Is this a set up issue?
    Thanks in advance.

    Hi,
    Not all calculations can be summed correctly by Discoverer. What is the calculation that you are trying to sum?
    The workbooks are not tied to a BA as the folders used in a workbook may be in many different BAs. Therefore the workbooks are not exported with a business area. The workbooks must be exported separately.
    Rod West

  • Function for considering characters such ( , ,") in CLOB columns

    If I excute following SQL statement:
    SELECT XMLELEMENT("Inhalt",inhalt) from temp where id=5;
    The result is:
    <Inhalt>
    <Datenblock ID="5">
    </Datenblock>
    </Inhalt>
    The datatype of column "inhalt" is CLOB. The content of ID 5 is:
    <Datenblock ID="5">
    </Datenblock>
    My question is:
    Does a function exists which considers the right character set and does not quote characters (<,>,")? I use UTF-8 as a Database Character Set. Can anybody help me?

    Try again
    SQL> set define off
    SQL> set long 10000
    SQL> --
    SQL> drop table temp
    2 /
    Table dropped.
    SQL> create table temp
    2 (
    3 id number,
    4 inhalt clob
    5 )
    6 /
    Table created.
    SQL> insert into temp values ( 5,
    2 '<Datenblock ID="5">
    3 <SomeXMLTag>Handel & amp; Grettle</SomeXMLTag>
    4 </Datenblock>')
    5 /
    1 row created.
    SQL> insert into temp values ( 6,
    2 '<Datenblock ID="6">
    3 <SomeXMLTag>Handel & amp; Grettle</SomeXMLTag>
    4 </Datenblock>
    5 <Datenblock ID="6">
    6 <SomeXMLTag>Tom & amp; Jerry</SomeXMLTag>
    7 </Datenblock>')
    8 /
    1 row created.
    SQL> SELECT XMLELEMENT("Inhalt",inhalt)
    2 from temp where id=5
    3 /
    XMLELEMENT("INHALT",INHALT)
    <Inhalt>& lt;Datenblock ID=&quot;5&quot;& gt;
    & lt;SomeXMLTag& gt;Handel & amp;amp; Grettle& lt;/SomeXMLTag& gt;
    & lt;/Datenblock& gt;</Inhalt>
    SQL> SELECT XMLELEMENT("Inhalt",xmlparse(CONTENT INHALT WELLFORMED) )
    2 from temp where id=5
    3 /
    XMLELEMENT("INHALT",XMLPARSE(CONTENTINHALTWELLFORMED))
    <Inhalt><Datenblock ID="5">
    <SomeXMLTag>Handel & amp; Grettle</SomeXMLTag>
    </Datenblock></Inhalt>
    SQL> SELECT XMLELEMENT("Inhalt",inhalt)
    2 from temp where id=6
    3 /
    XMLELEMENT("INHALT",INHALT)
    <Inhalt>& lt;Datenblock ID=&quot;6&quot;& gt;
    & lt;SomeXMLTag& gt;Handel & amp;amp; Grettle& lt;/SomeXMLTag& gt;
    & lt;/Datenblock& gt;
    & lt;Datenblock ID=&quot;6&quot;& gt;
    & lt;SomeXMLTag& gt;Tom & amp;amp; Jerry& lt;/SomeXMLTag& gt;
    & lt;/Datenblock& gt;</Inhalt>
    SQL> SELECT XMLELEMENT("Inhalt",xmlparse(CONTENT INHALT WELLFORMED) )
    2 from temp where id=6
    3 /
    XMLELEMENT("INHALT",XMLPARSE(CONTENTINHALTWELLFORMED))
    <Inhalt><Datenblock ID="6">
    <SomeXMLTag>Handel & amp; Grettle</SomeXMLTag>
    </Datenblock>
    <Datenblock ID="6">
    <SomeXMLTag>Tom & amp; Jerry</SomeXMLTag>
    </Datenblock></Inhalt>
    SQL>

  • Sum function for internal table column

    Dear Experts,
    how can I sum a complete internal table column.
    Regards
    ertas

    Hi,
    Use SUM in AT END of event in the loop of an internal table.
    Example
    Loop at ITAB into wa_itab.
    at end of wa_itab-field.
    sum.  " Here all numric fields will be summed and stored in that filed(wa_itab-field)
    endat.
    Endloop.
    Regards
    Krishna

  • BIG PROBLEM: CSS files not loading because of international characters in file name

    I have Muse Beta 7 in Spanish.
    The program creates a css file called master_a-página-maestra.css in css folder. It is referenced in the resulting HTML code here:
    <!-- CSS -->
      <link rel="stylesheet" type="text/css" href="css/site_global.css?3951792836"/>
      <link rel="stylesheet" type="text/css" href="css/master_a-p%c3%a1gina-maestra.css?fileVersionPlaceholder"/>
      <link rel="stylesheet" type="text/css" href="css/index.css?3948175564"/>
    When you work locally in your Windows formatted har drive, everything looks fine, but when you upload your files to a server, everything is screwed up. The server doesn't recognizes the URL and returns an error page, resulting in style errors in the entire site.
    This can also happens with html files if the title of the page contains international characters or with images if the image file name in your Hard Drive contains international characters.
    I already pointed out long time ago Muse was generating file names with international characters like á, ñ, etc but nobody cared about it. Too bad. I had to activate file name customization but I think that Muse should replace automatically this characters in the same way that it replaces other conflictive characters like commas or ampersands.
    This is not a fault of the FTP client. Accented characters are not web safe regardless of the FTP client you are using. It is a server side issue. Some servers support it some others don't. I don't mind if it works in Adobe Catalyst server because the final website is going to be in another server and maybe next year when paid hosting is ended the client may move it to another server.
    It makes more sense to replace accented characters in file names by their not accented equivalents ('a' instead of 'á', 'N' instead of 'Ñ', etc) and avoid all this problem.

    Zak, It is funny you mention it, because the site I am talking about is hosted in 1and1. try this: http://www.artofwalls.com/rosannawalls/biografía.html
    As you can see, the offending "í" in the file name causes 1and1 server to throw a "page not found" error. And this has happened with many other servers I have tried since.
    Muse boast of generating code fully compatible with all major web browsers but by using international characters in file names it ggenerates code suitable only for very few web servers. International characters have been always a no-no for internet URLs. Internet was designed by people who didn't care about ascii codes beyond 127 so using international characters in html file names is just call for problems.
    "to work with your hosting provider to determine how to enable Unicode encoded (UTF-8) file names and HTML files on their servers" is not a viable solution most of the time unless you are a Very Important Client of your host provider. If not, making changes means money for them and if you are the only one who complains, they are going to just tell you to not use international characters in your names.

  • International characters in IOS filenames

    Hello,
    My movie compiles fine but when I add this file name to the package:
    ahí1.wav
    I get an applicationverificationfailed message when I try to send it to the device from flash cc
    if I rename it to:
    ahi1.wav
    It will work without failure.
    I've got hundreds of files that have international characters do I have to rename them all or is there a special flag, switch, or trick I can use to get around this?

    Stefan,
    It's good news that you are not having this problem, as it means that perhaps I won't shortly either. If we can characterize the differences between our setups, maybe I can have the same result as you do.
    I've just run the obvious case - I've created a file using TextEdit with a German name out on the volume from the Mac, stopped TextEdit, and successfully retrieved it. So it doesn't look like a filesystem mounting issue. I wonder what is so weird about these files. There must be something odd in the header, because it is definitely at the file info level that it is going off the rails. While the name is the obvious differentiator, maybe something else is odd as well.
    One thing I could try is to zip one of the directories affected on the Windows side and then try unzipping it into place there, then boot over to the Mac side and see if things have improved. If that doesn't resolve the problem, I could try unzipping it into place on the Mac side, but first I'll boot over to the Windows side and make sure it can read the file I just created in TextEdit from that end.
    By the way, the KB article you referenced was about shares and about problems with punctuation mounting Mac shares on Windows, so I don't think it pertains. In any case, I'm mounting a FAT volume, not a share, so the drivers would be completely different.
    Anyway, thank you for your help. Now that I'm no longer chasing phantoms, I can attend the real problem.
    Thanks,
    Ralph

  • Lync Edge functional for external client but federation is not working

    Hi,
    I am working on Lync Edge Server from couple of weeks but unfortunately, I can't federate with Skype and other partners. First of all I want to mention following things:
    1. Lync 2013 Front-End Server is fully functional for Internal Users
    2. Lync 2013 Reverse Proxy is fully functional for Mobile Users
    3. Lync 2013 Edge Server is fully functional for External Users except Federation.
    Let me share Edge Server current configuration with you.
    1. Lync Edge Pool have two NICs, Internal (Private IP) and External (3 Public IPs with default gateway and External DNS)
    2. Host File have entries for Lync front-end server
    3. Local CA certificate for Internal Interface and Starfield CA Certificate for External interface with required SAN e.g., acs.domain.com etc
    4. Skype is searching my domain URIs but added contact is showing offline in skype
    5. Lync 2013 Basic client is showing Presence Unknown for Skype contacts (Skype contacts already merged with Live ID)
    6. Test-CSFederatedPartner cmdlet is also giving 504 error while testing from Front-end server.
    This is production environment actually so please let me know if I am missing something.

    Verify that you configure SRV Record on External DNS {SRV Record _sipfederationtls._tcp.<domain> on port 5061 and SRV Record _sip._tls.<domain> on port 443}
    Also Verify that you enable lync federation on Lync topology and publish it
    On a Front End server, open Topology Builder. Expand Edge pools, then right click your Edge server or Edge server pool. Select Edit properties.
    In Edit Properties under General, select Enable federation for this Edge pool (Port 5061). Click OK.
    Click Action, select Topology, select Publish. When prompted on Publish the topology, click Next. When the Publish is finished, click Finish.
    On the Edge server, open the Lync Server Deployment wizard. Click Install or Update Lync Server System, then click Setup or Remove Lync Server Components. Click Run Again.
    At Setup Lync Server components, click Next. The summary screen will show actions as they are executed. Once the deployment is done, click View Log to view available log files. Click Finish to complete the deployment.
    For configuration of lync federation, you can check blow link
    http://technet.microsoft.com/en-us/library/jj204800.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • International characters not showing

    When some international character set is selected in Language
    bar (windows), and typing text in the Freehand MX, garbage
    characters are showed.
    This is related to Freehand only, becouse when typing in any
    other aplication (ms word, publisher, even notepad), proper
    characters are shown.
    Is there any settings that I need to change or any other
    intervention for international characters to be used in FH ?
    BTW even when pasting text containing international
    characters to FH, the same problem is happening.
    Thanks
    Nicky

    > When some international character set is selected in
    Language bar (windows),
    > and typing text in the Freehand MX, garbage characters
    are showed.
    >
    > This is related to Freehand only, becouse when typing in
    any other aplication
    > (ms word, publisher, even notepad), proper characters
    are shown.
    This is FreeHand only because FreeHand does not support as
    wide character set (Unicode) as most of the apps.
    There are language versions of FreeHand, like Hebrew, that
    support some extended character sets but the standard English
    version can handle about the set available in Type1 font.
    Jukka

  • Ovi and international characters

    Hi,
    I started using Ovi sync services due to the end of Goosync free services. Ovi works great, except for international characters (I write in Spanish). I tried changing the way my browser displays text but it seems that the problem is in the synchronization itself ¿Does anyone have a workaround for this?
    Thanks in advance
    Enrique S.
    Santiago, Chile

    Please post this message at:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB

  • Check a string in bash for unwanted characters

    Hello,
    I'm trying to do a bash script that checks a variable against a list of unwanted characters, e.g. to parse a file name.
    This doesn't really sound like a difficult task, but for some reason, whatever I've tried so far does not work, including my last attempt, shown below. Perhaps I'm doing something silly here - and I'm getting tired of it. What would be the best way for instance to parse a file name for invalid characters, or to accomplish or fix the below?
    #!/bin/bash
    read -p "Enter a filename: " fname
    invalid_chars=", . ! @ # \$ % ^ & \* ( ) + = ? { } [ ] | ~"
    i=0
    while (( i <= ${#fname} )); do
       char=${fname:$i:1}
       for char in `echo $invalid_chars`; do
         echo "$char"
       done
       (( i += 1 ))
    doneThanks.

    Meanwhile I figured out the mistake I made in the for loop. The below finally works catching the list of characters. It won't catch * and ? though. I wonder if there wasn't an easier way to do it, beside using "grep".
    #!/bin/bash
    f_varcheck()
      ifs_orig=$IFS
      count=0
      score=0
      while (( count <= ${#1} )); do
        char=${1:$count:1}
        if [ "$score" = "0" ]; then
          wanted_char='~,!,@,#,$,%,^,&,(,),+,`,='
          IFS=$','
          for item in `echo "$wanted_char"`; do
            [ "$item" = "$char" ] && score=1
          done
        fi
        if [ "$score" = "0" ]; then
          wanted_char='{,},|,[,],\,:,",;,<,>,., ,/,'
          IFS=$','
          for item in `echo "$wanted_char"`; do
            [ "$item" = "$char" ] && score=1
          done
        fi
        if [ "$score" = "0" ]; then
          wanted_char=','
          IFS=$' '
          for item in `echo "$wanted_char"`; do
            [ "$item" = "$char" ] && score=1
          done
        fi
      if [ "$score" = "0" ]; then
        (( count += 1 ))
      else
        break
      fi
      done
      IFS=$ifs_orig
      [ "$score" = "1" ] && return 1 || return 0
    read -p "Enter a filename: " fname
    if ! f_varcheck "$fname"; then
       echo "Invalid character \`$char\` found."
    else
       echo "Input is ok."
    fi
    {code}
    Edited by: Dude on Feb 11, 2012 8:51 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • FND function to create .csv data file on client machine?

    Hello All,
    I am trying to create a concurrent request which when run by the user's creates a .csv file with data. I created a procedure in the database which run's when they run the conc.request.
    However is there any FND function or anyother function available that creates the data file on the client machine (either in their 'C:\') or in a share drive etc?
    Currently through the procedure, I am able to write the .csv data file to a unix directory to which users do not have access.
    Thanks,
    Chiru

    Chiru,
    Several options for you to consider are :
    1. If you want to have the csv on client machine: Make the program to create the csv in server with a constant name, eg : test.csv and create a dos command in client's machine that is could FTP to server, rename the existing csv file in client's machine and get test.csv from server.
    2. If you want to do in share drive : As long as the share drive exists in PC that can be used for FTP, you can create unix host script that can FTP the file to the windows server. For instance, create a generic unix host script that accepts parameter such as filename, and server destination, destination folder, unix login ,password, etc. This program will run in a request set after your concurrent program. If you search google I'm sure you will find samples of unix script that does this kind of thing.
    3. As per what Kevin said ,another options is to send the csv file using email to the recipients.
    HTH

  • Custom File Extension for Microsoft Access Text Driver (*.txt, *.csv)

    I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
    I have updated the FileExtns registry to have my new extension.
    When I issue the following it does not work.
    select [NoName] 
    from openrowset('MSDASQL'
               ,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
                    DefaultDir=c:\filedir'
               ,'select * from "file.lst"')
    If I make the file a .csv it works fine.  However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it. 
    OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
    OLE DB provider "MSDASQL" for linked server "(null)".
    In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row).  Is there  a way to use OPENROWSET without BULK to basically include all rows as data?
    Any help is appreciated.

    Hi,
    According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
    I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
    In addition, the
    OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
    within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic  syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
    BULK INSERT
    and
    BCP .
    Thanks
    Lydia Zhang

  • Upload a .CSV File into an Internal table

    Hi,
    What are the parameters to be filled into the Function Modules "GUI_UPLOAD" and "ALSM_EXCEL_TO_INTERNAL_TABLE" to Upload a .CSV File into an internal table.
    Please send a sample code to support this....
    Regards,
    Aadhi.

    Hi,
            Check the below code.
    TYPE-POOLS: truxs.
    TYPES:
      BEGIN OF ty_line,
        vbeln LIKE vbap-vbeln,
        posnr LIKE vbap-posnr,
      END OF ty_line.
    *data:  ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.
    DATA: itab   TYPE STANDARD TABLE OF ty_line WITH DEFAULT KEY.
    DATA: itab1  TYPE truxs_t_text_data.
    SELECT
      vbeln
      posnr
      UP TO 10 ROWS
      FROM vbap
      INTO TABLE itab.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
      EXPORTING
        i_field_seperator    = ';'
      TABLES
        i_tab_sap_data       = itab
      CHANGING
        i_tab_converted_data = itab1
      EXCEPTIONS
        conversion_failed    = 1
        OTHERS               = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = 'd:\TEMP\test1.txt'
      TABLES
        data_tab = itab1
      EXCEPTIONS
        OTHERS   = 1.
    IF sy-subrc eq 0.
      WRITE: 'Data downloaded successfully'.
    ENDIF.
    DATA: BEGIN OF IEXCEL OCCURS 0.
          INCLUDE STRUCTURE ALSMEX_TABLINE.
    DATA: END OF IEXCEL.
    PARAMETERS: FILENM   LIKE rlgrap-filename MEMORY ID M01,
                NOHEADER AS CHECKBOX.
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                      = FILENM
        i_begin_col                   = 1
        i_begin_row                  = 1
        i_end_col                     = 100
        i_end_row                     = 30000
      tables
        intern                        = IEXCEL
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3.
    if sy-subrc <> 0.
       WRITE: / 'EXCEL UPLOAD FAILED ', FILENM, SY-SUBRC.
    endif.

Maybe you are looking for

  • What is S_ALR_87012087 & how to do changes in it

    Hi, What is S_ALR_87012087 & how to do changes in it ?? i want  to do below changes in it. Please revise the Vendor Address Report S_ALR_87012087 as follows: - Add State - City field - adjust to pick up the City. Currently the field indicates a state

  • How do I delete my 6gb of messages on my iPhone 5

    How do I delete 6gb of saved messages on my iPhone 5?

  • Connecting to idle instance in Oracle 11g

    SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 10 14:48:26 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Enter user-name: sys as sysdba Enter password: Connected to an idle instance. SQL> connect ADIPNU Enter password: ERROR: ORA-01

  • Exception in UI

    Hi All, When I start the client UI it shows the following error.But it is very rare case not often.Why this exception occurs. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.text.PlainView.updateMetrics(PlainView.

  • Better Forums for Adobe Visual Communicator Users

    Visit these sites for help with Adobe Visual Communicator: http://www.AskMrZforum.com http://www.AskMrZshow.com http://www.AskMrZblog.com http://www.SchoolTVmadeEasy.com Intended for education, business and personal users of Adobe Visual Communicator