Passing parameter in sql reports

Hi all,
I created a sql file to generate a sql*report, in which i am passing a parameter and i stored it in the respective top.
I created a executable, program in which i passed the parameter as usual.
But while i submitted the request, it is not getting completed.
please help
--regards
--Raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Do you spool the output to a File?
If you do, then maybe the filename you are using is locked for some reason. Try using a different file name.

Similar Messages

  • Passing Parameter in SQL

    How to Passing parameter in SQL.For Example,Table name=&From_Clause.It will asking table name at runtime.How to assign table name based on user.

    Hi,
    796776 wrote:
    It will returm error.what problem in this
    Select * From Emp a,
    (SELECT CASE
    WHEN USER = :UserType
    THEN 'scott.Dept'
    ELSE 'scott.order'
    END AS b
    FROM dual)
    Where a.DeptNo= b.DeptNo &WhereClauseIt's hard to guess, from an example like this with so many errors, exactly what you're trying to do.
    Please post a description of the problem, including CREATE TABLE and INSERT statments for any tables you need (unless you can state the problem using commonly available tables, such as those in the data dictionary or the scott schema), a few values of a parameter (or examples of different user names, if USER acts like a parameter) and the results you want from the same data for each value.
    For example
    "In addition to the scott.dept table, I have a table called my_dept: CREATE TABLE my_dept ...
    which has this data: INSERT INTO my_dept ...
    I need a script such that, when user scott runs it, the results are ...
    but when any other user runs it, the results are ..
    As you can see, the difference is ..."
    Table names must be explicitly given when a SQL statement is compiled. That's why I usggested a preliminary query; so by the time you compiled the main query, the table name would be known and could be passed in a substitution variable.
    If you really want to do it in one query, you can do a UNION of two queries, one of which returns nothing because of the parameter. It's not very efficient.

  • Pass parameter to ssrs report in performance point webpart from textbox text

    How to pass parameter to ssrs report  in performance point webpart from textbox text
    Please help me to solve this ...
    Bikky Kumar

    Edit your SharePoint page and add new text filter web part.
    Then pass the text filter value to your performance point report using connections. Your report should include at least one parameter to get the value. More over you can set default value in text filter.

  • Passing Parameter from Main report to SQL command-based subreport

    I am trying to cut down the run time of my reports and have recently figured out how to write SQL commands to limit the data by filtering prior to being pulled into the reports.  However, many of my reports rely on multiple sub reports, which can cause a dramatic 'drag' on the report.
    I am trying to filter the SQL command used in my sub report by passing the group parameter, which is selected by the user in the main report, to the sub report's SQL command.  Without this parameter, the sub report has to sort through a lot more data than it would with this parameter, making the run time extremely slow.
    Any suggestions on how I can accomplish this?
    Thanks for any help you can provide,
    Marlene Allen
    Crystal Reports Developer
    Crystal Reports Professional;
    Product Type: Full;
    Product Version 11.5

    Hi Marlene,
    I don't believe you can pass a CR parameter to a Command object.
    I suggest replacing all of the Command Objects with a Stored Procedure so all of the data filtering is done server side. DB servers are much more proficient at collecting the data and filtering than CR will ever be. It will also allow you to replace subreports to also speed up your report processing. All depends on your layout of course but something to look at.
    Thank you
    Don

  • Passing Parameter to SQL-Query

    Hello ,
    i have an SQL Query as Data Source of my Crystal Report . I d like to pass the parameter to my SQL-Query.
    Parameter ?city
    Query1
    select
    Order ID,
    City,      -- How to pass my ?city here
    Amount
    from Orders,
    thanx ..

    You can do this by using the 'Add Command' feature.
    Click Add Command -> Create your ?City Parameter -> type SQL statement:
    select
    Order ID
    where City='{?City}'
    Make sure you add single quotes around your parameter.
    Regards,
    Zack H.

  • Help Needed in passing parameter to cryst report

    Hello everyone, I am trying to create a report for a single record and as such am trying to pass parameters to a crystal report but I am not sure exactly how to do this. This is my own method that I am employeeing. I do not want to create a data table and put all the info I need in there and then base a report off of it. I do not want to deal with loops and arrays right now. I just want to pass for example parameter JuvenileID = 1 to my crystal report, then create a command under the database expert and set the parameter for my command to the parameter I passed my crystal report. How would I go about in doing this? I am using VS 2010 C#. This is a windows application. I have a dataentry form that is already populated with the info needed for the report. I just need to pass all the controls.text values to the report and populate it that way.

    I'm not sure if I fully understand the issue, but since you have all the data you need in a data entry form that is already populated, why don't you simple create an ADO .NET Dataset and pass that to the report? Much easier to implement, faster execution with the small amount of data you have and less code.
    Dataset sample app is here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    More info on datasets is here:
    [1511438 - How to use datasets to pass data to crystal reports|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533313331333433333338%7D.do].
    - Ludek

  • Passing Parameter to Crystal Report

    Hi Experts,
    I have created and designed a Report in Crystal Report 2005. I am displaying the report in SAP B1 using Win Form . Here I want to pass 2 parameters to Report ---@FromDate and @ToDate . I have coded to pass these two parameters this way :
    Dim RptDoc As New ReportDocument
            Dim ParamValue As String = String.Empty
            Dim crtableLogoninfos As New CrystalDecisions.Shared.TableLogOnInfos
            Dim crtableLogoninfo As New CrystalDecisions.Shared.TableLogOnInfo
            Dim crConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo
            Dim CrTables As CrystalDecisions.CrystalReports.Engine.Tables
            Dim CrTable As CrystalDecisions.CrystalReports.Engine.Table
            Try
                RptDoc.Load(Application.StartupPath() & "\" & ReportName & ".rpt")
                RptDoc.SetParameterValue("@FromDate", "01/01/2008")
                RptDoc.SetParameterValue("@ToDate", "12/31/2008")
                Dim oForm_ReportViewer As Frm_ReportViewer = New Frm_ReportViewer()
                oForm_ReportViewer.CRViewer.ReportSource = RptDoc
                With crConnectionInfo
                    .ServerName = oCompany.Server  '"(local)"
                    .DatabaseName = oCompany.CompanyDB '"SBODemoIn"
                    .UserID = oCompany.DbUserName
                    .Password = "manager@123" 'oCompany.DbPassword
                 End With
                 CrTables = RptDoc.Database.Tables
                'Loop through each table in the report and apply the
                'LogonInfo information
                For Each CrTable In CrTables
                    crtableLogoninfo = CrTable.LogOnInfo
                    crtableLogoninfo.ConnectionInfo = crConnectionInfo
                    CrTable.ApplyLogOnInfo(crtableLogoninfo)
                Next
               oForm_ReportViewer.Text = frmTitle
                oForm_ReportViewer.WindowState = FormWindowState.Maximized
                oForm_ReportViewer.ShowDialog()
            Catch Ex As Exception
                MessageBox.Show(Ex.ToString)
            End Try
      But When I view the report in B1 , it throws an Exception "Report or Procedure expects parameter @FromDate which is not    supplied. "
    Please help me where I am making mistake , what could be the cause of this exception..
    Thanks and Regards,
    Pooja Singh.

    Hi Pooja Singh,
    You have only set Dim ParamValue As String = String.Empty.  Where are two parameter @FromDate and @ToDate?
    SetParameterValue will only work if you have defined the parameters already and the parameters have the right format.
    You may check this thread:
    Re: Crystal report open instead of PLD with same form reference.
    Thanks,
    Gordon

  • How to pass parameter to a report for Operator 'LIKE'

    I need to pass a parameter to a report for "LIKE" operator. the parameter for "equal to or is in" operator is 'eq':
    'https://secure-ausomxfts.crmondemand.com/OnDemand/user/analytics/saw.dll?Go&Path=/shared/Company_AFTA-D78SR_Shared_Folder/Work Order Asset Lookup&Options=r&Action=Navigate&P0=2&P1=eq&P2=Account.TEXT_61&P3=&p4=
    What would 'p1' value for 'LIKE' operator?
    Thanks

    Hi, Hope the below helps
    neq - Not equal to or not in
    lt - Less than
    gt - Greater than
    ge - Greater than or equal to
    le - Less than or equal to
    bwith - Begins with
    ewith - Ends with
    cany - Contains any (of the values in &P3)
    call - Contains all (of the values in &P3)
    like - Is like (Type %25 rather than the % wildcard)
    top - In the top n (&P3 contains 1+n, where n is the number of top items)
    bottom - In the bottom n (&P3 contains 1+n, where n is the number of bottom
    items)
    bet - Between (&P3 must have two values)
    null - Is null (&P3 must be 0 or omitted)
    nnul - Is not null (&P3 must be 0 or omitted)
    Venky CRMIT

  • How to pass date in SQL Report

    Hi All,
    I am trying to create a SQL report which contains the following in the where clause:
    and A.RESP_DATE >= to_date('01/01/2010','MM/DD/YYYY')
    BIP does not seem to like this and is not processing the report. If I remove this clause the report is running but I want to limit the number of records that are being returned.
    I wanted to find out which date format should be used to pass the SQL query.
    TIA,
    Ramkumar

    Hi ,
    where clause with date will wrk in bip.
    Check the same query in sql..if it is wrking means it will wrk here also.
    (A.RESP_DATE) whats ur actuall format of this column.
    Thanks,
    Ananth

  • Most urgent:::: passing parameter list  to reports containing record groups

    hi
    can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
    zulfiqar

    Hi!
    To suppress Oracle Reports native Parameter Form just add:
    add_parameter( pl_id, 'pARAMform', text_parameter, 'NO' );
    Andrew Velichko
    Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
    null

  • Passing parameter from WEBI report to xcelsius

    hi
    i transfered the parameter from WEBI report (3.1 sp2) table using a link to a gauhe from xcelsius
    i can see the parameter the right number in the gauge value but the problem is that the pin does not move

    How are you connecting your report to Xcelsius? Live Office or QAAWS?

  • Pass parameter to a report link

    HI,
    This is what I am trying to do:
    I want to create a report with 2 parameters - FromDate and ToDate.
    The report link will be something like this - http://xyx.com/report1FromDate=1jan2012&ToDate=31jan2012
    What I want is the users to change the date range in this URL and the report should automatically filter out the date selected. Is this possible? Has anyone does this before?
    So when the user runs this report and wants to run for some other date, they will just modify the URL and the report will run for Feb as an example shown below:
    http://xyx.com/report1FromDate=1feb2012&ToDate=29Feb2012
    Edited by: 920645 on Mar 21, 2012 11:21 AM

    It's not what you're doing wrong, but there is more right you can do.
    In the Report, on the Customization Form Display Options Tab, make sure "Make Public" is checked for your Bind Parameter (:CNTRYLOC).
    In the Page Properties, on the Parameters Tab, Add a Page parameter for CNTRYLOC. (I usually use the same name for the Page Parameter as the Report's Bind Parm. Warning: These parameters are CASE-SENSITIVE in places.)
    Still on the Page Properties Parameters Tab, Expand the list of Portlets at the bottom and map your Portlet Parameter to the Page parameter you just made.
    Hope that helps!

  • Passing parameter into SQL statement in Crystal Reports

    Hi all,
    I would like to call Crystal Reports in JSP. I can handle it well now. But I hope to let user input their selection criteria before printing out the report. I know how to get the parameter value in JSP, but I really dunno how to pass these parameter values into the SQL statement in Crystal Report. Actually, is it possible to do so?
    If anyone has idea, please tell me. Thx Thx!
    Regards,
    Betty

    Dear Sir,
    I want to use Crystal Report as a web base using JSP. But, I am getting how to call .rpt file in .jsp file & passing of parameter.
    If you have any idea, please reply as early as possible
    Thanking U.
    My userid = [email protected]
    Regds
    Pankaj..

  • Passing parameter from interactive report column link to new page

    I'm very simply trying to pass the value of the column link to the where clause on the next page.
    Interactive Report on P2 has column link fid alias in sql query.
    I read somewhere to refer prefix the interactive report column with IR ??
    So I have item name P2_FID, value #FID#. Anyway, I've tried a kazillion things.
    Created a hidden item with same source value... sigh.
    Is there a syntax to refer to a report column link, rather than an item_id in a region where clause?
    Is there a simple direct way to do this?
    Thanks,
    Pamela
    -----pls/apex/f?p=163:1:2746459963336955::NO::P2_FID:119

    Thank you Varad...
    Unfortunately, I am still getting no data found. (and there IS data).
    a) Do you mean in the link column section of the report attributes? that is done: item 1 name= IR_P2_FID, value = #FID#
    b) Do you mean my changing my hidden page item to ir_p2_fid with its source value as #FID# ? also done.
    Do I need this hidden item?, and if not how do I refer to link in the where clause of the called page's sql region?
    3) Where Fishery_id = :IR_P2_FID
    Where Fishery_id = &IR_P2_FID
    Thanks again!
    Pamela

  • Fact Sheet - Passing parameter to BI report

    Hello,
    I've created my own BI report which I want to use in the account fact sheet. I have managed to open the report in the fact sheet by creating a customer configuration of the BP_FACTSHEET/BIREPORTProxy view in component designer. In the view I have maintained attributes for the biproxy:
    REPID (BI Report ID): Z_TEST_JOHAN_ZCUSTOMER_CARD_1101
    BISYSTEM (RFC Destination of BI System): GYBCLNT100
    ADDPARAMETER (Addtional Parameter for a BI Report URL): &FILTER_IOBJNM_1=0CUSTOMER&FILTER_VALUE_1=715
    My question is how ADDPARAMETER works. I want to filter the data based on the customer number for which the account fact sheet is viewed. In my example, I've just tried to hard code that only data for customer 715 is displayed. This is not working, so all data is displayed.
    How should the parameters in ADDPARAMETER be entered? How do I dynamically pass the correct customer number?
    Kind regards,
    Johan Wigert

    Here is an example code for this badi implementation:
    METHOD if_ex_bsp_dlc_fs~get_bi_rep_parameter.
      DATA: lr_bol_entity TYPE REF TO cl_crm_bol_entity,
            lr_value_node TYPE REF TO cl_bsp_wd_value_node,
            lr_collection TYPE REF TO if_bol_bo_col,
            lv_repid TYPE string.
    **this is only a example
      TRY.
          lr_bol_entity ?= iv_data_collection->get_first( ).
          lr_value_node ?= iv_data_collection->get_next( ).
          IF lr_value_node IS BOUND AND lr_bol_entity IS BOUND.
            lv_repid = lr_value_node->get_property_as_string( 'REPID' ).
            IF lv_repid = 'SAMPLE7'.
              REPLACE '&1' IN cv_addparameter WITH '0CRM_SOLDTO'.
              REPLACE '&2' IN cv_addparameter WITH '156'.
            ENDIF.
          ENDIF.
        CATCH cx_sy_move_cast_error.
      ENDTRY.
    ENDMETHOD.

