Executing BI Query in Background !!!

Hi Experts,
I want to execute my BI query in Back ground, as it contains lots of data, it is taking lots of lots of time for direct execution, I tried APD, but it seems doesnt work for back grnd procss, tried FM RRW3_GET_QUERY_VIEW_DATA., but dont know how to pass variables for it.
My query contains variables also, Help is needed urgently please !!!
Thanks.

Hi
Please check these links
Execute BW query using ABAP Part I
/people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
Execute BW query using ABAP Part II
/people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
and can you please tell me the parameters which you need to pass???
Best Regards
Rohit

Similar Messages

  • Schedule/Execute POWL Query in Background or via ABAP Program

    Hi all,
    I would like to know if there is any chance/possibilities to schedule/execute the POWL Query for example the Query ID
    "SAPSSRM_R_CENTRALCONFIRM_01_01" Confirmations Pending in the background to output report.
    Or perhaps there is anyway I can make use of the logic within the Query ID above in an ABAP program?
    The main reason is that I need create a Confirmations Pending report and sent out to relevant SC Creator and the quickest way is to make use of the existing query of above.
    Many thanks and regards,
    Hon Leong

    Hi Hon Leong,
    please first check POWL - Web Dynpro ABAP - SCN Wiki to understand, how POWL works.
    You need to find a Feeder Class of your query and execude GET_OBJECTS Method to get the result list.
    For example you can check report POWL_WLOAD or function module POWL_QUERY_REFRESH.
    Regards
    Konstantin

  • Execute query in background and write it's content in transparent table

    Hi,
    Is there an easy way to execute one query in background and write it's content in transparent table?
    Thanks,

    Hello,
    Yes you can do this in so mamy ways...
    GOTO RSCRM_REPORT -> select your query -> click on the extract button and set the parameters...table or file Execute.
    Create an APD in RSANWB select your query and you can store the result in ODS table...cube...
    Create a reporting agent and store the result.
    Regards,
    Pavan.

  • Executing query in background : EXPORT_NO_SHARED_MEMORY

    Hi,
    I am using reporting agent to execute the query in background.The actual requirment is to print the report and send the report as mail after the triggeting of an event by a ABAP program.We want the same report to run with 9 different varints at the of trigger of this event.
    Let me explain what I have done.
    1.I went to reporting agent-->print
    2.Created 9 settings for the report
    3.Added all these settings in a package
    4.scheduled the package to run after the triggering of the event
    Now the job that executes the report in backgroung gets cancelled with error
    "ABAP/4 processor: EXPORT_NO_SHARED_MEMORY"
    When I checked the spool ,it showed result of the report with one variant.
    Is it because I have assigned the alll settinmgs under a single package ?
    Also can some one tell me about mailing the output  to the user?

    Hi Fazil,
    It sounds like a system problem. You might want to ask Basis people to help you. You can check trx ST22 or SM21 to get any log..
    Hope this helps.
    Regards,
    Diego

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

  • Auth Error in BW while executing a query with Company hierarchy

    Hi All,
    I have an issue in BW Reporting auth objects.. Hope to get resolved here.
    We are using BI 7.0. However We  are still using the Reporting auth objects for fiield level security. We are having a problem while executing a query with company code hierarchy ,which is built on a multiprovider.
    The Background is as below
    Multiprovider: ZM_CD01 with 5 infocubes
    Query: Has 0COMP_CODE as free characteristics with display hierarchy for Japan (Node APSC_012 is fixed value)
    Node APSC_012 has 4070,4076,407A,408A,9830 company code values under it.
    Reporting Auth Objects:
    Z0COMPCODE: (for flat values)
    4070,4076,407A,408A,407M,407P,8236, :
    ZHCOMPCODE: (For tree structure)
    4070,4076,407A,408A,407M,407P,8080, :
    APSC_MGMT_HIER (Nodes: APSC_012,APSC019)
    Both the reporting authorization objects are checked for multi provider ZM_CD01 in RSSM
    While executing the query the following Auth error is received.
    You do not have authorization to read object  "Z0COMPCODE" authorization on '0COMP_CODE'
    When I change the values for Z0COMPCODE to * it works fine. No Auth error.
    Please help me resolve this issue. It is very critical now as the user needs to execute some important reports.
    Thanks in Advance.
    Ramkumar C

    Hi Chandra,
    Try the following:
    1. Go to tcode RSSM
    2. Enter the cube ZM_CD01 (all the other cubes) then click change.
    3. Afterwards, u201Cunchecku201D ALL Authorization Objects under this cube. (Repeate the same for all the cubes)
    4. Click Save.
    This will resolve the issue.
    Rgds,
    Raghu

  • Time out error while executing BW query from SRST

    Hello Experts,
    While running a query from SRST t-code im getting time out dump.
    Is there any possibility to run the query in background to avoid dumps, apart from taking the report and executing from SE 38
    Regards,
    Arjun Reddy.

    Hi,
    Your target may have huge and report may be trying to extract whole data.
    please try to your report with some selections/filters and check it.
    it may work.
    Thanks

  • How to execute a query in javascript

    i have to give alert("record exists"),if the record alredy exists in the database.how to do it, by executing a query in javascript. please suggest me something with example

    You cant use Javascript itself for queries
    The query will be done in your java code .
    Easiest soloution is to simply submityour page and have it display the exist warning as response.
    More complex answer is to use XMlHttprequest to do the query in the background and have it eventually display the warning

  • Execute generated query report in RSRT

    Hello experts,
    I tried to execute the generated report for a query in transaction RSRT and it failed ("query not found on server" was the error). Now my question is more general - what is this report for? Is it just a "background program" for a query and should not/cannot be executed in SE38? Can you execute your generated query programs in SE38?
    Thanks in advance!
    Greetings,
    Daniel

    Hi Daniel,
    Basically the queries are Subroutine Pools and you can call this in ABAP.
    Please see the following links.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/41c97a30-0901-0010-61a5-d7abc01410ee
    Re: Execute generated query report in RSRT
    I hope this will help you to get more clarity as well to me to get more points!!!!
    Regs
    Gopi.

  • APD - Numbers of Jobs used to execute datasource query

    Hello experts,
    I would like to ask for your view about an issue that I discovered while executing APD flows in background ("schedule job" button in transaction rsanwb or via Process Chain) vs. executing APD flows as dialogue job ("execute" button in transaction rsanwb).
    a) If an APD flow is executed in background the datasource query of the data flow is accessing all InfoCubes (connected to the multiprovider of the query) sequentially. Only one job is used that is working its way through around 10 InfoCubes after each other.
    b) If an APD flow is executed in background the datasource query of the data flow is accessing all InfoCubes connected to the multiprovider in parallel using many jobs that are reading the content of the InfoCubes at the same time.
    It would be much appreciated if you could provide some input to me how this behaviour is driven and how it can be influenced. From performance point of view I would like the query in the APD Flow to read several InfoCubes in parallel instead of processing each InfoCube after the other.
    Thanks for your help.
    Cheers,
    Sven

    Hi all,
    in the following SAP note "Note 605213 - RSCRM: Performance" it says that ODBO (when an APD Analysis Process is executed, the required data is read via the ODBO interface of SAP BW) executes the query in a different way than BEx or TA RSRT does. So you can't compare both regarding speed.
    Still I am wondering why there are difference if I execute the Analysis Process in background job and dialogue in the way the query is accessing the InfoCubes of the used Multiprovider in paralle (dialogue) or sequentially (background).
    Any ideas? You help is much appreciated.
    Cheers,
    Sven

  • Error while executing a query

    Hi,
    While executing a query in portal it is giving internal server error.
    In the input screen help, we are searchign using wild card characters.I.e "  141",its giving internal server error,
    If we are giving the one value/no value the report is executing correctly.
    The input variable is a heirarchy variable. We tried to give it in the heirarchy format also. Still its not working.
    Could anybody help on this.
    Thanks

    u might be using "select * from <table name>", instead try this
    "select slno as slnod,title as titled.."
    http://www.javagalaxy.com

  • GO button to execute a query once report parameters are selected.

    I am familiar with the GO button depicted in chapter 10 of the 2 Day Developer manual that does not cause the report to be rendered until a user chooses a value from a select list of values. The GO button is used in conjunction with Null Value Text (ex. -Select-), Null Value (ex. -1), and Default (ex.-1).
    I need an alternative to the above method that will still force the user to pick a value from the List Of Values parameters prior to executing the query and rendering the report. Please provide.
    Thanks, Don From Maine

    Why don't you use a validation process?
    Denes Kubicek

  • Can I stop a report from Re-executing the query when I go back to that page

    I have a report that has a complicated query and looks at a lot of information to display the results. This query then links of to show details of individual items that were displayed in the result. But when I hit the back button on the browser, it executes the query again and it takes a while for the page to load.
    Is there any way to stop this and only execute the query when the User pushes a Button on the page else display the previous results.
    Thanks
    Sriram

    Another alternative is to make that detail link open in a popup window using
    javascript:popupURL(...);This way, the complicated report page is always visible.

  • Require Job name in SM37 while executing call transaction in background

    Hi all,
    I am executing a report program, which contains Call transaction.
    I have recorded properly. The recording contains background job screen also ( means a separate popup came and i gave the job name and i gave immediately )
    When i execute in this program in foreground its creating job,its showing the job in sm37.
    But when i execute this program in background, it does not showing the job name in sm37.
    Anyone kindly help this out?
    Anandhab

    Hi,
    The job will be created by the step level user.
    Try searching again with jobname and * for username.
    Regards,
    Jovito

  • How Can I Execute Sql Query in Managed bean?

    Hi,
    I want to execute sql query in managedbean and get the query result. How can I do?
    Best wishes!

    You can do this by having current Database connection your application is using like this
    public static synchronized DBTransaction getDBTransaction(){
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding vb = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bc = (BindingContext)vb.getValue(ctx.getCurrentInstance());
    DataControl dc = bc.findDataControl("AppModuleDataControl");
    ApplicationModuleImpl am = ((ApplicationModuleImpl)(ApplicationModule)dc.getDataProvider());
    return am.getDBTransaction();
    and then user DBTransaction object to create Statement and PreparedStatement you can find those in java doc.

Maybe you are looking for

  • Ipod mini

    I emptied out my ipod, so it had no more songs on it and itunes says there is only 1.53 gb available, that 2.24 gb are used up -what is taking up that 2.24 gb space - when I put songs on, I can only fit 400+ songs on my mini using itunes - when I loo

  • Intel 9965 Device cannot start (Code 10) fix

    I just wanted to report my experience upgrading from Vista Basic to XP Pro on my new T61. The laptop came with Vista, I upgraded to XP Professional Service Pack 3.  Everything worked with the Lenovo downloadable drivers except the sound card, which w

  • Reg ALv layout display

    Hi All, I have an issue with ALV report.I have basic list and secondary list.The problem is the layout selection of one list is effecting the other list display.Could you please let me know some body what parameters I have to pass for IS_LAYOUT param

  • Aperture now always constrains when cropping, even when it says "Do not constrain".  How can I fix this?

    I cannot drag the crop area beyond a certain size.  It's driving me crazy -- it did not used to do that! Thanks!

  • Delete specific attachment file through Conversion Channel ?

    version : iMS5.2 sp1 O/S : Solaris 2.6 Generic_105181-29 I wanted to delete specific attachment file(ex: ALTDESK.ZIP) through Conversion Channel. So I set up like below.. 1) In mappings file ================= CONVERSIONS IN-CHAN=tcp_intranet;OUT-CHAN