Suppress the single quote when display downloaded file in EXCEL

I have a requirement to keep all the cells contents left-justisfied when display in EXCEL. I used GUI_DOWNLOAD and concatenate a single quotes to the numeric fields in my internal table. However, when open the file in EXCEL, the single quote show up in the cell also. Anyone knows how to suppress the single quote when open in EXCEL? Here are my codes:
concatenate '''' itab-field2 into itab-field2.
modify itab.
   CALL FUNCTION 'GUI_DOWNLOAD'
     EXPORTING
       filename                      = 'c:test_xls.xls'
       FILETYPE                      = 'ASC'
       WRITE_FIELD_SEPARATOR         = 'X'
     tables
       data_tab                      = itab.
Thank you,

Check the below program :
REPORT ZJOINS message-id z01. .
*REPORT ZTEST3 line-size 400.
DATA : V_CHAR(1) TYPE C VALUE ''''.
data : v_field(12) type c.
data : begin of itab occurs 0,
       fld1(12) type c,
       end of itab.
start-of-selection.
v_field = '0000012345'.
CONCATENATE V_CHAR  V_FIELD  INTO V_FIELD.
itab-fld1 = v_field.
append itab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
  BIN_FILESIZE                  = ' '
  CODEPAGE                      = ' '
    FILENAME                      =
    'C:\Documents and Settings\smaramreddy\Desktop\fff.xls'
   FILETYPE                      = 'ASC'
  MODE                          = ' '
  WK1_N_FORMAT                  = ' '
  WK1_N_SIZE                    = ' '
  WK1_T_FORMAT                  = ' '
  WK1_T_SIZE                    = ' '
  COL_SELECT                    = ' '
  COL_SELECTMASK                = ' '
  NO_AUTH_CHECK                 = ' '
IMPORTING
  FILELENGTH                    =
  TABLES
    DATA_TAB                      = itab
  FIELDNAMES                    =
EXCEPTIONS
   FILE_OPEN_ERROR               = 1
   FILE_WRITE_ERROR              = 2
   INVALID_FILESIZE              = 3
   INVALID_TYPE                  = 4
   NO_BATCH                      = 5
   UNKNOWN_ERROR                 = 6
   INVALID_TABLE_WIDTH           = 7
   GUI_REFUSE_FILETRANSFER       = 8
   CUSTOMER_ERROR                = 9
   OTHERS                        = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I just tried one field in internal table,i am not sure this program help you
Thanks
Seshu

