RUN_PRODUCT in forms10g

we are migrating our forms from 6i to 10g and are locked with an issue where one of the custom forms is calling a report from the form. Its using the RUN_PRODUCT.
CODE in 6i
PROCEDURE RUN_REPORT IS
pl_id Paramlist;
begin
pl_id:=GET_PARAMETER_LIST('pl_report');
     IF NOT id_null (pl_id) THEN
          DESTROY_PARAMETER_LIST(PL_ID);
     END IF;
PL_ID :=CREATE_PARAMETER_LIST('pl_report');
add_parameter(pl_id, 'paramform',text_parameter, 'yes');
ADD_PARAMETER(pl_id, 'C_cont_NUMBER_I', text_parameter, :cont.cont_number_i);
ADD_PARAMETER(pl_id, 'J_cont_NUMBER_I', text_parameter, :cont.cont_number_i);
ADD_PARAMETER(pl_id, 'M_cont_NUMBER_I', text_parameter, :cont.cont_number_i);
Run_Product(REPORTS,'X:\ABC\PWAVCONT.rep',SYNCHRONOUS,runtime,FILESYSTEM, PL_ID);
END;
CODE in 10g (after conversion by the tool)
Code modified by the Forms Migration Assistant
30-Apr-2010 11:28 AM
PROCEDURE RUN_REPORT IS
pl_id Paramlist;
a report_object;
v_rep varchar2(100);
begin
pl_id:=GET_PARAMETER_LIST('pl_report');
IF NOT id_null (pl_id) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID :=CREATE_PARAMETER_LIST('pl_report');
add_parameter(pl_id, 'paramform',text_parameter, 'yes');
ADD_PARAMETER(pl_id, 'C_cont_NUMBER_I', text_parameter, :cont.cont_number_i);
ADD_PARAMETER(pl_id, 'J_cont_NUMBER_I', text_parameter, :cont.cont_number_i);
ADD_PARAMETER(pl_id, 'M_cont_NUMBER_I', text_parameter, :cont.cont_number_i);
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'X:\ABC\PWAVCONT.rep',SYNCHRONOUS,runtime,FILESYSTEM, PL_ID,null);
END;
Though after converting the form with migration assistant, the code for calling the report has been changed by the tool automatically. still the form compilation fails
Failed with below error
Compiling procedure RUN_REPORT...
Compilation error on procedure RUN_REPORT:
PL/SQL ERROR 201 at line 20, column 1
identifier 'RP2RRO.RP2RRO_RUN_PRODUCT' must be declared
PL/SQL ERROR 0 at line 20, column 1
Statement ignored
Please suggest any solution here.

Neil,
After you submit the report, you have to check the status using Report_Object_Status built-in. If the return value is "FINISHED", you can then display the finished report to the user using the Web.Show_Document built-in. Here's how we do it:
PROCEDURE RUN_REPORT (P_paramlist  paramlist) IS
   v_report         REPORT_OBJECT;
   v_rep_rtn   VARCHAR2(4000);
   rep_status   VARCHAR2(4000);
   v_hostname   VARCHAR2 (500);
   v_repsvrname  VARCHAR2 (100) := 'YOUR SERVER NAME HERE';
   v_paramtype  NUMBER;
BEGIN
   -- Assign any parameters first.
   Get_Parameter_Attr(p_paramlist, 'P_REPSERVER', v_paramtype, v_repsvrname);
   v_report := Find_Report_Object('REPORT_NAME_HERE');
   Set_Report_Object_Property(v_report, report_execution_mode, batch);
   Set_Report_Object_Property(v_report, report_comm_mode, synchronous);
   Set_Report_Object_Property(v_report, report_destype, CACHE);
      /* Make sure to set the format correctly - we always used PDF so we hardcoded it. */
   Set_Report_Object_Property(v_report, report_desformat, 'pdf'); 
   Set_Report_Object_Property(v_report, report_server, v_repsvrname);
   -- Run the Report
   v_rep_rtn := Run_Report_Object(v_report, p_paramlist);
   -- Get the Report Status
   rep_status := Report_Object_Status(v_rep_trn);
   WHILE ( rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') ) LOOP
      rep_status := Report_Object_Status(v_rep_trn);
   END LOOP;
   IF ( rep_status <> 'FINISHED' ) THEN
      Clear_Message;
      Message('Error running report.  Status = '||rep_status);
      Message(' ');
   ELSE
      Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_trn, INSTR(v_rep_rtn,'_',-1) +1)
            ||'?server='||v_repsvrname);
   END IF;
