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.

Similar Messages

  • 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.

  • SAP Query : Save to file in XLS format in background

    Hello everybody,
    I used the enhancement SQUE0001 for saving result (an XLS file) of SAP query in background.
    I used also the ABAP commands 'OPEN DATASET', 'TRANSFER' and 'CLOSE DATASET' as described in the SAP note 537735.
    The execution of SAP query generated multiple columns. But when I go to see my downloaded file (.xls), all generated columns are condensed into 1  !!!
    How to save the file (.xls) and keep the separated columns, please?
    Thanks for your answers.

    For saving the file in Excel format in the App server you have to first convert the data in XLS format and then use the transfer statement.
    You can either use FM SAP_CONVERT_TO_XLS_FORMAT for that.
    OR
    Create a comma sepreated file which will open in excel.
      open dataset file for output in text mode.
      loop at itab.
        concatenate itab-field1 itab-field2 itab-field2 into str
                      separated by ','.
        transfer str to file.
      endloop.
      close dataset file.

  • SAP Query with Code page option in background

    Hi All,
    I have a requirement.When the Japanese users run a query in foreground, they can specify the code page which they need to view the output.  When I tried to schedule the query in background as they requested, we discovered that we couldnu2019t specify the code page so I thought we would need some kind of ABAP program that could submit the query and be able to specify the code page.
    Can you please help me how to proceed with this.
    Thanks
    Sreekumar

    Hello Esperado9 Said,
    You can think about MB51 / MB5B report where you can define the selection variant and make settings as per your requirement. These both reports will serve your requirement if you are looking for material mvt documents or stock.
    Hope this helps.
    Regards
    Arif Mansuri

  • SAP Query not working

    Hi,
    I am facing problem with SAP Query. My query is not working for one particular date. Its giving timeout error when i just give date as input. I tried executing it by giving some particular document as input, then its giving "no data" message but when i check the table data, there are some records for that input condition.
    I debugged it, i found that the statement "FETCH NEXT CURSOR cursorname" is throwing sy-subrc eq 4. I couldn't understand the problem.
    Any inputs will be very helpful.
    Regards,
    Mahidhar.

    Hi Azeem,
    There are more than 10 tables that were used in this query with different types joins like inner join, left outer, right outer join. So i wasnt able to decode the select query that was present in open cursor command.
    I have given the date and executed the same in background. It ran in 19min. But when i add one more input parameter, then its running more than a day(still running ). Didn't get the exact problem still.
    Regards,
    Mahidhar.

  • SAP Query in Excel

    I actually found what I needed to do this on the forum last week and now I can't duplicate it nor can I find the original forms thread.  I need to get the SAP Query results to a file or to Excel.  The first time I tried this, I executed the query in background, got the spool number then went to SP01.  There I believe it did the following:
    [Execute]
    Selected:  Spool Request / Forward / Export as Text
    At this point, I was presented a popup similiar to when downloading with options: unconverted, spreadsheet, etc.  I selected spreadsheet and everyting went fine.  
    Now when I repeat the process, after I do Spool Request / Forward / Export as Text, the file is automatically written to a text file; I do not get the option to put it in a spread sheet. 
    Please, can someone tell me what I'm doing wrong?  If I hadn't saved the spreadsheet last week, I would have myself convinced I only dreamed that I got it to work.

    You can try this way
    sp01> display spool>spool request> forward> save to local file--> spread sheet
    otherwise try with
    Once you logged in, press Alt+F12 -> Options -> Local Data. Then just press "Clear History" button
    and try spool> forward> write to text

  • SAP Query not running

    Hi,
    I am doing SAP query, If I select Company Code, i need to get the resule of
    GL a/c, Buss Area, Cost Center, Profit Center
    For this in table joints i taken KNA1, KNB1, SKB1, CSKS
    then also i could not run the report.
    Rgds
    sunfico

    Hello
    When you have chosen a query and a user group on the initial screen, you can execute the query online or in the background.
    Executing Queries Online
    Executing Queries in the Background
    Improving Response Times
    Interactive Functions for ABAP Lists
    Direct Interaction
    Check this link for further notes executing queries
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
    regards

  • Save sap query into file

    Hi,
    I am running my sap query and saving automaticaly into a file by using the 'file store' option. But i am running in background. I can see the result in the spool but how can i create the result in a TXT file directly.
    Thanks for your help.
    Regards,
    Cesar

    You have to give your application Path like "/USR/folder or /temp/filename.txt .. if you`re running in background .
    you can see the paths using Tr. AL11
    Thanks
    Saquib

  • Execute Query in Background get notified per email

    Hello together,
    In a project we use BSP's to select variable values in a more comfortable way compared to the SAP Standard variable screen.
    For some long-running queries (e.g. show all line items in the ODS where the item text contains keyword 'XXX') our users want a button to calculate the query in background and to be notified per email containing the corresponding link as soon as the result is available.
    We use BW 3.5, so Information Broadcasting is available, but this does not really solve the problem.
    In the Broadcaster, you can specify the variables using the SAP standard variable screen. But of course we want to use our BSP's. In addition, we first want to specify the variable values before we decide whether to run the query online or in batch. And finally, running the query in the background should be a one-click action. This is not possible with Information Broadcasting.
    Does somebody know a solution for this problem.
    I assume it can be reduced to some magic FB's and methods that have to be called from the BSP to get what we want.
    Thanks for your help.
    Juergen

    HI Alex,
    Could you please help me with the solution. I have a similar requirement where I have to execute the query or workbook in background via a process chain.
    Thanks in advance.
    Rgds,
    Sree.

  • Run Query in Background

    Hello Gurus,
                   Could you send me how to run query in background. There is a record which uses 2-3 years old data which takes 4-5 hrs to run, so we decided to run this query as soon as ODS is loaded with data everyday. This will solve the cache issue as the query already exists in cache.
    I know we can do it with broadcaster or running webtemplates..... but step by step process will be a great help.
    Thanks a lot.
    Chris

    Dear Follow this link...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/1be541f321c717e10000000a155106/frameset.htm
    Regards
    venu

  • IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    Use enhancement project SQUE0001 for background downloads of query data.  Use the 'Private File' option with the query execution.

  • Transfer SAP Query Output directly to SharePoint

    Hi,
    We are running the SAP Queries in the Background. I have a requirement to transfer the SAP Query output directly to SharePoint site. Could you please share your ideas on this?
    Regards,
    Siva.

    I don't have an answer but have the same issue.  Did you ever resolve?

  • Tcode to SAP Query

    Hi All,
    I have created a SAP Query and I have assigned a tcode in the dev Server, It is working fine in the Dvelopment But Throws a dump in the Quality and Production Server of Program not found and asks to create the program.
    The Program exists in se38 in the quality and Production Server and it works fine in the Devlopment Server.
    Nimisha Gandhi.

    Hi,
    1) set a break-point on:
    PERFORM load IN PROGRAM (i_s_prof_int-progname).
    and check which porgram-name is shown at runtime
    and search for this program and perform.
    if you don't find - create an oss-note
    what i can imagine - that it's a program, which should be generated at runtime - but wasn't gen. because of a syntax error!
    or
    try update debugging? Maybe this part is executed in an update task.
    Otherwise online/background version are really running different!
    or
    There is a dynamic call, which needs correct program in variable i_s_prof_int-progname.
    Obviously this is filled different (or not at all) in background run.
    Set a break-point and try to find out, how this field is filled. Maybe you get a hint, why this might be different in background
    Regards,
    Harini.S

  • 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

  • Automate sap query?

    Hi,
    i want the details of automate sap query?
    what is the use of this ?where it is using in query ?
    regards,
    goodyear...

    Hi dear,
    I'm not sure if you are searching for this, but here there is all the info related to SAP query:
    http://help.sap.com/saphelp_erp2004/helpdata/en/05/2b1df9209411d6b1d500508b6b8b11/content.htm
    (do you want to periodically schedule it in background?)
    http://help.sap.com/saphelp_erp2004/helpdata/en/d2/cb4070455611d189710000e8322d00/content.htm
    Hope it helps!
    Bye,
    Roberto

