Query running backgroup how to download result to specified directory?

Hi Expert,
according to the current business requirement, I have create a query via SQ02 AND SQ01 and it runs smoothly, but now the user want to run this query periodically every 10 mins and want to write the result into spicified dirctory in the desktop.
I write a ABAP code in the query and use the function module GUI_DOWNLOAD, it works in online execution, but when I schedule this query as background, the system can not download the result into specified directory and the system prompts error:FES--022.
do you have any good idea?
thank you in advance!

xioliu,
I don't think that is possible as long as it is executed in the background. Options for the background will be 1) to send an e-mail from the program with attachment, or 2) save it into SAP Server and pull that via ftp into whatever the server the user has access to.
Cheers,
Akio

Similar Messages

  • Query runs fine in 9i but results to ORA-01652 unable to extend temp in 10g

    Hi,
    We are having issues in running a SQL query in 10g. In 9i, it runs fine with no problems but when run in 10g, It takes forever and the temp tablespace grows very large upto 60GB until we get ORA-01652 error due to lack of disk space. This does not occur in 9i, where query runs in only 20 mins and does not take up temp that big. 9i version is 9.2.0.8. 10g is 10.2.0.3

    Heres the SQL query:
    SELECT
    J2.EMPLID,
    TO_CHAR(J2.EFFDT,'YYYY-MM-DD'),
    J2.EFFSEQ,
    J2."ACTION",
    J2.ACTION_REASON,
    TO_CHAR(J2.GRADE_ENTRY_DT,'YYYY-MM-DD'),
    J2.COMPRATE,
    J2.CHANGE_AMT,
    J2.COMP_FREQUENCY,
    J2.STD_HOURS,
    J2.JOBCODE,
    J2.GRADE,
    J2.PAYGROUP,
    PN2.NATIONAL_ID,
    TO_CHAR(PC.CHECK_DT,'YYYY-MM-DD'),
    SUM(PO.OTH_EARNS),
    To_CHAR(SUM(PO.OTH_EARNS)),
    PO.ERNCD,
    '3',
    TO_CHAR(PC.PAY_END_DT,'YYYY-MM-DD'),
    PC.PAYCHECK_NBR
    FROM PS_JOB J2,
    PS_PERS_NID PN2,
    PS_PAY_OTH_EARNS PO,
    PS_PAY_CHECK PC
    WHERE J2.EMPL_RCD = 0
    AND PN2.EMPLID = J2.EMPLID
    AND PN2.COUNTRY = 'USA'
    AND PN2.NATIONAL_ID_TYPE = 'PR'
    AND J2.COMPANY <> '900'
    AND J2.EFFDT <= SYSDATE
    AND PC.EMPLID = J2.EMPLID
    AND PC.COMPANY = PO.COMPANY
    AND PC.PAYGROUP = PO.PAYGROUP
    AND PC.PAY_END_DT = PO.PAY_END_DT
    AND PC.OFF_CYCLE = PO.OFF_CYCLE
    AND PC.PAGE_NUM = PO.PAGE_NUM
    AND PC.LINE_NUM = PO.LINE_NUM
    AND PC.SEPCHK = PO.SEPCHK
    AND EXISTS (SELECT ERNCD
    FROM PS_P1_CMP_ERNCD P1_CMP
    WHERE P1_CMP.ERNCD = PO.ERNCD AND EFF_STATUS = 'A')
    GROUP BY J2.EMPLID,
    J2.EFFDT,
    J2.EFFSEQ,
    J2.ACTION,
    J2.ACTION_REASON,
    J2.GRADE_ENTRY_DT,
    J2.COMPRATE,
    J2.CHANGE_AMT,
    J2.COMP_FREQUENCY,
    J2.STD_HOURS,
    J2.JOBCODE,
    J2.GRADE,
    J2.PAYGROUP,
    PN2.NATIONAL_ID,
    PC.CHECK_DT,
    PO.ERNCD,
    '3',
    PC.PAY_END_DT,
    PC.PAYCHECK_NBR

  • How do download results from a Ibot

    I’ve created a number of ibots to deliver a few reports to user destination of interactive dashboard. The ibot runs, publishes the link and I can view the output with no problems. The problem is the output opens in a new window with no option to download, print etc. Am I missing a step along the way? The users need to be able to download the results, but the output of the IBOT does not display a download or print link. The same issue occurs if access the results from the alerts link.

    Does you requirement require the reports to be delivered as 'point in time' , ie snapshots ?
    If not an alternative might be to give your users a GOURL path to the report, you can specify what download options you want to give them as part of the URL syntax :
    From here :
    http://oraclebizint.wordpress.com/2007/07/30/customizing-obi-ee-%E2%80%93-go-url-parameters/
    " &Options=mdfr – Each of the letters in mdfr have a specific function.
    m - To include the modify report link under the report
    d - To include the download link under the report
    f - To include the printer friendly link under the report
    r - To include the refresh report link under the report"
    You can get the base GOURL path to your save report from the Advanced tab, the 2nd link, not the web query link.
    You could always give this URL on the dashboard, but then I guess you may as well display the report.

  • Download data to specified  directory in application server

    HI experts,
              i need to download data from internal table to specified application server directory which is already  created. how i can check the directory is already availble in server and i need to specify the name of the file dynamically. after download how i can check the downloaded file in application server.
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 5:27 PM

    Hi,
      If u wanna give file name dynamically, you can add it to the selection screen as parameter and let user enter the filename while executing.
    To get file path, check FILE transaction.
    To check the downloaded file in the server (guess u know the server name and path), Use AL11 transaction.
    <REMOVED BY MODERATOR>
    regards,
    Ramya
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 5:27 PM

  • Firefox does not save my downloads to my specified folder. It tries to use another folder. How do I correcct this problem?

    When I try to save a download to my specified directory (C:\Downloads) it tells me that (C:\documents and settings\local\temp) can not be changed and for me to change the properties of that folder. I made no changes to any folder regarding downloads. What can I do to fix this problem?

    Thanks for your input. I haven't changed anything in my virus protection to make this happen. It has been saving my downloads now for a couple years without any problems.
    I am really confused as to how this started. If you have any further input, I would appreciate hearing from you.
    Thanks again.
    Horsefly

  • How to download and restore test data directory / se37

    Hello comunity,
    ahead of me lies a system refresh. in tc se37 according to several function modules i have recorded several test-data-sets in test directory. After the system refresh they will be gone. i assume there are ddic-tables behind my personally saved test data records.
    now i wonder, does anyone know a functionality (program, fm, etc.) on
    1. how to download "my" test data directory entries ?
    2. how to restore them into the test data directory once after the system refresh ?
    for sure, somebody does. please gimme a hint. answers will be rewarded with credit points.
    Thanx in advance!
    Gunther
    Message was edited by:
            Gunther Stauch

    Hmm...
    Maybe this is useful -> table <b>EUFUNC</b>
    Check the FMs from Function group <b>SEUJ</b> ,
    FM <b>RS_TESTDATA_GET</b> looks promising-reading.. and so also <b>RS_RFC_TESTDATA_GROUP_TRANSFER</b>
    Maybe you can write a small program which downloads all the contents of the table and later updates it using one of the above FMs
    Also check with the BASIS team about the options -> There are many options available like maintaining the previous settings... (I know that passwords may not be refreshed similarly this option may also be available..)
    REgards,
    Arun

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • How to suppress Result rows in a Query in Web Application Designer

    Hi
                 I am trying to post a query in Web Application Designer. I am able to run the query in WAD but the Results rows appear. I choose Suppress Result Rows always in All Characteristics option in the query in BEx Explorer but still i see result rows in the WAD. Can anyone please let me know how to suppress Result rows so that they dont appear in Web Application Designer.
    Thanks,
    Padma

    To get the enhanced menu-
    1. Open the template in WAD.
    2. Go to Web Item properties.
    3. Go to Entries in Context Menu.
    4. Find the "Enhanced Menu" property. Set it to "display" if you want it to be visible in template result.
    5. Next time when you execute your template you will be able to access it by right clicking.
    or
    If you just want to supress results without adding enhanced menu in the context menu, simply set "Calculate result as" to "No Display".

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • I add my comcast email to the mail on a iMac running Maverick. It downloads all my emails from there. How do i get my email to delete of the the server

    I add my comcast email to the mail on a iMac running Maverick. It downloads all my emails from there. How do i get my email to delete of the the server

    Go to Mail Preferences>Accounts, click the '+' button below the list of accounts and insert the settings, username and password as instructed. Some account types can be set up automatically as soon as Mail knows the emails address (because the server settings are built in), in other cases you will have to get them from your ISP.

  • I just downloaded more themes from Apple for my iDVD.  Now the iDVD will not run.  How do I fix this?

    I just downloaded more themes from Apple for my iDVD.  Now the iDVD will not run.  How do I fix this?

    Where from Apple did you download them?  What happens when you try to launch iDVD?
    OT

  • How do I install and run Acrobat Pro after downloading Trial w/o checking "install"?

    How do I install and run Acrobat Pro after downloading Trial w/o checking "install"?

    you can't.  you have to check "install" to install and run it.

  • Can anyone tell me how to download Photoshop CS6 on laptop?  Currently running on desktop have ser.#

    Can anyone tell me how to download Photoshop CS6 on laptop?  Currently running on desktop, have serial #.

    Have you not stored the installer?
    It should be available on adobe.com
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    Many obsolete Adobe pogram installers can also be found on
    http://prodesigntools.com

  • After installin Adoe phostoshop c6 and illustrator i open it then it no open because need the serial no.... i follo the steps to finde my serial no.and no real result to find it .. pleaaase help me how can i find e my seria no.. and howa y download the ph

    after installin Adoe phostoshop c6 and illustrator i open it then it no open because need the serial no.... i follo the steps to finde my serial no.and no real result to find it .. pleaaase help me how can i find e my seria no.. and howa y download the photoshop free ith no serial no and nolimit 30 days and no money? please get the link????

    Yasmine,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • How to measure query run time and mnitor performance

    Hai All,
                   A simple question. How to measure query run time and mnitor performance? I want to see the parameters like how long it took to execute, how much space it took etc.
    Thank you.

    hi,
    some ways
    1. use transaction st03, expert mode.
    2. tables rsddstat*
    3. install bw statistics (technical content)
    there are docs on this, also bi knowledge performance center.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    BW Performance Tuning Knowledge Center - SAP Developer Network (SDN)
    Business Intelligence Performance Tuning [original link is broken]
    also take a look
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/31b6b490-0201-0010-e4b6-a1523327025e
    Prakash's weblog on this topic..
    /people/prakash.darji/blog/2006/01/27/query-creation-checklist
    /people/prakash.darji/blog/2006/01/26/query-optimization
    oss note
    557870 'FAQ BW Query Performance'
    and 567746 'Composite note BW 3.x performance Query and Web'.

