How to run the report via application server

Report not running?
hi All,
I am calling the report via forms, In application server i had recompiled the reports in two different format too.
1. myreports.rep
2. myreports.jsp
I have called the report from the menu and i used code like below
Declare
      V_id Varchar2(100);
Begin
    V_id := Run_Report_Object('myreports');
End;but i am getting following error.
Frm-41219:Cannot find report:Invalid ID.and subsequently an another too.
Frm-40738:Argument 1 to builtin RUN_REPORT_OBJECT cannot be null.please guide me
kanish

I using Forms 10g R2, i store the recompile version in Application server.
Good, so you can refer to the metalink note I mentioned above, as per storing the reports in the application server, the default place for running reports is not a folder in the FORMS_PATH, the REPORTS_PATH is set in the $ORACLE_HOME/bin/reports.sh file, pointing by default to the sample folder - $ORACLE_HOME/reports/samples/demo, for testing purposes you can put your report there and try it again, or you can modify the REPORTS_PATH variable in the reports.sh file to point to the directory you were mentioning.
Note: I am calling the report throug menu using the eariler posting code.
I would recommend to create a Form to call the Report, I am not sure if there are restrictions about invoking a report directly from the menu.
About the code, you are missing a lot there, refer to metalink note mentioned above, here is an excerpt from that document.
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;
In my eariler version 6i (2 tier) when i call the report it invoke parameter form. will 10g also behave same like 6i?
Yes, there is still a parameter Form which runs in an HTML page.
*1. Should i want to create any Report_Path, Report_classpath ? if yes ,where should i ?* It will depend on your configuration, the easiest way is to setup the REPORTS_PATH in the $ORACLE_HOME/bin/reports.sh file, if you are configuring the reports server to use environment ids, that would not work and you would need to setup the REPORTS_PATH directly in the reports engine configuration file .. $ORACLE_HOME/reports/conf/rwserver.template.
Edited by: Rodolfo Ferrari on Jun 3, 2009 3:19 PM

