Reg: File Extraction from SAP Queries via background job

Hi ,
Is it possible to Extract a file to the presentation Server by running the ABAP Query's through SQ01 as a back ground job to generate a file automatically without running it manually.
I have tried recording the query's thru SQ01 with the File store Option to download it to Excel on the Presentation server.I have used CAll Transaction for SQ01 in the Zprg and submitted that Query to be able to download that Query in the mentioned path .The Zprg was executed via Background job.The file is extracted to the presentation server when the Zprg was executed via Foreground,but its not getting Downloaded to Excel Via Back ground job.
Please provide me the solution.
Thanks in advance,
Prem

Hi
u cannot get file in presentation server.. in background..
if you are scheduling any background jobs it should be out of any gui interface.. like gui_dowload , gui_upload// ur need to replace then with cl_gui_fronend_services Class
or u have a option of writing file to application server in background using open dataset syntax.

Similar Messages

  • Allow direct file extraction from SAP queries and YTRAN report

    To feed transportation planning macro, we use 2 SAP queries under user group
    YUGKO0001SIG,YQRYLO00002SIG,YQRYSD055SIG
    --User created variants for each query to extract with file store option to automatically transfer the extract file to the network.
    --User would like to set up a batch job via SM36 to extract the files and make them available in back ground, which is not possible in todays process
    --Also user need similar functionality for YTRAN report, being able to run it in background and generate a file on the net work

    Hi
    u cannot get file in presentation server.. in background..
    if you are scheduling any background jobs it should be out of any gui interface.. like gui_dowload , gui_upload// ur need to replace then with cl_gui_fronend_services Class
    or u have a option of writing file to application server in background using open dataset syntax.

  • Reg: An ABAP program has to run two SAP Queries via BG to Appl. server

    Hi,
    I have a requirement to develop an ABAP program to be able to run the two Z Queries respectively and be able to download to the file to the application server via background.
        The selection is based on the Query Name, Usergroup and plant.How do we capture the data from the Queries and send it to the application server? Submit Statement is not working. There is a FM: RSAQ_REPORT_NAME from which we get the Query program name when Qery name and User group is given as an input.Through the above FM I have got the Query program name and used Submit statement with List_options to capture the Internal table data of that Query. As the Query program is dynamically generated and not available in TSTC, the Submit is not Working. Kindly suggest me is there any other approach to do it.
      Please provide me the solution.
    Thanks in advance.

    Please refer to thread [Authorization Error|WDA adobe error] where various solution to the problem specified by you are described.
    Regards
    Rohit Chowdhary
    Edited by: Rohit Chowdhary on Apr 7, 2009 9:41 PM

  • Generic Data Extraction From SAP R/3 to BI server using Function Module

    Hi,
    I want step by step procedure for Generic Extraction from SAP R/3 application to BI application
    using Functional module.
    If any body have any Document or any PPT then please reply and post it in forum, i will give point for them.
    Thanks & Regards
    Subhasis Pan

    please go thr this link
    [SAP BI Generic Extraction Using a Function Module|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/sap%20bi%20generic%20extraction%20using%20a%20function%20module.pdf]
    [Generic Data Extraction Using Function Module |Re: Generic Data Extraction Using Function Module;

  • Master data extraction from SAP ECC

         Hi All,
    I am a newbie here and teaching myself SAP BI. I have looked through the forums regarding master data extraction from SAP ECC in all forums but could not answers for my question. Please help me out.
    I want to extract customer attributes from SAP ECC. i have identified the standard data source 0customer_attr and replicated in SAP BI. I have created infopackage for full update. I validated the extractor checker(RSA3) and found 2 records for 0customer_attr.
    When I run the info package, the info package remains in yellow state until it times out. Please let me know in case i am missing anything, Please let me know if there is any other process for master data extraction similar to transaction data extraction.

    Hi All,
    i did the below and afte clicking execute in the Simple job, it takes me back to the Monitor Infopackage screen.
    From your info pack monitor --> menu environment-->job overview--> job in the source system--> prompts for source system(ECC) user id and password, enter them, you will get your job at SM37(ECC), select job and click on log details icon. there you can see details about your error. please share that error screen shot.
    Please find the screenshots.
    I did an Environment -->Check connection and found the below,

  • Extraction from SAP ECC to SAP BI

    What are the steps for Extraction from SAP ECC to SAP BI? Thanks.

    Hi,
    we have two types of extractions 1) Application specific 2)cross application
    under applicatin specific -->we have customer genenrated and business content extractions
    under customer generated means LIS, CO-PA, FI-SL(i.e no ready made data source in business content so we have to generate datasource)
    Business content means there is ready made business content datasource so we can use it
    LIS,LO --> when ever we go for extracting logistics informatin
    LO steps
    http://www.sap-img.com/business/lo-cockpit-step-by-step.htm
    LO Cockpit (Use transaction LBWE)
    /people/vikash.agrawal/blog/2006/12/18/one-stop-shop-for-all-your-lo-cockpit-needs
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/21406 [original link is broken] [original link is broken]
    /people/sap.user72/blog/2005/09/05/sap-bw-and-business-content-datasources-in-pursuit-of-the-origins
    To understand LO extraction go through these weblogs by Roberto
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    under cross Applicaion
    Generic extraction-->table, view, infoset query, function module
    Generic extractors are of 3 types:
    1. Based on table/view
    2. Based on Infoset Query
    3. Based on Function module
    GenericSteps
    Log on sap R/3.
    Step 1. create a table or view for generic extraction in se11.
    Step 2. Goto  t-code RSO2
    Step 3. Here u have to decide whether to extract transaction data or master data attributes or texts.
    Step 4. suppose if u have opted for transaction data,then give name in the column ex:ztd_m(data source name)
    Step 5. select create button,this will take u to another screen.
    Step 6. Here u have to decide from which application component u r extacting data.Ex: SD,MM,..
    Step 7. in this screen u have to fill short disciption,medium,long( these r mandatory).
    Step 8. then U have to Table name or view name which u have created in se11.
    Step 9. I f u want to maintain generic delta then u can select generic delta in top left hand side corner.
    Step 10. in next screen u have to give some field which is primary key.
    step 11. here u to specify whether time stamp or cal day or numeric pointer depending on u r requirement.
    step 12. then u have to specify  whether new status for changed records or additive delta.
            If u choose additive delta ,then u have to load data to infocube or ods object.
            If u choose new status for changed records, then u to load data  to ods object only.
    Step 13. then save it.
    Step 14. then logon to sap bw ,then replicate the data source then as usuall.
    COPA
    CO-PA--> for financial info
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/COPA/COPA.pdf
    You can browse forum for more detailed info..
    Regards,
    B

  • Reg : Hierarchy extraction from Source

    Hello Friends,
    I have an issue with Hiearchy Extraction.
    I am trying to Load 0WBS_ELEMT ( Hiearchy) data (Full Update) for the first time.Its displaying the following error.(Its extracted from SAP R/3)
    Diagnosis
        The hierarchy level of the parent node must be one larger than the
        hierarchy level of the actual node. This is not the case for the node
        with ID 00075558 and its parent node with ID 00000001 .
    System response
    Procedure
        Correct the hierarchy level of the node or of the parent node in your
        source system.
    Procedure for System Administration
    Can any of you who encountered the similar issue share your valuable experience with me please ...
    Kind Regards,
    Sai Gautam Pusala

    Its resolved/
    Thanks,
    Sai Gautam
    Edited by: Sai Gautam Pusala on Oct 21, 2011 2:14 PM

  • Upload an excel file in the server  with a background job

    I am trying to upload an excel file in the server, but i only can upload flat files, i can upload files in local with the function ALSM_EXCEL_TO_INTERNAL_TABLE, can i use this function reading an excel file in the server, or is there another possibility of uploadinging an excel file in the server  with a background job ?
    thanks in advance

    Hi
    First read the file from the server to some temporary place at presentation layer and then open it. And if required, save it to the server afterwards. To read/write files to application server you can use:
    1. Statements "OPEN DATASET/CLOSE DATASET".
    2. There are some FMs for server file operations, like "C13Z_FILE_UPLOAD_BINARY" and "C13Z_FILE_DOWNLOAD_BINARY".
    *--Serdar

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

  • Data extraction from SAP r/3 to sql 2000, bpc server

    Hi All,
    I have posted a similar thread previously,sap r/3 to sql 2000/2005, and understood how to transfer data from SAP R/3 to SQL 2005, but I need to transfer data from SAP R/3 to SQL 2000 server, not SQL 2005 server.
    Any help will be greatly appreciated.
    Regards,
    Kranthi.

    If you want to extract SAP R/3 data to SQL 2000, here are some alternatives:
    1. It becomes very easy if by any chance, you are using SAP BW with SAP R/3. You can extract the data into BW using standard or custom extractors and then send it out with open hub. SQL2000 can pick the flat files from a specified location at regular intervals.
    2. You can use Business Object extractors. You can get more info at:
    http://www.france.businessobjects.com/pdf/products/dataintegration/rapid_marts_sap_infosheet.pdf
    3. If that is not an option, then you need to have a tool that allows being called via RFC. This agent will then execute the required command on behalf of your application and return the result. I do not know if there is a ready-to-use RFC-compliant agent for SQL Server. If you have a tool that does it for you, you might have to check your network connections (ping), permissions etc. and see if you can execute an rSQL from the remote machine on the SQL server.
    There is a general solution to connect to nearly any kind of modern server application from a remote site by using simple HTTP requests. Suitable HTTP server for most needs would be:
    1. Microsoft IIS
    2. Java Tomcat or IBM WebSphere
    3. SAP WebAS
    In most cases, the IIS would probably be the one as it is installed on the Windows 2000 server anyway.
    Define an Active Server Page (ASP.NET) and insert the necessary code in your favorite language to extract the data from the SQL server.
    Your ASP.NET page would pack the result in the HTTP response object to be returned. In order to call the page from SAP you call the function modules HTTP_POST (using a HTTP POST request) or HTTP_GET (for HTTP GET request) on the standard RFC destination SAPHTTPA. (Pointing to a SAP utility program saphttp that resides in the SAP binary directory of your SAP database server and can be called from the command line in order to test its functionality without RFC).
    Regards
    Pravin

  • Data Extraction from SAP R/3 Table View in BW

    Dear All,
    I am trying to create a BW query from SAP R/3 Table View.
    Till now i have created a table view
    Extracted Data source in R/3 Useing Tcode : RSA3
    In BW Side
    1. I have replicated the data source in Source system
    2. Created  info object
        and info object catalog
        and assigned it
    Now i am little confused over what to do next
    wheather to create ODS object in info cube,
    Please guide me with rest of steps to follow.
    Regards,
    Gaurav

    Hi,
    After replicating DS in BW, you have to maintain ODS or Cube for maintaining data in BW.
    After loading data into Data Targets you can create Reports based on those Data Targets.
    For better reporting performance you can create Cube rather ODS.
    Info Source(After Creating info Objects, you have to create a Transfer Structure to map the Fields.)
    Then create a Data Target ODS/Cube.
    Update rules
    Info Package
    Hope it helps you .
    Let us know if you still have any issues.
    Reg
    Pra

  • 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

  • Refresh data in SWF based on excel file saved from SAP BW workbook

    Hi, is there a way to get data refresh in SWF dashboard from excel file as a data source. SAP BW workbook report will be saved as an excel file daily and placed in somewhere. I would like to create a dashboard which can connect to the excel data source and refresh on load.
    Appreciate your advice and help. Thank you.
    I am using Xcelsius 2008 and SAP BI 7.0

    Thank you.
    If I understand correctly from your advice, that is I should create QaaWs to pull data from SAP BI, which will return data in tabular format. Map the data in the cell range of a hidden tab, re-arrange and format the data into the row?
      Another concern: I need to display data for 4 quarters (Q1, Q2, Q3,Q4) in the dashboard, but QAAWS will only pulls data when the data is available in the database.
       Eg. Only data for 3 quarters are found in the database, QAAWS will return data for Q1, Q2,Q4.
             This will mess up the position fixed in the xcelsius. Do you have any suggestion on this?
       Sorry to bother u for the simple questions.
       Thank you.

  • System exception while deleting the file from app server in background job

    Hi All,
    I have a issue while the deleting the file from application server.
    I am using the statement DELETE DATASET in my program to delete the file from app server.
    I am able to delete the file from the app server when i run the program from app server.
    When i run the same report from background job i am getting the message called System exception.
    Is there any secuirity which i need to get the issue.
    Thank You,
    Taragini

    Hi All,
    I get all the authorization sto delete the file from application serever.
    Thing is i am able to run the program sucessfully in foreground but not in the background .
    It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
    Can anybody please give me suggestion
    Thanks,
    Taragini

  • Data extraction from SAP R/3 BAPI to BW

    hi,
    i am extracting data from sap r/3 bapi into sap bw. can u please send me the link and documents of how to extract the data from bapi to sap bw.
    Answers will be rewarded
    Thanks
    sd shahid

    Hi Shahid,
        I hope i understood your question properly, because ; to the best of my knowledge, Third-party extraction tools can be used to extract data from non-SAP source systems into SAP BW. These tools supply extracted data directly to a staging engine BAPI on the SAP BW platform. The staging engine then performs the mapping and update rules. Third party vendors of extraction products certified for SAP BW include:
    Informatica, Genio, Acta Works, Evolutionary Technology Inc., If you can get information from any of these third party vendors, then i hope your query will be cleared.

Maybe you are looking for

  • Also due to the implementation

    Even though e-commerce has brought a large amount of benefits to the user, it also poses a series of disadvantages. Hackers can gain access to sensitive information when these online transactions are made. In addition to the losses sustained by the u

  • How to video via email using flash media playback setup?

    How I can send video via email?  I send every week an email that contain a link to WMV file on our website.  I am trying to send the same thing using flash media player. Here the html generated via flash media playback setup and will not display in a

  • Internet does not work after kernel upgrade (quite strange)

    Hi guys My internet (only at home) does not work anymore with kernel 2.6.27. at university it works just fine. isn't that funny it has something to do with packet sizes interestingly enough... because i can ping "the internet" (i.e. kernel.org) just

  • How to change local file Permissions as a default

    I have a mavericks Imac with certian permissions on a folder. when users copy and paste the folder on a server for others to use, some users are not able to acess the files.I know how to change the permissions on the folder manually. But I want to kn

  • Airport looses AX when the MBP sleeps.

    I had problems maintaining my computer's connection with my AX back in Novemer & December. Enough hints and enough fumbling around and I got a constant connection. Then yesterday I changed the identity and password of my AX. Now anytime my computer s