END;We created this procedure and stored it in a Library and attached the library to every form. You may have to tweek it a bit to make it work for you.
Hope this helps,
Craig
If a response is helpful or correct, please mark it accordingly.

Similar Messages

  • Oracle forms10g Migration : rp2rro.rp2rro_run_product

    Hi All ,
    I have a question regarding the rp2rro.rp2rro_run_product.
    I have used a tool FMA ( Forms Migration assistant ) that comes with 10g Forms to convert the forms6i to forms10g.
    Now the forms that invoked reports using run_product are converted to "rp2rro.rp2rro_run_product" . Should this be fine to invoke the reports from forms 10g (or) do we need to change this call to run_report_object ?
    If so , could you please assist as to how to do that . Is FMA doing an obsolote job here in just converting to rp2rro.rp2rro_run_product and not to run_report_object ?
    Any help would be really appreciated . Thanks in advance.
    Regards,
    Ashwin.

    Hi Jan ,
    First of all , thanks for being patient and having responded to all of my questions. I need some more help from you if you could.
    1 )
    I did go though some of the notes(Note:207396.1) in Metalink and tried to create a sample report to invoke it from the form ( Button) as mentioned stepwise.
    I see that when I click the button which would invoke the report , I get the following error :-
    REP-51002: Bind to Reports Server repserver90 failed
    Any clues why this occurs ?
    Note:- I have started a new instance of rwserver using :
    rwserver server=repserver90
    2) Do we need to modify the rp2rro.rp2rroReportServer package variable to point to the new reports server name in 10g (or) is it just ok to update the proprety pallete for rp2rro report object that got created in the converted form.
    Basically , do we need modification to the rpr2rro.pll package?
    if not where else do we specify the new reports servername.
    rp2rro.rp2rro_run_product does have any input parameter to take reportsserver name.
    3) Also , does this reportservername be a in-process server (or) should it be a new instance created(using rwserver command). Sorry , asking this question as I wasn't sure about this and never worked on reports services configration before.
    ( Also , I wasn't getting proper inputs from the dba on this ).
    Thanks once again.

  • Run and send report as email from forms10g

    Hi,
    we are generating a report from forms10g and sending it as an attachment in an email using RUN_REPORT_OBJECT and everyting is fine.
    but we would like to use the parameter 'REPLYTO' in addition to FROM,CC,SUBJECT. i tried to use 'REPLYTO' but in the email i am not seeing the email address corresponding to the 'REPLYTO'
    ADD_PARAMETER(thelist, 'REPLYTO',TEXT_PARAMETER, report_replyto_address);
    can anyone guide me how to use this 'REPLYTO' parameter
    Also is there anyways we can het a 'BODY' in the email, i think we do not have 'BODY' as the parameter
    Thanks
    Vinod

    I don't know about Run_product.
    U can achieve it by using rwrun command
    eg. Client_host(rwrun...)
    this proc. in Webutil package.
    we can pass parameter like Desformat=PDF,Destype=MAIL
    reply_to,cc,bcc,subject, from, desname, report output send as attachment to that mail.
    Best Regards,
    Avinash Deokar

  • RUN_PRODUCT is not working

    hI,
    I am working in developer 6i forms and reports. I am trying to call a report from a for using RUN_PRODUCT built in. But it’s generating the following
    Error: FRM-41211: Integration error: SSL failure running another product.
    I think the procedure used for running the report is ok because it’s working in another machine.
    Please help me, how can I solve this problem.
    Best Regards,

    Re-Install the reports again,,
    this is a common Windows Problem

  • Print report directly to printer using RUN_PRODUCT in Forms6i

    Hi all,
    I would like to have information regarding print any .rdf directly to printer from form 6i using RUN_PRODUCT.
    I got help from Form Builder Help option and tried following coding in form
         DECLARE
         PL_ID                    PARAMLIST;
         printername          VARCHAR2(50);
         BEGIN
         PL_ID := GET_PARAMETER_LIST('WEIGHMENT');
              IF NOT ID_NULL(PL_ID) THEN
                   DESTROY_PARAMETER_LIST(PL_ID);
              END IF;
              PL_ID := CREATE_PARAMETER_LIST('WEIGHMENT');
              printername := '"'||'I.T Printer'||'"';
              Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER, PRINTER);
              Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, printername);
              Add_Parameter(pl_id, 'P_EQ_NBR', TEXT_PARAMETER, :weighment.eq_nbr);
              Add_Parameter(pl_id, 'P_WT_GKEY', TEXT_PARAMETER, :weighment.gkey);
              Run_Product(REPORTS, 'c:\wegt001r', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
         EXCEPTION
              WHEN OTHERS THEN
              MESSAGE(SQLERRM);
         END;
    END IF;
    But report did not printed and following message received in Reports Background Engine
    Error submitting report [Thu May 07 18:49:23 2009] ...
    REP-0159: Syntax error on command line.
    Pls help.
    Thanks,
    Hassan

    Hi Heidi
    I have already tried printername := 'I.T Printer'; but result is same.
    This is also my default printer and I tried to add / remove the following coding
    Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, PRINTER);
    but in both cased I received the same error.
    I also tried to print thru HOST command as follows
    the_username := Get_Application_Property(USERNAME);
         the_password := Get_Application_Property(PASSWORD);
         the_connect := Get_Application_Property(CONNECT_STRING);
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid= '||the_username||'/'||the_password||'@'||the_connect||' DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306';
    Host( the_command );
    Host command displays correctly but no printing.
    I then change my command as follows
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid=test/test@test DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306'; and now report prints on printer.
    But I cannot hard coded the username, password and connect.
    Thanks,
    Hassan
    Edited by: Hassan Raza Khan Lodhi on May 7, 2009 6:55 PM

  • Can we avoid username/password screen using run_product

    can we avoid username/password screen using run_product while calling a report from the form.
    how we can use the same login as in form.
    regards

    You can turn security off from your process.
    Go under adminui under Services/Application and Services/Service Management.
    Search for your process and under the security tab you can disable the security or use the 'Run As' feature to run under a specific user context.
    Jasmin

  • Using RUN_PRODUCT to run a report in a web form

    I have a web-based Oracle form with a button that, when pressed, calls RUN_PRODUCT to run a report. Reports Server can find the file and run it, but the screen output appears on the machine running Reports Server!
    Is there a way to have the output appear on the machine running the form? I am running Application Server 9i on a Windows NT 4.0 machine, and the machine I'm using to run the form is running IE 5.5 as well as Windows NT 4.0.

    Use Web.Show_Document and specify the URL for where your report is made.

  • How can i transfer files from forms10g to another machine..?

    Dear All,
    We would like to transfer image files from forms10g to another machine rather than Application server using webutil,
    Can any body give me a workaround for the same, because its occupying more space in the application server, so it would be better if we can able to transfer to another networked machine..
    Thanks in advance
    Thangaraj

    Actually we are not mapping machine name something in webutil.cfg file. We just need to specify the path that from where we will transfer the file from application server to client. And the time time of transfer the path you will
    choose for client webutil will transfer the file on that location automatically.
    -Ammad

  • How to call a Forms6i file from Forms10g

    Dear all,
    Can any one help me on how to call a x.fmb in FORMS6i version from a y.fmb in FORMS10G version.I used CLIENT_HOST( ) buitin for calling a 6i version x.fmb from 10G version y.fmb,but its not working.I gave this CLIENT_HOST( ) built in in when-button-pressed trigger.when i gave the string that is given as parameter to CLIENT_HOST( ) in command prompt the 6i fmb opens...and similarly i need to open a fmb in FORMS10G verison from FORMS6i version fmb

    Hi,
    Forms 6i modules only run on Forms 6i runtime and Forms 9i modules run on Forms 9i runtime. If you want to bring together two of these module into one application you have to upgrade from Forms 6i to Forms 9i or call it on a separate runtime using a hiost command. If you run it on the web, which Forms 9i runs only, then you use web.show_document() to call the Forms 6i release installed on Oracle Application Server 9.0.1
    Frank

  • Error when calling a Webservice's public method in Forms10g

    Hi,
    I'm getting the following error when calling a webservice's public method, i'm using Forms10g 10.1.2.3
    java.rmi.RemoteException; nested exception is: HTTP transport error javax.xml.soap.SOAPException
    java.security.PrivilegedActionException javax.xml.soap.SOAPException
    Message send failed javax.net.ssl.SSLException SSL handshake failed X509CertChI have added the Jar containing the client proxy in both Classpaths(system variable and default.env), the jar has been made with jdk 1.4
    I also have tested the client proxy from jDeveloper and it's working there, but in Forms i'm getting this error.
    I guess my problem might be that i'm calling a webservice that is secured since the url starts with https
    what should i do to fix this ??
    Regards
    Carlos

    I understand, so i have a doubt, why the webservice works on jDeveloper ??Not just JDeveloper even soapUI and Neatbeans have a way of working without a client certificate installed.
    I do not know how they achieve it. I know that they work without a client DC.
    Cheers,
    PS: See this http://stackoverflow.com/questions/8887434/webservices-ssl-https, it offers a clue.
    The java programs run unhindered when one-way authentication is being used. These products ship with a digital certificate that is in the path of most popular CAs.
    Corollary, if the Web Server is configured for mutual authentication then you need to install and configure the client certificate in the tools.
    Edited by: Prabodh on Dec 5, 2012 8:36 PM

  • Run_product in DB procedure?

    Reg : Executing an OS command in PL/SQL.
    I used host command in form level procedure to
    send all the .txt files into a master file(eg master.txt)
    From master.txt, i read the flat file names and upload the datas
    into Oracle (by using Text_Io package). But same thing, when i
    used in db procedure with UTL_FILE
    package , I can not proceed with the host command whereas it
    works in sqlplus prompt. Is it possible to give host command in
    db procedure or any other suggestions ?
    2) A process is running at the back end with every 20
    minutes interval of time using dbms_job.submit.
    can I flash a message to any of the terminal/server/session
    after successful completion
    or if error occured?
    3) can I call run_product in db procedure?
    Thanking in advance,
    expecting yr reply soon
    regards
    Radha krishnan
    null

    Hallo
    Radhakrishnan
    i dont know how to do it
    Syam
    S.Radha Krishnan (guest) wrote:
    : Reg : Executing an OS command in PL/SQL.
    : I used host command in form level procedure to
    : send all the .txt files into a master file(eg master.txt)
    : From master.txt, i read the flat file names and upload the
    datas
    : into Oracle (by using Text_Io package). But same thing, when i
    : used in db procedure with UTL_FILE
    : package , I can not proceed with the host command whereas it
    : works in sqlplus prompt. Is it possible to give host command
    in
    : db procedure or any other suggestions ?
    : 2) A process is running at the back end with every 20
    : minutes interval of time using dbms_job.submit.
    : can I flash a message to any of the terminal/server/session
    : after successful completion
    : or if error occured?
    : 3) can I call run_product in db procedure?
    : Thanking in advance,
    : expecting yr reply soon
    : regards
    : Radha krishnan
    null

  • Linux Sh script is not running in forms10g(10.1.2)

    Hi
    The Oracle Forms server is installed in Linux.
    I have placed the below host commands in forms10g. The Host command is running but shell sh script is not executed.
    BEGIN
    :GLOBAL.DIR_PATH:='/forms/shell_files/';
    Host(:GLOBAL.DIR_PATH||'my_shell.sh'||' > '||:GLOBAL.DIR_PATH||'my_shell.log');
    END;
    I tried to execute the sh file and redirect the output to log file.
    But log file has been created with blank file. but shell sh script is not executed.
    I have given the full path of the shell sh file and given the full rights for the sh file.
    Is there any access permission to be set for sh file execution?
    Please help.Thank you in advance.

    OS: UNIX Solaries, Oracle Application Server 10g
    To run shell script from Oracle Forms, I used the following host('/bin/bash /u01/compile.sh') and it works well
    Now, I need to run unix command something like
    host('mv form1.fmx FORM1.FMX') but it's not working
    I tried to append the command mv form1.fmx FORM1.FMX' to the compile.sh shell script but also it's not working although the rest lines of the shell script is running well

  • Forms Migration to 11g, RUN_PRODUCT must be declared

    Hi All,
    I'm performing forms migration from 10g to 11g,
    I used Forms Migration Assistant to Migrate forms, But if a form is calling reports then those forms are
    not getting compiled and giving the error RUN_PRODUCT must be declared. I know that RUN_PRODUCT
    is not supported in 11g, but is there any way to configure Forms Migration Assistant so that it replaces this
    code with appropriate code. Forms Migration Assistant program asks for Report server name, Servlet Virtual Directory information for the forms that are calling reports. I don't know what to specify in virtual directory field
    and report servlet field.
    Please help me with this.
    Thanks

    You are replying to an old thread, but it looks like you didn't read it properly. It is stated that
    when migrating from 6i to 10g we have used the wizard to replace RUN_PRODUCT with rp2rro.rp2rro_run_product (rp2rro.pll).So, you also need to use rp2rro.pll if you still want to make use of RUN_PRODUCT. Even in 10g RUN_PRODUCT by itself won't work. As Christian already said:
    you probably could simply remove the call to run_product as in 10g the built-in was available but simply didn't do anything. Did you try that yet?

  • Using run_product to call reports6i on 64-bit os,no log in Report Engine

    When I execute a form 6i with Run_product call to report6i , it hangs on windows 2003 64bit server.
    same works on 32 bit server.
    Any one having similar problem???
    rgds

    Hi Ludek
    <P>
    Let me clarify a bit about the issue we been have:<br>
    For example we have report-1.rpt and report-2.rpt, both are very similar and in fact report-2 have a little bit more information than report-1. So when I install our application on a webserver in Windows 2003 32 bit system, with Crystal Report XI R2 developer edition + SP4, both reports work perfectly fine and application save the report and show it on the crystal report ActivesX viewer. So I made copy of report-1.rpt and report2.rpt with data and kept it a side.
    <P>
    Now I install our application that is the asp files and COM objects on a 64 bit windows 2003 and turned on the 32 bit mode to enable our COMs to work. I then run our application pointing it to the same database I used with the other OS, and I tried to run report-1.rpt and report-2.rpt, so report-1.rpt has failed with the viewer showing but no pages and only the controls. However, the report-2.rpt worked fine with data showing ok. So I copied the 2 reports I generated from the other OS and pointed my view report asp page to these rpt files, again same result report-1.rpt failed and report-2.rpt worked ok.
    <P>
    So I guess what I am trying to say is we are using the exact same COMs on both OS and to generate on both reports, also pointing to the same database using the same connection string. The result is one report is failing on the 64 bit machine.
    <P>
    Now when I try to export/save the report-1.rpt, the report that come with no pages, I get the error below, this is the same error I get if I try to move to different pages.
    <br><br>CRAXDRT Error Occured on Server.70 : Permission denied
    <P>
    Please let me know if I can provide more information.
    <P>
    Many thanks

  • Use of Run_product in Pl/sql block written in forms 5.0

    I am using Run_product built-in in forms 5.0 to make a call to reports runtime. This built-in is being called in a loop to make Payslip report for nearly 2000 employees.
    First of all on running the report for 9 or 10 th employee , the error was given 'MAX OPEN CURSORS EXCEEDED'. to remove this error, settings were changed in init.ora to increase Open_cursors parameter. Now the above error is not coming but after creating 8-9 reports it gives error Numeric or Value error. This error keeps coming for all the reports after that. However this error is coming in an inconsitent manner. One time it gives error for some employees but doesn't gives that error for the same employees next time.

    thanks !
    I could find out few postings on the same topic in the same forum. that answers my question.
    best regards,
    --meghanad                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Here is what to do when rentals do not show up in your itunes library!!! Windows and Mac

    Windows Step 1: Make sure your rental is in your purchase history...here's how -Click on the Store Tab -Click View Account -Scroll down to Purchase History and click See All -Your latest purchase should be listed at the top of the page Step 2: Click

  • Error while adding content type fields in the EditForm.aspx for an customlist item.

    This is office 365. I have content type which is attached to custom list. Added new site column "CustomerAction" which was added to Content type, now when I added this field in the EDITForm.aspx using the SharePoint designer, this form is called when

  • 'Disk full' message even though 14gb is shown as available by Finder

    I've started to receive a 'Disk full' message when every indication shows that I still have over 10GB of hard drive space available.  The bar at the bottom of the Finder window, the 'Get Info' screen, and Disk Inventory X all show that my space usage

  • Is IP over Firewire reliable?

    Hello everyone! I was wondering if anybody is using IP over Firewire for mission-critical jobs such as a bastion host in a firewall. What I would like to be able to do is use the Firewire port on a Mac mini as a second network interface so I can use

  • Constraints on collection types

    The Oracle8i "Application Developer's Guide - Fundamentals" on page 18-39 states: "Oracle does not constraints and defaults in type specifications. However, you can specify the constraints and defaults when creating tables." It continues with an exam