Extracting Logical SQL of the adhoc reports

Hi,
I have an requirement, where I need to extract the logical SQL, of the adhoc reports. I tried using "Usage tracking", but that doesnt fit my requirement, as I need to write back the result set of the SQL queries in the database. I need to kind of automate the process of getting the logical queries from the user created reports and load it back to database. I canot use direct database request,as business users will not have this ability to use this request.
Can somebody help in ways of getting the logical SQL , apart from usage tracking, log file, or manage sessions.
Thanks
Alakananda

I am closing this, question, as I solved it by calling web services through a java program. Thanks

Similar Messages

  • Logic for Refreshing the ALV Report (Very Urgent)

    Hi Experts,
    My <b>ALV report</b> needs a <b>refresh button</b> on the output.
    The <b>Refresh button</b> should be available to allow user to keep this report on screen and <b>refresh regularly</b> rather than <b>going back</b> and <b>running it again.</b>
    I am using <b>Function modules</b> and not <b>OOPS Concept</b> here.............As i am<b> unaware</b> of OOPS Please provide me solution in <b>FM's Only</b>.
    Kindly send me <b>sample logic</b> for this, <b>Very urgent</b> if ur reply is helpfull.... u will be <b>rewarded heavily</b>.......................
    THanks in advance.
    Rajesh Kumar

    Hi,
    This mean to say that if you have a 'refresh' push button in your gui status, every time you press the button, the list should get refreshed.
    In ALV, to refresh the table you have to call the method "refresh_table_display". 
    It has the syntax very similar to creating the table. 
    It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed) 
    or 
    if you want to refresh only the icons around the grid (the data is not refreshed - this option is mostly not used in day to day applications).
    the synatx is :-
    call method grid (name of grid )->refresh_table_display
    exporting
    IS_STABLE = <STRUCT OF TYPE LVC_S_STBL> (THIS IS FOR DATA REFRESHING)
    I_SOFT_REFRESH = <VARIABLE OF CHAR 01>  (THIS IS FOR ICON REFRESHING).
    Regards,
    Bhaskar

  • Call the stored package from SQL in the APEX Report Region.

    SELECT COUNT (DISTINCT ah.BIB_DOC_NUM) AS "TITLES"
    FROM NC_AL_HOL_LOCN ah ,NC_AL_CALL_NUMBER ac
    WHERE
    ac.CN_STEM>= cross_inst.call_callnojava.callno_parse('A1','A')
    AND ac.CN_STEM< cross_inst.call_callnojava.callno_parse('D1','A');
    In oracle 10g, I create the package under cross_inst schema.
    When I tried to run the page, I got the following parse error page.
    ===================================
    failed to parse SQL query:
    ORA-00904: "CROSS_INST"."CALL_CALLNOJAVA"."CALLNO_PARSE": invalid identifier
    Any Idea?
    Thanks ahead.

    The parsing schema of your application needs execute privilege on the cross_inst.callnojava package (a direct grant and not a grant through a role).
    Scott

  • Extracting the Logical sql query for the specified report  in OBIEE 11g

    Hi ,
    I want to extract the logical SQL Query for the Particular report in OBIEE 11.1.1.5.
    Any pointers related to this will be very helpful.
    Thanks,
    Sonali

    for a try please add Logical sql view to ur report it will dispaly the Logical sql for that Report..
    Hope it will helps you.

  • Adhoc reports using the OBIEE 11g

    Hi All,
    Is anyone has developed the Adhoc reports using the OBIEE 11g.
    My question is what is the use of Adhoc reports.and how we develop it.Is there any user manuals.
    thanks for your replay.
    Regards,
    Pradeep

    Hi there,
    There are also a number of blogs out there which will help you, two really good ones are:
    http://www.rittmanmead.com/blog - Rittman Mead also do public training days on OBIEE in the UK/US and India if you are interested.
    http://obiee101.blogspot.com
    Hope that helps,
    Thanks,
    Chris

  • Add Columns to Adhoc Reports Layouts?

    Are there any config or sql injections or translations to add additional columns to the custom layouts in the Adhoc Reports in RPT?
    Specifically, would like to display Related Specs when running reports for Trade Specs.
    Edited by: Trey on May 1, 2013 11:26 AM

    You could probably technically add related items as a search result column in a ready report, but it isn't an out of the box available result column. So it will require some undocumented customization work. I don't think the results grid is the best location for this data due to performance implications and even UI display challenges. I think your best option would be to create a BI Publisher report. Your PLM4P license includes a free limited use license for BI Publisher. This would be a good topic to discuss during a dev to dev call.

  • Issue in AdHoc Report result

    Hi Guys!
    This is the AdHoc Report SS_PH0_48000513. When two different person runs this report based on same selection criteria then for one person the result shows 2400 hit list and for other person it shows only 200 hit list. Does anyone have any solution to this problem.
    The selection criteria is employee sub group and company code and output field is pernr.
    Regards,
    Arul Joseph Isaac

    Hi,
    Please compare the authorizations of these two persons'.
    Generally, this kind of issues end up to be auth. issues.
    Regards,
    Dilek

  • How to use a subreport field as selection criteria for the main report

    Dear All,
       I created a report with one subreport and im comparing information from both reports but i need to apply selection criteria in the main report using one of the fields in the subreport, the problem is that the subreport field doesnt appear in the select expert screen. By any chance, someone knows how make a subreport field be used by the select expert.
    Thanks,
    Martha Medrano

    Dear Dom,
       I created the subreport table called IIM (748 items) in sql in the main report as you suggested with the below code:
    SELECT "IIM"."IPROD", "IIM"."IDESC", "IIM"."IID"
    FROM   "S102F360"."BPCS405CDF"."IIM" "IIM"
    WHERE   NOT ("IIM"."IDESC" LIKE 'GEN%' OR "IIM"."IDESC" LIKE 'OBS%') AND "IIM"."IID"<>'IZ' AND "IIM"."IPROD" LIKE '3%'
    and i have another table called ITEM_MASTER (3221 items):
    SELECT "ITEM_MASTER"."ITEM_ID", "ITEM_MASTER"."DESCRIPTION"
    FROM   "WHSPRO"."dbo"."ITEM_MASTER" "ITEM_MASTER"
    ORDER BY "ITEM_MASTER"."ITEM_ID"
    and im trying to display all items in the ITEM_MASTER table that are not in the IIM file but i haven't been able to accomplish this, i am using as primary the ITEM_MASTER table with 'Inner Join' as Join Type,  and '!=" as Link Type. Do you have any ideas on how can i display the requested items.
    Thanks for your help

  • Question about the interavtive Reports in APEX 3.1

    Hi,
    I have tested the nice interactive reports feature on the evaluation instance of APEX 3.1
    I hope the new APEX 3.1 will be released soon.
    Is the SQL-Query stored in the apex tables, if I save my customized report? For example I have a report and I create a new feature. Then I guess the APEX generates a new SQL feature and when I store the report with the filter, the SQL-Query must be stored, too...
    Will that SQL be stored in the APEX tables, so I can select it over the apex-views?
    That would be very nice. So that the user of an application can create their own reports and download it with scotts example: http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    Will that be possible and should I wait for the APEX 3.1 would be released or must I build an own solution?
    Thank you,
    Tim

    Hey Marco,
    I can`t find a view that is named like "APEX_APPLICATION_PAGE_IR%". Is it not available on the evaluation instance.
    I don`t want to use the build-in CSV download, becaus I want to export thousands of data sets. I got this already to work with APEX 3.0 and I get the sql from the application views. The procedure which creates the file runs a few hours and after that it is inserted into a table from which the user can download the file. In the procedure there happens a few other things, which are very import, so I have to create my custom solution.
    And for that I thought it would be very very very cool if I can get the sql behind the interactive report with the filters ant those things.
    Don`t you think that would be possible? I guess the APEX create a SQL although, or am I wrong?
    Thank you,
    Tim

  • OBIEE - Adhoc Reporting?

    Hi all,
    I'm looking for tools providing better Adhoc reporting facilities. I just wanted to know the adhoc reporting capabilities of OBIEE plus i.e, Kind of facilities it provides, advantages it has over other tools and user friendly aspects of this tool in proviiding adhoc reporting.
    Looking forward to an early reply.
    Thanks in advance

    can you define cluster environment, since different people mean different things by that? thanks

  • SQL 2008 R2 standard reports - question about server dashboard and what it refers to as "adhoc" queries

    So I have started looking at some of the standard reports available with SSMS and in particular, the "server dashboard".   One thing that caught my attention were the charts that referred to "adhoc" queries.  I wondered how
    those were being defined, and as I expected, they are most likely those statements not in a stored procedure.  This was answered in
    this thread.  
    On a particular server Im interested in, this % value is well over 50% and the primary applications that interact with the databases on this system are Microsoft based products such as Dynamics and another commercial application which I know uses hundreds
    of stored procedures.  Now, Im sure there are some sql statements being used, possibly "dynamic" type sql, by these applications, but would the metrics really be skewed this far?
    What these charts tell me, with the "adhoc" statement types pushing CPU and Disk I/O %  this far, is that there is a BUNCH of these statements being run against the various databases.  The disk I/O might be a bit off since I only recently
    added dozens of missing indexes, but my question is this:
    With the "adhoc" type statements taking up this much of the CPU and Disk resources, can we say that there are likely a lot of these going on ?  I suppose one way to find out is to launch profiler and listen in while there is moderate
    to heavy user activity.
    Thoughts?

    Hello,
    Adhoc queries are DML statements with not parameterization. Sometimes users use this statements, and sometimes these statements come from applications.
    Use Query #2 on the following link to identify those adhoc queries:
    http://mssqlfun.com/2013/04/08/dmv-5-queries-runing-are-adhoc-or-proc-single-or-multi-use-sys-dm_exec_cached_plans/
    Identify if those adhoc queries belong to specific users or applications.
    One of the options you have to deal with is is the following configuration option:
    sp_CONFIGURE 'show advanced options',1
    RECONFIGURE
    GO
    sp_CONFIGURE ‘optimize for ad hoc workloads’,1
    RECONFIGURE
    GO
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Extracting SQL Queries from Crystal Reports

    I am trying to find a way or a utility to be able extract SQL queries from Crystal reports into a text file for documentation purposes.  These queries are not in the repository, they were entered into each of the reports when the reports were being built and I can't find a way to extract them.  Any ideas/suggestions?

    Hello,
    CR doesn't have the ability, and I don't recall if this has ever been asked previously. Great suggestion for the Idea Place tab in the up right corner of this page.
    If you find a developer it's quite simple to get:
                // log onto the server and then get the SQL.
                rptClientDoc.DatabaseController.LogonEx("van-w-13-dwilli", "xtreme", "sa", "pw");
                GroupPath gp = new GroupPath();
                string tmp = String.Empty;
                rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
                // show the SQL but easy enough to save the SQL text to a file.
                MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Of course you need to open the report first, lots of samples on how to...
    Thank you
    Don

  • Report issue , logical name of the system has been changed

    Hi
    Recently our system has been upgraded to ECC5.0. In a particular report  while drilling down we get  error. The error says the original doc can not be shown as it belongs to logical system ( DRH-123) . Now we know that this logical name of the system was in old box . The new logical name is DRH-100 . We are saying it's a basis issue and the basis team is saying it's FICO issue.Has any body encountered this type of problem. ? In my report  i have never mentioned logical name of the system.Hence unable to understand it. But so far what I have understood , that the each box  has been partioned and given a system name which is called logical name.Now that logical name they have changed in new box.My initial response was change the logical name but basis says that is a big task and more over it has been a while when they changed it.
    Gurus, Kindly shed some light on this mess.
    Thanks in advance
    Satya

    Which report are you pulling out? T-code?
    This link has some that may help you:
    www.scribd.com/doc/24447/SAP-R3-IDoc-Cookbook-for-EDI-and-Interfaces-by-Axel-Angeli
    Do CTRL+F to find Logical Systems
    If the link doesnt work use the following keywords and google it, shoose second result: EDI IDOCS interface axel angeli sap
    You may also want to get in touch with the person who was involved in developing LS. Talk with your ABAPer, they normally have an idea about these things (well atleast my ABAPer knows!)
    Message was edited by:
            Vj

  • After Installing SQL Server 2012 Service Pack the RDL reports do not work

    I installed SQL Server 2012 Service Pack on backEnd sharepoint and also on BI Server that host Reporting Service.(Before installation everything was working properly)
    After this installation the RDL reports do not open and I receive this error message.
    The permissions granted to user 'domain\username' are insufficient for performing this operation. (rsAccessDenied)
    I also receive the same error message on changing DataSource, Parameters and subscription.
    I should mention that, I am using Reporting Services in the Integration Mode. I want to open and modify RDL reports from SharePoint and inside the SharePoint Document Library.

    Hi Hedayat,
    Thanks for posting your issue,
    To solve this problem you have to grant your SQL Reporting Service Application Pool
    Account (whatever is running your SQL Service Application, see Central Admin -> Manage Service Application -> SQL Server Reporting Services)
    Full Control to the web application that report is being deployed to in your particular case.
    Or you could just use the powershell command below:
    $webApp = Get-SPWebApplication –Identity http://yoursharepointapp 
    $webApp.GrantAccessToProcessIdentity(“domain\SSRSAccount”) 
    Also, check out below mentioned URLs for more details and fixes of this issue
    http://paulliebrand.com/2013/09/25/ssrs-and-permissions-granted-to-user-are-insufficient-for-performing-this-operation/
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4ea477ec-ea12-4a3e-bc33-2fcf9d52b84e/error-rsaccessdenied-nt-authoritynetwork-service-are-insufficient?forum=sqlreportingservices
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to move all the standard and adhoc reports from cube to multi provider

    How to move all the standard and adhoc reports from the basic cube to multi provider?
    i created this multiprovider to do the maintenence on the basic cube. for example the infocube physical partition, line item dimension and compression.
    what we decided to do is move all the Standard and ad-hoc reports from the basic cube to the multiprovider. How to do it? and make a copy of the basic cube and do the maintenence on the cube. please help.
    Thanks in advance sdn experts!

    Hi Les,
    This sounds good and one thing we try to always keep in mind when undertaking such activities is to always minimise the impact to the user and make the process as transparent to them as possible. So lets say you have your multiprovider and copied queries up in Prod, these queries will still pick up the data from the base cube.
    Now you need to make a copy of the base cube for some changes to the cube model, I would suggest that you copy the cube and make your changes on the copied cube itself. Then 9depending on the changes done) you can load data from Original Cube to New Cube. When this is being done, make sure that you change your queries to add a restriction on 0INFORPOV by Original Cube.
    After the load to the new cube is complete you can run reports restricted to each cube to verify the numbers. Then change the 0INFOPROV restriction in the queries to point to the New Cube and disengage the old cube from the multiprovider.
    Hope this helps...

Maybe you are looking for

  • HELP ME!-error message when trying to install J2sdk1.4.2

    Hi I downloaded this installer: J2SE v 1.4.2_04 SDK It finished the download fine- but when i clicked on the install setup icon on my desktop, by the way file name was "j2sdk-1_4_2_04-windows-i586-p" it brings up a window that says "Error reading set

  • How to use 'REQUEST' value on PL/SQL

    Hi All, I have assigned 'SEARCH' as button request to search button. I want to use this value in PL/SQL some thing like IF REQUEST='SEARCH' THEN --do something ELSE --do something else END IF; Can any one suggest how to access the 'REQUEST' value? Th

  • AddOn installer

    Hello, I am trying to create an installer for my add-on. I've seen the B1DE Professional Installer and I belive I can use it what it has generated and modify it according to my needs. But, I need to create some tables, user defined tables and user de

  • Ipod going haywire...?

    My ipod alternates between the sad icon and the apple logo and won't turn on. It doesn't show up in itunes or my computer, and won't go into disk mode. Because it doesn't show up on my computer, i can't reset or update it. When it's plugged into the

  • CS3 'Increase Leading' key not working

    I am trying to use, or create, a keyboard shortcut to increase leading by one of the preset units. The shortcut should be Com+Opt+Shift+' but this is not being recognised. I have tried removing the default shortcut and re-saving this key combination,