Closing the report generating engine automatically

how can i close the report generating engine after displaying a report automatically ie when closing the report window the report generating engine also need to be closed. now i have to manually close the report background window also and it becomes annoying to users . i am using the rdf files and not rep files.

There is a parameter ORACLE_SHUTDOWN. Set it to YES.
When you have large, complex reports, the Reports Background engine sometimes eats lots of memory and leads to GPF. If you have lots of GPF when running a report, you should use this parameter.
null

Similar Messages

  • Closing the report background engine

    hi friends,
    i have tried using add_parameter function with ORACLE_SHUTDOWN=YES
    BUT THE Engine doesn't close in fact it shows the first report as in prview and the another report which I am trying to run in forms as waiting.
    is there any particular sequence for this syntax?
    manoj

    Manoj,
    you didn't mention a release version. ORACLE_SHUTDOWN=YES was filed as a bug for Forms 6.0 and was fixed for Forms 6i (6.0.8). Using Run_Reports_Object() instead of Run_Product and passing ORACLE_SHUTDOWN=YES as an argument of REPORT_OTHER will work even before.
    Frank

  • How to close "Reports Background Engine" automatically

    Dear Sir,
    I wanna close "Report Background Engine" automatically after closing the report.
    I tried to add the following parameter to close it in the caller form, but it didn't work:
    add_parameter(p1, 'oracle_shutdown', TEXT_PARAMETER, 'Yes') ;
    Waitting for Help!

    Hi,
    I think the problem might be with oracle_shutdown being in small case letters or you are using a version of forms6 or 6i that this line doesn't work due to a bug via Oracle in the engine ..
    Here is my line to shut down the report background engine.
    Add_Parameter(pl_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
    Thanks
    Mary Santry

  • Closing the Report Viewer causes the application to hang

    Hi,
    Since a few days we are experiencing some problems with the Crystal Reports viewer. When closing a report viewer in our application, the application hangs for a few minutes. The strange thing is, that it only seems to happen on Windows 7 and Windows 2008 R2 Server.
    Our application with the integrated Crystal Report Viewer is running on 2 application servers :
    - Windows 2008 Server, versie 6.0 Build 6002, Service Pack 2
    - Windows 2008 R2 Server versie 6.1, Build 7600
    Crystal Reports version installed on both servers : 12.01.0007.1144
    On the 2008 Server, the application works correctly.
    On the 2008 R2 server, the application hangs for about 5 minutes while closing the report preview window.
    Both server have exactly the same version of Crystal Reports and the same application version.
    I'm having the same issue on a Windows 7 x64 (6.1 Build 7600).
    I've installed all updates and hotfixes up to SP3 Fix Pack (12.3.3.812 / 12.3.2003.812) but I'm still having the same problem.
    We didn't have this problem until a few days ago, so I assume it has something to do with a windows update which only affects Windows 7 and Windows 2008 R2.
    Please advice us with a possible workaround, because our application is distributed to a few thousand users ...
    Some more debug info :
    This is the call of from the main thread when the application hangs :
         [Managed to Native Transition]     
    >     mscorlib.dll!System.__ComObject.ReleaseSelf() + 0x5 bytes     
         mscorlib.dll!System.Runtime.InteropServices.Marshal.ReleaseComObject(object o) + 0x8b bytes     
         CrystalDecisions.Shared.dll!CrystalDecisions.Shared.SharedUtils.ReleaseComObject(object obj = {CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass}) + 0x75 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ISCDClientDocumentEvents_EventProvider.Dispose(bool bDisposeManaged = true) + 0x1a2 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ISCDClientDocumentEvents_EventProvider.Dispose() + 0x32 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.DisconnectEventRelay() + 0xfc bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.InternalClose(bool bSetupForNextReport = false, bool bAutoClose = true) + 0x10e bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(bool bDisposeManaged = true) + 0xad bytes     
         System.dll!System.ComponentModel.Component.Dispose() + 0x12 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ClearCache(bool clearDocument = true) + 0x9d bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(bool bSetupForNextReport = true) + 0x81 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.Close() + 0x3f bytes     
         SyDelSoftControlLibCrystalReports.dll!SyDelSoft.ControlLib.CrystalReports.cReportForm.Dispose(bool disposing = true) + 0x55 bytes     
         SDProjects.exe!SDProjects.GUI.ReportForm.Dispose(bool disposing) + 0x38 bytes     
    SharedUtils.ReleaseComObject
    Kind regards,
    Frederic Hoornaert

    CrystalReportsDisposeIssue.crpe.Diagnostics.0.log
    --> Form3 closed
    ..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:39:17"
    N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:17"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"7"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"6"
    N/A:-1,Closing engine,Elapsed Time,"2"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:17"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"6"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"5"
    N/A:-1,Closing engine,Elapsed Time,"2"
    --> Form2 closed
    ..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:39:52"
    N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:52"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"4"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"3"
    N/A:-1,Closing engine,Elapsed Time,"2"
    --> Form1 closed..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:40:29"
    N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:40:29"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"2"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"1"
    N/A:-1,Closing engine,Elapsed Time,"2"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:40:29"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"1"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"0"
    N/A:-1,Closing engine,Elapsed Time,"100017"
    CrystalReportsDisposeIssue.crpe.functions.0.log
    0xfb8     17:39:17.871          0     PESetUserSessionInfo               0     PEUserSessionInfoW:<StructSize:262><userName:><requestID:22>     IN          21     <==
    0xfb8     17:39:17.871     0     0     PESetUserSessionInfo               0     OUT     PEUserSessionInfoW:<StructSize:262><userName:><requestID:22>          21     <==
    0xfb8     17:39:17.874          3     PEClosePrintJob     report {657D0ECA-BC6A-4EC6-9476-02B77376E07C}.rpt          0     jobN:3     IN          22     <==
    0xfb8     17:39:17.874     36     3     PEClosePrintJob     report {657D0ECA-BC6A-4EC6-9476-02B77376E07C}.rpt          0     OUT     jobN:3          22     <==
    0xfb8     17:39:17.913          0     PECloseEngine               0     void     IN          22     <==
    0xfb8     17:39:17.913     3     0     PECloseEngine               0     OUT     void          22     <==
    0xfb8     17:39:17.923          0     PECloseEngine               0     void     IN          0     <==
    0xfb8     17:39:17.923     3     0     PECloseEngine               0     OUT     void          0     <==
    0xfb8     17:39:52.421          0     PESetUserSessionInfo               0     PEUserSessionInfoW:<StructSize:262><userName:><requestID:23>     IN          0     <==
    0xfb8     17:39:52.421     0     0     PESetUserSessionInfo               1032     OUT     PEUserSessionInfoW:<StructSize:262><userName:><requestID:23>          0     <==
    0xfb8     17:39:52.423          1     PEClosePrintJob     report {F2574C5C-00BC-4627-9A05-B8133D6E6F7D}.rpt          0     jobN:1     IN          0     <==
    0xfb8     17:39:52.423     15     1     PEClosePrintJob     report {F2574C5C-00BC-4627-9A05-B8133D6E6F7D}.rpt          0     OUT     jobN:1          0     <==
    0xfb8     17:39:52.441          0     PECloseEngine               0     void     IN          0     <==
    0xfb8     17:39:52.441     3     0     PECloseEngine               1032     OUT     void          0     <==
    0xfb8     17:40:29.281          0     PESetUserSessionInfo               0     PEUserSessionInfoW:<StructSize:262><userName:><requestID:24>     IN          0     <==
    0xfb8     17:40:29.281     0     0     PESetUserSessionInfo               1032     OUT     PEUserSessionInfoW:<StructSize:262><userName:><requestID:24>          0     <==
    0xfb8     17:40:29.283          2     PEClosePrintJob     report {C78FE11F-6465-478F-83AB-49D8F0C6D64A}.rpt          0     jobN:2     IN          0     <==
    0xfb8     17:40:29.283     24     2     PEClosePrintJob     report {C78FE11F-6465-478F-83AB-49D8F0C6D64A}.rpt          0     OUT     jobN:2          0     <==
    0xfb8     17:40:29.310          0     PECloseEngine               0     void     IN          0     <==
    0xfb8     17:40:29.310     2     0     PECloseEngine               1032     OUT     void          0     <==
    0x1568     17:40:29.315          0     PECloseEngine               0     void     IN          0     <==
    0x1568     17:40:29.315     100018     0     PECloseEngine               0     OUT     void          0     <==

  • How to close the report background engine programatically in developer 6.0?

    Friends,
    We have developed our application using Oracle Developer 6.0 as front end and Oracle 9iR2 as a back end.
    whenever the user is opening the application one session is creating after that if he runs any report the report background engine is started and that engine also creating one session. So, unnecessarily two sessions are opening for a single application.
    So, how can we close the report background engine programatically after the report displays all the records?
    Moreover, when the user close the application, the report background engine is still open. the user has to close the report background engine manually.
    so how can we solve this issue?
    Thanks
    Sathyguy

    i got this while searching but its not working.....
    Problem Description
    Starting reports using a RUN_PRODUCT on Windows platforms starts a
    Reports Background Engine (RBE). After leaving the forms application the
    background engine is still running and must be terminated by the user.
    Solution Description
    This is intendet behaviour.
    To close the Background Engine programmatically use the Reports Runtime parameter
    ORACLE_SHUTDOWN. E.g.
    Perform the following actions to stop the RBE when closing the Forms
    application:
    1) Create a dummy report which only does e.g. a SELECT * FROM DUAL
    This report has a DESTYPE=FILE and a DESNAME to e.g. C:\TEMP\DUMMY.OUT
    2) In the POST-FORMS trigger add the following code:
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Create_Parameter_List('dummy');
    Add_Parameter(pl_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Run_product(REPORTS,'<<name dummy rapport>>',SYNCHRONOUS, RUNTIME,
    FILESYSTEM,pl_id,NULL);
    END;
    Explanation
    The Report Background Engine runs separately from the Forms application and
    there is no direct relation between these processes. The Forms should signal
    the RBE that is being closed.
    When the Form is closed the POST-FORM triggers sends a dummy report to
    the RBE. Since the ORACLE_SHUTDOWN=Yes parameter is used after running the
    report the RBE is terminated.
    A small side-effect of the solution is that a small file (5Kb) is created on
    the file-system contaning the output of the dummy report.

  • Reports Background Engine Automatic Shutdown

    Hi There!
    Is there any command to automatically close the Reports Background Engine when Reports are run from Forms....
    Thanks!
    Vidu

    hello,
    if you submit a job to the reports server and the first parameter in the parameterlist is
    add_parameter(var,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
    then the RBE will shut down.
    regards,
    the oracle reports team

  • CiscoWorks 3.2- Hostname is missing the reports generated by HUM

    Hi,
    We have CIscoworks 3.2 with service pack 1 installed . the hostname is missing in the reports generated by HUM module.
    can anybody please let me know how to correct this..
    any help would be appreciated...
    Regards,
    Channa

    See this document on understand Common Services Discovery.  With the right Discovery settings for your environment, Discovery can automatically update DCR with the hostname or the FQDN of your devices.
    https://supportforums.cisco.com/docs/DOC-9005

  • When i closed the Report , ODI Designer Tool also closed.

    Hi ,
    Through ODI Open Tool , genarated a report as PDF.
    In My code i wrote 'jasperViewer ' so when i excuted through tool it will automatically opend, after seen that View Report and closed that Reoprt, total ODI tool also closed.
    when i closed the Report , ODI Tool also closed. where is the problem.
    So can Give me alternative Solution.
    Regards
    Raghav

    Hi Josumon,
    Welcome to the Support Communities!
    The articles below may be able to help you with this.
    Click on the links to see more details and screenshots.
    Mac Basics: Messages
    http://support.apple.com/kb/HT5395
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    You may need to uncheck the "Enable this account" and then place the checkmark again to reset this for your Apple ID.
    Messages (Mavericks): Set up your accounts
    http://support.apple.com/kb/PH15055
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/ts3970
    I hope this information helps ....
    Have a great day!
    - Judy

  • Closing the report's confirmation window

    Hi All,
    I am using developer 10g and I am calling a report from the form.
    this report its DISTYPE is FILE after the report is generated and created the file a window apear that the report generated successfully.
    I need to hide this confirmation because I am looping on about 600 records and generating files for each record then this confirmation is apearing 600 times so every this hanges.
    Regards,

    hi
    in u r report code.Or please try something like
    create a trigger.
    On-Message Trigger(Form Level).
    begin
    if
      abs ( message_code ) = 40400
    then
      clear_message;
      bell;
      message ( message_text, no_acknowledge );
    else
      message ( message_text );
    end if;
    end;sarah

  • How can I put the report generated by a program into a File?

    Hi all,
       How can I put the report generated by a program into a File?It can be in TXT format or excel format which ever is possible.
    I need to export this file to memory,How can I do that??
    Regards,
    Shashank.

    Hello Shashank,
    Please ignore my previous answer... Ofcourse it works...
    There are several ways to do this...
    two of them are
    1. List -> Save -> File and press enter..
        it will ask for the format, then path where to save it. Just give the path.
    2. Using function module 'GUI_DOWNLOAD'.
    I'm giving the example bellow which explains the usage of both GUI_UPLOAD and GUI_DOWNLOAD.
    To do this... you need to have folder with name 'TEST' and a .txt file in it with name 'test'. And contents of it are :
    TEST1             ,BOT 
    TEST2             ,BOT 
    TEST3             ,BUT 
    with spaces.
    REPORT zssr_bdc .
    DATA: BEGIN OF g_t_itab OCCURS 0,
            matnr LIKE mara-matnr,
            maktx LIKE makt-maktx,
          END OF g_t_itab.
    DATA: g_t_bdcdata TYPE TABLE OF bdcdata.
    DATA: path TYPE string,
          path1 type string.
    path = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test.txt'.
    path1 = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test1.txt'.
    *contents of test.txt    *
    *TEST1             ,BOT  *
    *TEST2             ,BOT  *
    *TEST3             ,BUT  *
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename = path
      TABLES
        data_tab                      = g_t_itab.
    LOOP AT g_t_itab.
      WRITE:/1(18) g_t_itab-matnr, 20(40) g_t_itab-maktx.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       filename = path1
       filetype                      = 'ASC'
      TABLES
        data_tab                      = g_t_itab.
    Now you will get one .txt file with name 'TEST1.TXT' in the TEST folder.
    <b>REWARD POINTS IF IT IS HELPFUL</b>
    Regards
    Sasidhar Reddy Matli

  • Send Email Attaching the Report generated in Program.

    Hi All,
    I am generating a report in list format with write statements.
    My requirement is to send an email attaching this report as an attachment.
    I wanted to know how to get the listobject of the report generated by my program from the memory. Can anyone guide me with this ?
    It will be appreciable , If any one can give me more information on sending mails attaching the reports  generated by the program.
    Thanks in advance,
    Mayank

    Hi,
    I think the problem is not clear.
    My problem is to get the listobject name which got generated after the program run.I want to attach this list report to the email. I have seen a code from one of the link.
    Here it is.
    List of Users According to Logon Date and Password Change
    NOTE: Create ALI/OTF Document in Spool
      SUBMIT rsusr200 WITH valid = 'X'
                      WITH notvalid = space
                      WITH unlocked = 'X'
                      WITH locked = space
                 EXPORTING LIST TO MEMORY AND RETURN.
    <b>* Read list from memory into table
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'LIST_FROM_MEMORY'.
      ENDIF.</b>
    Because listobject is of size RAW(1000)
    and objbin is of size CHAR(255) we make this table copy
      CALL FUNCTION 'TABLE_COMPRESS'
        TABLES
          in             = lt_listobject
          out            = lt_objbin
        EXCEPTIONS
          compress_error = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'TABLE_COMPRESS'.
      ENDIF.
    Here the report is sumitted with the option of exporting the list in to the memory which is later read using 'LIST_FROM_MEMORY'.
    But here i need the same report's output to be captured and want to read the list generated from memory into table.
    How can i get the listobject of the list generated by the report in the same report program itself ??
    Please let me know.
    Mayank

  • T-code to see the report generated by a Report Writer.

    Hi,
    I  am new to report writer and need your help.
    I have a output which is generated  through a report writer.
    I need to compare the code that generated this output in development and production systems.
    The only information I have is  the library name and a z report name which gives the output.(throgh t-code GR33)
    But when I try to execute the same report in Se 38, it says that te report does not exists .
    Please suggest what is the t-code to see the report generated by a report writer , so that I can compare the codes in different systems.
    Thanks,
    Suchi.

    Hi,
    Thanks for the replies.
    The actual issue is :
    I have  a report created by report writer in 2 languages in Chineese and in English.
    In the selection screen of the chineese report some of the labels are missing.
    It is getting printed as ####### instead of fiscal year , Period etc.
    This is happening only in production while in the development system it is correct (Both the chineese and the English selection screen ).
    I guess this is a transportation issue.
    Please suggest.
    I am ot able to see the Transport Requests associated with it .
    Can you please guide me for the same.
    Where can I see the TRs associated with this report.

  • Oracle Apps Report error "Oracle Reports Server CGI - The Reports Server Engine terminated abnormally."

    Hi ,
    I have modified layout of one existing custom report.
    I have added 3 columns in the report , Now when I execute the report sometimes it gets executed with the newly added columns and sometimes it errors out with below error.
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - The Reports Server Engine terminated abnormally.
    Any pointers in this regards will be appreciated.
    Thanks

    I found there were some srw.message statement ( used for debugging purpose) were there , when I removed those statements. This error was gone.

  • The Reports Server Engine terminated abnormally

    Hi,
    I created report in Reports 6i. When I used this report on my PC through web, it is ok. When I used this report on the AIX through web, server return this message "Oracle Reports Server CGI - The Reports Server Engine terminated abnormally". Where do I find detailed description about this error.
    Thanks
    Rene Kana
    Enviroment:
    9i IAS 1.0.2.2 on AIX 5.1
    My PC:
    W2k, Reports 6i, ReportServices 6.0.8.11.2

    Hi Rene Kana
    You can turn on the tracing options in the server configuration file and then look at the tracefile to anlayze the details of the error. This could also be related to printer configuration , please make sure you have a valid printer set up on AIX.
    Regards
    Oracle Reports Team.

  • Specifying the report server, disabling the reports background engine.

    When calling a report from a form, where the desname, destype, deformat is chosen, how do i specify the report server? Also when i run the form and call the report from a button how do I disable the report background engine?
    Many Thanks
    Richard

    hello,
    the server is defined by the SERVER parameter in the parameter list.
    regards,
    philipp

Maybe you are looking for

  • How do i eject a cd from the macbook pro?

    i was importing it to itunes and realized i had already done so.  so i stopped importing.  But how do i eject the cd? I dont see an option in the toolbar.

  • How to generate parent node id and child node id from xmltable ?

    Hi All, Below is a part of the xml data which is loaded in a table. I need help in generating the parent id for compensationReference say for the first occurence of compensationReference node it should be 1 and for subsequent nodes 2,3,4,.. Can some

  • We have 4 HP Photosmart printers in our office. Can't tell the difference when printing?

    All 4 HP printers show up, we have employees with Iphones and Macbooks as well as PC. I'm wondering if there is a way to rename them so that we can differentiate front the print screen. Instead of printing and then trying to find the office that it p

  • Disk needs repairing but won't?

    Hi, Under instruction from OnyX, which recommended I repair my startup disk, I booted up from the CD (in which I also ran into some problems when my CD drive wouldn't open using the keyboard key; held down the mouse button on startup instead) and ran

  • Can't login after time machine restore

    Had a new drive fitted today on my 27inch iMac. Got it home and restored all my data from my time machine backup. Now I am trying to log in and my password does not work. Any ideas anyone. Using MountainLion Best regards Phil