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.

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

  • 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

  • How to find the program name of the created sap query ?

    how to find the program name of the created sap query ?

    Hi avinash,
    Try in this way..
    Go to SE16 and then go to table TSTC.
    in that give program name as <b>*followed by your query name</b>
    (for example *TESTQUERY)
    and run , that will give progname======queryname.
    this way you can find program name.
    vijay

  • How to download the all sap bo related notes..

    Hi,
    Can anybody let me know, how can I download the all SAP BO related SAP notes.
    Thanks,
    Gana

    Hi,
    Go to the below link,
    [https://websmp110.sap-ag.de/support]
    Select the application area BI and click on Search, you will find all the notes related with BO.
    Please check and revert.
    Thanks
    Hrishi

  • I can't download the software sap netweaver abap ?

    I can't download the software sap netweaver abap ?
    get diffrient size data  everytime!

    Hi,
    For file sizes that are as large as these, you should always use a download manager. You can obtain one from this website.
    http://www.winfiles.com/
    Best Regards,
    David

  • Need sql query to import from excel sheet

    Hey , i need sql query to import from excel sheet.
    i work in a company where i need to daily update the data from excel sheet.
    if i get a shortcut method i ill be very thank full to you guys to reduce my work upto 10 %.

    any query which can inert from excel file?
    Sort of. Certainly not anything as simple as what you seem to hope for. Check out this very good PHP class:
    PHPExcel - Home

  • Access the styles and defined names of an excel sheet in apps for office

    Hi Everyone,
    Can you please let me know how to access the styles and defined names of an excel sheet in apps for office ?
    Technologies/language  used:office JS ,Jquery and apps for office
    any help in this is highly appreciated
    Thanks!!
    Santosh Sutar 

    Hi,
    I’m not sure if I understand your question correctly, so please correct me if I have any misunderstandings.
    For the defined names, I assume you mean the named range. If so, you can create the binding to the named range through
    Bindings.addFromNamedItemAsync method.
    For the styles, I think the article below may give you some help.
    How to: Format tables in apps for Excel
    By the way, there are no methods to iterate the styles and named range through the current Office JavaScript API.
    If this is a feature you want to include in future versions of Office JavaScript API, please submit a feedback to
    Office Development Platform User Voice.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to extract the data from module pool program to Excel Sheet?

    Hi Guys
            I am having a requirement to transfer the data from Module pool screen to excel sheet directly.
            This is an urgent requirement.
            So plz reply me with some coding examples.
            I will give points for that.

    This report extract excel file. From that concept you can easily extract data from module pool program also by coding in PAI of the screen.
    REPORT ztest1 .
    * this report demonstrates how to send some ABAP data to an
    * EXCEL sheet using OLE automation.
    include ole2incl.
    * handles for OLE objects
    data: h_excel type ole2_object,        " Excel object
          h_mapl type ole2_object,         " list of workbooks
          h_map type ole2_object,          " workbook
          h_zl type ole2_object,           " cell
          h_f type ole2_object,            " font
          h_c type ole2_object.            " color
    DATA: FILENAME LIKE RLGRAP-FILENAME.
    tables: spfli.
    data  h type i.
    * table of flights
    data: it_spfli like spfli occurs 10 with header line.
    *&   Event START-OF-SELECTION
    start-of-selection.
    * read flights
      select * from spfli into table it_spfli.
    * display header
      uline (61).
      write: /     sy-vline no-gap,
              (3)  'Flg'(001) color col_heading no-gap, sy-vline no-gap,
              (4)  'Nr'(002) color col_heading no-gap, sy-vline no-gap,
              (20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,
              (20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,
              (8)  'Zeit'(005) color col_heading no-gap, sy-vline no-gap.
      uline /(61).
    * display flights
      loop at it_spfli.
        write: / sy-vline no-gap,
                 it_spfli-carrid color col_key no-gap, sy-vline no-gap,
                 it_spfli-connid color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityto color col_normal no-gap, sy-vline no-gap,
                 it_spfli-deptime color col_normal no-gap, sy-vline no-gap.
      endloop.
      uline /(61).
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-007
           exceptions
                others     = 1.
    * start Excel
      create object h_excel 'EXCEL.APPLICATION'.
    *  PERFORM ERR_HDL.
      set property of h_excel  'Visible' = 1.
    *  CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:kis_excel.xls'
    *  PERFORM ERR_HDL.
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-008
           exceptions
                others     = 1.
    * get list of workbooks, initially empty
      call method of h_excel 'Workbooks' = h_mapl.
      perform err_hdl.
    * add a new workbook
      call method of h_mapl 'Add' = h_map.
      perform err_hdl.
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-009
           exceptions
                others     = 1.
    * output column headings to active Excel sheet
      perform fill_cell using 1 1 1 200 'Carrier id'(001).
      perform fill_cell using 1 2 1 200 'Connection id'(002).
      perform fill_cell using 1 3 1 200 'City from'(003).
      perform fill_cell using 1 4 1 200 'City to'(004).
      perform fill_cell using 1 5 1 200 'Dep. Time'(005).
      loop at it_spfli.
    * copy flights to active EXCEL sheet
        h = sy-tabix + 1.
        if it_spfli-carrid cs 'AA'.
          perform fill_cell using h 1 0 000255000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'AZ'.
          perform fill_cell using h 1 0 168000000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'JL'.
          perform fill_cell using h 1 0 168168000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'LH'.
          perform fill_cell using h 1 0 111111111 it_spfli-carrid.
        elseif it_spfli-carrid cs 'SQ'.
          perform fill_cell using h 1 0 100100100 it_spfli-carrid.
        else.
          perform fill_cell using h 1 0 000145000 it_spfli-carrid.
        endif.
        if it_spfli-connid lt 400.
          perform fill_cell using h 2 0 255000255 it_spfli-connid.
        elseif it_spfli-connid lt 800.
          perform fill_cell using h 2 0 077099088 it_spfli-connid.
        else.
          perform fill_cell using h 2 0 246156138 it_spfli-connid.
        endif.
        if it_spfli-cityfrom cp 'S*'.
          perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.
        elseif it_spfli-cityfrom cp 'N*'.
          perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.
        else.
          perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.
        endif.
        if it_spfli-cityto cp 'S*'.
          perform fill_cell using h 4 0 200200200 it_spfli-cityto.
        elseif it_spfli-cityto cp 'N*'.
          perform fill_cell using h 4 0 000111222 it_spfli-cityto.
        else.
          perform fill_cell using h 4 0 130230230 it_spfli-cityto.
        endif.
        if it_spfli-deptime lt '020000'.
          perform fill_cell using h 5 0 145145145 it_spfli-deptime.
        elseif it_spfli-deptime lt '120000' .
          perform fill_cell using h 5 0 015215205 it_spfli-deptime.
        elseif it_spfli-deptime lt '180000' .
          perform fill_cell using h 5 0 000215205 it_spfli-deptime.
        else.
          perform fill_cell using h 5 0 115115105 it_spfli-deptime.
        endif.
      endloop.
    * EXCEL FILENAME
      CONCATENATE SY-REPID '_' SY-DATUM+6(2) '_' SY-DATUM+4(2) '_'
                  SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
      CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.
      free object h_excel.
      perform err_hdl.
    *       FORM FILL_CELL                                                *
    *       sets cell at coordinates i,j to value val boldtype bold       *
    form fill_cell using i j bold col val.
      call method of h_excel 'Cells' = h_zl
        exporting
          #1 = i
          #2 = j.
      perform err_hdl.
      set property of h_zl 'Value' = val .
      perform err_hdl.
      get property of h_zl 'Font' = h_f.
      perform err_hdl.
      set property of h_f 'Bold' = bold .
      perform err_hdl.
      set property of h_f 'Color' = col.
      perform err_hdl.
    endform.                    "FILL_CELL
    *&      Form  ERR_HDL
    *       outputs OLE error if any                                       *
    *  -->  p1        text
    *  <--  p2        text
    form err_hdl.
      if sy-subrc <> 0.
        write: / 'OLE-Automation Error:'(010), sy-subrc.
        stop.
      endif.
    endform.                    " ERR_HDL

  • Sap Query in Background

    Hi Experts,
    is there a way to write the spool list of a sap query (run in background) to application server or to a logical file ?
    Thanks,
    Angelo.

    this dump appears mostly though not only when someting has been changed but maybe it's different for those HR queries. anyway: the query has obviously not been generated since it was last loaded. you can correct that in SQ01 by forcing the coding to be generated anew.

  • 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

  • Issue in downloading the file to application server (background)

    i am downloading the PIR records to the application server.
    the program is running fine .
    i m using background coz i m downloading large no of records (>5000)
    my actually target is 28000 records.  we are spliting it up into atleast 7000 records at a time.
    for 1000 records  , it is taking     217 secs        (this is fine)
    for 2000 records  , it is taking    1647 secs        (not satisfactory)
    for 5130 records  , it is crossed more than 10647 secs   still running  (not acceptabe)
    why is it increasing in expotenial of time for increase in the records
    why not ~1000 sec for 5130 records...??
    somebody help me , the hav check the extended check and fine tuned the code.
    it is a modification of standard program RM06IBIE for download of PIR records.
    regards
    venkat.

    Hi,
    It is definitely because of the poor performace in the code only.
    Try using, FOR ALL ENTRIES, SORT BY key fields, DELETE ADJACENT DUPLICATES from the internal table COMPARING key fields, etc.
    If you have already used all the possible ones, then check the table from which it is picking the data.
    Whether they are using the primary key fields in the where condition, if they are using some other fields, then go for an option of secondary index if required.
    Regards,
    Santhosh.

  • Integrating BI based on the BI SAP QUERY CONNECTOR

    Hi,
    I'am new to BI,i want to use BI in VC,for this i need to integrate BI based on BI SAP QUERY CONNECTOR.
    Anybody please provide me a clear  documentation on this integration.
    With Regards,
    Praveen

    Hi experts,
    I am trying to change workbook settings to display repeated key values.
    When doing so, I get a SQL Error and the result is 'No applicable data.'
    However, my when my co - worker tries to change the same setting in the same workbook, the setting gets changed.
    I have no clue what's going on.
    Any ideas?
    Points will be assigned.

  • If I download the latest OSX update via the App Store, can I choose to do a fresh install instead of an update?

    That's basically the question - since I get a RAM error upon trying to freshly install the OS on my MBP (disc or SD card), I find this to be the last remedy. I already tried switching the RAM. I'd like to sell my device, so I wanna "reset" it. Can I choose to freshly install OSX when downloading the Mountain Lion update?

    That is not a RAM issue. You're trying to boot from a Mac OS X version too old for the computer.
    (68462)

  • Exporting Reports from SAP Queryu00B4s in Background to EXCEL???

    Hello Experts,
    is it possible that a SAP Query Report starts in a Background-job and exporting the Reports to an Excel-file ??
    Last step is, that all Receivers got the Excel-list via email.
    But how can I realise it?
    Need many helps for this PROBLEM.
    With kind regards
    ETN

    Hi
    Note  [537735 - SAP Query: save to file in the background |https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=537735]
    Probably the easier solution is dowloaded a CSV file and then open it by excel
    Max

Maybe you are looking for