SRW.USER_EXIT

Can any one explain me how to use SRW.USER_EXIT in oracle reports?
If possible with an example.
Thanks.

Hi,
If you will be using it in .rdf program understand the sequence of 'Program Unit' in Report trigger which it kick's of
1. Before Parameter Form
2. After Parameter Form
3. Before Report.
     - This where you add the code
          srw.USER_EXIT('FND SRWINIT');
      This will hold in memory all the user related information and profile values
     Example uses on user values in the report to display after add the above code will be;
              srw.message(406, fnd_global.user_name);
              srw.message(407, fnd_global.resp_name);
4. After Report
    - This is where you add the second set of code
          srw.user_exit('FND SRWEXIT');
         - This code will clear the memory. however you still have the capability to display user related information. Example;
              srw.message(406, fnd_global.user_name);
              srw.message(407, fnd_global.resp_name);
Must add user parameter (P_CONC_REQUEST_ID)
Above has been tested in Report Builder 2000 and Report Builder 10g.
Try it and let me know your comment

Similar Messages

  • How to find the foreign function source code of srw.user_exit in report?

    Hi,
    We know that srw.user_exit can invoke a foreign function,for example SRW.USER_EXIT('FND SRWINIT').
    But how can I find the source code of the foreign function in SRW.USER_EXIT(e.g. the source code of FND SRWINIT)?
    Thanks in advance,

    Hi,
    You build user exits when you want to pass control from Report Builder to a program you have written, which performs some function, and then returns control
    to Report Builder.
    So you will have to know the foreign function you want to invoke.
    For information on writing a user exit, see the following note on Metalink:
    179324.1
    And the "Programmer's Guide to the Oracle Precompilers, 1.8"
    Navneet.

  • Not able to use SRW.USER_EXIT in oracle forms.

    Hi,
    Below is my requirement in oracle forms:
    I have a query form, which has Inventory Category Set field and Category 'From' and 'To' fields. Based on the values selected by the user for Category Set, possible combinations for Categories should be displayed in Cateogory 'From' and 'To' fields. Upon clicking the 'Find' button, only the items which belong to this category set and the range of Cateogies selected should be displayed.
    Note that 'Item Categories' Key flex field should be used here. Number of Segments for each Category set will differ. To acheive this, I have attached the Key flex field to the Cateogory 'From' and 'To' fields.
    In the PRE-QUERY trigger of the datablock, I have to use where condition to filter the items based on the category sets and categories. This where condition should be generated dynamically based on the search criteria.
    In oracle report, we have provision to use the below USER_EXIT to get the where condition to append to my PRE-QUERY statement.
    SRW.USER_EXIT('FND FLEXSQL CODE = "MCAT"
    OUTPUT = ":P_WHERE_CAT"
    APPL_SHORT_NAME= "INV"
    MODE = "WHERE"
    DISPLAY = "ALL"
    NUM = ":P_STRUCT_NUM"
    TABLEALIAS = "MCA"
    OPERATOR = "BETWEEN"
    OPERAND1 = ":P_CATEGORY_FROM"
    OPERAND2 = ":P_CATEGORY_TO"');
    But in forms, I am not able to use this USER_EXIT. Please let me know the alternate ways to get the where condition dynamically in forms.
    Thank you in advance.
    Regards,
    Kalyan

    RAISE APPLICATION_ERROR built-in is raised in a DB procedure/function or trigger.
    You can write an ON-error trigger that will trap any DB error messages
    or
    You can use Dbms_Error_Code & Dbms_Error_Text for trapping the Error.

  • SRW.USER_EXIT('FND SRWINIT')  not working

    Hi
    Instance : R12.1.3, SRW.USER_EXIT('FND SRWINIT') is not working .
    the org context is not set when calling SRW.USER_EXIT('FND SRWINIT') from Before Report Trigger.
    Pls advice.
    Regards
    Yram

    Pl see if MOS Doc 420787.1 (Oracle Applications Multiple Organizations Access Control for Custom Code) can help
    HTH
    Srini

  • Srw.user_exit('FND FLEXIDVAL

    Hi All,
    function G_BALANCINGGroupFilter return boolean is
    begin
    srw.reference(:STRUCT_NUM);
    srw.reference(:BAL_DATA);
    srw.user_exit('FND FLEXIDVAL CODE="GL#"
    NUM=":STRUCT_NUM"
    APPL_SHORT_NAME="SQLGL"
    DATA=":BAL_DATA"
    VALUE=":BAL_FIELD"
    SHOWDEPSEG="N"
    DISPLAY="GL_BALANCING"
    IDISPLAY="GL_BALANCING"
    SECURITY=":BAL_SECURE"');
    IF(:BAL_SECURE = 'S') then
    return(FALSE);
    ELSE
    return (TRUE);
    END IF;
    end;
    I am working on Foreign Currency General Ledger Oracle report,
    we want to change this report into select by account #,
    My question is when it run " srw.user_exit('FND FLEXIDVAL CODE="GL#" ... "
    does it return any value like :BAL_SECURE
    How can i find this script or program in Linux?
    Thanks,

    Oh my god,I have encountered same problem,Did you found reason?

  • Reg SRW function

    Hye Guys,
    I am working in Reports 6i and as per the standard/requirement of APPS in most of thereports below line with different - different parameters is placed and due to which in most of the cases I am unable to run this report in report builder it self, fo an any single modification, all time I have to copy the report on server and only then able to check the report. Please brief me that what is the meaning/purpose of this command/syntax.
    SRW.USER_EXIT('FND MESSAGE_NAME APPL="SQLAP" NAME="AP_APPRVL_NO_DATA"');
    Thanks
    If you provide your reply on my personal mail id then highly thankfull to you
    [email protected]
    Shishu Paul

    Hi
    SRW.User_exits related to FND's are used to get apps environment .
    So they work in apps environment only.
    they wont work in report builder 6i.

  • About user_exit when migrated 2.5 to 10g

    Hi Guys,
    when i tried to migrate some report from 2.5 to 10g, I know the user_exit already obsoleted, we can user ora_ffi and ora_java calls, but i still have a problem to replace user_exit.
    here is the code in the column as below:
    function WD1Formula return VARCHAR2 is
    begin
    SRW.USER_EXIT('WORKDAYS DATE_RECEIVED DATE_WAIVED CUMU');
    RETURN('');
    end;
    I do know 'DATE_RECEIVED', 'DATE_WAIVED' and0 'CUMU' are objects in the report ,i have no idea about 'WORKDAYS'.How to use other package to replace this one.
    user_exit usually is call function outside of oracle ,like c program.
    Who can explain it in detail?
    Thanks,
    appcat

    anyone can help me?

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • Rewrite query

    hi
    i have a standard oracle report query which i ve taken from the data model
    is it possible to rewrite this query without the bind variable , also the data given as output should be same when rewritten
    wht does &C_vendor_dynamic_SQL stand for
    SELECT /*+ ORDERED_PREDICATES */  DISTINCT (v.vendor_id)           C_vendor_id,
                       v.vendor_name                               C_vendor_name,
         DECODE(:SORT_BY_ALTERNATE, 'Y', UPPER(v.vendor_name_alt),
                       UPPER(v.vendor_name))      C_sort_vendor_name,
         v.segment1          C_vendor_num
    FROM    ap_invoices i, po_vendors v
    WHERE  0 < (SELECT SUM(nvl(prepay_amount_remaining,amount))
                     FROM  ap_invoice_distributions aid
                     WHERE aid.invoice_id = i.invoice_id
                     AND   aid.line_type_lookup_code IN ('ITEM','TAX')
                     AND   nvl(aid.reversal_flag,'N') <> 'Y')
    AND v.vendor_id = i.vendor_id  
    AND i.invoice_type_lookup_code =  'PREPAYMENT'
    AND       i.cancelled_date IS NULL
    &C_vendor_dynamic_SQL
    ORDER BY DECODE(:SORT_BY_ALTERNATE, 'Y', UPPER(v.vendor_name_alt), UPPER(v.vendor_name))thanking in advance
    Edited by: makdutakdu on Jun 21, 2010 10:54 AM

    hi
    thank u for the speedy response
    there is after report and before report trigger and i dont see C_vendor_dynamic_SQL in both of them from the data model i see its a placeholder type column with no pl/sql formula specified
    this is the code for before report trigger
    function BeforeReport return boolean is
    begin
    /* This is the before report trigger for Oracle Payables Release 10 reports  */
    DECLARE
      init_failure    EXCEPTION; 
    BEGIN
      /* Start tracking report run time */
      :C_REPORT_START_DATE := sysdate;
      /* Init AOL - only necessary if AOL user exits are called           */
      /* If this is deleted, also delete SRWEXIT in After Report Trigger! */
      SRW.USER_EXIT('FND SRWINIT');
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('1','After SRWINIT');
      END IF;
       /* get the set of books id and charge account id for this org */
      SELECT   ap.set_of_books_id, gl.chart_of_accounts_id
        INTO   :P_set_of_books_id, :P_chart_of_accounts_id
        FROM   ap_system_parameters ap, gl_sets_of_books gl
        WHERE  ap.set_of_books_id = gl.set_of_books_id;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('2','After initialize parameter p_set_of_books_id and p_charge_of_accounts_id');
      END IF;
      /* Get the organization name and SYSDATE from GL_SETS_OF_BOOKS */
      IF (get_company_name != TRUE) THEN  -- Call report level PL/SQL function
         RAISE init_failure;
      END IF;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('3','After Get_Company_Name');
      END IF;
      /* Get NLS strings for "All","Yes","No", and "No data exists..."  */
      IF (GET_NLS_STRINGS != TRUE) THEN -- Call report level PL/SQL function
         RAISE init_failure;
      END IF;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('4','After Get_NLS_Strings');
      END IF;
      /* Get code, precision, min.accountable unit,and descr. for base currency */
      IF (get_base_curr_data != TRUE) THEN   -- Call report level PL/SQL function
         RAISE init_failure;
      END IF;
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.MESSAGE('5','After Get_Base_Curr_Data');
      END IF;
      /* If you need to print cover page values, add the code to the existing */
      /* get_cover_page_values function and uncomment the call below.         */
      /* IF (get_cover_page_values != TRUE) THEN  */
      /*    RAISE init_failure;                   */
      /* END IF;                                  */
      /* IF (:p_debug_switch in ('y','Y')) THEN   */
      /*    SRW.MESSAGE('6','After Get_Cover_Page_Values'); */
      /* END IF;                                  */
      /* If this is a flex report, uncomment the following lines */
      /* IF (get_flexdata != TRUE) THEN             */
      /*    RAISE init_failure;                     */
      /* END IF;                                    */
      /* IF (:p_debug_switch in ('y','Y')) THEN     */
      /*    SRW.MESSAGE ('7', 'After Get_Flexdata');*/
      /* END IF;                                    */
      /* Add any custom code to the existing custom_init PL/SQL function and */
      /* uncomment the call to it below */
      IF(custom_init != TRUE) THEN             
        RAISE init_failure;                    
      END IF;                                   
      IF (:p_debug_switch in ('y','Y')) THEN   
        SRW.MESSAGE('7','After Custom_Init');  
      END IF;                                  
      /* If the debug switch is turned on, do an SRW.BREAK to show current */
      /* parameter and column assignments.                                 */
      IF (:p_debug_switch in ('y','Y')) THEN
         SRW.BREAK;
      END IF;
      /* If there have been no exceptions so far, RETURN(TRUE) */
      RETURN (TRUE);
    /* Exception Handler Section.  If there is an exception, abort program */
    EXCEPTION
      WHEN   OTHERS  THEN
        RAISE SRW.PROGRAM_ABORT;
    END;
      return (TRUE);
    end;this is for after report trigger
    function AfterReport return boolean is
    begin
    BEGIN
       SRW.USER_EXIT('FND SRWEXIT');
       IF (:P_DEBUG_SWITCH = 'Y') THEN
          SRW.MESSAGE('20','After SRWEXIT');
       END IF;
    EXCEPTION
    WHEN OTHERS THEN
       RAISE SRW.PROGRAM_ABORT;
    END;  return (TRUE);
    end;kindly help
    Edited by: makdutakdu on Jun 21, 2010 11:22 AM

  • REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal.

    Hi,
    I am running the report Journals - General (132 char)- file name GLRGNJ.rdf from
    Oracle Report Builder 6.0.8.11.3.
    I have commented all the (srw.user_exit) in the Before Report trigger but i still
    get the message:
    REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal,
    successful completion.
    Can anyone suggest a solution please?
    Thanks,
    Faris

    Dear sir, i am created one formula column in Reports6i and the following error has come. Could u please find out a solution. Thanks in advance.
    my function is below
    function CF_Branch_NameFormula return Char is
    lc_branch_name varchar2(100);
    begin
    SELECT rtrim(substr(FVT.DESCRIPTION
    ,instr(FVT.DESCRIPTION,'-',1)+1
    ,100)) INTO lc_branch_name
    FROM FND_FLEX_VALUES FFV, FND_FLEX_VALUES_TL FVT
    WHERE FFV.flex_value_Set_id = 1007956
    AND FFV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    AND FFV.FLEX_VALUE = FVT.FLEX_VALUE_MEANING
    AND FVT.DESCRIPTION <> 'xxx'
    and rownum<=1
    AND SUBSTR(FVT.FLEX_VALUE_MEANING,3,2) = :P_BRANCH;
    return (lc_branch_name);
    end;

  • R12 Report customised report not working.

    i have developed a report in R12 for purchasing module.
    simple quey: select * from po_headers_v where po_number=45;
    in Before report trigger.
    mo_global.set_policy_context('S',101);
    In PC report is working but didn't show any record when i attach it R12.

    We have had a similar problem in R12 with getting data output from custom reports pulling data from purchasing tables such as PO_VENDORS.
    You have to add this in the after parameter form trigger of the Oracle Report:
    SRW.USER_EXIT( 'FND SRWINIT');
    Do not call it from the before report trigger like I was used to doing under 11i. This user exit sets up various Oracle Report environment info, including initializing Oracle Reports to work with the new multi-org system used by R12.
    Don't forget to call this in the after report trigger:
    srw.user_exit( 'FND SRWEXIT' );
    Also under R12, you need to set the Operating Unit Mode setting on the web based define concurrent program page. Go to (R) System Administration -> (N) Concurrent -> Programs, once you have queried up your concurrent program for your report, click the Request tab. You will find the Operating Unit Mode option there. This Operating Unit Mode option needs to be set to Single for most R12 instances. This mode setting is not available in the Oracle Forms concurrent program define form, so watch out!
    Cheers
    Daryl

  • 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

  • XML Report Publisher program is erroring out

    Hi All,
    I've customized the AR Customer Statements.
    I've created a data definition as "ARXSGP" and uploded the sample_output.xml of Statement Generation Program to it. Also I've created a Data template as "ARXSGPO" and attached the data definition "ARXSGP" to it and uploaded the customized rtf file "XXHCC_CLE_F_ARCUSBALSL.rtf" and set the default output type to PDF.
    As I donot wish to call the XML Report Publisher program manually every time when I Print the Statements through Print Documents-->Statements.
    So I've done the below customization in ARXSGP.rdf file ie; Print Statements Report which is an Oracle Report.
    I've added the below code in After Report trigger.
    =======================================
    FUNCTION AfterReport
    RETURN BOOLEAN
    IS
    BEGIN
    Below code added for Customer Statement Case Study
    DECLARE
    l_req_id NUMBER := 0;
    L_XML_LAYOUT BOOLEAN := TRUE;
    BEGIN
    L_XML_LAYOUT := FND_REQUEST.ADD_LAYOUT (TEMPLATE_APPL_NAME => 'AR', TEMPLATE_CODE => 'ARXSGP', TEMPLATE_LANGUAGE => 'en', TEMPLATE_TERRITORY => 'US', OUTPUT_FORMAT => 'PDF');
    IF L_XML_LAYOUT THEN
    srw.message(20001, 'Template is picked ');
    srw.message(20002,'Concurrent request Id : '||:p_conc_request_id);
    l_req_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
    'XDOREPPB',
    NULL,
    NULL,
    FALSE,
    :p_conc_request_id,
    222, -- Receivables
    'ARXSGPO', -- Statement Generate
    'en-US', -- English
    'N',
    'RTF',
    'PDF');
    IF l_req_id > 0 THEN
    COMMIT;
    ELSE
    srw.message(20004, 'Failed to submit request');
    END IF;
    ELSE -- Not L_XML_LAYOUT
    srw.message(20005, 'Template is not picked ');
    END IF;
    END;
    --------------------Code Ends----------------------------
    SRW.USER_EXIT('FND SRWEXIT');
    RETURN (TRUE);
    END;
    ==============================================
    After Printing the Statements through Print Documents-->Statements
    Statement Generation Program is being called and later XML Report Publisher program is also being invoked.
    But the XML Report Publisher Program is erroring out with below error.
    XML Publisher: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XDOREPPB module: XML Report Publisher
    Current system time is 03-SEP-2012 17:42:18
    Oracle XML Publisher 5.6.3
    java.lang.NumberFormatException: For input string: "ARXSGPO"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:447)
         at java.lang.Integer.parseInt(Integer.java:497)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:215)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    0
    ------------- 1) PUBLISH -------------
    Disabling requested Output Post Processing. Nothing to process. The output of the request is zero byte.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 03-SEP-2012 17:42:22
    Please help out with a solution.
    Thanks,
    Tech D

    for r12 add one row for parameter "Dummy for Data Security" from desc of XDOREPPB
    follow works for me
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    v_request_id   number;
      3  begin
      4 
      5   begin fnd_global.apps_initialize(0, 20419, 0); end;
      6   v_request_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
      7                                              'XDOREPPB',
      8                                              NULL,
      9                                              NULL,
    10                                              FALSE,
    11                                              'N', -- Dummy for Data Security
    12                                              9888637, -- Request
    13                                              0, -- Template Application
    14                                              'XXAND10_1', -- Template
    15                                              'en-US', -- Template Locale
    16                                              'N', -- Debug Flag
    17                                              'RTF', -- Template Type
    18                                              'RTF' -- Output Format
    19                                              );
    20 
    21    dbms_output.put_line(v_request_id);
    22    if v_request_id > 0 then
    23      dbms_output.put_line('successfully submitted.');
    24      commit;
    25    else
    26      dbms_output.put_line('not submitted.');
    27      rollback;
    28    end if;
    29 
    30  end;
    31  /
    9888651
    successfully submitted.
    PL/SQL procedure successfully completed
    SQL> 'Y' for "Dummy for Data Security" also works for me
    SQL> declare
      2    v_request_id   number;
      3  begin
      4 
      5   begin fnd_global.apps_initialize(0, 20419, 0); end;
      6   v_request_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
      7                                              'XDOREPPB',
      8                                              NULL,
      9                                              NULL,
    10                                              FALSE,
    11                                              'Y', -- Dummy for Data Security
    12                                              9888637, -- Request
    13                                              0, -- Template Application
    14                                              'XXAND10_1', -- Template
    15                                              'en-US', -- Template Locale
    16                                              'N', -- Debug Flag
    17                                              'RTF', -- Template Type
    18                                              'RTF' -- Output Format
    19                                              );
    20 
    21    dbms_output.put_line(v_request_id);
    22    if v_request_id > 0 then
    23      dbms_output.put_line('successfully submitted.');
    24      commit;
    25    else
    26      dbms_output.put_line('not submitted.');
    27      rollback;
    28    end if;
    29 
    30  end;
    31  /
    9888652
    successfully submitted.
    PL/SQL procedure successfully completed
    SQL>

  • Bursting error in 11.5.10

    Dear Techies,
    I am getting the following error when I am trying do a bursting
    XML/BI Publisher Version : 5.6.3
    --Exception
    For input string: ""
    java.lang.NumberFormatException: For input string: ""
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:470)
         at java.lang.Integer.parseInt(Integer.java:499)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:142)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    and this is the control file what i am using
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XX_EMAIL_TEST/LIST_G_EMPLOYEE_NUMBER/G_EMPLOYEE_NUMBER">
    <xapi:delivery>
    <xapi:email server="10.10.100.15" port="25" from="[email protected]" reply-to="[email protected]">
    <xapi:message id="email" to="[email protected]" cc="[email protected]" attachment="true" content-type="html/text" subject="Testing Attachments Email"><h10>Dear Sirs;</h10>
    <BR><p>${BODY1}</p></BR>
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document key="${EMPLOYEE_NUMBER}" output="/data/test/apps/ectestappl/per/11.5.0/out/${EMPLOYEE_NUMBER}_${EMPLOYEE_NAME}.pdf" output-type="pdf" delivery="email">
    <xapi:template type="rtf" location="/data/test/apps/ectestappl/per/11.5.0/out/XX_PAYEMAIL_RTF.rtf" />
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    This is what i have written in after report trigger
    function AfterReport return boolean is
    req_id number;
    begin
         if :CHECK_COUNT != 0 then
    req_id:=FND_REQUEST.SUBMIT_REQUEST (
    'XDO','XDOBURSTREP','XML Publisher Report Bursting Program',SYSDATE,FALSE,
    '',:P_CONC_REQUEST_ID,'Y',chr(0), '', '', '', '', '', '',
    end if;
         IF REQ_ID=0 THEN
         SRW.MESSAGE(100,'Failed to submit Bursting Program');
    end if;     
    SRW.USER_EXIT('FND SRWEXIT');
    return (TRUE);
    end;
    the report is running successfully .... and i can see the pdf output also. But the sequence bursting program is failing with the above error. Please let me know what is my mistake. Thanks in advance.

    the above post also posted by me only ... different id
    I found this in opp log for that request id ... any idea David ?
    "Caused by: org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected."
    [7/25/12 2:18:24 PM] [OPPServiceThread0] Post-processing request 3959566.
    [7/25/12 2:18:24 PM] [STATEMENT] [OPPServiceThread0] 1 threads running
    [7/25/12 2:18:24 PM] [35307:RT3959566] Executing post-processing actions for request 3959566.
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Now running XMLPublisher
    [7/25/12 2:18:24 PM] [35307:RT3959566] Starting XML Publisher post-processing action.
    [7/25/12 2:18:24 PM] [35307:RT3959566]
    Template code: BURST_STATUS_REPORT
    Template app: XDO
    Language: en
    Territory: US
    Output type: RTF
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Get Output Type
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] XML file name: /data/test/apps/ectestcomn/admin/out/ECTEST_ec-dev02/o3959566.out
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] XML file is on node: EC-DEV02
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Local node is: EC-DEV02
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Retrieving Template properties
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Adding Property : xslt.ReportRequestID Value : 3959538
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Adding Property : xslt.DebugFlag Value : Y
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Using local XML file
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] New output file is: /data/test/apps/ectestcomn/admin/out/ECTEST_ec-dev02/XDOBURSTREP_3959566_1.RTF
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] User that ran this request was: 2757
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] XDO: Calendar Type profile option was not set at ANY level - returning...
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] User that ran this request was: 2757
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Client Timezone ID profile option was not set - returning...
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] BEGIN XMLPublisher
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Failed to process the template
    [7/25/12 2:18:24 PM] [UNEXPECTED] [35307:RT3959566] 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:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:566)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:231)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:290)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    Caused by: org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
         at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
         at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
         at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:343)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
         ... 17 more
    [7/25/12 2:18:24 PM] [35307:RT3959566] Completed post-processing actions for request 3959566.
    [7/25/12 2:18:24 PM] [STATEMENT] [35307:RT3959566] Thread 35307:RT3959566 finished.

  • Report problem with PL/sql

    function BeforeReport return boolean is
    begin
    declare
    l_sort po_lookup_codes.displayed_field % type;
    begin
    if :P_orderby is not null then
    select displayed_field
    into l_sort
    from po_lookup_codes
    where lookup_code = :P_orderby
    and lookup_type = 'SRS ORDER BY';
    :P_orderby_displayed := l_sort ;
    else
    :P_orderby_displayed := '' ;
    end if;
    SRW.USER_EXIT('FND SRWINIT');
    if (get_p_struct_num != TRUE )
    then SRW.MESSAGE('1','Init failed');
    end if;
    if (get_chart_of_accounts_id != TRUE )
    then SRW.MESSAGE('1','Init failed');
    end if;
    SRW.USER_EXIT('FND FLEXSQL CODE ="GL#"
    OUTPUT =":P_FLEX_ACC1"
    APPL_SHORT_NAME="SQLGL"
    MODE ="SELECT"
    DISPLAY ="ALL"
    NUM =":P_chart_of_accounts_id"
    TABLEALIAS ="GCC1"');
    SRW.USER_EXIT('FND FLEXSQL CODE ="GL#"
    OUTPUT =":P_FLEX_ACC2"
    APPL_SHORT_NAME="SQLGL"
    MODE ="SELECT"
    DISPLAY ="ALL"
    NUM =":P_chart_of_accounts_id"
    TABLEALIAS ="GCC2"');
    SRW.USER_EXIT('FND FLEXSQL CODE ="MCAT"
    OUTPUT =":P_FLEX_CAT"
    APPL_SHORT_NAME="INV"
    MODE ="SELECT"
    DISPLAY ="ALL"
    NUM =":P_STRUCT_NUM"
    TABLEALIAS ="MCA"');
    SRW.USER_EXIT('FND FLEXSQL CODE ="MCAT"
    OUTPUT =":P_WHERE_CAT"
    APPL_SHORT_NAME="INV"
    MODE ="WHERE"
    DISPLAY ="ALL"
    NUM =":P_STRUCT_NUM"
    TABLEALIAS ="MCA"
    OPERATOR ="BETWEEN"
    OPERAND1 =":P_CATEGORY_FROM"
    OPERAND2 =":P_CATEGORY_TO"');
    SRW.USER_EXIT('FND FLEXSQL CODE ="MCAT"
    OUTPUT =":P_ORDERBY_CAT"
    APPL_SHORT_NAME="INV"
    MODE ="ORDER BY"
    DISPLAY ="ALL"
    NUM =":P_STRUCT_NUM"
    TABLEALIAS ="MCA"');
    SRW.USER_EXIT('FND FLEXSQL CODE ="MSTK"
    OUTPUT =":P_FLEX_ITEM"
    APPL_SHORT_NAME="INV"
    MODE ="SELECT"
    DISPLAY ="ALL"
    NUM =":P_ITEM_STRUCT_NUM"
    TABLEALIAS ="MSI"');
    /* Assign parameter P_Accrued_receipts to parameter P_yes_no
    :P_yes_no := :P_Accrued_Receipts;
    return(true);
    exception
    when others then return(false);
    END;
    return (TRUE);
    end;

    I think you should post it -
    Forms
    Regards.
    Satyaki De.

Maybe you are looking for

  • How can I restrict Adobe Creative Cloud to run for just one mac user?

    Can anyone help with this please ... (This is about how the Adobe Creative Cloud app works with OS X User accounts.  I have posted it on Adobe's Support forums, but nobody there had the solution.  Perhaps someone from the Apple/OSX end can help?) I'm

  • Birthday Calendar and Other Subscriptions Sync Problems

    Is there a way for the Birthday calendar (when turned on in the prefs) to be synced to iCal on my iPod Touch? I've also noticed that my Holiday calendar subscription doesn't sync. Is it that the iPod Touch doesn't sync subscription calendar? Perhaps

  • Printer won't print from window gallery in color HP C4795

    I have a HP C4795 and I can not get it to print in color from windows gallery. What can I do? I've look at the settings and it's on color but it will not print on regular or photo paper in color. I can print picture off the internet in color. HELP! T

  • ORA-19279 Error on XQuery

    I'm having trouble getting subordinate tag data out of this structure: <CASE_BATCH> <CASEDETAIL> <HEADER> <PERSON_ID>214339</PERSON_ID> </HEADER> <ASSOC> <AP_ID>166646</AP_ID> <AP_NAME> <LASTNAME>TEST</LASTNAME> <FIRSTNAME>TEST</FIRSTNAME> </AP_NAME>

  • Project Pro 2013 VBA proc is lost

    Hi, I created a VBA procedure in a Project 2013 file. I created also a button in a custom tab to run the procedure. I tested everything : OK I want to demo my project : the proc has gone. I just have the button, without the VBA code. :-( What did I m