Similar Messages

  • Reading String within the single quotes

    Hi All,
    Can you please let me know, how to read a String within the sinle quote in line.
    I have to read a report into internal table and again from that I need to read a string within the single quote. Please help me in this.
    Thanks in Advance,
    Raghu

    I have the following code:
    REPORT  test.
    DATA:  v_test(05) TYPE c.
    v_test = ‘TTT’.
    I am getting this errror:
    Field “TTT” is unknown.  It is neither kin on e of the specified tables nor defined by a “DATA” statement.
    For some reason, my single quote is not being recognized from my keyboard.  I noticed that my emotion icons are not being displayed either (example:  I type and i do NOT get the smiley face on my end).
    Is there a button that I pressed that caused that?

  • When i download files , they go into subfolders such as "000000000002" within downloads, why is this behaviour and is this a bug?

    When i download files , they go into subfolders such as "000000000002" within downloads, why is this behaviour and is this a bug?

    Thanks Eric, Most files i download is from a  incident management application developed from my employer.  i use that all day long. I think you are partially correct, The application that i use may be creating these subfolders and using to put files into that.
    I will update this thread if i see that some other standard applications like safari / Mail are downloading into subfolders.
    Is some one else facing this issue??  

  • HT1620 Where do I look for the security key when I download an item.  Your website says your key is 0xD0261077

    Where do I look for the security key when I download an item.  Your website says your key is 0xD0261077?

    Your question is somewhat terse, and I might infer you're conflating the PGP key used for Apple security-related email communications with cryptographic hashes (message digests) used to verify the integrity and the origin of files, and with digitally-signed binaries.  While these areas are somewhat related, details vary.  (If you're already familiar with this stuff, my apologies.)
    The Apple PGP key is used to sign (verify) messages from the security folks at Apple, and can be to encrypt messages sent to the Apple security folks.  See this Apple Security PGP web page for details on using the PGP key for message verification and for message encryption.
    File downloads are implemented differently, and will generally involve a particular cryptographic hash or message digest (and not necessarily a PGP key), and what might be used used varies by the particular website and the download involved, with some sites using the older and insecure MD5, and with others increasingly using some variation of the less-insecure SHA cryptographic hash.  Depending on the scheme used, these can protect against corruptions, or can also be used to sign the binaries.  The system that Apple is encouraging developers to use is called Developer ID.
    Shell commands used and useful here include md5 and various openssl commands for the sha hashes/digests.
    If you have a particular public web site or file download, post a pointer and I'll have a look.

  • I recently purchased a new PC. I had backed-up my old computer on Carbonite, so I was able to transfer my iTunes library to the new computer when I downloaded my info from Carbonite. Is there a way to restore my playlists?

    I recently purchased a new PC. I had backed-up my old computer on Carbonite, so I was able to transfer my iTunes library to the new computer when I downloaded my info from Carbonite, but the playlists are gone. Is there a way to restore my playlists?
    Most of my playlists are on my iPod. If I use my iPod to transfer, will the songs double in my library? Also, how do I do this?
    Thank you for any & all info you can provide!
    Julie

    If you had backed up and restored your library properly you should have ended up with the playlists too. Did you import the media folder from the backup drive into a new library rather than restoring the entire iTunes folder?
    See also Recover your iTunes library from your iPod or iOS device.
    tt2

  • I have an external server that stores all my movies and music, is there a way to stream it to my apple tv? If not is there a way I can link the folders to itunes (without downloading files to computer) and will that make them view-able for the apple TV?

    I have an external server that stores all my movies and music, is there a way to stream it to my apple tv?
    If not is there a way I can link the folders to itunes (without downloading files to computer) that will make them view-able for the apple TV?
    If none of that works is there a way to get it working alternativly?
    Additional Information:
    Everything is linked via ethernet cable.
    I'm using a PC to set it up.
    If you have any other questions feel free to ask and I'll help where I can.
    Thank you for any help

    (I think the daughter got he better end of the deal!)   I believe if you change the password and user id one of the devices it will stop that from occurring. But I'm not the one to tell you how to do it; someone like "Illaass" (Illaass seems to know how to correct / fix almost anything!) will know how if you don't. Just look for the "cat" icon.

  • [svn:bz-trunk] 21260: Update the qa-frameworks. zip to remove all comments from the base xml when merging config files.

    Revision: 21260
    Revision: 21260
    Author:   [email protected]
    Date:     2011-05-16 07:46:54 -0700 (Mon, 16 May 2011)
    Log Message:
    Update the qa-frameworks.zip to remove all comments from the base xml when merging config files.
    Modified Paths:
        blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Try options=('!makeflags') in PKGBUILD.

  • With the latest upgrade to iPhoto, Keywords no longer display under the photo, even when Display Keywords is turned on. Does anyone know why?

    With the latest upgrade to iPhoto, Keywords no longer display under the photo, even when Display Keywords is turned on. Does anyone know why?

    Keywords have been moved into the Info tray at the right.  Don't know why it was changed.  You can send a request to change it back to Apple via http://www.apple.com/feedback/iphoto.html.
    OT

  • I currently have Mac OSX 10.4.11, and I just purchased OSX Snow Leopard. Can I keep my original version of iMovie along with the new one when I download the new operating system?

    I currently have Mac OSx 10.4.11, and just purchased OSX Snow leopard.  Can I keep my original version of iMovie along with the new version when I download the new operating system?

    I purchased the Mac Box Set which includes Snow Leopard, iLife, and iWork.  So after downloading the box set, will I be able to keep my iMovie 6.0.3?

  • HT1904 I'm having trouble getting the digital booklet when I download an album. What do I need to do?  I get an error message saying the booklet can't be downloaded at this time.

    I'm having trouble getting the digital booklet when I download an album. What do I need to do?  I get an error message saying the booklet can't be downloaded at this time.

    Hello Bdev15,
    I would be concerned too if the songs I purchased from iTunes were not downloading to my iPhone. You have taken some great troubleshooting steps already, and thank you for providing the details of the steps you too.  I have a few additional suggestions to get it downloaded to your iPhone.
    First, I recommend checking to see if the download was interrupted:
    If your download was interrupted using your iPhone, iPad, or iPod touch
    From the Home screen, tap the iTunes app.
    For iPhone or iPod touch, tap More > Downloads. For iPad, tap Downloads.
    Enter your account name and password if prompted.
    Tap the blue download arrow to resume.
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    If the songs still do not download, next I recommend downloading the songs when connected to another network.  For example, if you are using the cellular network, you could switch to Wi-Fi, or you could try an alternate Wi-Fi network.  Follow the steps in the section titled "iPhone, iPad, or iPod touch > Music" in the article below to download the songs:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you are still not able to download the songs, you can report an issue with these purchases using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Best,
    Sheila M.

  • How to Delimit the Single quotes ( ' )

    Hi friends.
    how to delimite the single quotes ( ' )  or
    how to move the single quotes in fields.
    any body pls reply
    thanks
    pauldharma

    Hi,
    Use for single quotes and that will result in a single quote.
    i.e.
    lv_quote = ''''.
    Darren

  • Download files in excel format

    Hi,
    Can anyone help me for downloading file in excel format? I have scheduled a job repeated everyday at a particular time, but it dumps a text file, NOT in excel format. My programme is an ALV.
    Code snippet would be verymuch helpfull.
    Thank,
    Thushara.

    Hello Thushara,
    here is a code i am giving you . It will take the data from a database , and download it into the excel format..
    You just can customize this program to download the data from an ALV ....
    Here is the sample code...
    REPORT  ZKUN_FILE4                              .
    TABLES: USR03,DD02L.
    DATA: ZX030L LIKE X030L.
    DATA BEGIN OF ZDFIES OCCURS 0.
         INCLUDE STRUCTURE DFIES.
    DATA END OF ZDFIES.
    DATA: BEGIN OF FLDITAB OCCURS 0,
          FLDNAME(11) TYPE C,
          END OF FLDITAB.
    DATA ITABUSR03 LIKE USR03 OCCURS 0 WITH HEADER LINE.
    DATA TNAME LIKE DD02L-TABNAME.
    SELECT * FROM USR03 INTO TABLE ITABUSR03.
    TNAME = 'USR03'.
    PERFORM GETFIELEDS.
    PERFORM SHOW123.
    FORM GETFIELEDS.
         CALL FUNCTION 'GET_FIELDTAB'
          EXPORTING
              LANGU              = SY-LANGU
              ONLY               = SPACE
              TABNAME            = TNAME
              WITHTEXT           = 'X'
          IMPORTING
              HEADER             = ZX030L
          TABLES
              FIELDTAB           = ZDFIES
          EXCEPTIONS
              INTERNAL_ERROR      = 01
              NO_TEXTS_FOUND      = 02
              TABLE_HAS_NO_FIELDS = 03
              TABLE_NOT_ACTIV     = 04.
         CASE SY-SUBRC.
            WHEN 0.
              LOOP AT ZDFIES.
                   FLDITAB-FLDNAME = ZDFIES-FIELDNAME.
                   APPEND FLDITAB.
              ENDLOOP.
            WHEN OTHERS.
                 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  with  SY-SUBRC.
          ENDCASE.
    ENDFORM.
    FORM SHOW123.
    CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
         EXPORTING
              FILE_NAME                 = 'C:\USR03.XLS'
              DATA_SHEET_NAME           = 'USER LIST'
        TABLES
             DATA_TAB                  =  ITABUSR03
             FIELDNAMES                =  FLDITAB
        EXCEPTIONS
             FILE_NOT_EXIST            = 1
             FILENAME_EXPECTED         = 2
             COMMUNICATION_ERROR       = 3
             OLE_OBJECT_METHOD_ERROR   = 4
             OLE_OBJECT_PROPERTY_ERROR = 5
             INVALID_FILENAME          = 6
             INVALID_PIVOT_FIELDS      = 7
             DOWNLOAD_PROBLEM          = 8
             OTHERS                    = 9.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    Hope this solves your problem.
    Regards,
    Kunal.
    Note : Reward points if found useful.

  • New windows 7 pc,have updated my itunes to newest version. All purchases are on screen as being on the cloud but when I download the files, they stay in place until I shut the computer down. on restart, they 'cannot be located' any ideas?

    This is really annoying me. I have a new pc. running windows 7. All my media is showing as 'on the cloud'. I don't always have access to internet so I want the files on my pc. when I download from the cloud the songs play but seem to dissappear when I restart the pc. says file cannot be located and the file dissappears from my flashdrive I have it stored on. What am I doing that's wrong??

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • When I download files from the internet, it shows the file downloading in the download box, but then as soon as it's done it just disappears. How can I fix this?

    This has been happening for several weeks.

    It sounds like perhaps the file doesn't have an extension that the system recognizes. Is this all files, or just one specific one, and if so, which? What is the name (and extension, if it has one) of the downloaded file? What kind of file do you *expect* it to be? (PDF, or whatever). Renaming a file with the appropriate extension can often fix that kind of problem.
    Matt

  • When I download files now, the files don't show up in the downloads. How can I fix this?

    My download status bar has vanished. Anything I download does'nt show up anywhere. Still downloads files at times. Very frustrating.

    See:
    *Tools > Options > Privacy > History: "Remember download history"

Maybe you are looking for

  • Trim Size in Properties?

    We make PDF proofs for customers to proof read and to evaluate.  Many customers get confused when a PDF is sent with crop marks and they  think the finished size is the document size. Is  there a way, in Reader, to show the Trim Size of a document? I

  • HOW MANY TYPES OF FLAT FILE FORMAT

    hi gurus...... Basically there r 3 types of flat file format ASC DAT BIN i am correct or wrong??? what is the difference between these formats?

  • Error 1611- what's up?!

    so i downloaded the new software but my phone cant be restored. error 1611- the ipod "ipod" could not be restored. an unknow error occurred. i'm on hold at the apple tech. support. ugh.

  • RAID for Intel based Xserve

    Why haven't we heard anything about a RAID card for the Intel based Xserves? Why did Apple release this product without a RAID card? Can anyone shed any light when and if Apple will provide a RAID card for the new Xserve? Will one of the older cards

  • Is there an add-on for FF 4.0.1 to change the image on a bookmark icon?

    I would like to change the plain folded corner piece of paper image on my toolbar bookmarks to a custom image. The add-ons that used to do that don't work with FF 4.0.1. Is there a way to do this in the latest version of FF?