How to Invoke Reports from Oracle Menus

Hi,
Pls. check the code for calling report from menu item.
For my report below I am not passing any parameter just calling a report in the menu item.
When I am calling the report option from the menu it is
Giving error message in the report engine which is
Starting report hdg04103 [Sun Mar 24 14:22:11 2002] ...
REP-0002: Unable to retrieve a string from the Report Builder message file.
REP-1439:
End report hdg04103 [Sun Mar 24 14:22:15 2002].
Pls. Look into the problem and mail me at your earliest.
Declare
t_sttm number(4);
t_edtm number(4);
t_worktime varchar2(4);
pl_id paramlist;
pl_name varchar2(20) := 'tempdata';
Begin
Select sttm,edtm into t_sttm,t_edtm
from rtaad231 where usrid = :global.usrid and cses = 'HDG04103';
     Select to_char(sysdate,'hh24mi') into t_worktime
     from dual;
if to_number(t_worktime) >= t_sttm and to_number(t_worktime) <= (t_edtm - 0015) then
pl_id := get_parameter_list('tempdata');
if not id_null(pl_id) then
destroy_parameter_list(pl_id);
end if;
pl_id := get_parameter_list('tempdata');
if id_null(pl_id) then
pl_id := create_parameter_list('tempdata');
end if;
Run_Product(REPORTS, '\\rcadon\oradata\applive\hedging\reports\hdg04103.rep', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id);
else
Message('You are not authorised to use this option at this time');
Message('You are not authorised to use this option at this time');
end if;
Exception
When NO_DATA_FOUND then
     Message('You are not authorised to use this option');
     Raise Form_Trigger_Failure;           
End;
Regards
Saleemuddin.

If you are not passing any parameters, you don't need to pass the parameter string. Replace the pl_id with "null" or use the 2 double quotes to represent the null eg. "" and see if you still get the same error

