Header in Excel when downloading using GUI DOWNLOAD

Hi,
I have a requirement where i need to download data from table into an excel sheet on a location in PC. I used FM 'GUI DOWNLOAD' for this purpose. Now, i need a header to be displayed in the excel when i download. The header should contain a date which is entered during the execution as a screen input. How to display this date as a header in the excel sheet when using GUI DOWNLOAD.

Hi,
If you only want the header to be displayed in the first row, you can do as suggested by Ikshula.
If you want a real excel header, you can use OLE and set the property ActiveSheet.PageSetup.LeftHeader (or CenterHeader, or RightHeader) to the value "&D". This will add the current system date as header (you can of course pass any other value between the " ").
Kr,
m.

Similar Messages

  • How to come bak on Selcton Scrn in case of err while using Gui Download

    Hi All,
               I am using GUI Download function in my report.Now i f the excel to which i am donloading is already open there comes an error message saying 'Access to file is denied' and program is terminated.Is there any way so that after the error message program comes to Selection Screen only.
    Thanks in Advance,
    Saket.

    Hi Saket.....
    In case of error i.e sy-subrc ne 0.
    pass below code:
      IF SY-SUBRC <> 0.
        MESSAGE S000(0K) WITH 'Error in downloading file. Returncode' SY-SUBRC.
      ENDIF.
    Regards,
    Piyush Mathur
    Rewards Points,if helpfull

  • Without giving the path - file is transfereed using gui download

    i use GUI download to download the internal table data in the path specified by the user.
    But there is a strange behavoir in this.
    i havent given the file path to download.
    But i have given only the file name (notthedrive say
    In the file output path : sample
    once i execute the it shows the message this much bytes transferred.
    but the file is transferred and stored in some location.
    I dont know y this happens in my progrram
    only if i give the directory path  the file is to be strored.
    other wise it shouldnt .
    How to solve this.
    please help
    thanks

    Friend i have given a sample code ...
    i couldnt copy from there.
    Just execute the code and check without giving the path but give only any name . i
    it will say bytes transferred.
    Please check
    *& Report  Z_POP_UP_DOWH
    report sdfjksdfjk.
    selection-screen begin of block g2 with frame title text-001.
    parameters: p_file like rlgrap-filename default 'd:\uma.csv'.
    selection-screen end of block g2.
    DATA: filestring    TYPE string.
    data: returncode type i.
    DATA : itab_Data type table of mara,
           wa_data like line of itab_data.
    DATA: BEGIN OF fields OCCURS 2.
            INCLUDE STRUCTURE sval.
    DATA: END OF fields.
          CLEAR fields.
          fields-tabname     = 'RLGRAP'.
          fields-fieldname   = 'FILENAME'.
          fields-value       = p_file.
          fields-field_attr  = '00'.
          APPEND fields.
          CALL FUNCTION 'POPUP_GET_VALUES'
               EXPORTING
                    popup_title     = text-003
               IMPORTING
                    returncode      = returncode
               TABLES
                    fields          = fields
               EXCEPTIONS
                    error_in_fields = 1
                    OTHERS          = 2.
          CHECK returncode EQ space.
           filestring = fields-value.
           select * from mara into table itab_data up to 10 rows.
          CALL FUNCTION 'GUI_DOWNLOAD'
               EXPORTING
                    filename                = filestring
                    write_field_separator   = ','
               TABLES
                    data_tab                = itab_data
               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 s999(b1) WITH 'File ' filestring
                                  ' NOT created!'.
          ELSE.
            MESSAGE s999(b1) WITH 'File ' filestring
                                  ' Created successfully!'.
          ENDIF.  "Check on download success
          WRITE : 'Download Completed'.

  • I want to update my ipad2 when i used to download the os it shows error as network timed out and i repeated again and again always it shows that network timed out but the apps are downloading but large apps are't why?

    i want to update my ipad2 when i used to download the os it shows error as network timed out and i repeated again and again always it shows that network timed out but the apps are downloading but large apps are't why?

    Try temporarily turning off all your firewall and antivirus software until the download has completed.

  • When i used to download a game i use to have to click to allow certain downloads. now i cannot find the bar. it used to appear at the top of the screen

    when i used to download a game or a programme i use to have a tab that used to ask if i allow the programme or an extension to download. now i cannot find it any more with the new firefox. can you tell me where to look?

    You can check if you see a download action for that file tab in Tools > Options > Applications
    You can delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • This has happened on several computers. I can download using video download helper with on problems until I attempt to download "Dishonorable Disclosures" on Yo

    This has happened on several computers. I can download using video download helper with on problems until I attempt to download "Dishonorable Disclosures" on You Tube once a download attempt is made on that video download helper stops working for that video or any other video. Could this be a virus or malware? How do I fix download helper after this happens?

    Which movie do you mean?
    Try to clear the Google cookies.
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies
    You can also try to delete the webappsstore.sqlite file in the Firefox Profile Folder to clear the local storage.
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Title not getting exported to excel when i use ALV oops.

    Hi Friends,
               I have split the container and used cl_dd_document to display my Title data in TOP of page ( Container 1 ) and displayed my table data in the second container. I'm getting the output perfectly but when i try to export to the excel sheet, only table data ( i.e data in Container 2 ) is getting downloaded. i'm not able to bring the title ( Container 1 ) details in the excel while exporting . pls help. .
    Note : I also want the title details to be displayed when i click on the print button.
    I dont get this problem when i use REUSE_ALV_COMMENTARY_WRITE but in my senario i cant even use this FM as it doesn't supports more than 60 characters.

    Since you have two different container for Header & ALV data, the buttons on ALV grid ONLY will only consider the data within itself.
    To be able to download header and data both, you need to add additional buttons to either PF-status or ALV and write a code to do that.
    Regards,
    Naimesh Patel

  • Download using a download manager

    Hi,
    is it possible to download and install Latest Nokia software and maps data using a download manager so that I do not have to start fresh after an internet disconnection. 
    These files are 100s of MBs and my net connection is not very good and drops, then I have to start fresh again, if I use Nokia Ovi Suite to upgrade software and maps data for my Nokia E71.
    Can any one help please ?

    1 CD oracle 9 is damaged
    archive gz is OK but cpio is not OK
    for person from OTN Oracle - lease check this archive OK?
    I'am trying 5x , not effect (LeechGet, Flashgeta nd others)
    2 CD and 3 CD is OK :-)

  • I have preordered books and when they were available the download was not completed, and it now the books show in my library but they indicate paused? i have gone to the purchased tab in the store and am not able to download using the download tab???

    I have pre ordered books, when available download was not completed, it now shows book in library but indicates " paused" i have gone back to store and purchased tab and tried to download again but it is not allowing?

    Sorry, it's not a device it's a resource that's missing. None of my books will open.Please help

  • How do I stop Apple Script from leaving a Text.txt file with each image downloaded using Photo Downloader in Adobe Photoshop CS4_Bridge???

    I use Adobe Photoshop CS4_Bridge _Photo Downloader to import images from CF Cards into my 11" Mac Book Air.  I have an issue with the Text files
    that seem to accompany each and every image that I do not need.  How do I stop Apple Script (which I assume is the culprit in this case)  from interferring with this process.

    Your iWeb Site is stored not on your iDisk, but on a file named Domain.sites in your ~/Home/Library/Application Support/iWeb/ Folder.
    If , for whatever reason, you wipe your HD and/or lose this file (Get a new computer, Re-Install your OS, Stolen Laptop, Crashed HD, Etc.) without backing-up your Domain.sites file then you will have to re-build your iWeb sites from scratch again.
    Of course you can edit your Published HTML files in a different program such as Dreamweaver or even Text Edit. You just can't edit Published HTML files in iWeb. Not at this time at least.
    Use iWebBackup to backup your Domain file to a Blank CD or DVD. Backing up your Domain file to another folder on your computer is not fully backing it up. If your computer gets stolen you still lost the file but if you have your Domain file burned onto a CD you have a backup!
    Download iWebBackup Here
    You can use iWebExtender to automatically consolidate your files into one folder and delete multiple images.
    http://iWebFAQ.com

  • HT3887 Hi I have just got some new wWas iireless head phones and when I use them with the Bluetooth on my iPhone 4S it breaks up all the time even from short distance but when using my girlfriends iPhone 5 or iPad it's fine no problems atall!!! Any ideas

    Hi I have just got some wireless head phones and while using Bluetooth with my iPhone 4S the sound breaks up all the time but if I use a friends iPhone 5 or my iPad it's fine no problems atall! Any ideas what the problem could be people??????

    Unpair the headset from the phone with the problem. Restart the phone (hold HOME and SLEEP until an Apple logo appears), the pair the headset again. Also, look for things nearby that may be causing interference in the Bluetooth band. Cordless phones are a common cause of interference.

  • When I download using itunes it goes to my computer instead of my ipod nano

    When I download using itunes download goes to my computer instead tf myipod nano

    On the iPod go to Settings>Store and turnoff automatic downloads.  You can also go to iTunes>Preferences>Store and turn it off too.

  • GUI download, how to retain format of decimal places

    Hi everyone!
    I have a program that downloads data to excel file using GUI Download. The values of the amount in the ALV display are 11.90, 11.90- which is correct because it has two decimal places. But the problem now occurs in the excel file. The values are now 11.9, 11.9-.
    Do you know of any method that will retain the format of the values when it is already in the excel file.
    The format of my decimal notation is 1,234,567.89.
    Thanks in advance.

    Thank you!
    But I need to have the format of the numbers in the excel the same as the format in the ALV <b>without changing the format of the cells in the excel file</b>. It has to be changed in the program.
    Actually there are also amounts that are being displayed in excel file with 2 decimal places the same as the ALV display. But some of the amounts were changed when it comes to the excel file, and I don't know why this happens.
    Thanks.
    Message was edited by:
            Betsie Camoro

  • How can I disenable the EXCEL field format when use ALV download to excel ?

    Dear friends,
         I have a problem with the ALV download to EXCEL. One field Value in ALV is like u2018-abcdeu2026u2019.the character u201C-u201Cis the first   position  in field value.when I download  the value to EXCEL,the field value u2018-abcdeu2026u2019 changed u2018=-abcdeu2026u2019 in EXCEL.how can I remove u2018=u2019 in EXCEL when I down to excel used ALV.
    I add a space in u2018  -abcdeu2026u2019,So this value can be download to Excel .
    Have you any solve method?
    User does not use excel logo button to download.
    User use Local fileu2026 button to download
    Thanks
    Sun

    add a single quote to the beginning of the field.
    like:  '-abcde
    in excel it will be shown as : -abcde

  • NO header detail appears when downloading to excel from web template

    When we run our queries via a web template and through the portal we get the results which shows the query title and report details. When we try to download this to excel the header(report title etc. )information doesn't come down but all the rest of the report does. If we go in again and change the variable values for characteristics (query is being changed and run the web template (via portal)again and download to excel the header (report title etc.)the whole report title and report detail now appear. Looking for someone who has resolved this problem.

    For anyone who is interested, this was caused by our email client, not BIP.