Similar Messages

  • How to run the report and show the output in excel file

    salam
    how to run the report and show the output in excel file,
    how to run the report and print the o/p via printer
    how to run the report and send the o/p via mail
    thank u all

    Hi,
    There are Parameters DESTTYPE, DESFORMAT and DESNAME. You can set these parameters to get as you want.
    1) Output in Excel File
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
         ADD_PARAMETER(PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'DELIMITED');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<file_name>.XLS');2) output to printer
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<printer_name>');3) Email - Have to configure SMTP and all. ( i didn't checked it)
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'MAIL');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<email_id>');Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • How to zip the folder in application server?

    how to zip the folder in application server?

    You can use
    open dataset with filter
    link:[http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET_OS_ADDITION.htm#!ABAP_ADDITION_2@2@]

  • How to run the report RM07CUFA?

    How to run the report RM07CUFA?

    Go to SE38 and enter RM07CUFA and click execute.
    in the next screen enter details for
    Movement Type
    Special Stock Indicator
    Company Code
    G/L Account
    and execute.
    If you have any inconsistency with fields that will be shown with red colour..

  • How can run the report SAP_INFOCUBE_DESIGN?

    hI gURUS
    To know about the DIM Table size
    How can run the report SAP_INFOCUBE_DESIGN?
    Thanks
    Cheers
    Durai

    Function (se37):
    RSDEW_INFOCUBE_DESIGNS
    Try to see/run this function in order
    to get statistic about one InfoCube
    How to determine the size of DIM?
    From this Function u can determine
    how many rows in DIM u have.
    After this u can determine size of DIM table:
    ROWS * (How many Bytes are in one row) = Size of table.
    In order to determine how many Bytes are in one row,
    u can see transaction se11 -> Database table -> Tabkle name of DIM -> Display -> Fields -> just add the length*Bytes for all fields in this table.
    BR

  • How to bring the data from application server to presentation server

    hi,
    i have one problem,i have written the program which will open the files in the application server when we run the program in the background(sm37),the same data from application server i want to bring into presentation server in the format of (.csv),how to bring the data from application to presentation server can any body help me on this  topic.folowing is the code .
    *& Report  ZPFA_HIER_LOAD
    REPORT  ZFPA_HIER_LOAD.
    *---- Declaration of Oracle connectioN
    DATA con_name LIKE dbcon-con_name VALUE 'COMSHARE'.
    DATA: MFL1(9),MFL2(5),MFL3(9),MFL4(2),MFL5(8) TYPE c.
    DATA : mfilename type string.
    data: begin of matab1 occurs 0,
          MFL1(9) TYPE C,
          MFL2(5) TYPE C,
          MFL3(9) TYPE C,
          MFL4(2) TYPE C,
          MFL5(8) TYPE C  ,
         end of matab1 .
    data: setid(8) type c.
    data: begin of source occurs 0,
          setid(8) type c,
          end of source.
    *PARAMETERS : p_pfile LIKE filename-FILEEXTERN.
    *PARAMETERS : m_bsenty(8). " type c obligatory.
    *mfilename = P_PFILE.
    EXEC SQL.
      SET CONNECTION :con_name
    ENDEXEC.
    EXEC SQL.
      CONNECT TO :con_name
    ENDEXEC.
    EXEC SQL PERFORMING get_source.
      SELECT set_id FROM UNIT_SET INTO
      :setid
      ORDER BY SET_ID
    ENDEXEC.
    start-of-selection.
    LOOP AT SOURCE.
      REFRESH matab1. CLEAR matab1.
      EXEC SQL PERFORMING evaluate.
    SELECT TO_CHAR(MEM_ID),TRIM(TO_CHAR(MEM_PID)) FROM UNIT_TREE INTO :MFL1,
    :MFL5
    where set_id = :SOURCE-SETID ORDER BY MEM_ID
      ENDEXEC.
      if SOURCE-SETID = '80000000'.
       mfilename = '/tmp/aesorg'.
      elseif SOURCE-SETID = '80000006'.
       mfilename = '/tmp/Consolidation_Manager'.
      elseif SOURCE-SETID = '80000010'.
       mfilename = '/tmp/10org'.
      elseif SOURCE-SETID = '80000012'.
       mfilename = '/tmp/20org'.
      elseif SOURCE-SETID = '80000018'.
       mfilename = '/tmp/30org'.
      elseif SOURCE-SETID = '80000025'.
       mfilename = '/tmp/40org'.
      Endif.
      mfilename = '/usr/test.dat'.
    ************************This was i tried***********************
      open dataset mfilename for output in text mode encoding default." IN
    *TEXT MODE ENCODING DEFAULT.
    if sy-subrc <> 0.
    exit.
    endif.
    close dataset mfilename.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME         = MFILENAME
         FILETYPE         = 'ASC'
       TABLES
         data_tab         = matab1
       EXCEPTIONS
         file_write_error = 1
         invalid_type     = 2
         no_authority     = 3
         unknown_error    = 4
         OTHERS           = 10.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
      clear matab1.
    ENDLOOP.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
    close dataset mfilename.
         MFL5 = '0'.
       CLEAR MFL5.
    FORM evaluate.
      if MFL5 = -1.
        MFL5 = ''.
      ENDIF.
      concatenate MFL1 ','   into MFL1.
      concatenate MFL1 ','   into MFL3.
      matab1-MFL1 = MFL1.
      matab1-MFL2 = 'ZBUE,'.
      matab1-MFL3 = MFL3.
      matab1-MFL4 = ' ,'.
      matab1-MFL5 = MFL5.
      append matab1 .
      CLEAR MFL1.
      CLEAR MFL2.
      CLEAR MFL3.
      CLEAR MFL4.
      CLEAR MFL5.
    ENDFORM.
                     "evaluate
    *&      Form  GET_SOURCE
          text
    FORM GET_SOURCE.
      source-setid = setid.
      append source.
      clear source.
    ENDFORM.                    "GET_SOURCE

    Hi Rammohan,
    You cannot use OPEN DATASET to transfer data from application server to presentation server.
    You can do the following :
    <b>Do 1st point in BACKGROUND</b>
    1. Read the data file from application server into an internal table using OPEN DATASET
    <b>Do 2nd point in Foreground</b>
    2. Once you get the data into an internal table, then use FM GUI_DOWNLOAD to download it on presentation server
    You cannot use the above 2 point together in Background because its not possible. Hence you need program it partially in background and partially in foreground.
    Best regards,
    Prashant

  • How to run the payroll in Quality server..Unable to exit the payroll record

    HI Experts,
    In my Quality server the current payroll period is 6 ---2006.
    For testing purposes i want to run the payroll for next periods.
    Here i am unable to exit the payroll.It is showing message that payroll has not been run successfully for all personnel numbers.I have struck up here.
    How can run the payroll for the next period.
    Please advice me to run the payroll for later periods...
    Thanking U.
    Sairam.

    Hi Vicky,
    That is ur master data and time data is not correct, the rejected personnel no. should with the correction flag.these personnel no are stored in too called matchcode W, so u have to change the master data and time data fot that perticular personnel no. and agian release for payroll.
    if any changes required in customizing tables rather than ur infotypes then let me know.
    Hope this will give u an idea
    reward points if helpful
    Srinivas

  • How to send the file in *application server* as an email?

    Hi,
    I have a file in application server and I want to send that file as an email from application server.
    Please let me know how to do it.

    Hi Suman,
    look here:
    Re: How to send an email from Application server?
    Regards, Dieter

  • How to deploy Forms/report on Application Server 10.1.3

    Hi,
    I have Forms and Reports created with Developer10g R2, I want to deploy these with Application Server R10.1.3 but after reading a lot of manuals like Administrator guide, Installation guide, deployment Guide I didn't find a way how and where should I place my Forms/Reports and how to call it via browser, some one plz explain me or send a link where I am going wrong.
    Thanks and Regards.
    Khawar

    Hi Kashif,
    SSO (single sign on) is a feature of infrastructure. what does it mean?.
    When you intended to use SSO, then you will need to you the infra in which you have what it calls Metadata & OID (oracle internet directory) some think like LDAP server.
    so just when you want to connect through your FR&REP the user must be well known by SSO (created in OID). otherwise you can not login to your apps+DB.
    SO about your question version 10.1.3 for forms&rep servers (BI) is not availble just version 10.1.2.0.2. you can download separately or toegether with you infra. (it depends on what you want.
    You can see forms&rep server as OC4J container in which you can deploy your applications (fmx files).
    Hope it is clear now for you otherwise let me know so I can provide you with some links which will help you.
    Cheers,
    Hamdy

  • ClassFormatError while running the code on application server

    Hi all,
    I have written some code which compiles and executes fine on JDeveloper but when I deploy the same code on Oracle Application Server it gives me ClassFormatError.
    The class which is giving the error is a simple Java Class, which is called by an ApplicationModule for doing the computation.
    JDeveloper version is 10.1.3.3.0
    Oracle AppServer version is 10.1.3
    Any help will be greatly appreciated.
    Below is the original stack trace:
    [06/10/2009 10:42:40 ERROR RtnAcknHandler:437] Error :: saveAcknForm in RtnAcknHandler
    com.demo.example.core.exception.GenericApplicationException: java.lang.reflect.InvocationTargetException
         at com.demo.example.core.manager.ApplicationModuleManager.callApplicationModule(ApplicationModuleManager.java:76)
         at com.demo.example.returns.ackn.service.RtnAcknServiceImpl.saveAcknForm(RtnAcknServiceImpl.java:16)
         at com.demo.example.returns.ackn.handler.RtnAcknHandler.saveAcknForm(RtnAcknHandler.java:422)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.demo.example.core.manager.HandlerManager.invokeHandler(HandlerManager.java:83)
         at com.demo.example.core.handler.FrontRequestHandler.handleRequest(FrontRequestHandler.java:161)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.validation.utils.serversidevalidation.ServerSideValidationFilter.doFilter(ServerSideValidationFilter.java:81)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.demo.example.core.manager.ApplicationModuleManager.callApplicationModule(ApplicationModuleManager.java:71)
         ... 26 more
    Caused by: oracle.classloader.util.AnnotatedClassFormatError: Invalid length 65523 in LocalVariableTable in class file com/demo/example/returns/common/service/ReturnsITCasService
         Invalid class: com.demo.example.returns.common.service.ReturnsITCasService
         Loader: demoapp.web.webapp:0.0.0
         Code-Source: /D:/product/10.1.3.1/OracleAS/j2ee/DEMOAPP/applications/demoapp/webapp/WEB-INF/classes/
         Configuration: WEB-INF/classes/ in D:\product\10.1.3.1\OracleAS\j2ee\DEMOAPP\applications\demoapp\webapp\WEB-INF\classes
         Dependent class: com.demo.example.returns.ackn.appmodule.RtnAcknAMImpl
         Loader: demoapp.web.webapp:0.0.0
         Code-Source: /D:/product/10.1.3.1/OracleAS/j2ee/DEMOAPP/applications/demoapp/webapp/WEB-INF/classes/
         Configuration: WEB-INF/classes/ in D:\product\10.1.3.1\OracleAS\j2ee\DEMOAPP\applications\demoapp\webapp\WEB-INF\classes
         at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2285)
         at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1462)
         at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at com.demo.example.returns.ackn.appmodule.RtnAcknAMImpl.saveAcknForm(RtnAcknAMImpl.java:1454)
         ... 31 more
    Caused by: java.lang.ClassFormatError: Invalid length 65523 in LocalVariableTable in class file com/demo/example/returns/common/service/ReturnsITCasService
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2241)
         ... 39 more
    Edited by: user593821 on Oct 6, 2009 4:07 AM

    Hi,
    the exe has a GUI interface, with all types of windows User interface elements such as comboboxes, editboxes, grids, etc...
    I don't believe that is posible to do, but asked anyway in case i was wrong.

  • How configure sending CDR reporting via ftp server

    hi
    i want to send the CDR reporting automaticly to FTP billing server each 1H.
    i have add the billing server
    i don  t know how or when can i configure the automatique sending CDR report to this server
    Thanks for your help

    You'll need a SFTP server instead of FTP.
    For instructions, please see here:
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/service/7_1_2/admin/sacdrm.html
    Thanks!
    Michael
    http://htluo.blogspot.com

  • How to see the logs of application server

    Hi ,
    I deployed my application on the dev server and want to find out whats goin on for a certain page . I was wondering where , what directory will have these log files for application server.
    I am new .. so any other suggestions to get the log information is also welcomed ..
    thanks

    These threads would help
    Re: App server Logs
    Re: CommonAM not releasing JDBC connection
    Thanks
    Tapash

  • How to run the simple jsp on oracle 9ias application server?

    hi,
    how to run the simple jsp application jst disply the date on oracle 9ias application server?
    can any expline the steps how to do it?
    thanks
    pullareddy

    No, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
    I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often.

  • How to run the VC application which is deployed

    Hi  All,
    I am new to the VC. I created one model, and i have added some data service and view. and i compiled and deployed. I am not able to find , how to run that deployed application.
    Can any body tell me how to run the deployed VC application.
    Regards
    Vijay

    Hi Vijay,
    go after you have deployed to Deploy on the right side of the VC. There you have to see "see source code" and "Run name of your application". Put your mouse at run and the application will start.
    Another way ist to put the Button "Deploy Model " (it is the picture with the running man) in the 2second menu line. If you do this, the modell will start automatically, if it has no errors.
    Regards
    Thomas

  • How to rename a file in Application server

    Hi All,
    Here I have a issue with  the present file which is being generated in application server.
    Before the completion of the file the EDI tool is extracting the file from the app server.So here I would like to generate the file with a temp name and then rename to the actual file name which EDI recognises and fetches.
    Please correct me If I am wrong and let me know how to rename the file in application server.
    Thanks,
    Vijay N

    you can try using unix command , if your application server is unix.
    use move command
    mv   <source>  <target>
    REPORT ZUNIX line-size 400
                    no standard page heading.
    data: unixcom like   rlgrap-filename.  
    unixcom = 'mv file1 file2'.
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].
    or else you can open dataset/ read the dataset and move it to another file and delete the old file.

Maybe you are looking for