I want to download the fields of my table into an excel sheet ?

hi all,
i would like to download the ztable that i have created along with the fields in the ztable.
how do i download it.
can anyone throw light on this
regds
haritha

Hii..
PLS CHECK THE SIMPLE CODE BELOW...
data: begin OF itab occurs 0,
matnr like mara-matnr,
end of itab.
data : begin of it_fieldnames occurs 0,
name(100),
end of it_fieldnames.
it_fieldnames-name = 'MATNR'.
APPEND IT_FIELDNAMES.
select matnr from mara into table itab UP TO 10 ROWS.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = 'C:\Documents and Settings\sampath\Desktop\flatfile.txt'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
<b>TABLES
DATA_TAB = itab
FIELDNAMES = IT_FIELDNAMES</b>
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Reward if Helpful

Similar Messages

  • How to download the ALV Hierchial Tree Data to an Excel sheet.

    Hi All,
    Can any body please let me ,if there is any possibility to know How to download the ALV Hierchial Tree Data to an Excel sheet.
    If yes, please let me know how could this can b acheived.
    Regards,
    Rohini.

    Hi Rohini
    There is no such functionality provided by SAP to download ALV Tree Hierarichal Tree into excel sheet .
    If you had this kind of senario then i can propose one solution create two radio buttons one is to display in ALV Tree Format and the other is classical report which you can download it for futher process
    Regards
    Hitesh Batra

  • How to download values in an internal table into an excel file

    is there any fn module to download the values in an internal table into an excel file..

    hi
    the function module "GUI_DOWNLOAD"  downloads the data from
    an internal table into a file (can be xl, dat ,doc etc) .
    Plz follow the usage below ;
    Parameters : pa_pfile LIKE rlgrap-filename OBLIGATORY.
    Data : lv_filename TYPE STRING.
    lv_filename = pa_pfile.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
       BIN_FILESIZE                  =
         FILENAME                      = lv_filename
         FILETYPE                      = 'ASC'
       APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
       HEADER                        = '00'
       TRUNC_TRAILING_BLANKS         = ' '
       WRITE_LF                      = 'X'
       COL_SELECT                    = ' '
       COL_SELECT_MASK               = ' '
       DAT_MODE                      = ' '
       CONFIRM_OVERWRITE             = ' '
       NO_AUTH_CHECK                 = ' '
    IMPORTING
       FILELENGTH                    =
       TABLES
         DATA_TAB                      = tb_download         " table data to b downlaoded
      EXCEPTIONS
        FILE_WRITE_ERROR              = 1
        NO_BATCH                      = 2
        GUI_REFUSE_FILETRANSFER       = 3
        INVALID_TYPE                  = 4
        NO_AUTHORITY                  = 5
        UNKNOWN_ERROR                 = 6
        HEADER_NOT_ALLOWED            = 7
        SEPARATOR_NOT_ALLOWED         = 8
        FILESIZE_NOT_ALLOWED          = 9
        HEADER_TOO_LONG               = 10
        DP_ERROR_CREATE               = 11
        DP_ERROR_SEND                 = 12
        DP_ERROR_WRITE                = 13
        UNKNOWN_DP_ERROR              = 14
        ACCESS_DENIED                 = 15
        DP_OUT_OF_MEMORY              = 16
        DISK_FULL                     = 17
        DP_TIMEOUT                    = 18
        FILE_NOT_FOUND                = 19
        DATAPROVIDER_EXCEPTION        = 20
        CONTROL_FLUSH_ERROR           = 21
        OTHERS                        = 22
    IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards
    Pankaj

  • Mail - I don´t want to download the whole history from Hotmail into my Mac

    Hello,
    I don´t know how to just use the Mail in my MacBookPro just as I do in my iphone. I have a Hotmail account with many e-mails that I keep. And I want them to stay there in the Hotmail server only. I don´t want to download them all into my Mac, for what?? But I would still like to use Mail for reading (specially new) Hotmail mails, and to send some when I use my Mac.
    Thanks to anyone that could help on this!
    Regards

    Do you have Internet Security Software turned on in your Internet Explorer?
    I turned mine off, as I have Norton AV. Go into Internet Explorer and check to see if you have that on and try turning that off...and then try to get back onto FF. You may have to restart your computer, I'm not sure, as I'm not a techie. I just know that the Internet Security Software clashed with my Norton AV.
    Good luck!!!
    Donna
    PS Go with the user's suggestion above me, sounds the right way to go...thank God for the techies, eh? :)

  • How to include all the fields of a Table into a Structure.

    How to include a Complete Table into a Structure.
    I want to include all the fields of KNA1 into a structure say W_KNA1(A local structure declared within a program)....How this can b acheived.
    Thanks in Advance.

    if i want to use INCLUDE STRUCTURE.....how will it work.
    TYPES : begin of ty_kna1,
                      INCLUDE STRUCTURE KNA1,
                  end of ty_kna1.
    tell me this is correct stmt.

  • Downloading the Queries(SAP QUERY) via Background to Excel sheet

    Hi Abapers,
           Is it possible to download the Queries into an Excel Format via Background onto the Application Server / Presentation Server in the Excel format.
       If Possible, Please provide me the solution.
    Thanks in Advance.

    It is not possible to download Query results to Excel in background. (Where would you put the file name, for starters?) But you might be able to get output in a spool, which can then be saved in a plain text file and then uploaded to Excel.

  • Good evening I want to download the ultra music festival but iTunes will not let me i live in Guatemala

    Good evening I want to download the ultra music festival but iTunes will not let me i live in Guatemala

    When you sort playlists, you either ask for sorting on a certain criterion (ie, alphabetically by name), or you choose yourself. You can't mix both. To automatically sort, you click on the field/column you want (eg, Name, Date Added, etc). To manually sort, click on the heading for the very first column (the numbered column). Now you can drag tracks around as desired.
    Matt

  • I did made a copy of all my CC programms. for using on my other workstation. now is the CC desktop app not syncing the programme information. it do not see or sync the installed programms properly. what can i do. i do not want to download the hols set. be

    I did made a copy of all my CC programms. for using on my other workstation. now is the CC desktop app not syncing the programme information. it do not see or sync the installed programms properly. what can i do. i do not want to download the hols set. because of a slow connection

    If you are getting emails from these forums then you probably accidentally clicked on one of the links on the forums page where all the questions are listed e.g. at the top right of each forum's page there is text box with Actions and Notifications in :
    So far you've posted in the iTunes Store forum :
    https://discussions.apple.com/community/itunes/itunes_store#/
    And the Using iPad forum :
    https://discussions.apple.com/community/ipad/using_ipad#/
    If on either of those forums that box says 'stop email notifications' instead of 'receive' then click on it and it should stop that forum sending emails to you.
    There are full instructions on this page for stopping emails, as there are other places where they might have been set 'on' :  https://discussions.apple.com/docs/DOC-3661
    This is your original post for iTunes Match : https://discussions.apple.com/message/22647293#22647293
    And this page lists your posts (you can click on each post on it to be taken to it's thread) : https://discussions.apple.com/people/suzettemg?view=overview

  • HT4623 hi... can someone please help me.. i want to download the latest ios, but do not have the software update option in the general settings....

    hi... can someone please help me.. i want to download the latest ios, but do not have the software update option in the general settings....

    Connect it to iTunes on a computer and update it from there.
    (73609)

  • Someone else bought an app on the store. I had already purchased the app before on my other computer, so I deleted the app on my new computer that the other person purchased. I now want to download the app again on MY account but...........

    Someone else bought an app on the store on my new computer. I had already purchased the app before on my old computer, so I deleted the app on my new computer that the other person purchased. I now want to download the app again through MY account. When I click INSTALL it asks for ID, but it shows up automatically with the other person's ID, so I delete that and enter mine instead. I then click SIGN IN, but then it says "Unknown error", then I click OK, then it says "We could not complete your request. There was an error in the App Store. Please try again later. (4)". How do I get rid of all info of other people's IDs so I can get the app through my account again?
    The app that I'm trying to download actually might have been a pirated app. But I deleted it, so why is it not letting me get it through my account?
    Please help!
    Thanks

    you may delete this discussion. I fixed the issue

  • How do I download an app I previously had on an older device, not utilizing my cloud or itunes backup. I want to download the app as if it were the first time. Right now it's only giving me the option to download from the cloud when I go to the app store.

    How do I download an app I previously had on an older device, not utilizing my cloud or itunes backup. I want to download the app as new as if I had never had it before. When I go to the app store, it only gives me the option of downloading from the cloud with the cloud icon?

    When you download something from the iCloud, it is a brand new licensed copy. Your iCloud account just contains a notation that you have this app. It isn't storing an actual copy of the app from your Mac.

  • I want to download the 1080p film version via iTunes on my PC for my iPad 3. But which version am I getting ?

    I've just bought a new iPad and want to give it a run through with a 1080p movie, so I chose Girl with the Dragon Tattoo.  I have a ceiling on my broadband download of 20GB/month.  I wanted to download the movie once onto my PC via iTunes and then sync it to the iPad and potentially to my iPhone 4S.  However, when I think I've done this download, I look and it appears, by the size of the download I've just got the SD version on my PC. I've subsequently gone back in and checked the box in my preferences to prefer 1080p to 720p.  Does iTunes, take a look at the hardware you are downloading to and make a judgement call as to whether it is up to running 1080p ? (My PC is)  I've looked a bit more closely at the boxes on my PC iTunes and indeed the buy HD box is grayed out, even I clicked the HD option on the film, and more confusing is the fact that in the HD description there is only a 720p version listed.  Now when I go to my iPad, which I synced, there is a 1080p version listed there in the iTunes store, and it tells me that the film is downloaded to my iPad.  So does anyone know which version I have on my iPad, and why on my PC version of iTunes (which is 10.6.1.7) there is only a 720p version listed, whereas on the iPad version of the store there is a 1080p version listed ? I guess the moral of the story is download via the device you actually want to use - but I'd prefer not to download multiple versions of the film for different devices and prefer not to download such large files over wifi.

    It seems you have not admin privileges on your pc. However, to circumvent that try the following. Right click your favorite browser and choose run as admin. Download the computers appropriate itunes version (32 or 64 bit) from apple's website. Again right click the downloaded installation program and choose run as admin. This should install it.
    HTH

  • My iPod touch shows up as a apple iPod camera but if i dont want to download the pics and press cancel it all dissappears. my ipod has been lost for 3 months and has not got the latest upgrade.

    My iPod touch shows up as a apple iPod camera but if i dont want to download the pics and press cancel it all dissappears. my ipod has been lost for 3 months and has not got the latest upgrade.

    Try:
    iOS: Device not recognized in iTunes for Windows
    or
    iOS: Device not recognized in iTunes for Mac OS X
    Otherwise wee need more informatin.

  • I have an iPod nano 2nd generation and I want to download the songs I have on it to my new computer, as my old one crashed with all the songs on it.  I also got a new iPod and would like to transfer the old songs onto it. How do I do this?

    I have an iPod nano 2nd generation and I want to download the songs I have on it to my new computer, as my old one crashed with all the songs on it.  I also got a new iPod and would like to transfer the old songs onto it. How do I do this?

    Ok so sorry for clogging the community!! I figured it out - you have to copy your videos into itunes manually. I did that, synched and all good!

  • I have 10.6.8 and am just installing logic pro 9. I am downloading the extra 20gig of material. I am installing Logic on my laptop as well and dont want to download the extra 20 gig again. How do i go about transferring it from the computer to the laptop?

    Hi
    I am using OS 10.6.8 and just installing logic pro 9. I am downloading the extra 20gig of material - the additional content packages. I am installing Logic on my laptop as well and dont want to download the extra 20 gig again. How do i go about transferring it from the computer to the laptop?
    Thanks

    And now a second newbie question. I have downloaded the additional content and booted up logic for the first time, but the apple loops have not installed and logic is asking me to reinstall the apple loops. But how do I do that? I can see they are in the libray so have downloaded.
    Thanks

Maybe you are looking for

  • Visio 2010 Link a Stencil to Telnet

    Good morning everyone, I have been searching Google for two days now on how to link a Visio 2010 Stencil to Telnet so that when you hold control and click the stencil it brings you to the telnet login prompt for that router or switch. I went to inser

  • Seperate Log file for web app

    I am running a web app under WS 6.1 and uses the java logging. I i turn the logging to "finest" on the virtual server, i get my app finest and the vertual server finest in the same file! What i need is to seperate these 2 in two files. or is it possi

  • Error in cost element creation

    Hello, I have just checked the result of my batch input for cost element creation. For asset cost element (category 90) I use the LSMW Forother cost element (charge, products...) I use the classic CO-CEL settings. For example: - if I define the follo

  • Galaxy Nexus Hotspot timeout

    Has anyone else been having timeout problems using the Galaxy Nexus Wi-Fi hotspot feature?  I'll be on my computer using it and at times when I try to load a page my connection will time out and I either need to restart the hotspot on the device or t

  • How to issue payments againsta sales order.

    Hai Friends, I want to show payments done by a particular customer against a sales order, like when ever a payment is done for a sales order ,an idoc need to be generated carrying information related to customer,billing document number and the amount