Calling a report from oracle form 10g

how to call a report from oracle form 10g

Please see the link:
http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf

Similar Messages

  • 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

  • Calling a Report from Oracle Forms 10g

    Hi Everyone,
    I need assistance.
    Am running Oracle Forms & reports 10g.
    My Form module is running just fine. Inside the the Form Module I added a button with a "When Button Pressed Trigger" that has the following code
    declare
         repid REPORT_OBJECT;
         v_rep VARCHAR2 (100);
    begin
         repid := FIND_REPORT_OBJECT ('REPORT49');
         v_rep := RUN_REPORT_OBJECT (repid);
    end;
    This compiles without any errors.
    At runtime when I press the Button from Forms, I get the following error;
    "FRM-41211: Integration error: SSL failure running another product"
    Please assist.
    Regards,
    Pascaline

    Hi user593321
    FRM-41211: Integration error: SSL failure running another product.
    Cause:     There is a problem detected when launching another product.
    Action:     Check the RUN_PRODUCT built-in.
    Level:     99
    Type:     Error
    Below a very useful links pls try them, i recommend the 2nd one:
    http://www.programmersheaven.com/mb/oracle/211184/211184/ReadMessage.aspx
    http://www.developpez.net/forums/showthread.php?t=292435
    Best Regards,
    Abdetu..

  • Call Oreacle report from Oracle form

    Hi,
    I need call a Oracle report from Oracle Form and found the the following procedure from this forum. I have 2 parameters 'start_date' and 'end_date' passing to called report. The following example just have onle parameter
    'departmentno' passing. Is that mean I need to call add_parameter twice like the following?
    add_parameter(plid, ''start_date' , TEXT_PARAMETER,:control.start_date);
    add_parameter(plid, ''end_date' , TEXT_PARAMETER,:control.end_date);
    In the following example:
    add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
    Thanks for clarification!!
    Michael
    PROCEDURE pass_parameter
    IS
    plid paramlist;
    the_param varchar2(15) := 'tmpdata';
    BEGIN
    plid := get_parameter_list(the_param);
    /* check if 'tmpdata' exists */
    IF NOT id_null(plid) THEN
    destroy_parameter_list(plid);
    END IF;
    /* if it does destroy it */
    plid := create_parameter_list(the_param);
    /* create it afresh */
    add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
    /* associate the param in the form with the param in the report */
    add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    /* to suppress the parameter form displaying */
    run_product(REPORTS, /* product name */
    'formrep.rdf', /* Oracle Reports module */
    SYNCHRONOUS, /* communication mode */
    RUNTIME, /* execution mode */
    FILESYSTEM, /* location of the Reports module */
    plid, /* handle to the parameter list */
    null
    END;

    this my code on when_button_press
    declare
    rec_grp recordgroup;
    col1 groupcolumn;
    col2                    groupcolumn;
    col3                    groupcolumn;
    col4                    groupcolumn;
    col5                    groupcolumn;
    col6                    groupcolumn;
    col7                    groupcolumn;
    col8                    groupcolumn;
    pl_id paramlist;
    i number :=1;
    begin
    rec_grp := find_group('emp_rec');
    if not id_null(rec_grp) then
    delete_group(rec_grp);
    end if;
    rec_grp := create_group('emp_rec');
    col1 := add_group_column('emp_rec','Empno',CHAR_COLUMN,8);
    col2 := add_group_column('emp_rec','Ename',CHAR_COLUMN,30);
    col3 := add_group_column('emp_rec','job',CHAR_COLUMN,15);
    col4 := add_group_column('emp_rec','Mgr',CHAR_COLUMN,8);
    col5 := add_group_column('emp_rec','Hiredate',DATE_COLUMN,10);
    col6 := add_group_column('emp_rec','Sal',CHAR_COLUMN,10);
    col7 := add_group_column('emp_rec','comm',CHAR_COLUMN,10);
    col8 := add_group_column('emp_rec','Deptno',CHAR_COLUMN,4);
    loop
    go_block('emp_r');
    go_record(i);
    add_group_row(rec_grp,i);
    set_group_char_cell('emp_rec.empno',i,:emp_r.empno);
    set_group_char_cell('emp_rec.ename',i,:emp_r.ename);
    set_group_char_cell('emp_rec.job',i,:emp_r.job);
    set_group_char_cell('emp_rec.mgr',i,:emp_r.mgr);
    set_group_date_cell('emp_rec.Hiredate',i,:emp_r.Hiredate);
    set_group_char_cell('emp_rec.sal',i,:emp_r.sal);
    set_group_char_cell('emp_rec.comm',i,:emp_r.comm);
    set_group_char_cell('emp_rec.deptno',i,:emp_r.deptno);
    i := i + 1;
         exit when :system.last_record='TRUE';
    end loop;
    pl_id := get_parameter_list('para1');
    if not id_null(pl_id) then
    destroy_parameter_list(pl_id);
    end if;
    pl_id := create_parameter_list('para1');
    add_parameter(pl_id,'Q_EMP',DATA_PARAMETER,'emp_rec');
    add_parameter(pl_id,'paramform',text_parameter,'no');
    run_product(REPORTS,'D:\ora\daily.RDF',synchronous,runtime,filesystem,pl_id,NULL);
    end;
    ---------and this is my reprot query----------
    select Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,Deptno
    from emp
    where empno=:emp_rec
    order by empno;
    but it show error at run time
    Rep-1340
    plzz solve this problem to me
    fahad

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Exception when calling web service from Oracle forms 10g

    Hi All,
    I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
    There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
    This class is included in the forms application by using "Import Java Class" feature.
    Forms built the following funtion based on that class:
    -- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION authenticate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    message('here1');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
    'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    message('here2');
    END;
    However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
    Please suggest me what's wrong with the code. I appreciate your time and help.
    Thanks,
    Scott.

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling Word document from Oracle Forms 10g

    Hi all,
    I would like to call a Microsoft Word document from my Oracle Forms 10g.
    What would be the best way to do this?
    Thank you in advance.

    Have you tried something like
    WEB.SHOW_DOCUMENT('file:///<documentpath>','_blank');

  • How to send a character mode report from Oracle Form 10g to a printer.

    how sending a character mode report from Oracle 10g report to a printer.
    I'm sending to a printer located in the network
    i have theses parameter report
    desformat = prtname
    desname=??????
    destype= ?????
    mode=character
    i would like to preview the report before to send to a printer
    slds

    ACCOUNTING SYSTEM
    2006-2007 From Date : 01-JUL-06
    Printed On : Friday August 31 2007 11:13 AM To Date : 30-SEP-07
    G A/C. Code 99-99-9999 Description: xxxxxxxxxxxxx H
    -- DOC. # -- -- DATE -Chq/Slip# ---------- N A R R A T I O N -- -- DEBIT -- -- CREDIT -- -- BALANCE --
    Opening Balance: -999,999,999.00 Cr.
    G *** Total *** 0.00 0.00 -999,999,999.00H
    ================= ================= =================
    when i run character mode report in browser then display this output properly
    but sir problem is that when i print the report
    G(use for bold)
    is not working
    means not print in bold format in printer
    same character print G
    do you have any idea when i print through browser to printer G for bold purpose its work to printer ?

  • How to run an XML Report from Oracle Forms 10G

    Hello Friends,
    I am in need of showing a xml report output through a button press trigger in Oracle Forms10G.
    I have designed the report in XML Publisher and the report looks fine.I found few scripts useful in running the Oracle Report from Oracle forms10G like Run_Report_Object.But I am not aware of any script that could run a XML report and show the output directly from a Form.
    All I want is to run a XML report from an Oracle Form with a button press trigger and show the output in an html version.
    Can this be achieved?
    If so, Kindly advise as this is an immediate work.
    Regards,
    Badrul.

    Hi,
    If I am not wrong the XML publisher is same as BI publisher ...
    There is one document which explains how to integrate using web service
    You want to check this
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    or you can also try web.show_document ..

  • 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

  • Urgent: Calling Reports from Oracle Forms 10g (10.1.2.0.2) fails

    Problem displaying a report from within Oracle 10g forms.
    After a lot of work, we are able to access and actually display a report directly from Internet explorer and view the report from the report server as well.
    The successful url was:
    http://york.vrc.virginia.gov:7778/reports/rwservlet
    ?report=/u01/app/oracle/produ ct/vrcmidtier/reports/vrc/pmw41051.rdf
    &userid=vrcpr/vrcpr@vrctest&destype=cache&desformat=HTML
    The form displays correctly back to the screen
    When executing from within the form, however, the report runs but does not display back to the screen.
    Forms Steps so far:
    created a report object called pmw41050
    static parameters are:
    file name: /u01/app/oracle/product/vrcmidtier/reports/vrc/pmw41051.rdfination format
    execution mode: batch
    communication mode: synchronous
    destination name; null
    destination format: HTML
    reportserver:: vrc_york_midtier
    Built a when button pressed trigger as follows:
    declare
    l_report_file varchar2(200);
    l_report_id REPORT_OBJECT;
    l_report_status varchar2(200);
    begin
    -- capture the report
    l_report_file := 'pmw41051';
    l_report_id := find_report_object(l_report_file);
    -- set the parameters for this output
    set_report_object_property(l_report_id, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property(l_report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    set_report_object_property(l_report_id, REPORT_DESTYPE, CACHE);
    set_report_object_property(l_report_id, REPORT_DESFORMAT, 'PDF');
    set_report_object_property(l_report_id, REPORT_SERVER, 'rep_york_vrcmidtier');
    set_report_object_property(l_report_id, REPORT_OTHER, 'PARAMFORM=NO');
    set_report_object_property(l_report_id, REPORT_DESNAME, 'DESNAME');
    -- and run the report
    l_report_status := run_report_object(l_report_id);
    -- monitor progress
    while l_report_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
    l_report_status := report_object_status(l_report_status);
    end loop;
    message('back from the report'); -- test message for return
    end;
    The report executes without error (as indicated by the message on the last line) but does NOT display back to the screen
    checking the rwservlet/showjobs verifies the report completed and the reportcan be displayed from there.
    So, bottom line: how to make a 10g form call report and display it on the screen?

    Thanks MIke for your feedback...
    Will this surfice?
    Procedure Test_Report Is
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    BEGIN
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://<YourServerName:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

  • Calling BI Reports from Oracle Forms

    Hi Guys,
    I have successfully called the BI Reports from Form Services at my Development Server.
    But now I am deploying the same in production Server but the following error is coming.
    Exception: java.lang.Exception: java.lang.NoSuchMethodError: oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnectio.setPreemptiveBasicAuth(Z)V
    Does any body have any idea which jar file I can find the above method.
    Thanks & Regards,
    Rajender

    Here :
    where is jar file for oracle.j2ee.ws.client.ServiceFactoryImpl
    they talk about a :
    wsclient.jar
    What is sure is that the jar must contain/begin with WS as webservice.
    Success
    Nico

  • Calling parameterised reports from Oracle Forms 11g

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

  • 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

Maybe you are looking for

  • How to open a pdf file using Acrobat reader in Java?

    Or if you can just tell me where in the tutorial is the section that discuss running other application from Java, I'd appreciate it. My assignment(at work, not school) is to make a class that receive a pdf file, which is passed by RMI, and display it

  • How to improve performance for Azure Table Storage bulk loads

    Hello all, Would appreciate your help as we are facing a challenge. We are tried to bulk load Azure table storage. We have a file that contains nearly 2 million rows. We would need to reach a point where we could bulk load 100000-150000 entries per m

  • Bug with validation or rendering after validation failure (?)

    Can anyone confirm the behaviour on other J2EE containers that I will describe below ? h2. Environment: JBoss 7.1.1 (Brontes) JDK 1.7.0_06 32-bit Win7 64-bit 17:40:44,365 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1

  • G60 Laptop won't charge

    I have an hp G60 that refuses to charge. I just replaced the battery a month ago, and just got a new adapter for it, so I know that these aren't the problems. But when I plug the adapter into it, the light won't even show up, and the laptop itself wo

  • Deploy win7 via ConfigMgr12 r2 with secondary keyboard

    Hi All  My infrastructure is SCCM 2012 r2 with MDT 2013 installed on Server 2012 r2 virtual machine in Hyper-V.  I want to create image of WIN7 with English interface and default English keyboard and Hebrew as a secondary language.  If you configure