After report

no delete a table in after report trigger, but in before report trigger yes....
my sentence is: delete test_table
commit;
why?

Hi Antonio,
The After report trigger is mainly used to clean up process. It will delete the rows in the table by 'delete test_table;'
and then commit will commit the changes to the DB.
Regards,'
Siva.

Similar Messages

  • How to correct close database connection after report generation

    Hello
    I have problem a with alive database connection after report creation and report  closing. How to properly to close connection to database?
    Best regards
    Edited by: punkers84 on Jun 17, 2011 10:38 AM

    that's what I am doing... after viewing the report, I call the close method on the window closing event of the container window. but the connection is still open. I had a lot of other issues with my jdbc driver but after downgrading to an older version those issues are resolved.Only this one is still there! Is there any other way to close the connection (like using dbcontroller or etc.)?

  • FND_REQUEST.SUBMIT_REQUEST is not working in After Report Trigger Reports6i

    Hi Guys,
    I am calling the another conc program in After report trigger using FND_REQUEST.SUBMIT_REQUEST. The below are the statement which i use in my program.
    req_id := FND_REQUEST.SUBMIT_REQUEST('APPL_SHORT','CONC_SHORT',NULL,NULL,FALSE);
    I have also use the SRW.USER_EXIT('FND SRWINIT') in Before Report Trigger and SRW.USER_EXIT('FND SRWEXIT') in After Report Trigger also.
    I am getting the error in Log file saying that
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report Contains uncompiled PL/SQL.
    Quick Response is highly appreciated.
    Thanks in Advance.
    Regards
    Madhan.S

    Hi Sawwan,
    I was compiled in Unix platform also. If i comment that FND_REQUEST.SUBMIT_REQUEST line it executes fine. It gives the same error in Unix also.
    Can anyone pls help this issue.
    Thanks in Advance.
    Regards
    Madhan.S

  • Can we insert new Detail Section After Report Footer in Crystal Report

    Hi All,
                Is it possible to  insert new  'detail' section  after  ' Report Footer' in the Crystal Report, i know this  is possible in 'detail' section where you can insert new detail one after another, but i want to  insert another  ' detail' section after Report Footer according  my required  result.
    Regards
    Rahul

    Hi Rahul...........
    Open Crystal Report and go to Insert option and select SubReport. From here you can create Subreport........
    Check below links....
    http://msdn.microsoft.com/en-us/library/ms227520%28v=vs.80%29.aspx
    http://www.youtube.com/watch?v=JVNkhj_rnMY
    Regards,
    Rahul

  • EBS: Email XML publisher output, from After Report Trigger in Data Template

    Here is what I'm trying to do:
    -- In EBS (11.5.10 CU2), I'm using XML publisher (5.6.2) data template and layout template to generate Output files (PDF, EXCEL etc)
    --In the Data Template's AfterReport Trigger, I'm using the Concurrent Request Id to locate the Output file name and trying to Email that output file.
    Problem:
    -- When the AfterReport trigger code is executed, the code is NOT seeing the output file and hence the file is NOT emailed.
    Observations/Questions:
    -- From what I observe, the Output Post Processor ( that generates the Excel / PDF files) is running AFTER the code in AfterReport trigger... and hence the AfterReport trigger is Not quite seeing / able to access the output file.
    So, the sequence of execution seems to be:
    -- Before Report Trigger
    -- Data Query (SQL statement)
    -- After Report Trigger
    -- Output Post Processor
    Because the AfterReport Trigger is running before the Output Post Processor, it is Not able to see the output file. Is that a True statement?
    If Yes, how else can the DataTemplate access the Output file?
    If No, what could cause the AfterReport trigger to not see the output file?

    Because the AfterReport Trigger is running before the Output Post Processor, it is Not able to see the output file. Is that a True statement?
    I believe so, as the OPP works on the output of the Report after the Report has completed execution.
    You could use the same approach as we do for bursting the report to different users. Write a Java Concurrent program based on "oracle.apps.xdo.oa.cp. XMLPReportBurst" with delivery channel Email to send the email output. You would need to add code to launch the Concurrent child request in your AfterReport Trigger:
    function AfterReport return boolean is
    jreq_id number;
    begin
    srw.message (100, 'DEBUG: AfterReport_Trigger +');
    jreq_id:= FND_REQUEST.SUBMIT_REQUEST ('XDO','XDOBURST','','',FALSE,:P_CONC_REQUEST_ID,'Y',chr(0),
    If (jreq_id=0)
    then
    srw.message (100,'Request id is zero');
    end if;

  • Error in After Report Trigger

    Hi,
    I've developed a report in HRMS for my client which collated the Vacation Accrual data of all employees. When i run the report for all employees which is an optional parameter it throwing the below error.
    REP-0300: ORACLE error occurred.
    REP-0069: Internal error
    In-process job terminated:Terminated with error:
    REP-300:
    During debugging i found that in the After Report Trigger , after the return statement, the below error is being thrown. I couldn't identify the exact source of the error. Any help on this would be much appreciated. Below is the After Report Trigger code.
    function AfterReport return boolean is
    begin
    srw.MESSAGE (12345, 'After Report - Before Return');
    return (TRUE);
    srw.MESSAGE (12345, 'After Report - After Return');
    end;
    Thanks
    Elango

    After spending a lot of time in analyzing, i ripped apart each and every part of the report and found a function where am doing a varchar to date conversion. Then i ran the query individually and picked up the below error.
    ORA-01841: (full) year must be between -4713 and +9999, and not be 0
    Then i identified the record which has incorrect data and modified it thru applications. Oracle Internal error basically arises due to datatype mismatch and its always better to use exception blocks with log messages wherever its applicable.
    Thanks
    Elango.

  • Report Painter insert blank line after report header

    Hi Expert,
    I have a problem to insert a blank line (a spacing) after the report header of my customized report painter.
    For example, in standard cost center report, S_ALR_87013611, there is a small box listed information like cost center/group ... and reporting period.
    Right after reporting period, the report header box ends, and there is a space line between it and the cost element data ...
    For my customized report painter, I cannot make this space line.
    I tried edit > row > insert blank line ... but not successful ... kindly advise.
    Thanks and regards,
    -CK

    Hi
    In KKO2 go to output tab, here under layout, tick header and then press pencil symbol and in the editor you write your header. I think this will give you desired result.
    Regards
    Rajneesh Saxena

  • [Forum FAQ] Configuration Manager Console shows nothing if you change SSRS to using SSL after Reporting Service Point is installed

    If the SSRS is changed to SSL mode and http binding is removed after Reporting Service Point is installed. The Configuration Manager Console shows nothing in Reporting Pane. After digging into this problem, the cause is that the SSRS information has not
    been updated in Configuration Manager Database. The following steps are taken for finding the root cause.
    1. After changing to SSL, the Reporting Service Point log shows the error as shown in Figure 1.
    The request failed with HTTP status 404: Not Found.
    (!) SRS not detected as running
    Failures reported during periodic health check by the SRS Server DB2.SCJIZHO.COM.
    Figure 1
    From the error, seems the cause was the Reporting Service Point detected a wrong port. We digged around in Registry and found the information is a Registry key named ReportServerUri at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\SRSRP. After changing the Report
    Server address to https. The error is gone as shown in Figure 2. But the issue remains, the Console still shows nothing. It is not a right direction.
    Figure 2
    2. Open the Console log file, it also shows some valuable information.
    instance of __ExtendedStatus
                    Operation = "ExecQuery";
                    ParameterInfo = "SELECT * FROM SMS_Site WHERE SiteCode = 'PRI'";
                    ProviderName = "WinMgmt";
    \r\n
    [1, PID:3136][04/24/2014 01:46:00] :Property: 'LastModifiedTime'\r\nSystem.Management.ManagementException\r\nNot found \r\n   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.PropertyData.RefreshPropertyInfo()
       at System.Management.PropertyDataCollection.get_Item(String propertyName)
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObjectBase.get_Item(String name)\r\nManagementException details:
    [52, PID:3136][05/11/2014 20:14:15] :[ReportProxy] - User-specified default Reporting Point [PRI.scjizho.com] could not be found, [DB2.scjizho.com] is now the default Reporting Point (Figure 3).
    Figure 3
    It seems the Console wants to access the old http site and it fails to get into the site for sure. Actually, the Site Configuration information is come from Site Control File and as we all know that ConfigMgr 2012 doesn’t store the Site Control file in the
    file system. However, it’s stored in the SQL database (as XML file). The XML file is stored in a view named vSMS_SC_SiteControlXML. This view is a read-only view. We cannot edit it directly. The related table stored the SSRS information for this view is SC_SysResUse_Property.
    Running the following query will list the SSRS address. We can see the address is still the old one. This is why the Console shows nothing.
    SELECT
    name,
    value2
    FROM dbo.SC_SysResUse_Property
    where name
    ='ReportServerUri'
    or name=
    'ReportManagerUri'
    Remarks:
    This article is just to let you know why the Console cannot show the Reports after changing to SSL mode. We do not intend to make you change the table in Database, if you want to change it, you will be at your own risk. The real solution to this situation
    is to reinstall your Reporting Service Point.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Ok, but how do you solve this problem? Does uninstalling the RP and adding it back solve this problem?
    http://www.enhansoft.com/

  • Reports attachement pdf printing after report printing

    Oracle : 9.2.0.6
    forms 6.0.8 reports
    os : linux :
    I have a peculear requirement for the inhouse application.
    I generate a standard Purchase order report with normal requirements using d2k reports. This report is being printed as soon as the transaction commits and goes to the printer.
    The Purchase order comes in 2 pages dependsing on the items and terms and conditions.
    I have a standard Pdf doc comp_prof.pdf (which changes regular intervals conists of various comp. info and not related any database activity).
    Currently this information is being printed manually after the Purchaae order is being printed.
    I tried to incorporated in after report trigger. I was not succesful.
    Pl. help what are the various options I have to solve this.
    If I convert a PO to mail this doc also should go.

    the pdf need to print is not from oracle d2k report. That is pdf is a particular location. The pdf is not getting generated form oracle or any d2k component.
    It is a standard any pdf doc consists of 3 page information.

  • Trigger - After Report Not working.

    Hai,
    Below is the coding written on the after report trigger for inserting values in a table but it not working,
    even srw.message put and checked but not functioning at all...
    what might be the problem...
    Thanks in Advance...
    function AfterReport return boolean is
    begin
         srw.message(100,'Hai');
    if (:total_credit) is not null then
         insert into opcl (fiscal_yr_cd,Period_no,Col1,Col2,Col3,Col4,Col5,Col6)
         Values (:P_Fiscal_yr,:P_Period,nvl(:total_credit,0), nvl(:total_cess_cf,0),
         nvl(:total_sec_cess_cf,0), nvl(:cf_tot_serv_tax1,0), nvl(:cf_tot_serv_tax2,0),
         nvl(:cf_tot_serv_tax3,0));
    commit;      
    end if;      
    return (TRUE);
    end;

    How are you running the report? Not in the preview mode in builder I hope, because that won't fire the after report trigger.
    "The After Report trigger fires after you exit the *Runtime Previewer*, or after *report output is sent to a specified destination*..."

  • Problem in writing 'After Report trigger'

    Hi All,
    Iam trying to insert values into database table after running the report.
    but the values are not inserted into the table.
    Here is the code in 'After Report trigger'
    function AfterReport return boolean is
    begin
    insert into reports_log values('poorders',user,sysdate,'Y');
    commit;
    return (TRUE);
    end;
    Thanks in Advance

    Tested one of my reports and found:
    the After Report Trigger does not fire (to insert a table) in Report Builder (6i) but it fires when it's invoked from Apex.
    It you run your report in Froms or Apex or...., try over there.

  • How to reference the total pages in a the after-report trigger

    I need to call a procedure in my after report trigger, and send the total number of pages as a parameter. However, a bind reference only applies to columns or parameters.
    I have the total pages displayed on my report, I just can't reference that field in my trigger.
    Does anyone have any ideas?
    Here is a link to my ultimate goal.
    Telling Form the number of pages in a report

    If any body is curious, I found a work around in Metalink that is working for me now.
    Search for Doc ID 130432.1

  • Save the pdf file in after report trigger

    Hi friends,
    How can I save the report PDF result file in table from after report triger?
    I am using Oracle report 10g. So is it possible to do that.
    thanks

    You can install the pluggable database destination from OTN.
    http://www.oracle.com/technology/products/reports/pluginxchange/index.html
    After deploying it on the reports server you can print the PDF to a BLOB column of a table in the database.
    An other "older" option is described over here:
    http://technology.amis.nl/blog/?p=576
    Hope this helps
    Marcos

  • Facing issue in after report trigger in XML publisher

    HI All,
    I have a XML template in that i am calling a after report trigger like below :
    <dataTrigger name="afterReport" source="apps.testpkg.testupdate_fun(:HEADER_ID)"/>
    I am passing the header_id from my header block to the function.
    My Function looks like below:
    FUNCTION testupdate_fun(P_HEADER_ID IN NUMBER ) RETURN BOOLEAN AS
    BEGIN
    UPDATE TEST_TABLE SET PROCESS_FLAG='P' WHERE HEADER_ID=P_HEADER_ID;
    COMMIT;
    return true;
    EXCEPTION
    WHEN OTHERS THEN
    return false;
    END;
    The problem i am facing is it is updating only one record in the table.but in my header data block i am getting the details for more order numbers with header id like 1,2,3..., but it is updating only one header id in table, please help me out how to update record for all the header_id.
    Thanks

    Examples of combining all IDs into comma-separate list can be found here: http://www.oracle-base.com/articles/misc/string-aggregation-techniques.php . That list you need to send as parameter to the trigger. In the trigger you may split it again and update the records one-by-one, or you can build an EXECUTE IMMEDIATE statement to update the table, and in that statement the list can be used as a whole, no need to split it. Please, advise on which steps of this process you need more detailed assistance.

  • Problem in Insertion into table through After Report Parameter form trigger

    Hi All,
    I am getting problem in inserting some data into temp table through Report.
    My requirement is like that, I have to do a calculation based on user parameters, and then insert the data into the temp table. I wanted to do this into After Report Parameter form trigger function. I have done all the calculation and wrote all the insert statement in that function. There is no problem in compilation. then I am taking value from this temp table in my formula columns.
    When I run this report, it hangs, don't understand what is the problem.Can anybody help me out in this.
    Thanks,
    Nidhi

    The code is as follows:
    function AfterPForm return boolean is
    CURSOR CUR_RECEIPT(RECEIPT_NUM_FROM NUMBER, RECEIPT_NUM_TO NUMBER) IS
    SELECT DISTINCT receipt, item_no FROM xxeeg.xxeeg_1229_sp_putaway WHERE RECEIPT BETWEEN
    RECEIPT_NUM_FROM AND RECEIPT_NUM_TO ;
    V_CUR_RECEIPT CUR_RECEIPT%ROWTYPE;
    begin
    OPEN CUR_RECEIPT(:RECEIPT_NUM_FROM, :RECEIPT_NUM_TO);
    FETCH CUR_RECEIPT
    INTO V_CUR_RECEIPT;
    LOOP
    EXIT WHEN CUR_RECEIPT%NOTFOUND;
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST1' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 12
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 13
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 14
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST2' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 16
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 17
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 18
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 19
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 20
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 21
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    END IF;
    END IF;
    END LOOP;
    COMMIT;
    CLOSE CUR_RECEIPT;
    return(TRUE);
    end;
    .....................................................................................................................

  • Update statement in After report trigger

    Hi
    I've written an update statement on a standard table to update one of its attributes in after report trigger.
    And then commit.
    I tried running the report without moving to reports top. The table was not updated.
    What could have gone wrong?
    Thanks
    Regards
    BalaKrishna

    Could you provide the UPDATE statements?

Maybe you are looking for