Maybe you are looking for

  • Changing Browser to Album Artist?

    Hello, I've got iTunes 7 on my PC and have a question about Browsing by Album Artist: Can I change the "browser" (turn-on-and-off-able bit at the top of the main song selecty window) to work off "Album artist" instead of/as well as Artist? Just to fi

  • Recommendations - Oracle RAC 10g on Solaris 10 Containers Logical/Local..

    Dear Oracle Experts et all I have a couple of questions for Oracle 10g RAC implementation on Solaris and seek your advice. we are attempting to implement oracle 10g RAC on Solaris OS and SPARC Platform. 1 We are wondering if Oracle 10g RAC could be i

  • Upgraded to iTunes 7.0.2 and i ipod wont work

    I have just upgraded iTunes and my video ipod will work fine but my brothers ipod mini will not play music. Although it is being reckonised you can only access the overview but no libery. Please help !!!

  • Resource bundles and sort order?

    I am wanting to use a resource bundle to store entries that can then be displayed sorted in a combo-box component in an HTML page, though it does not seem to be working out. Basically I am using JSTL and Struts2, and the select component can take var

  • Sending Cookie to JSP Through Servlet

    I am trying to read a cookie through JSP and cookie is defined in Servlet. Here is what happening? First JSP, user click on a hyperlink to select a category and that invokes servlet. Servlet has to pass selected category to another JSP page through a