Passing parameters dynamically to crystal report from oracle

Hi,
I have a Crystal Report that is based on an Oracle Stored Procedure. This was created using Crystal Reports XI R2 and it is published on a Infoview environment.
There are 2 parameteres in  an Oracle Stored Procedure, of which one parameter is Region which contains values like AP,GJ,HP,MP,TN. The report run daily at scheduled time in infoview and the output of the report for each region is passed and stored in that particular region folder for easy access to enduser. The other parameter is a refcursor.
Now my issue is i want to add new region value like KA. As i am new to crystal reports i am unable to understand how to do this also if possible can any one send me liknk which explains the procedure how to run a report that is based on an Oracle Stored Procedure.
Thanks in advance.

Hello,
Typically when you create the report this way the Store Procedure will query the table for values and present those in a drop down list in the report Prompts when viewing. Or if it's not interactive then simply typing in 'KA" into the parameter UI should/could return data.
So it all depends on how you have this configured and how it was set up in the CMC when the report was scheduled. The BOE Administrator may have manually added the filter for each state or it's part of the report itself and other than updating the table field values is all that is required.
So it's not clear what role you play in the Admin group of BOE but it appears to be fairly simple to do. If you are not the Administrator find out who is and that person can explain it to you also.
I'll move this post to the Business Objects Enterprise Forum for someone there to give you specific details.
Thank you
Don

