Download to Excel while running in Background

Hi,
I want to download the Report Output ( in internal table) to Excel ( location selected by user on Selection Screen), and i am running the Report in Background ( F9). Execution Time of Report is huge, user will fill the selection criteria, and will give the file name and execute the Report in Background.
Please suggest me suitable FM to achieve the same, provided there should not be any pop-up after execution begins.
I also have to Download the contents to Excel in such way, invidual column of internal table should reflect as invidual column in Excel. Ex : 09/2004 should come in single column of Excel.
Thanks & Regards,
Akash

First, if you are looking to download to a PC from background, you can't do that.  THe background has no connection to a frontend PC.  You can however,  write your program to update a custom table.  Then write another frontend program that reads this table and allows the user to download the data to excel and put it anywhere they want on there PC.  You should use the function module GUI_DOWNLOAD, or the class/method  CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD.
Regards,
RIch Heilman

Similar Messages

  • Field not getting updated in BDC while running in background

    Hi Friends,
    I'm executing a BDC transaction to update the Alternate Tax Classification (VBAK_TAXK1) field in Sales Order. I'm passing value 1 to the field and then saving it directly. While running the BDC in background, the field is not getting updated. On the other hand i checked it running in foreground, the field got updated without any error message.
    Can anybody help me advicing why the field is not getting updated in background?
    Thanks,
    Bestin

    Hi ,
    Check the the log if you are using a session method and if call transaction then capture the messages for the same,
    Because in the foreground the BDC will update the records even if there is a warning message nut in background it will not update. So check the data which you are inserting and try avoid the warning messages also so that it can run smoothly in backfround.
    Thanks & Regards
    Jyo

  • Regarding email attachement while running a background job

    Dear Experts,
    When i am running a background job for any ALV report (standard or custom report) <b>automatically</b> the output is going to an e-mail address as a HTML file attachment. I want to change it to EXCEL file attachment.
    Please help me on this issue..
    Kind Regards,
    Tom

    Hi Prasanna,
    Thank you for your reply.  I am not using any code for sending the mail to the recipient E-mail address, system is taking care automatically.
    Few settings were done in SCOT transaction from basis, but no where they mentioned file type is .HTM.
    From my end i have done the following steps.
    1. go to SM36, give a job name.
    2. press on step push button , give the ABAP program name ( any ALV program, i mean standard report or Z report), give the variant and save.
    3. Come back . press on Spool list recipient push button give the e-mail address, press copy button on the  pop up window.
    4. press on start condition button , press on Immediate option and save.
    5. again press on Save button in the screen.
    now here job will be scheduled immediately, go to SM37 check your job status, if it is completed, automatically system is sending an e-mail with the ".HTM" attachment file output to the recipient e-mail address.
    i am not doing any coding part here.
    my concern is system should send the e-mail with ".XLS" file output attachment.
    please advise on this.
    Regards,
    Tom.

  • Report is giving wrong output while running in Background ?

    Hi,
    We have a report program which gives the correct output while running it in forground(or manually) but when we run it in backgroud it gives the wrong output. (The printout goes to the wrong printer.)
    I've read in a SAP doc that:
    NEW-PAGE PRINT ON  even gives unpredictable
    results when the print parameters are incomplete; and it suggested to use FM 'GET_PRINT_PARAMETERS to validate the print parameters before NEW-PAGE PRINT ON event . I tried the same but still our report is sending the printout to the wrong printer while running it in background.
    Other events used in the program are AT NEW and AT LAST .
    Can anyone confirm me NEW-PAGE PRINT ON, AT NEW and AT LAST  events work correctly in background mode also.
    Thanks,
    Bhavana

    hi
    good
    NEW-PAGE PRINT ON should be work in the background also,check your syntax with the below syntax,if still it is going to the different printer in the background than check with the configuration setting of printer for the particular report that you r printing,sometime it happens that even in the foreground the correct printer ideanfies but in the background that same printer didnt identify.
    NEW-PAGE PRINT ON
        NEW-SECTION
        PARAMETERS pripar
        ARCHIVE PARAMETERS arcpar
        NO DIALOG.
      DO 440 TIMES.
        WRITE (3) sy-index.
      ENDDO.
      NEW-PAGE PRINT OFF.
    ENDFORM.
    thanks
    mrutyun^

  • Error while running in background for inherintance

    Hi All,
    i am inherinting the customised class from the standard class
    CLASS zcl_history DEFINITION INHERITING FROM cl_gui_alv_grid FINAL.
    But while running in the background it is showing fatal error .

    Because there is no GUI to communicate while your program is running in background.
    Regards,
    Naimesh Patel

  • HT204407 Find my Friends app signs me out even while running in background. How can I fix this?

    This happened before and after updating the OS to iOS6. If I open FmF, sign in, it won't stay signed in. I can't use the alerts because after a time, even if I leave the app running in the background, it signs me out. I can still be found by others but can't be informed when friends reach locations.
    My husband and I purchased the same phones at the same time, and his does not have the same problem. We sync using the same Apple ID and share apps. The only issue I can imagine would be a setting that differs between phones but have not been able to nail it down.

    Try creating a passcode for your device in settings. This means you need to enter the passcode before accessing anything on your device, this way you will stay signed into the FmF app even while running in the background and it will not require you to sign in every time you launch the app.  However, once you remove the passcode to your device in settings, the FmF app will again require you to sign in whenever you launch the app. I think this is for security reasons.
    Hope this helps.

  • Kill Excel Sheet running in background

    Hi all,
    My requirement is to kill excel sheet running in task manager.
    How to handle auto-killing the Excel spreadsheet in sap on click of back button in SAP GUI.
    Kindly provide me the sample code.
    Regards,
    Sathish Donthula

    Not kidding, try to introduce the call of FM LMBP_RESOURCE_LOGOFF for long running excel 
    Cheers
    Amit.

  • Passing a message while running in background between two different program

    Hi all,
    I am calling a report program(say Y) from another program (say X).
    I want to pass a message from Y to X and i want to print that meesage in program X in the screen ,if X runs in foreground and if the program X runs in background i want to print that message in spool .
    i tried by using a subroutine ie by passing the message to the calling program ..<b>PERFORM f_print_msg in program ZCTE0012_CR_MARK_RELEASE USING  lv_msg</b> but how will i catch there.since this is a job i am getting some job related error too'....please help in solving this issue

    Hi Hemavathi,
    the only think that I can think of now is inserting that message in a database table, and then read it from the another program.
    I hope it helps. Best regards,
    Alvaro

  • Download file from program run in background

    Hi. I have a program that downloads the data into the application server. I need to download the data from the application server to the local pc.. can I do it in the same program?

    Hi katchak,
    1. can I do it in the same program
    Ofcourse not.
    2. BCOS, that program will run in backround,
       and at that time,
       no GUI is available !!!
      (So it won't work)
    regards,
    amit m.

  • Regarding Spool issue while running in background

    Hi All ,
    i am getting some issue i am executing one report in background so the report output of the spool format is disturbed but while i am executing same report in foreground everything is printing perfectly.
    So please suggest me where i missed the scenarios.
    Thanks,
    Venkata Pradeep.

    Have you tried to set the format properties?
    Execute in Background->Properties Button->Format.
    Regards.

  • Downloading After Effects while running OS X

    I downloaded After Effects CS6 11.0 on my MacBook Pro running OS X 10.10.1. When I try to open the application I get this message: You can’t use this version of the application “Adobe After Effects CS6” with this version of OS X. I can't find the solution. Please help. Thanks

    After Effects good to go with Mac OSX v10.10 (Yosemite) | After Effects region of interest
    Can't launch | Mac OS X 10.9 (Mavericks)

  • Firefox opens when downloading PDF file while running IE9

    Having problems displaying a PDF file (very low resolution & bad contrast). So I tried IE9. When I click on the link, Firefox opens to display the PDF "Swett/Sweet", even when Firefox is not running.
    Page with the file "Swett/Sweet" is pg 34 at this URL https://www.familysearch.org/learn/wiki/en/images/d/d8/Digitalbooks2012julygenealogies.pdf
    Other files seem to be OK. Was told by the Admin at familysearch.org that they could not duplicate the problem but were using Chrome.

    Usually when you uncheck that setting, the browser will ask you whether you want to Open or Save the file. Do you get that prompt, or just nothing?
    I've probably used IE9 for less than 5 minutes, so if there is something new about the way it handles PDFs compared to earlier versions, I wouldn't know.

  • When I download an app while running iTunes from an external hard drive, the app is automatically saved to the my music folder on my desktop.

    Also, when I move an updated app from the my music folder to the external hard drive, it no longer automatically deletes the old version of the app in the folder.

    Hi, I was waiting for somebody with experience to pipe in, but as I understand it it'll be that way for upto 5 users if your Sharing iTunes.

  • Download an excel file in background mode

    Hi All,
    I need to download a file from a ABAP  report to the local workstation in background mode. I tried GUI_DOWNLOAD but it is failing in the background.
    Is there any way to download the excel file in the background. I am thinking of generating the spool.
    Please let me know if anybody has worked on the same requirement. Any help would be highly appreciated.
    Thanks a lot.
    Regards,
    Priti

    You be able to use the function "WS_DONLOAD" ?
    parameters: p_fnam like  rlgrap-filename memory id fnam obligatory.
    data: begin of t_registro occurs 0,
            registro(1000),
          end of t_registro.
          describe table t_registro lines sy-tfill.
          if sy-tfill gt 0.
            l_tam = strlen( p_fnam ).
            call function 'WS_DOWNLOAD'
                 exporting
                      filename                = p_fnam
                 tables
                      data_tab                = t_registro
                 exceptions
                      file_open_error
                      file_write_error
                      invalid_filesize
                      invalid_type
                      no_batch
                      unknown_error
                      invalid_table_width
                      gui_refuse_filetransfer
                      customer_error.
            if sy-subrc <> 0.
              open dataset p_fnam for output in text mode.
              if sy-subrc = 0.
                loop at t_registro.
                  transfer t_registro to p_fnam.
                endloop.
                close dataset p_fnam.
                write:/ 'Se genero el archivo:', p_fnam(l_tam).
              else.
                write:/ 'No se pudo generar el archivo:', p_fnam(l_tam).
              endif.
              close dataset p_fnam.
            else.
              write:/ 'Se genero el archivo:', p_fnam(l_tam).
            endif.
       endif.
    I hope this works for you.
    See ya.
    Ar@

  • I got a MAJOR virus while running on Windows...what to do now?

    I made the mistake of downloading a torrent while running on Windows, and I ended up getting the blue screen of death. I don't need to use Windows anymore anyways, but I'm worried it's going to effect my MacOS. By completely removing and uninstalling Windows, will that take care of the problem?

    There are attacks against Cisco routers, but he didn't say his router was his concern.
    There is malware that attacks memory, master boot record, page file, tries to disable antivirus, poisons the DNS, etc. Lots of nasties. Windows Vista and 7 are more secure than XP ever will be.
    There is / was malware embedded in a pirated Windows 7 build.
    If you want help with using removal tools, or what to use the next time, I have links or just search newsgroups and forums.
    Most torrent clients open you up, broadcast your IP, and you will see denial of service attacks and others that "come calling" so I would add some rules to your router to block any incoming or outgoing on the ports used by torrents; I would log or insure that it really is preventing DDoS also. And block Windows Sharing at the router level. I much prefer a hardened router in addition and more important than software firewall (but always use both, but even if the software got disabled, you would still be protected).

Maybe you are looking for

  • Error while opening Fiori app on iPad

    I keep getting "Service XXXX failed. Contact your system administrator. Cannot call service with URL: /sap/opu/....." error on the iPad - both in the browser and the Fiori client. I am able to login to the launch pad and also see the apps, the error

  • Query regarding SPML in OIM

    Hi All, I am working on SPML module of OIM. Really appreciate if someone could tell me the madness behind my curiosity  1.     Through SPML can we set/recover User's Challenge Question answer? I went through the search query response and couldn't ab

  • 6280 Screen light

    Hi, Something strange is going on with my 6280, after an hour i leave the phone on the table the phones screen wont go black, it stays on standby with i slightly lighted display it won't go black, Power save and sleep mode are on but it still doesn't

  • Query abt FullScreen

    Hi All, I have designed 3 fla's like login, main menu,help. All swf's embed in aspx page. All under 1 solution. I'm having enable full screen option in loginpage. If I select this, All 2 swf's also in full screen mode, Unless I uncheck the full scree

  • How to print pdf from black to color?

    I've successfull changing the font color by set in the edit-preference-accessibility-replace color document. I changed the black to blue, but when printing, the result is still black. I want to print it in blue, not black. Should I change the default