SRW.RUN_REPORT_OBJECT 10gR2  from Forms

Dear all,
I describe my situation :
I have an application Forms 9 installed in a server A.
I have a report server instance 9 running in server A.
I have a report server instance 10gR2 running in server B.
The report of the report instance of server A run succefuly when i run them from the Application Forms.
I want to run a report from the application Forms using SRW.RUN_REPORT_OBJECT in the server B . Haw can i precise to use report instance of the server B in RUN_REPORT_OBJECT.
It's possible to do that with SRW.RUN_REPORT_OBJECT ?
Should i pass the IP of the server or use tnsnames.ora ?
With rwservlet i can precise the IP of the Report Server in the URL Haw to do that with SRW.RUN_REPORT_OBJECT ?
Many thanks for your urgent help.

Hi Frank
Actually, today it looks like I was wrong. Now I CAN reproduce the problem - and now... the interesting part comes:
It doesn't seem to have anything at all to do with the number of reports in the "Past Jobs". Instead, this problem seems to occur each time, that I run the application in "DEBUG MODE" - you know, "?debug=yes". I have 2 machines - a test machine (T) and a development (D) machine. To clarify, here's what I did:
1. On T, I start up a WebForms session without "?debug=yes". The report runs correctly without any errors.
2. On T, I close the Forms session and start it again with the "?debug=yes" parameter.
3. On D, I connect to the debug session with the port number provided.
4. On T, I now try to run the same report as before. Now Forms fails with "FRM-41213 Unable to connect to the Report server rep_(servername)" and after that, as mentioned "REP-56033: Job 0 does not exist"
I have logged a TAR under "DENMARK AND ICELAND" with ID 2507245.995, if you want to assist the support analyst.