Similar Messages

  • How to print report From Oracle form directly on printer

    Hi,
    I am running report from form and output should be directly printed on printer.
    Database: 11g Release2
    Forms version : 11.1.2
    Report version : 11.1.2
    OS: windows 7 professional 32 Bit
    Written following code:
    declare
    pl_id ParamList;
    varno number;
    x VARCHAR2(150);
    y NUMBER;
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    begin                
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    repid := FIND_REPORT_OBJECT('SALEBILLNEW'); -- report object name
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'copies',TEXT_PARAMETER,'1');
    Add_Parameter(pl_id,'background',TEXT_PARAMETER,'Yes');
    Add_Parameter(pl_id,'mode',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'YES');
    Add_Parameter(pl_id,'VCOMPANY',TEXT_PARAMETER,:block50.coname);
    Add_Parameter(pl_id,'VCOde',TEXT_PARAMETER,:block50.code);
    Add_Parameter(pl_id,'VOURBILLNO',TEXT_PARAMETER,:BLOCK50.FROMBILL);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER, 'PRINTER') ;
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'OKI MICROLINE 391 TURBO (COPY1) on NILESH-PC') ; --default printer name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_adminserver_inorasrv-pc_asinst_3');
    y := LENGTH ('rep_adminserver_inorasrv-pc_asinst_3') + 2;
    x := RUN_REPORT_OBJECT (repid, pl_id);
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/rwservlet/getjobid'||SUBSTR(x,y)||'?server=rep_adminserver_inorasrv-pc_asinst_3&userid=scott/tiger@winorasr');
    Destroy_parameter_list('tmpdata');
    end;
    Above code giving following error:
    REP-52251: The output of job ID 111 requested on Thu Oct 18 18:37:20 IST 2012 cannot be retrieved.<P>REP-51026: No output is generated for job 111.
    Need help..
    Thanks in advance.

    Hi,
    I have change the printer name to OKI
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, '\\Nilesh-pc\OKI') ;
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER, 'dflt.prt');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\Nilesh-pc\OKI');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt.prt');
    code which i have posted above unable to reach at default printer and gives following error
    The report generated successfully but distribution to destinations failed.
    Modified above code to take default printer from registry.
    Added below code
    rtn_Registry := CLIENT_WIN_API_ENVIRONMENT.Read_Registry('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows','Device');
    rtn_defaultPrinter := substr(rtn_Registry,1,instr(rtn_Registry,',',1)-1);
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'rtn_defaultPrinter') ;
    It is giving error
    CLIENT_WIN_API_ENVIRONMENT.Read_Registry must be declare.
    Edited by: parapr on Oct 20, 2012 10:47 PM

  • How to invoke Debug from Oracle Menu running on WEB?

    ENVIRONMENT:
    Oracle Forms 10g resides on Linux server.
    Forms are called from the Oracle Menu.
    Runs on company-wide WEB intra-net using Internet Explorer version 6.
    User workstations are PC running Windows XP version 5.1.
    PROJECT:
    Create Oracle Menu option named: DEBUG.
    After clicking on DEBUG, control returns to the Menu.
    Any Form subsequently selected from the Menu will run in debug mode.
    So every trigger firing in the Form will cause a message displayed on screen.
    This will continue to happen whenever a Form is selected.
    This continues until DEBUG is selected again...to toggle off.
    QUESTION:
    Is this possible?
    If yes, how to do?

    Possible: maybe.
    How to do: this bean lets you get the values of the forms applet parameters and also set them. Perhaps debug_messages is settable in this way.
    I've never found the debug_messages option to be very useful - it's usually fairly easy to work out which triggers are running and if there's an error then forms tells you which trigger it ocurred in. If the above (or anything else) doesn't work then you could use something like the package I posted Re: Zdebug -- Download a Forms debugging message tool, but it would mean having to code your own debug messages into the forms. Adding a new procedure to turn debugging on or off, or even to use a message level like forms has, would be quite simple.
    eg,
    -- new package variable:
    debug_on BOOLEAN := TRUE;
    PROCEDURE toggle_debug IS
    BEGIN
      debug_on := NOT debug_on;
    END;
    -- write_log becomes:
    PROCEDURE write_log(
      p_text IN VARCHAR2,
      p_indent PLS_INTEGER DEFAULT 0) IS
    BEGIN
      IF debug_on THEN
        write_log_internal(p_text, p_indent, 'N');
      END IF;
    END write_log;
    etc

  • How to create report from Oracle Forms 9i chart?

    Hi all,
    I am new to Forms and Reports 9i. I need to create a chart (let's say it contains customer name on axis X and total sales for this customer on axis Y). Is it possible to get report with details for particular customer by clicking on the chart's bar for this customer and if so, what is the way of doing it?
    Thanks in advance for any help given

    Larisa,
    yes, you can. When selecting a chart item in Forms, you retrieve e.g. the username (or something similar unique) and then call Reports e.g. using a Run_Report_Object() call, passing the username as a Reports parameter.
    Frank

  • How to run reports from discoverer viewer by http

    Hello everybody,
    We've migrated our j2ee application to htmldb and we've migrated Discoverer reports from 4i to 5. So, I'd like to know how to invoke reports from htmldb.
    With the previous version we used this way:
    http://hostname/discoverer4i/viewer?wbk=ZZZZZZZZZ&us=uuuuuuuuu&eul=XXXXX&qp_competence_id=-1&qp_competence_type=All&qp_Manager=NNNN&qp_resource_manager=-N&db=custprd.us.oracle.com&password=******
    Best Regards,
    Seba.

    Hi Seba
    You basically run Viewer as normal and then copy the URL from the Address bar at the top of the browser. This can then be used to run the report.
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • 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

  • 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 a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • How to print BIP reports from Oracle Forms?

    Hi all,
    I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
    Any idea/suggestions how we can go about this?
    Thanks in advance for your time.
    Yahya

    Yahya,
    via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
    Regards
    Rainer

  • How to Call a jasper report from Oracle Forms 6i.

    Hi
    Can anybody tel me how to Call a jasper report from ORacle Forms 6i.
    Thanks & Regards
    Bango

    Forms 6i client/server? Use the HOST command to call the report. Since a Jasper report is just a call to a url, it will be something like:
    v_url := '<your url to the report>';
    host ('cmd /c start '||v_url);If it's web Forms 6i it even easier. Just use web.show_document(<url>).

  • 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 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

  • 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

  • Steps to generate AWR report from Oracle 11g OEM

    I have gone through online documentation for generating an AWR report from Oracle 11g OEM but the documentation is more focused on generating the AWR report manually. I would request if there is a link or documentation to go through for generating AWR report from Oracle 11g enterprise manager.
    I hope my question is clear.
    Please revert with the reply to my query.
    Regards

    HI ,
    Please check following link: Siva Oracle: How to generate AWR Report from OEM Grid
    Thank you

  • Run Report from Oracle Forms9i

    Hi how are u all.......i am shahzad and i have little problem....i am working on developer 6i with oracle 9i database..........now i upgrade into developer 9i.....now the problem is that when i call the report from form then error is generated that is like'you cannot use reun run_product here use run_report_object'
    Any one plz tell me how to run report from forms 9i also how to pass parameter too...means check the parameter from forms and give me the reports
    guys its urgent
    Thanks in advance :)
    Thanks you

    fot this u have to use standard code as follows
    parameter list is as it was in 6i
    v_report_id := FIND_REPORT_OBJECT('report name');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,file);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'dflt');
    Set_Report_Object_Property(v_report_id,REPORT_OTHER,'ENVID="NFA"');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,ls_file_path||'\'||to_char(sysdate,'dd')||
         --     to_char(sysdate,'mm')||to_char(sysdate,'yyyy')||'.doc');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER, 'paramform=no');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,OUTFILE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER, 'paramform=no');
    vc_report_job_id:=RUN_REPORT_OBJECT(v_report_id,pl_id);
    v_jobID := substr(vc_report_job_id,length(reportserver)+2,length(vc_report_job_id));
    if      vc_report_job_id is not null then
    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;          
    IF vc_rep_status<>'FINISHED' THEN
         message ('Report failed with error message '|| vc_rep_status);
              END IF;
         end if;

Maybe you are looking for

  • Any ideas for this situation?

    I have a application which allows users to enter information about a file and stores the information in an XML file of the same name. So, if I had a file at d:\myFolder\myFile.ext it would create the following xml file d:\myFolder\myFile.ext.xml As y

  • Save File Dialog with PDF servlet

    I've looked through messages posted relavent to this topic but I'm having trouble finding a solution to my particular problem. I'm running a servlet that is used to dynamically generate completed business documents using given a customer number. The

  • ECC Transactions in NWBC Browser SRM 7.0

    Hi, I´m SRM 700 SP08. I dont have Portal Netweaver and now I´m using Netweaver Business Client. I would like to show ECC transactions in my NWBC too. I have created a role ZTEST with role menu: MM01 MM02 MM03 In Target System i have my destination (B

  • Connecting via firewire with logic 3 I-Station

    Hi i have a video 60gig black ipod i have just invested in a i-station for it to link to my pc via firewire but i keep getting a message " Firewire connections are not supported.To transfer songs, Connect the usb cable provided press centre to dismis

  • Open JPG In RAW

    This has probably been addressed before so I apologize. I can't seem to find any information with the Search feature. I want to be able to open a JPEG in RAW, but not all the time. How is this done? Thank you Merrill