Maybe you are looking for

  • Can not connect wireless through Bootcamp Windows XP to Timecapsule?

    Any help would be appreciated. I recently purchased an iMac with Leopard (10.5.2). Today, I used Bootcamp to install Windows XP with SP2. I created a FAT partition of 32 gigs and followed all of the steps (including installing drivers off of MAC OS i

  • Pasting from a web page into a File-Save dialog no longer works; causes a freeze-up

    When I place an order on Amazon, I copy the order number, then print the invoice to .pdf. When the file save dialog comes up, I paste in the order number as part of the file name. I used to, that is. At some point the pasting part no longer worked: n

  • A single Form containing two colums

    Hi In Flex 3 is there any way to build a Form with two columns. I want to lay out a Form to look nice. The following structure seems to end up with the FormItems losing their alignment. I've simplified the structure to keep the concept simple. <Title

  • Adobe not working today... was fine yesterday..

    I created a word document on my PC then I transferred it from a word doc into a PDF. When I try to open the saved PDF file an error message comes up with a blank page. The message is "An error exists on this page. Acrobat may not display the page cor

  • Why does my imac crash

    My imac intel based was crashing for no specific reason.... I took it in and the hard drive was replaced. It just crashed on me while I was surfing the net. I have photoshop and Lightroom software. It crashes a ton when I am working in Photoshop. The