Maybe you are looking for

  • Send Email from approval task form

    In my reusable workflow, I have added an approval action. Everything works perfectly. What I want is - When approver comes to approval form, he should be able to send notification email to the initiator (From that form) that he has started working on

  • Help, lost all the songs on my iPod when checked the box titled "Replace all items when Autofilling" in my Autofill Settings window.

    Help, I lost all the songs on my iPod when I deleted a few songs from my iTunes Library, checked the box titled "Replace all items when Autofilling" in my Autofill Settings window, and then tried to Autofill. Note that I do not purchase songs from iT

  • IPhone constantly wants to 'set up' and restore a backup

    Hi all.  Have installed the iOS 5  in my iPhone and after restoring a backup so that my music appears again, whenever I connect said iPhone to iTunes all I ever get now is SET UP YOUR iPHONE This Computer has previously been synced with an iPhone or

  • How to upload a custom button on Dreamweaver cs5?

    Hello,      I would like to add a custom "View Cart" button onto my website. I went onto a random website where I was able to create a custom image for my view cart button. The button I got was called button.php. I checked the document properties and

  • How to create runnable JAR in Eclipse

    I have a project in Eclipse with many classes. Whenever I try to create a runnable JAR, the JAR file created always contains all the classes of the project, regardless whether they are really used or not. Is it possible to create a runnable JAR in Ec