Similar Messages

  • SRW.RUN_REPORT 10gR2  From Forms

    Dear all,
    I describe my situation :
    I have an application Forms 9 installed in a server A.
    I have a report server instance 9 running in server A.
    I have a report server instance 10gR2 running in server B.
    The report of the report instance of server A run succefuly when i run them from the Application Forms.
    I want to run a report from the application Forms using SRW.RUN_REPORT_OBJECT in the server B . Haw can i precise to use report instance of the server B in RUN_REPORT_OBJECT.
    It's possible to do that with SRW.RUN_REPORT_OBJECT ?
    Should i pass the IP of the server or use tnsnames.ora ?
    With rwservlet i can precise the IP of the Report Server in the URL Haw to do that with SRW.RUN_REPORT_OBJECT ?
    Many thanks for your urgent help.

    [   Forms Reports Integration whitepaper  9i/10g ]
    see links below
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i/10g ]
    9i - http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    10g - http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    http://www.oracle.com/technology/products/forms/techlisting10g.html
    ---------------------------------------------------------------------------------

  • FRM-92101-Did any one migrate to 10GR2 from Forms 6 generated by Designer 6

    I am using designer 6 PLLs . We are migrating to 10GR2; Recompiled all plls in 10GR2 and it is throughing FRM92101 for all Tabbed forms. Upon debugging it is breaking at the OFGTAB.pll.
    Any help is appreciated!
    Thanks.

    oops!!
    Kindly excuse me i totally missed the error code.
    Did you compare designer plls for 10GR2 designer?
    It is possible that some procedures/packages are obsolete.
    I would recommend to use 10g Designer plls.
    Cheers
    AT

  • Run_Report_Object -- Calling report from Form

    Hello:
    Where can I find a technical notes on VALID combination of system parameters in calling report using run_report_object from FORMS in 10G?
    Not sure what are valid values and combinations. Do we HAVE to pass a REPORT SERVER along with run_report_object? what formats are valid along with destype etc?
    Thanks

    http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf

  • Passing parameter to report from form using RUN_REPORT_OBJECT method

    Will you please let me know how to do this. I tried using run_product but it is giving error as too many declarations. So I decided to use RUN_REPORT_OBJECT, but no help is provided how to pass paramters to this routine from FORMS to REPORTS.

    If you just want to change the heading of a column dynamically, you can go with any of the two options. For both the options, you need to remove the static text and replace it with any dummy field (ensure the reference of field w.r. to repeating frame)
    1. Use the Format Trigger and change the heading to either "school" or "college" based on your field value.
    Ex.
    If :<field_name> = 'S'
    then :dummy_field := 'School'
    Else
    :dummy_field := 'College'
    End If;
    Return (true)
    2. Another option is similar to this and uses a CF.
    (I would prefer CF).
    Warm Regards,
    Raja.

  • How to use parameter forms with run_report_object from Forms?

    Hi,
    I would like to run a rep report from Forms 9i. I have 9iAS R2 with a rep_<maschine_name> report server.
    Untill now I run reports with run_report_object and then used web_show_doc to display the PDF output. Now I have to display a parameter form first and only then can I run the report. Currently I am a bit lost and do not know how to do this? Could some one please point me to some examples or docs?
    Thanks in advance.

    [   Forms Reports Integration whitepaper  9i/10g ]
    see links below
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i/10g ]
    9i - http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    10g - http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    http://www.oracle.com/technology/products/forms/techlisting10g.html
    ---------------------------------------------------------------------------------

  • Unable to run reports from forms using run_report_object

    Hi All,
    I am unable to run a report(9i) from forms(9i) in client side.
    I used the following code
    Declare
         repid REPORT_OBJECT;
         v_rep varchar2(100);
         rep_status varchar2(20);
    Begin     
         repid := FIND_REPORT_OBJECT('report4');
         v_rep := RUN_REPORT_OBJECT(repid);
    End;
    I get the following error
    FRM-41219 : Cannot find report:invalid ID.
    Any help will be highly appreciated.
    Thanks,
    Sanjay

    Hi All,
    I am unable to run a report(9i) from forms(9i) in client side.
    I used the following code
    Declare
         repid REPORT_OBJECT;
         v_rep varchar2(100);
         rep_status varchar2(20);
    Begin     
         repid := FIND_REPORT_OBJECT('report4');
         v_rep := RUN_REPORT_OBJECT(repid);
    End;
    I get the following error
    FRM-41219 : Cannot find report:invalid ID.
    Any help will be highly appreciated.
    Thanks,
    Sanjay Hi
    You have to create a report object within the form.
    If you look at the Object NAvigator in the Form Builder right below Record Group
    tou would see an option for Report. Create a new report object.
    Set the following properties for that object
    Filename - This should be the name of your RDF file you created from Report Builder along with the full path.
    Set the Execution Mode, Communication Mode and Report Destination Type as per your requirements.
    In the parameter for find_report_object() pass the name of the report object you created.
    eg.
    if the name of the report object you created is Report2 then
    your call should be rep_id := find_report_object('Report2') .
    You are calling the report object which has been created in your form builder and through that call you are running the report file specified in the Filename property of that report object.
    Regards
    Poorvi

  • Using destype=WEBDAV from FORMS - run_report_object

    Hi,
    I'm trying to get WebDAV as output for my reports, invoked from forms. Read on if you might have a clue for my problem...
    Downloaded the plugin for Oracle 9i Reports (9.0.2) to send the output to a WebDAV location.
    This works fine when I tested it with a reports server and a browser URL to start the report like:
    http://<machine:port>/reports/rwservlet?report=a.rdf&destype=WEBDAV&desformat=pdf&desname=<DAV URL>/myreport.pdf&userid=<unpw>
    Output is created on the DAV location i expected.
    This also works when invoking this URL from within forms with a web.show_document.
    But I definitely want to get this functionality up and running using run_report_object and that is where I kick against the wall: to specify the destype, I only seem to be able to specify it using:
    set_report_object_property(v_report_id,REPORT_DESTYPE,x);
    where x stands for PRE-DEFINED keywords like CACHE, FILE etc. (without quotes)
    Passing the value for destype using add_parameter(parlist_id, 'DESTYPE', TEXT_PARAMETER, 'WEBDAV'); doesn't work, FRM-41214 Unable to run report is displayed.
    Anybody a clue?
    Kind Regards,
    Marc Vahsen

    Marc,
    this has been filed as a bug against Forms and will be fixed in Forms 10.0.3 (note that the upcoming Forms version is Forms 10g (9.0.4)).Not sure to this time if the fix can be provided earlier.
    Frank

  • Print a report to a specific printer from Forms

    I have a form from where i want to print a report to a specific printer (not the default printer). Is there any way to do this from Forms 9i. Im using the Orarrp but it pops up the printer dialog and shows the default printer. Is there any way to harcod the printer name. the printer is on the network..

    If i go to my control pannel and see the list of printers i take the printer name from there. should i put the path of the printer? i kno the port of the printer .it come like ip_192.1.11.1_p1 ..how do i define the printer name? if i dnt give the printer name shouldnt if fire to the default printer ..my code is as follows
    declare
    REPID REPORT_OBJECT;
    V_REP VARCHAR2(100);
    REP_STATUS VARCHAR2(20);
    BEGIN
    REPID := FIND_REPORT_OBJECT('CUS_PRINT');
    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,PRINTER);
         SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_SERVER,'test');
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_OTHER,'P_CUSREF='||:CTRL01.CUSREF||' PARAMFORM=NO');
         MESSAGE('SET REPORT PROP');
    V_REP := RUN_REPORT_OBJECT(REPID);
    REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
    MESSAGE('RAN REPORT');
    WHILE REP_STATUS IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
         REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
    END LOOP;
         IF REP_STATUS = 'FINISHED' THEN
              IF NVL('TEST',' ') <> ' ' THEN
              GEN_ALERT('NULL_ALERT','TEST');
              END IF;
              ELSE
         GEN_ALERT('NULL_ALERT','Error when running report');
         END IF;
    END;
    what should the desformat of the report should be..when im trying to run this it gives me 'no data found' error...why???

  • Report  from  form

    Hi,
    i called report from form with following and gives the
    error
    REP-0100 Unable to open the file
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    repid := FIND_REPORT_OBJECT('DUMMY_REPORT');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    Thanks.

    Hi,
    this tells you that the Reports Server cannot find the physicale reports file. Please see
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Frank

  • Report not working from forms.

    Hi
    we are beginners and please help us.we have installed in LAN database 11g on vista
    and application server 10g on os 2003.
    we are developing some applications from our developer pc in vista and using developer suite 10g.
    we want to generate some reports and call them from forms.
    This is the code in when button pressed.
    DECLARE
    repid REPORT_OBJECT;
    repjobid VARCHAR2(200);
    repstatus VARCHAR2(200);
    repjobno number;
    repserver VARCHAR2(100) := 'rep_mbxserver_FRHome1';
    BEGIN
    repserver := 'rep_mbxserver_FRHome1';
    /* Check to see if forms application is WEB deployed */
    IF get_application_property(user_interface) = 'WEB' THEN
    message('web');
    repid:= FIND_REPORT_OBJECT('REP');
    message('report found');
    /* Set Report parameters given WEB deployment */
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'e:\users\pro\reports\emp.rdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,repserver);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    /* DESFORMAT could be HTML, HTMLCSS or PDF here */
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'HTML');
    /* Run the report */
    repjobid := RUN_REPORT_OBJECT(repid);
    message('run report');
    /* Check the report status */
    repstatus:=REPORT_OBJECT_STATUS(repjobid);
    WHILE repstatus in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    repstatus := report_object_status(repjobid);
    message('rep status');
    END LOOP;
    IF repstatus='FINISHED' THEN
    message('REPORT WAS CORRECTLY RUN');
    /* Display the report output in the client browser */
    repjobno := length(repserver) + 1;
    WEB.SHOW_DOCUMENT ('http://printer1.mbxnet.com:8889/reports/rwservlet/showjobs?server='||repserver,'_blank');
    copy_report_object_output(repjobid,'\\ansu\mtb-erp\emp.lis');-- (Trying to copy to local folder)
    message('File copied to local pc');
    /* If report has failed display message to user */
    ELSE
    message('REPORT FAILED WITH STATUS: '||repstatus);
    END IF;
    message('222222222222');
    ELSE
    /* Else if forms application is Client-Server deployed */
    /* Set Report parameters given Client-Server deployment */
    message('client server');
    repid:= FIND_REPORT_OBJECT('rep1');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'e:\users\pro\reports\emp.rdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,file);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\printer1\mtb-erp\emp.lis');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt.prt');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,repserver);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=NO');
    /* Report to be executed via Reports Background Engine, not the 'new' Reports Multi-Tier Server */
    /* Destype SCREEN or PREVIEW can be used here */
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,SCREEN);
    /* Run the report */
    repjobid := RUN_REPORT_OBJECT(repid);
    copy_report_object_output(repjobid,'\\printer1\mtb-erp\emp.lis');
    message('File ok');
    --     host('c:\mtb-erp\ansu.lis');
    END IF;
    END;
    we are struck and unable to proceed.Actually when we run the report from report builder it works.we are calling the report from application server.
    Also if we replace the above web.show document with this statement it works but even though it gives FRM-41214 error.
    web.show_document('http://ansuya.mtbnet.local:8889/reports/rwservlet?destype=cache&desformat=html&report=\\mbxserver\developers\emp.jsp&userid=scott/tiger@mbxsql&paramform=no');
    One more doubt , is it possible if we don not want to show the report in a browser in case of client server locally in lan
    but just generate the report from forms and save it in local folder like we do in previous old versions.If so please guide us.
    Thanks in advance.

    Hello ansu,
    Did you solve this problem ?
    Regards,
    Felipe.

  • Report Running From Forms

    How to Run a Report from Form Builder
    i use Run_report_object function
    by givng report object name created in form
    report is already created
    i receive error message 'Report Name is not given'
    Kashif Khan
    ------

    Here is an example. This is the when-button-pressed trigger. I use the in-process reports server and therefore the web.show_document, but executing the run_report_object is similar.
    Hope this helps.
    Z.
    DECLARE
    rep_url varchar2(2000);     
    myenvid varchar2(128);
    BEGIN
    -- Check to ensure we have a valid record first
    if :PPS_AIR_MISSION.UNIQUE_ID is null then
    message('No air mission record is displayed to generate the report.', ACKNOWLEDGE);
    message(' ', NO_ACKNOWLEDGE);
    null;
    else
    Tool_env.Getvar('JTLSAAR',myenvid);
    rep_url:='/reports/rwservlet?&envid='||myenvid||'&&report=aar_amhist1.rdf&ssoconn='||myenvid
    ||'&desformat=pdf&destype=cache&paramform=no'
    ||'&MISSION_ID='||
    '"(''' || :PPS_AIR_MISSION.UNIQUE_ID || ''')"' ;
    -- synchronize and run the report
    SYNCHRONIZE;
    WEB.SHOW_DOCUMENT(rep_url,'_blank');
    end if;
    END;

  • How to call jsp web report from forms 9i

    Dear fellows,
    How can i call a jsp report from forms 9i.
    Thanx
    Mochoo

    Use web.show_document instead of Run_Report_Object. If the jsp contains a paper layout you can still use Run_Report_Object, but you have to specify the filename extension .jsp along with the filename.

  • Calling a report from Form 6i

    Hi,
    I want to call a report from Form 6i at run time. And I write the following code in When Buttton Press trigger . when I press the button it will gives no response.
    declare
         x report_object;
         y varchar2(100);
    begin
         x:=find_report_object('billform');
         y:=run_report_object(x);
    end;
    for more information , path of my report is: C:\REP\billform.rdf
    please send me the solution of this problem
    E_mail: [email protected]
    Shahzad

    hi,
    now i am using the following code in when button press trigger. if u give me ur e_mail address i will send u FMB and RDF files used for Scott/tiger EMP table for the sample.
    declare
    repo_Para     ParamList;
    BEGIN
    repo_Para:=Get_Parameter_List('Report_para');
    IF not Id_null(repo_Para) THEN
         destroy_parameter_list(repo_para);
    end if;
    repo_Para:=Create_Parameter_List('Report_para');
    Add_Parameter(Repo_para,'PARAMFORM',TEXT_PARAMETER,'No');
    Add_Parameter(Repo_para,'MAXIMIZE',TEXT_PARAMETER,'Yes');
         Add_Parameter(Repo_para,'BDATE',TEXT_PARAMETER,:BLOCK3.a_dptno);
         Add_Parameter(Repo_para,'EDATE',TEXT_PARAMETER,:BLOCK3.b_dptno);
         RUN_PRODUCT(REPORTS,'c:\apu\DDATE.rep', SYNCHRONOUS,
              runtime, FILESYSTEM,Repo_para,NULL);
    end;
    BDATE & EDATE are two user parameters created in report.
    when i press the button in form pass parameters the report will be called but no data will be display but when i directly run reprot from report buider and pass same values of BDATE & EDATE it will show data.
    please give me ur e mail address or help me for this problem
    best regards,
    shahzad

  • Calling report from form with lexical parameter

    hi
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(1000);
         rep_status VARCHAR2(20);
    BEGIN
              repid := FIND_REPORT_OBJECT( 'REPORT34' );
              set_report_object_property(repid,report_other,'p_SEASON_YEAR='||:SALE_ORDER.SEASON_YEAR
              ||' &sort='||:sale_order.sort1);
              --set_report_object_property(repid,report_other,'p_g_id =20');
              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://127.0.0.1:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;i had made a lexical parameter in reports the reports code is
    SELECT s.season_year,sd.prod_id,P.PROD_NAME,sum(sd.total_qty)
    FROM sale_order s,sale_order_detail sd,PRODUCT P,CUSTOMER_MASTER cm,CUSTOMER_DETAIL cd
    where s.id=sd.id and P.PROD_ID=SD.PROD_ID AND s.season_year = :p_season_year
    AND CD.CUST_ID=CM.CUST_ID AND CD.CUST_ID=S.CUST_ID AND CD.COUNTRY NOT LIKE 'SPA%' AND Sd.PROD_ID LIKE  'CA%'
    group by s.season_year,sd.prod_id,P.PROD_NAME
    &sortthanks and regards
    vikas

    Vikas,
    So, is your code producing an error when your report is called? Also, it would be helpful to know your Forms and Reports versions. Is ":p_season_year" set up as a USER_PARAMETER (UP) in your report or is it a true lexical parameter (meaning you should reference it with '&' instead of ':')? If it is a UP, the typical way to pass a value to this UP from Forms is to use a ParamList object instead of the REPORT_OTHER parameter of the Set_Report_Object_Property built-in. For example:
    DECLARE
       pl_id    ParamList;
       pl_name  VARCHAR2(10) := 'REPORT34';
       v_rep VARCHAR2(1000);
       rep_status VARCHAR2(20);
    BEGIN
       pl_id := Get_Parameter_List(pl_name);
       IF id_null(pl_id) THEN
          pl_id := Create_Parameter_List(pl_name);
       END IF;
       Add_Parameter(pl_id, 'P_SEASON_YEAR', TEXT_PARAMETER, :SALE_ORDER.SEASON_YEAR);
       repid := FIND_REPORT_OBJECT( 'REPORT34' );
       v_rep := RUN_REPORT_OBJECT(repid, pl_id);
       ...  rest of your code here  ...
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Can't reset CS2 preferences Windows XP-photoshop behaving badly

    Needing to reset because Photoshop is locking up, tools and plug ins not preforming as they should. Did a search for *.psp files and didn't find any, but I'm not sure I searched correctly.  I tried the CTL ALT SHFT at startup and I am not given the c

  • [solved]lpr - where to find printer name?

    I'm trying to set up my LaserJet 1220 USB printer. Installed hplip (as recommended), run cups. My system sees the printer: # tail /var/log/messages.log Apr 21 13:00:09 yubaba kernel: Clocksource tsc unstable (delta = -269655282 ns) Apr 21 13:00:54 yu

  • Regarding marking and releasing in CK24.

    The customer has a direct delivery process as in they purchase finished goods and just sell them. Such a material is newly created under a plant. In this case there is no  in house production of that material and the price needs to be maintained manu

  • Photoshop 7.0 will not launch

    Adobe Photoshop 7.0 will not launch. Running Windows 7.0. Was working fine until today. Not running in any compatibility mode.

  • Can't open wmv files on my mac leopard

    I have Mac OSX Leopard. I tried to download wmv file to my mac and they did not open. Then I downloaded flip4mac in order to watch windows media files. After I downloaded flip4mac the movie goes to my downloads but they wont open or play. When i clic