Maybe you are looking for

  • Pressing the space-bar on a JTree results in TreeSelectionEvent.

    Hello, Have a JTree and a TreeSelectionListener that listens. If the focus is on the tree and most of keys are pressed nothing happens. However, if the focus is on the tree and the space-bar is pressed then the TreeSelectionListener.valueChanged(Tree

  • MM Routines for Condition Base Value

    Dear friends, I want pass values from Tax Procedure to MM pricing procedure. Here the requirement is to calculate discount after considering the excise. The excise value resides in Tax Procedure(TAXINN) and the discount value is in MM Pricing Procedu

  • Oracle8i and 9i with JDeveloper. Use/Config Question?

    We presently have an OracleLite 8i database deployed on an NT and XP mobile Platform using Oracle Forms 6.0. Can we copy the Oracle lite schema into a development environment(project/connection) in JDeveloper and Build a JSP/JDBC layer to replace the

  • Flashhelp, Safari and Intel-based Macs

    I'm having problems with my Flashhelp project properly displaying on Intel-based Macintoshes in Safari. The project displays all of the flash-based UI elements, but doesn't display the topic matter itself. The exact same projects work fine with Firef

  • Open a file for reading

    Hello, I have a text file and I want to read each line at a time. I try to make a script but I have an error at begining that I don't understand : -- START CODE set WordListeChoose to (path to (choose file with prompt " Choose a file" default locatio