Is it possible to create a generic report that accepts the SQL as a param

Is it possible to create a generic report that accepts the FULL sql statement as a paramater and returns variable results based on this?
We have a requirement to have a generic export routine to spit out csv's from clicking on a web page hyperlink, which would need to accept a "new" sql statement for every run, each containing different columsn etc that would be needed in the output.
I was hoping could have a generic Oracle report, exporting delimited data format (and as such not using a layout) and somehow pass in the "new" sql statement as a parameter at run time - each sql statement would be different with different columns etc.
Is this possible with oracle reports ?
thanks

If you need a simple dump of data you could try writing a report with a simple query such as
select 'Report title or column headers'
from dual
&data_query
then your &data_query parameter could be
union select col1||','||col2 from data_table
If you are outputing a comma separated data dump the you can concatenate together your data into a single text field.
This would allow you to have a simple heading followed by the actual data. I guess you could extend this so that the 'Report title or column headers' from the first query was also a parameter to output your row headings i.e.
select :column_headings_text
from dual
&data_query
Give it a go and good luck

Similar Messages

  • Create a Crystal report to display the sum of G/L account code within a specific period

    Hi,
    Just wonder is it possible to create a crystal report to display the total of a G/L account code within a specific period?
    How to write the query to get the sum within a specific period?
    For example:
    Period: 2014-06-01-2014-06-10
    Account code A: USD "TOTAL"
    Account code B: USD "TOTAL"
    Thanks

    Hi Olga,
    Please check below Query.
    SELECT T1.[Account], T1.[ShortName], SUM (T1.[Debit]) as Debit, SUM (T1.[Credit]) As Credit, SUM (T1.[FCDebit]) As FCDebit, SUM (T1.[FCCredit]) As FCCredit, SUM (T1.[SYSDeb]) As SysDebit , SUM (T1.[SYSCred]) As SysCredit  FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.[TransId] = T1.[TransId] WHERE T1.[RefDate] >=[%3]  AND   T1.[RefDate] <=[%4]
    Hope this Help
    Regards::::
    Atul Chakraborty

  • Is It Possible to create multiple tab report in OBIEE 11g?

    Is It Possible to create multiple tab report in OBIEE 11g?

    Triple post even! Multiple tabs in a single OBIEE  &  https://forums.oracle.com/thread/2560266
    Stick to one post!

  • Is it possible to create group above report between to different data model

    Hi,
    I am having one problem.. I am working on Bi publisher 10...
    I have to create 2 different data models.. which i have done successfully.... its showing xml data perfectly.. but my problem is i want my 2nd data model to be dependent of 1st model...
    when i am designing my template ... i am not able to create a group by report..
    i want my report like this ...
    ------------------------------------------------------------ (fetching data from first data model)
    abc xyz pqrs
    --------------------------------now their it must show the data from second data model... dependent on first model...
    simply i want to know is it possible to create group above report between to different data models..

    Thanks for your response..
    I already tried this.. But its not working ..
    i want parent information from data model 1
    then all detail information related to parent template ...from data model 2..
    but its not working.. its giving me all parent informations first then all details informations..

  • Creating Profile type report that hold fields with multiple values

    Really hoping someone can please help me out as I am very new to Crystal Reports.
    We use Maximizer CRM and we have been in need of some custom reports to rule out risk for regulators. I contacted Max and they suggested the only possible way is to create through Crystal. Its been almost one month already and I still cannot for the likes of me get this report operating properly. I have been inside and out on all sorts of forums, posted topics but no luck! So I will give it one more attempt in hopes that one of you geniuses can show me the way.
    In Maximizer CRM there is date, numeric, alphanumric and table. Our table fields items can be set to either single value or multi-value. So in crystal i did a default join of Client.tbl and the user-defined fields from view and joined the client id and contact number from all the view fields to client table. See Image:
    and I have dragged all the relevant fields in rows (in details section) rather then columns because we would be reporting on more then 1 record at a time. My problem is - If there is a table with multiple items selected (values), the records triple in count and it will show the same record over and over with just single field value changing at a time.
    The formula field you see in the image is from when I posted a discussion and Abhilash assisted me by providing the formulas I should add:
    1) Create a formula with this code and place this on the Details Section:
    whileprintingrecords;
    stringvar s := s + {field_with_multiple_values} + ", ";
    2) Next, move all the fields (except the formula field above) from the Details section to the Report Footer
    3) Create a formula with this code and place this on the Report Footer. This field would replace the existing field that contains multiple values:
    whileprintingrecords;
    stringvar s;
    Left(s, len(s)-2);
    This method is not working out for this type of report. When I add the formula Crystal is still counting my 2 records as 5 records but I can only view it as a single record and the multi-field has all the values for both records and displaying as a single record. See image:
    Can anyone please assist and advise where I am going wrong?
    -Jared

    Hi Jared,
    Thanks for taking down memory lane that is Maximizer.  Nice to see their table structure hasn't been simplified in the last 20 years.
    If I understand what's happening, you should only see 2 records and not 5.  That means your joins are creating duplicate records.  For now I'm going to skip over trying to optimize your query because I still have bad dreams of linking Maximizer tables.
    There are a couple of ways to work around the duplicates, one is to create a group and instead of having your formula in the Detail section, put it in the Group Header.  The question is what would you create your group on that would get you a unique record?
    If you know where the duplicates are coming from, create a Record Selection Formula that will remove the duplicates.
    There is also the menu option Database | Select Distinct Records.  I've never really had success with this one but there's no harm in giving it a shot.
    I would have you try and find which table or combination of tables is generating the duplicates but that requires playing with your links.  Normally I'd start by adding one table at a time and dropping one field onto the report.  If it doesn't repeat then add another table and field and repeat until you get your duplicates.  Once you know where they are coming from then you can either drop that table from your query or create a selection formula that removes the duplicates.
    Good luck,
    Brian

  • How to create a standard report that allows filtering?

    Hi Guys and Gals,
    Sometimes, the standard report is great because it gives the user the feeling of a grid. i.e. All of the values are editable on one page, kind of like a spreadsheet. That is sometimes very useful. But if there is a lot of data, a filtering mechanism is necessary.
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    Allowing the user to specify the number of rows displayed would be peachy-keen too.
    Thanks,
    Kim
    P.S. I'm running Apex 4.1 with Oracle 11g.

    Kim2012 wrote:
    Your idea sounds very promising, but I apparently need a nudge in the right direction. From "Create Page", I clicked on "Form" and then "Tabular Form". Why would you do this? The advice given was
    create a standard report page using the Create New Page wizardi.e. go to Home > Application Builder > Application > Create Page and click Classic Report, this was suggested because the original post said:
    >
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    >
    Nothing about forms. Tabular Forms, Tabular Forms. Despite many enhancements over the last few versions, tabular forms still cause problems, especially for novices trying to go beyond their own competence and the built-in capabilities of wizard-generated tabular forms.
    More good advice: Re: Newbie question-how does the tabular form work?  How to populate prim key? and&mdash;if based on decent database design&mdash;out of the box you have a usable and robust application. Use an Interactive Report or a custom report template and add some CSS and you can get something a lot more powerful, flexible and better looking than any tabular form. Spend the time you haven't wasted on frustrated hacking of tabular forms adding more features and enhancements to your app.

  • Is it possible to create a configuration profile that will install multiple network printers and their associated drivers

    Is it possible to create a configuration profile that will install multiple network printers and their associated drivers?
    I was not able to find profile manager on my employer's installation of 10.6 Server. Is this only a feature of 10.7/10.8 server?

    10.6 server does not have profile manager, profile manager is only available in 10/7 and 10.8 server
    for 10.6 server you'll need to use wgm and server admin
    printer management with 10.6, I recommend you read the relevant server manuals regarding
    print server and user management, printer management

  • Is it possible to create a playlist, automatically, that contains recently added podcasts for the iphone 4s?

    Is it possible to create a playlist in itunes on the iphone 4s, that automatically contains recently downloaded podcasts?

    Is it possible to create a playlist in itunes on the iphone 4s, that automatically contains recently downloaded podcasts?

  • Is it possible to create a variable in bex with the last work day?

    Hi Gurus
    Is it possible to create a variable in bex with the last work day?
    Actually end-user every day open queries,
        - Put in selection date day - 1 or
        - put last Friday if the day is Monday or
        - put last Thursday if the day is Monday and Friday is holiday (in a calendar for example 25 the December).
    Please do the needful. It is urgent
    Thanks in advance
    Raj

    Try this logic in a customer exit:
    DATA:  l_s_range TYPE rsr_s_rangesid.
    DATA:  X_PERIOD LIKE T009B-POPER,
               X_YEAR   LIKE T009B-BDATJ.
      CASE I_VNAM.
      WHEN 'ZPREVWORKDAY'.
        DATA: l_DayOfWeek(1) TYPE C,
              l_act_date     TYPE d,
              l_prev_date    TYPE d.
        l_act_date = sy-datum.
        CALL FUNCTION  'DATE_COMPUTE_DAY'
             EXPORTING DATE = l_act_date
             IMPORTING DAY  = l_DayOfWeek.
        CASE l_DayOfWeek.
          WHEN '1'.
            l_prev_date = l_act_date - 3.
          WHEN '2'.
            l_prev_date = l_act_date - 1.
          WHEN '3'.
            l_prev_date = l_act_date - 1.
          WHEN '4'.
            l_prev_date = l_act_date - 1.
          WHEN '5'.
            l_prev_date = l_act_date - 1.
          WHEN '6'.
            l_prev_date = l_act_date - 1.
          WHEN '7'.
            l_prev_date = l_act_date - 2.
        ENDCASE.
        l_s_range-low  = l_prev_date.
        APPEND l_s_range TO e_t_range.
    ENDCASE.
    Edited by: Tyler Blouse on Feb 13, 2008 8:28 PM

  • Is it possible to create an album in gallery on the iPad or do you have to do it on your computer?

    Is it possible to create an album in gallery on the iPad or do you have to do it on your computer?

    Thanks, how about in gallery on MobileMe ? As I am not near my computer for the next 3 weeks so can't do a cable sync do you think I could create and album in gallery on mobile me on a "borrowed" computer and do it throughout the cloud?

  • Is it possible to create a standard form that can be emailed to anyone and once filled out by the receiver, have a button that the receiver clicks and the form is encrypted and attached an email back to the sender and a preset admin password would open it

    Is it possible to create a standard form that can be emailed to anyone and once filled out by the receiver, have a button that the receiver clicks and the form is encrypted and attached to an email back to the sender and a preset admin password would open it?

    Hello Graphicsguy123,
    You would need to first create the form ( or Widget in EchoSign) first to generate a url which you can paste it in the email being sent to customers. You would need to make sure you have a Document Cloud Enterprise Premium account in order to create a Widget. If you don't have the account, you can use the trial version to test it. Here is the link:
    Global Trial Registration | eSign services from Adobe
    -Rijul

  • With adobe standard, is it possible to create a fillable document that can be saved and used repeatedly as a fillable doc

    with adobe standard, is it possible to create a fillable document that can be saved and used repeatedly as a fillable doc

    Hey Paul,
    Please let me know what version of Acrobat Standard are you using.
    Regards,
    Anubha

  • Is it possible to create a 1 D array with the "build array VI"? when receiving random number

    Hello all,
    Is it possible to create a 1 D array with the "build array VI" when receiving random number?
    I am receiving random data and the build array VI always create a 2D array which might cause some problem if you want to compute certain type of operation after.
    Any example will be welcomed.
    Thank you,
    Israel 

    Hello Lynn and Yamaeda
    First I want to Thank you Lynn for your linguistic contribution indeed "Build Array" is a primitive and not VI, thank you for the education. In reality what I am doing is simple.
    I have two arrays of complex elements Array1 and Array2.
    Array1 conains the complex elements ""(a0+ib0) ; (a1+ib1) ;...(an+ibn) ;
    Array2 conains the complex elements ""(c0+id0) ; (c1+id1) ;...(cn+idn) 
    What I want to do is the multiplication of the first array by the  conjugate of the second array element.
    Array1*(Conjugate Array 2)" for the first element the results is "(a0.C0-b0.d0) + i(b0c0-a0d0)" and the etc...
    and then taking the square root ([(a0.C0-b0.d0) power of 2]) +  [(b0c0-a0d0) power of 2])
    I was wondering if there were some dedicate primitive that could solve the computation above which is the cross correlation in Frequency domain.
    Thank you very much.
    Israel

  • Any Report that updates the GR document number of R/3 to SRM

    Hi  Experts
    Can any one tell me is there any reoprt that updated the GR numbers of R/3 to SRM
    Because I have done the confirmations in SRM ( 4.0) it created a confirmation number but  the shoppingc art history is not updated with the GR document number .
    Similiar to like CLEAN_REQREQ_UP is there any report that updates the GR document number in the frontend. And also any table for this like BBP_DOCUMENT_TAB for watching the GR entry till the time it gets cleared.
    Please suggest
    Regards
    Srujan K

    Hi Muthu,
    Thanks for your reply.
    My concern is when I do the confirmations in the SRM the shopping cart history is updated with Confirmations number and i can see the status as approved but I am not able to find the GR number besides the confirmations number in the shopping cart history.
    ours is SRM ver 4.0. what could be the problem. when I do the GR from backend and wait for some time the GR document number is getting updated.
    But once after i do the confirmation in the frontend it should automatically post a GR is the backend and
    update the shopping cart history with GR document number which is not happening
    Do I need to check the idoc for this? if so where do i need to check in SRM or in R/3?  because this is in quality system as i doing the testing part.
    So please provide me some solution for this.
    Regards
    Srujan K

  • I need to create a clipping mask that covers the negative space of my created path...

    Like in a Circle I need to make the compound path the inner area or negative space of my objects. I have expanded letters and joined their paths so that there are negative space, I was wondering if it were possible to fill in the negative space with a clipping mask? (like one would with an object like a circle or rectangle) The letter that I am using is an A and I have connected two A's together like a diamond reflecting each other... Is it possible to create a clipping mask to cover the negative space of the inside of the letters...?

    Colio,
    As (Kurt and) I (mis)understand it, you may, presuming the As form one Compound Path:
    1) Lock the underlying gradient rectangle;
    2) Copy the path of the four As and hide the original;
    3) With the copy selected Object>Compound Path>Release, then delete the outer path, then select all the inner paths and Object>Compound Path>Make;
    4) Unlock the rectangle from 1) and select it with the compound path from 3) and Object>Clipping Path>Make;
    5) Show the original compound path from 2).
    You can do it without the hiding and locking, but that makes it easier to see and to avoid mistakes.

Maybe you are looking for

  • Junk mail filter

    how do I get control of the email spam on my phone. I've almost given up on trying to keep up with emails. unless the sender is already in my VIP list there is so much spam the emails I want get lost in the spam and I don't even know what to search f

  • No confirmation on ibook when sent

    When i am publishing my ibook with itunes producer, I have received a delivery confirmation but do not receive a confirmation email that it has been successfully uploaded to the store. What do I need to do to fix this.

  • No contact with VCR

    hi saw a similar thread, but this is a little different, can not get any pic from my vcr, despite autotuning. i connect via antenna cable, i have no antenna connected to vcr only  the cable to my 651, i can get 2 channels without the antenna but not

  • BUSINESS  DELEGATE PATTERN AND DAO

    Culd anyone explain me then with an example? Thanks in advance.

  • Class loader probelm

    Hi all, I am using IAS 6.0 with sp1 on windows NT system .I deployed my applications in two servers which are in a cluster.I deployed two applications using one dll file.When I am navigating through the site , first i gone through one application acc