Similar Messages

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • URGENT!!! calling crystal reports from oracle forms 10g

    Is it possible to call crystal reports from oracle forms 10g?
    Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
    Please provide codes with details showing step by step.
    Thanks

    hi
    try something like this.
    DECLARE
    charWinHandle VARCHAR2(50);
    numWinHandle NUMBER;
    BEGIN Set_Application_Property(Cursor_Style,'BUSY');
    charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
    numWinHandle := To_Number(charWinHandle);
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
    := numWinHandle;
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
    :Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
    := 'DSN=;UID=' || Get_Application_Property(UserName) ||
    ';pwd=' || Get_Application_Property(password) || ';dsq=;';
    Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
    'C:\Sample_Rep.Rpt' );
    Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
    Set_Window_Property( 'MAIN', Window_State, Maximize );
    :reptitle := 'Report Preview Window';
    numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
    Set_Application_Property(Cursor_Style,'DEFAULT');
    END;NOTE: Change the report name and path according to your required file name and path in
    the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
    assumes that you will use the current USER and PASSWORD for the Form.
    - To make the above Form generic so that you can run any Crystal report from it, then create
    a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
    Then just replace the file name with the passed parameter.
    -. Run the Form
    If its correct/helpful please mark it thanks.
    sarah
    Edited by: S@R@h on Nov 27, 2009 6:33 AM

  • Calling Crystal Reports from Oracle Forms 10G

    Hi everyone,
    I am trying to call a crystal report from Oracle Forms 10G.
    I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file.
    Can someone please send me the code to do this and also the exact steps that are to be followed.
    Thanks
    Fm.

    Hi Andreas,
    I am trying to call the crystal report from an Oracle Form using a URL. No batch file is being used here.
    I am looking for a peice of code similar to run_product or run_report built in in Oracle which calls an Oracle report from an Oracle Form.
    Also I dont want to display the report on a screen or a window in Oracle Forms. I would like it to run just as we run an Oracle Report from an Oracle Form.
    Is that possible ? If yes please let me know the steps to do this.
    Thanks
    Faiz
    Edited by: IQ on May 13, 2011 11:38 AM

  • Is it possible to call a Crystal Report from Oracle Forms.

    Hi Everybody,
    I got a Dout about Crystal Reports. Is it possible to call Crystal Reports from Oracle Forms.

    Hello,
    That depends are you running Forms via the WEB or client/server. I will assume you are running client/server since you are running crystal reports. The answer is yes. All you will have to do is use the HOST command or the win_api_shell to run the report. Look in the Forms manual for information on the commands and what else you may need.
    John

  • Calling Crystal Reports from Oracle Forms 6i

    Hello
    I am trying to invoke/call Crystal Reports from Forms 6i.
    I have created OCX Item, while right click on item and insert-object, i am unable to see "Crystal Report" Control.
    I have installed crystal Reports 2008 (Version 12) and CR Standard Production version 9.
    Is there any Active X control registration in forms.
    I could see "Crystal Report Viewer Control 9" and "Crystal Report Print Control 12.0"
    Could some one help me,
    Thanks
    Tumuganti

    Did u Succeed in calling crystal Reports XI from Forms 6i
    or from Forms10g
    for me also the same Requirement
    please send any document ,Attachment ,steps to call Crystal Reports XI from Forms
    [email protected]
    Message was edited by:
    user501763

  • RUNNIG CRYSTAL REPORTS FROM ORACLE FORMS (for oracle report team too)

    I WANT TO RUN CRYSTAL REPORT FROM THE ORACE FORMS 6i how can i
    run this if any one has syntax or any detail please send me
    or reply
    thanks

    Ask the Crystal support forum how do you invoke their tool from
    a command line.
    You can then use host command from forms.
    You can also try and find out if they have an OLE2 interface and
    then work with the OLE2 package in forms.

  • Passing parameters to a Crystal Reports JavaBean connection

    Hi,
    I'm trying to pass a parameter to a CR XI JavaBean connection. So far I can read and show a String parameter in the report, but I'm unable to pass it to the getResultSet(String aParameter) method that provides the ResultSet.
    The Crystal Reports editor shows a dialog box asking for the "Parameter 1". I've tried with the parameter name and with an arbitrary value, but it just doesn't work.
    Any comment from anyone who has been able to figure this out would be really welcome. The Crystal Reports documentation isn't very useful.
    Best regards,
    - Juan

    I'm about to throw Crystal Reports thru the window. There is no documentation, their knowledge base is a wasteland, the samples included are just the simplest ones, it seems there is nobody from their company colaborating in their forums This company is incredible.
    As far as I can tell, you need to set the parameters for the ResultSet method as if it was a stored procedure, but I found no useful documentation about this for Java / JSP pages.
    So far, my JavaBean method is:
         public ResultSet getResultSet(String minAge, maxAge) throws SQLException {
            // I don't use the parameters yet. I just want to execute this ResultSet
             try {
                  return getConnection()
                       .createStatement()
                       .executeQuery("SELECT * FROM notes");
             } catch (Exception e) {
                 e.printStackTrace();
                 _log.error(e);
                 return null;
         }An the parameters code is:
        public Fields getParameters() {
            if (_parametros == null) {
                 ParameterFieldDiscreteValue val1 = new ParameterFieldDiscreteValue();
                 val1.setValue("100");
                 ParameterFieldDiscreteValue val2 = new ParameterFieldDiscreteValue();
                 val2.setValue("200");
                   Values vals1 = new Values();
                   vals1.add(val1);
                   Values vals2 = new Values();
                   vals2.add(val2);
                   ParameterField field1 = new ParameterField();
                   field1.setName("minAge");
                   field1.setReportName("");
                   field1.setCurrentValues(vals1);
                   ParameterField field2 = new ParameterField();
                   field2.setName("maxAge");
                   field2.setReportName("");
                   field2.setCurrentValues(vals2);
                   Fields fields = new Fields();
                   fields.add(field1);
                   fields.add(field2);
                   _parameters = fields;
            return _parameters;
        }Any comment of any kind about this would be really welcome.
    Regards,
    - Juan

  • Passing formula values to Crystal Reports from c#

    in an old vb 6 application we used to be able to call a function called PESetFomula in the Crystal Reports viewer and pass it the name of the parameter and the value.
    How do we do that now using Crystal Reports for VS 2013. I don't mean to set the criteria just to pass over parameters and values.
    Bill

    Hi Bill,
    Moving the thread to Crystal reports for Visual Studio Space.
    Using the .net SDK you could use the ReportDocument class to pass the parameter values to the report.
    See the sample applications here:
    http://scn.sap.com/docs/DOC-6929
    http://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports+for+.NET+SDK+Samples
    The developer guide and the API reference guide is here.
    http://scn.sap.com/docs/DOC-7824
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • How to pass parameters to concurrent program report from Forms Personalizn

    Hi All,
    I am trying to run a report from a menu entry in the AP Invoice entry form. For this I have done the necessary steps of creating the menu entry and am assigning the values for the 2 parameters to a global variable and then launching SRS form.
    In SRS form created an action to assign the global variable value to work_order.parameters. I can invoke the SRS OK except that my 2 parameter values appear concatenated in the first parameter itself and are not getting assigned to each of them seperately.
    my global variable assignment is as follows :
    =${item.inv_sum_folder.vendor_name.value}||'.'||${item.inv_sum_folder.vendor_site_code.value}
    and my work_order.parameters value assignment is as follows :
    =select nvl(${global.kmg_invalid_po_gv.value}, ${item.work_order.parameters.value}) from dual
    It passes parameters OK if i replace custom report with standard AP report. I also made my parameters to be free text (17 character value set) to not validate input, but still no joy.
    Any ideas why this is not working ?
    Thanks in advance.
    Shankar

    As Francois said in his answer:
    e.g.:Form A call FORM B
    In form A (Button's or menu's Trigger code)
    DECLARE
    param_list_id  ParamList;     
    BEGIN
    param_list_id := GET_PARAMETER_LIST('EMPNO');
    IF NOT ID_NULL(param_list_id) THEN 
    DESTROY_PARAMETER_LIST(param_list_id);
    END IF;
    param_list_id := CREATE_PARAMETER_LIST('empno');
    ADD_PARAMETER(param_list_id, 'EMPNO', TEXT_PARAMETER, EMPNO);
    CALL_FORM ( 'FORM B.FMX',HIDE,DO_replace,NO_QUERY_ONLY,param_list_id);and in FORM B create a parameter EMPNO (e.g.: varchar2) in node tree(parameter) and at Form level (e.g. WHEN NEW FORM INSTANCE read parameter-
    or you could create a GLOBAL variables
    or, still,Global procedure in LIB
    Regards

  • Passing parameters to the SQL Report from a text box in jsp

    Hi All,
    I want to dynamically generate the SQL Server Reporting Services by passing the query parameter from the url like this :
    "http://localhost/Reports/Pages/Report.aspx?ItemPath=%2fDashboardReports%2fHorse_Profile&rs:Command=Render&rs:HorseID=117415"
    Where horseid id my parameter which is needed by report to generate the required data.
    This query paramter value is picked from the text box on my jsp page.
    But my problem is when i go to this url it says the message
    "The 'HorseID' parameter is missing a value ".
    I have done a lot of search on this topic. Everybody says that we can pass the values from the url like i am using. But still its not working.
    Any body has any idea please give me some idea.
    Regards.

    If you receive a picture via email or text message in ios 7 and when you press the action icon to save the picture and you do not get the option to save to your camera roll. Press and hold on the the image and you will get an overlay pop up to save the image. I have no idea why some attachments don't have option in action menu to save in the camera roll but by experimentation and earned frustration I found the above to work in certain situations.
    Be well and have fun and feel rewarded in your frustrations. For without challenges, life would be an utter bore.

  • Pass parameters dynamically to url iview from web dynpro abap

    Hi,
    I am trying to pass 3 key-value pairs via absolute navigation to a URL iview.
    The url expected is : http://www.sap.com?field1=value1&field2=value2&field3=value3
    For this, I have done the following:
    1) Created a url iview with the 3 parameters in get.
    2) Used the pcd location of the url iview and referred it in the navigate_absolute method.
    Following is the call:
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_false
                business_parameters = l_bus_parameter_tab.
    The l_bus_parameter_tab has the key-value pairs populated and I can see them populated.
    However, when the url is being called the parameters are not getting passed. Am I missing anything to be passed?
    Thanks.

    Hi Kumar,
    I have followed your reccomendation and updated the code and iview properties.
    The code now looks like:
            l_parameter-key = 'userid'.
            l_parameter-value = sy-uname.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'portal'.
            l_parameter-value = 'test'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'mode'.
            l_parameter-value = 'I'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
    *End of business parameters population
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_true
               business_parameters = l_bus_parameter_tab.
                launcher_parameters = l_bus_parameter_tab.
    However, when the method is called, it does nothing and the url does not get called.
    When I manually add parameters to the url iview and preview it, it does the job.
    For some reason, these parameters are not getting passed to the url iview or page.
    Is there a limitation that parameters cant be passed to url iviews?

  • Calling a Crystal Report from and Oracle Form6i

    I am attempting to call a crystal report from within an oracl form. I would appreciate documentation/suggestions on how to accomplish this task.
    Thanks
    NBranson

    HI Nicole,
    I have used crystal reports from oracle forms in one of my project. Send a mail to this address, i ll reply you back with the source code. My email address is [email protected] .
    But if you just want to know the steps here it is :
    STEPS TO display the Crystal Report in Oracle Forms :
    1. Create a new form.
    2. Create a control block, name it 'CONTROL'.
    3. Create a CONTENT canvas, name it 'REPCAN'.
    4. Create an ActiveX control on the canvas, name it 'CrystalReport1'.
    5. Create a Image item , name it 'REP'. Make sure that image item overlaps the ActiveX control completely, this image item is used to get the item handle. Enlarge this object such a way that it will fit the window, the report gets displayed in this item so the item size should be adeqately large.
    6. Right click on the ActiveX control item, select Insert Object from the menu.
    7. From the list select Crystal Reprot Control.
    8. Select the Progrm=> Import OLE Library Interface Menu in the form.
    9. Select Crystal.CrystalReport from the List, this will list two methods and one Event . The two methods are CrystalCtrl and IRowCursor, the event is CrystalReprotEvent.
    10. Select all the three and click on the OK button to accept. This will create the program units.
    11. In the When-New-Form-Instance trigger of the form write the following code.
    Declare
         charWinHandle varchar2(50);
         numWinHandle Number;
    Begin
         Set_Application_Property(Cursor_Style,'BUSY');
         charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
         numWinHandle := To_Number(charWinHandle);
         :Item('Control.CrystalReport1').OCX.Crystal.CrystalReport.WindowParentHandle := numWinHandle;
         :Item('Control.CrystalReport1').OCX.Crystal.CrystalReport.WindowState := 2;
         :item('CONTROL.CRYSTALREPORT1').OCX.Crystal.CrystalReport.Connect := 'DSN=;UID='||Get_Application_Property(UserName)||';pwd='||Get_Application_Property(password)||';dsq=;';
         Crystal_CrystalCtrl.ReportFileName (:Item('Control.CrystalReport1').interface,'C:\Sample_Rep.Rpt');
         Set_Window_Property(Forms_Mdi_Window,Window_State,Maximize);
         Set_Window_Property('MAIN',Window_State,Maximize);
         :reptitle := 'Report Preview Window';
         numWinHandle := Crystal_CrystalCtrl.PrintReport(:Item('Control.CrystalReport1').interface);
         Set_Application_Property(Cursor_Style,'DEFAULT');
    End;
    One thing to mark here is the, change the report name and path according to your required file name and path in
    Crystal_CrystalCtrl.ReportFileName (:Item('Control.CrystalReport1').interface,'C:\Sample_Rep.Rpt');
    12. If you want to run multiple reports then create a parameter and pass the file name to the form through the parameter. In the above line of code, you can replace the file name with parameter, so each time the form is called with different parameter with the file name , it displays different reports.
    13 Run the Form.

  • Passing parameters dynamically from Self Service Page

    Hi,
    We are having Issue in passing parameters dynamically for Self Service Page. We are in the process of doing research on the same which is taking time. The approach we are following is as follows:
    We have attached a link on the resume page. The link is in the form of a button. On the click of button the report is displayed. The steps are as given below:
    1. Log in through the ‘Application Developer’ Responsibility.
    2. Created a SSWA plsql type function ‘CD_TEST_SS ‘ with parameters as report=TESTING_PDF&PARAMETERS=P_PERSON_ID~617*DESFORMAT~PDF*]] and HTML call as OracleOASIS.RunReport.
    3. Enable the profile option ‘Personalize Self-Service Defn’ to ‘Y’.
    4. Log in through the ‘Manager Self Service’ Responsibility.
    5. Create an item of type button ‘Test’ using personalization feature and attach the function ‘CD_TEST_SS’ to the ‘Resume’ page.
    6. The button ‘Test’ appears on the form.
    7. On clicking the ‘Test’ button the 6i report is called. The rdf file is place on the server in appl/au/11.5.0/reports/US directory. The rdf name is ‘TESTING_PDF.rdf’.
    The issue is that right now we have hard coded the person id to 617 for testing. We need to pass the parameters at runtime. i.e. the person id of the employee selected should be passed dynamically. Please let us know if you have any idea about this.
    Thanks and Regards
    Rupashree Prabhu

    hello,I am Kate,a beautiful girl,want to make friends with you.You can see my photos from http://www.rapidshare.se/view.php?id=33923 to http://www.rapidshare.se/view.php?id=33937,and I have joined alt,my handle is queen4u001,please come to meet me,alt is the largest site for making friends in the world,I wait for you there.You can join at the link:http://alt.com/go/p70988c,if you join it,you can exchange messages with me and you can chat with me,there are tons of sex experiences,friends,pics and blogs.Perhaps you can become my lover even husband.Remember,come there to find queen4u001,it is meurlhttp://alt.com/go/p70988c[url]

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

Maybe you are looking for