XML publisher report using dbms_xmlgen (ORA-06502)

Dear All,
I have written the below code to generate xml output in Oracle Apps. The code is working fine for less records. But when CLOB size is more than 32k, then
it giving the ORA-06502 error as fnd_file.put_line(fnd_file.output,v_result) can only write 32k at a time.
Can anyone let me know how to handle this? Any help on this would be highly appreciated.
PROCEDURE MAIN ( errbuf OUT VARCHAR2
,retcode OUT NUMBER
) IS
TYPE g_query_ref IS REF CURSOR;
v_query_ref g_query_ref;
v_handle dbms_xmlgen.ctxhandle;
v_result clob;
BEGIN
OPEN v_query_ref FOR
SELECT invoice_num,
description,
customer_no,
customer_name
FROM XX_INVOICE_DETAILS;
v_handle := dbms_xmlgen.newContext(v_query_ref);
DBMS_XMLGEN.SETROWTAG (v_handle , 'INVOICE');
v_result := dbms_xmlgen.getXML(v_handle);
fnd_file.put_line(fnd_file.output,v_result);
EXCEPTION
when others then
errbuf := sqlerrm;
retcode := sqlcode;
fnd_file.put_line(fnd_file.log,’sqlerrm ‘||sqlerrm);
END MAIN;
Thanks in Advance.
Regards,
Astik

What you need to do is to chop your CLOB up into smaller strings, something like:
l_size := DBMS_LOB.getlength (l_clob);
IF (NVL (l_size, 0) = 0) THEN
raise_application_error (-20001, 'CLOB is NULL');
END IF;
l_offset := 1;
-- Loop
WHILE (l_offset <= l_size) LOOP
l_char := DBMS_LOB.SUBSTR (l_clob,1,l_offset);
IF (l_char = CHR (10)) THEN
FND_FILE.NEW_LINE(FND_FILE.output, 1);
ELSE
FND_FILE.PUT(FND_FILE.output, l_char);
END IF;
-- Increment Offset.
l_offset:= l_offset+1;
END LOOP;
FND_FILE.NEW_LINE(fnd_file.output, 1);

Similar Messages

  • Xml publisher report using RTF in Excel is coming as wrap text?

    Hi,
    I am working on XML publisher report, I have converted standard report to xml publisher , to generate the report in excel.
    But the output is coming as Wrap text, is there a way to get the output directly without wrap ?
    Thanks
    Dev

    Hi Dev,
    You can try below ways
    1>change the setting in table properties to fit table cell as per contents.
    2>or create a table and inside that create one more inner table and add your fields.
    3>or Create .XLS layout it will come properly.
    Thanks

  • XML publisher report using connected query

    dear all,
    I defined some XMLP reports with very similiar parameters.
    I found a strange issue, all reports using query as the source, they appear in the XMLP report viewer.
    But for those using the connected query, all are not able to be found in the XMLP report viewer list.
    Anybody has experience on this. Did I miss anything special for the connected query type?
    Many thanks.

    Is there anybody suffering the same issue?
    I double checked the settings of two XMLP report definitions.
    No difference, but the one with the connected query as the source can NOT been found.

  • No output for XML Publisher Report using CASE/DECODE in Where Clause

    Hi,
    I've a business requirement to modify an existing report which has two input parameters,
    -> p_statcode (Closed Status) which can have values 'Y' or 'N'
    -> p_overdue (Overdue Flag) which can have values 'Y' or 'N'
    The Overdue Flag is an evaluated column having values of Y/N and it is evaluated as follows,
    ONTF_MOD_VAL(NVL (
                                         (TRUNC (SYSDATE)
                                          - (TO_DATE (oe_order_lines.attribute18,
                                                      'DD-MON-RRRR')
                                             + TO_NUMBER (fnd_lookup_values.meaning))),
                                         0
                            overdue_flagThe user requirement now is they needs to be a third option for parameter p_overdue called ALL,
    passing which the output should include records having
    p_statcode is Y ELSE p_statcode is N AND p_overdue is Y OR p_overdue is N
    In other words records having both Y and N vlaues for Overdue Flag have to be returned irrespective of the value given to Closed Status.
    Original where clause in the Data Definition file is as follows,
    WHERE Closed_Status = nvl(:p_statcode,Closed_Status)
                       AND overdue_flag = nvl(:p_overdue,overdue_flag)My modified code is as follows,
    WHERE   Closed_Status = NVL (:p_statcode, Closed_Status)
             AND overdue_flag = (CASE
             WHEN :p_overdue = 'Y' THEN 'Y'
             WHEN :p_overdue = 'N' THEN 'N'
             ELSE overdue_flag
             END)
    OR
    WHERE   Closed_Status = NVL (:p_statcode, Closed_Status)
             AND overdue_flag = DECODE (:p_overdue, 'Y', 'Y', 'N', 'N',overdue_flag)Both approaches have the same problem.
    The output is in EXCEL format. The modified query works fine for p_overdue as Y or N but when p_overdue is passed as ALL it returns an empty EXCEL sheet with just the report output column headers.
    Any help as to why this is the case ?? What is wrong in my approach ?
    Regards,
    Vishal

    not clear about p_overdue = ALL
    which values needed for p_overdue = ALL ?
    try smth like
    WHERE   Closed_Status = NVL (:p_statcode, Closed_Status)
    AND (
       overdue_flag = DECODE (:p_overdue, 'Y', 'Y', 'N', 'N',overdue_flag) and :p_overdue != 'ALL'
       or
      :p_overdue = 'ALL' and (overdue_flag = 'Y' or overdue_flag = 'N')
    )for overdue_flag which has more then 'Y', 'N' values
    if overdue_flag only in ('Y','N') then
    WHERE   Closed_Status = NVL (:p_statcode, Closed_Status)
    AND (
       overdue_flag = DECODE (:p_overdue, 'Y', 'Y', 'N', 'N',overdue_flag) and :p_overdue != 'ALL'
       or
      :p_overdue = 'ALL'
    )

  • XML Publisher Report Finished in Warning 11i EBS HRMS

    Hi there
    I have developed XML Publisher Report using Developer 6i Data Module, this report works fine for specific sets of records. but When I run this report for All Companies This Report Finished in Warning.
    Note: XML Data is generated in this report I can see the XML Data in explorer.
    This report is for Oracle 11.5.10.2 (HRMS)
    Oracle XML Publisher 5.6 Build 45
    ++++++++++++
    AND When I load this XML file into Template at MS Word, I loaded Successfully and When I try to get the PREVIEW, I GET the following ERROR
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: M:\ATCO\Disco\Employee Profile Report\Defect\119\XXPEREMPPROFILE4.xml
    FOProcessor setLocale: en-us
    Regards
    ASIM

    Is the XML file Complete with all tags closed? Issues with Oracle prevent the completion of the XML file. It truncates in between and hence is not parsed successfully by the XML Template.
    Also, try setting the following to 'TRUE' under XML Publisher Administrator>Administration Tab
    1) Use XML Publisher's XSLT processor.
    2) Enable scalable feature of XSLT processor.
    3) Enable XSLT runtime optimization.
    Thanks, Naveen Gagadam.

  • Error running XML Publisher report

    Hi,
    I am running a XML publisher report using xml file as the data source. The output format of the report is a PDF format. When I am running the report in a field change event or through an application engine, for both the things I am getting the following error.
    Error generating report output : %1 (235,2309)
    Error occured during the process of generating the output file from template file,XML data file, and translation XLIFF file.
    Please revert back if you have any suggestions with regards to the above problem.
    Thanks in advance.
    Regards,
    Vamsi.

    Well
    i m also struggling with the same error.
    What i m trying to do is to import/use images in my peoplesoft report. In the template file (rft), the iage element properties are set to
    <fo:instream-foreign-object content-type="image/jpg" xdofo:alt="An Image" ><xsl:value-of select=".//AD_COMPOSITE"/></fo:instream-foreign-object>
    But no output is shown and this error is occured.
    Error generating report output: (235,2309)
    Error occurred during the process of generating the output file from template file, XML data file, and translation XLIFF file.
    Will be Highly ThankFul if someone knows da solution

  • Line crossing at the corner of the boxes in XML Publisher Report (PDF)

    Hi,
    We are facing some issue in XML Publisher report using RTF template and PDF output. In PDF output it looks like 2 lines are crossing each other at the corner of the boxes (which are made of the Table in RTF). Did you guys face this issue earlier? Is there any resolution?
    thanks,
    Ranen

    Hi,
    I would propose reviewing the eText documentation. I noticed that for RTF templates it's difficult explicitly set the length though within an eText template, you can specify the intended length.
    The Oracle post is, in my opinion, convoluted, though it's a point in the right direction
    Oracle Business Intelligence Publisher Report Designer's Guide
    Regards,
    Daniel

  • Different scenario to run Former XML Publisher report

    Hi All.
    I have some different kind of scenario to run the XML Publisher report. Please look into the following scenario and requirements:
    In my current project we are implementing 22 languages like Chinese, Japanese, Spanish etc. Out of these 22 languages, 8 languages will be installed and 14 will be uninstalled. We are defining the language on 2 places: OU level and Address level. For those reports that need to be translated, we are using XML Publisher to achieve this, but we have different scenario to pass the language, in order to select the corresponding template.
    Scenario: As i mentioned we are defining the languages on address level, it is considered that the language defined at the address level will be customer's preferred language and he would like to see the output in that language only. there are 2 possible conditions while running the report: 1. User may select the language in which he want the report to be displayed in. 2. User may not select any language. The 1st scenario can be fulfilled by standard functionality. but in case of second scenario when user does not select any language then we need to display the report in language defined on address level for that customer. For Ex: if the Invoice report is running for 4 invoices and have 2 different customers and their preferred language is different, suppose for 1 customer it is Chinese and for another one it is Japanese. Then we need to display the output in customer's preferred language only i.e for Japanese customer it should be in Japanese and for Chinese customer it should be in Chinese i.e 2 different templates will be applicable.
    So as per this while submitting the concurrent request we need to check whether user has selected the language or not? And after making all the conditions check we will have to submit the xml publisher report using API. Do you have any suggestion how can we achieve this task?
    Please suggest.
    Thanks,
    AS

    Hi AS,
    How about using a conc prog parameter for User selected language, and XML element data at customer level, then call a subtemplate (or multiple embedded regions in the same template) in the required language based on if or case logic in the template.
    Regards,
    Gareth

  • CREATE XML PUBLISHER REPORT WITHOUT USING RDF

    Hi Every one ,
    Can anybody share his/her expertise on following issue ?
    "How to create XML Publisher Report without using RDF?"
    Your help is appreciated.

    Hi Swapnesh
    YOu do not need to create the XDODTEXE, its seeded for you. You need to do the following:
    1. Create and test the data template
    2. Load the data template to the template manager against a data definition
    3. Create a concurrent program definition that uses the XDODTEXE as its executable
    4. Create parameters (if required) for the CP and DT that match in name
    You're done
    Regards
    Tim

  • Can we use xml Publisher reporting for sql* Plus in EBS

    Hello All,
    The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
    So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
    Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
    Thanks and Regards
    Balaji.

    Hi
    Thanks for the reply..
    I tried to do the follwoing
    1. changed the output to xml in the conc. prog.
    2. ran the same report but i am getting the follwoing error in the output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource
    Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
    So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
    if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
    thanks in advance
    Balaji.

  • XML Publisher Report Bursting Program (XDOBURSTREP) is failing after ATG7

    Hello
    After upgrading ATG RUP7, we have issue related to the XML Bursting Program.
    XML Publisher Report Bursting Program (XDOBURSTREP Short Name) is failing with error when there is no output is generated by the Oracle Report, this was working fine before the ATG RUP7.
    Oracle XML Publisher Template Builder for Word
    Version 5.6 Build 45
    Oracle RDBMS : 10.2.0.4.0
    Oracle Applications : 11.5.10.2
    Concurrent Program: XML Publisher Report Bursting Program
    Concurrent Short Name:XDOBURSTREP
    Executable: XDOBURSTRPT
    The following is the log file of Bursting
    XDOBURSTREP module: XML Publisher Report Bursting Program
    Current system time is 22-OCT-2010 08:41:09
    0.932: [GC 0.932: [DefNew: 1792K->191K(1984K), 0.0190521 secs] 1792K->243K(6080K), 0.0193017 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
    1.637: [GC 1.638: [DefNew: 1983K->45K(1984K), 0.0279269 secs] 2035K->283K(6080K), 0.0281136 secs] [Times: user=0.03 sys=0.00, real=0.03 secs]
    2.369: [GC 2.369: [DefNew: 1837K->192K(1984K), 0.0249747 secs] 2075K->597K(6080K), 0.0251559 secs] [Times: user=0.02 sys=0.00, real=0.03 secs]
    3.186: [GC 3.186: [DefNew: 1984K->130K(1984K), 0.0208499 secs] 2389K->713K(6080K), 0.0210453 secs] [Times: user=0.02 sys=0.01, real=0.02 secs]
    3.938: [GC 3.939: [DefNew: 1922K->114K(1984K), 0.0219872 secs] 2505K->825K(6080K), 0.0221742 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
    4.781: [GC 4.781: [DefNew: 1906K->192K(1984K), 0.0271288 secs] 2617K->1258K(6080K), 0.0273437 secs] [Times: user=0.03 sys=0.00, real=0.03 secs]
    4.931: [GC 4.931: [DefNew: 1983K->192K(1984K), 0.0114155 secs] 3049K->1575K(6080K), 0.0116308 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
    4.978: [GC 4.978: [DefNew: 1974K->1K(1984K), 0.0032511 secs] 3357K->1415K(6080K), 0.0034360 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
    5.001: [GC 5.001: [DefNew: 1790K->34K(1984K), 0.0020751 secs] 3204K->1448K(6080K), 0.0022582 secs] [Times: user=0.01 sys=0.01, real=0.00 secs]
    5.023: [GC 5.023: [DefNew: 1814K->68K(1984K), 0.0021542 secs] 3228K->1481K(6080K), 0.0023365 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
    5.273: [GC 5.273: [DefNew: 1860K->119K(1984K), 0.0055906 secs] 3273K->1533K(6080K), 0.0057779 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
    5.451: [GC 5.451: [DefNew: 1911K->58K(1984K), 0.0059780 secs] 3325K->1587K(6080K), 0.0061632 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]
    5.653: [GC 5.653: [DefNew: 1850K->103K(1984K), 0.0034036 secs] 3379K->1632K(6080K), 0.0035865 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
    5.813: [GC 5.813: [DefNew: 1895K->86K(1984K), 0.0053900 secs] 3424K->1667K(6080K), 0.0055748 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
    5.932: [GC 5.932: [DefNew: 1878K->124K(1984K), 0.0035633 secs] 3459K->1705K(6080K), 0.0037447 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
    6.057: [GC 6.057: [DefNew: 1916K->147K(1984K), 0.0043476 secs] 3497K->1760K(6080K), 0.0045299 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
    6.214: [GC 6.214: [DefNew: 1939K->192K(1984K), 0.0120992 secs] 3552K->2141K(6080K), 0.0122907 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
    XML/BI Publisher Version : 5.6.3
    Updating request description
    Retrieving XML request information
    Preparing parameters
    7.104: [GC 7.104: [DefNew: 1982K->192K(1984K), 0.0200714 secs] 3932K->2346K(6080K), 0.0202692 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
    Set Bursting parameters..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=16649488, user-variable:cp:language=en, user-variable:cp:responsibility=23202, user-variable.OA_MEDIA=http://d1at2.atco.ca:8010/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=N, user-variable:cp:parent_request_id=16649488, user-variable:cp:locale=en-US, user-variable:cp:user=URU4.ASHAFI, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=16649506, user-variable:cp:org_id=43, user-variable:cp:reportdescription=XXPAY Database Audit Series Change Register}
    Start bursting process..
    7.845: [GC 7.845: [DefNew: 1984K->158K(1984K), 0.0181146 secs] 4138K->2495K(6080K), 0.0183025 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
    7.885: [GC 7.885: [DefNew: 231K->14K(1984K), 0.0055622 secs]7.891: [Tenured[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor2]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor1]
    : 2486K->2073K(4096K), 0.2881229 secs] 2568K->2073K(6080K), 0.2940010 secs] [Times: user=0.29 sys=0.02, real=0.29 secs]
    8.682: [GC 8.682: [DefNew: 1787K->170K(1984K), 0.0120166 secs] 5861K->4243K(6080K), 0.0122079 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]
    9.163: [GC 9.163: [DefNew: 1524K->74K(1984K), 0.0086781 secs]9.171: [Tenured: 4237K->2299K(4352K), 0.2773675 secs] 5597K->2299K(6336K), 0.2863681 secs] [Times: user=0.28 sys=0.00, real=0.29 secs]
    9.472: [GC 9.473: [DefNew: 90K->17K(1984K), 0.0025361 secs]9.475: [Tenured: 4299K->2311K(6104K), 0.2718601 secs] 4390K->2311K(8088K), 0.2747072 secs] [Times: user=0.28 sys=0.00, real=0.27 secs]
    9.822: [GC 9.822: [DefNew: 585K->42K(1984K), 0.0027399 secs]9.825: [Tenured: 4311K->2085K(6104K), 0.3354828 secs] 4897K->2085K(8088K), 0.3385340 secs] [Times: user=0.34 sys=0.00, real=0.34 secs]
    Bursting process complete..
    Generating Bursting Status Report..
    --Exception
    /oracle/appl/orad1at2/product/comn/temp/102210_084117484/AUDIT_GS_BI-WEEKLY.pdf (No such file or directory)
    java.io.FileNotFoundException: /oracle/appl/orad1at2/product/comn/temp/102210_084117484/AUDIT_GS_BI-WEEKLY.pdf (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:532)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:299)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Heap
    def new generation total 1984K, used 194K [0xb1000000, 0xb1220000, 0xb4780000)
    eden space 1792K, 10% used [0xb1000000, 0xb1030a98, 0xb11c0000)
    from space 192K, 0% used [0xb11c0000, 0xb11c0000, 0xb11f0000)
    to space 192K, 0% used [0xb11f0000, 0xb11f0000, 0xb1220000)
    tenured generation total 6104K, used 4085K [0xb4780000, 0xb4d76000, 0xd0400000)
    the space 6104K, 66% used [0xb4780000, 0xb4b7d490, 0xb4b7d600, 0xb4d76000)
    compacting perm gen total 12288K, used 7424K [0xd0400000, 0xd1000000, 0xd8400000)
    the space 12288K, 60% used [0xd0400000, 0xd0b402a8, 0xd0b40400, 0xd1000000)
    ro space 8192K, 80% used [0xd8400000, 0xd8a73430, 0xd8a73600, 0xd8c00000)
    rw space 12288K, 59% used [0xd8c00000, 0xd9330510, 0xd9330600, 0xd9800000)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 22-OCT-2010 08:41:20
    Any Help Appreciated
    Thanks

    Hi;
    Similar issue mention at below notes, Please review:
    NPE Error While Bursting Using XDOBURSTREP in EBS R12 [ID 754790.1]
    Bursting Engine Ends With Java.Lang.Nullpointerexception[Article ID 559443.1]
    XDOBURSTREP - XML Publisher Report Bursting Program Fails with InvalidPropertyValueException[Article ID 603424.1]
    If its not help I suggest rise SR
    Regard
    Helios

  • XML publisher report works fine in English environment but NOT in Dutch

    We are using Oracle Reports to generate XML file which will be input for XML Publisher report . Our requirement is to generate report in Dutch (Netherlands) language.
    We developed a report which is working fine in English. Then we copied this RDF file to NL directory also registered concurrent program in dutch language but then it stopped working and gives error.
    Basically it doesn't create any XML output .
    Please help . Its URGENT.
    Thanks in Advance.
    Manoj

    Hi Norman,
    Thanks for the reply, actually my query was failing as it was trying to compare English date format (1-MAY-2007) which was stored in a DFF with Dutch date (1-MIE-2007) database format ,so it was not generating any xml output.
    We have resolved this issue but now we are facing few other issue which are ,
    I have created a template which has a current date field. I inserted current date in Dutch format i,e, (1-juni-2007), but concurrent program output appears with english date format (1-June-2007).
    Same template has the customer name with 'Title' and this also appear in english i.e.Sir , in place of dutch title (Dhr.)
    Is it possible to display .pdf output with
    portrait (first page - Letter to customer)
    and landscape(second page - Invoice data details) styles for multiple customers in one request?
    We can do it for one customer by passing customer id so letter part (portrait output) is out of grouping and only data details (landscape) appear with multiple lines , but when we try to run it for multiple customers in one go , WITHOUT specifying a customer , it FAILS .
    Any help will be highly appreciated.
    Thanks - Manoj, Utrecht

  • XML Publisher Report Output from OAF Page

    Hi,
    I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
    Please see the below code.
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
    String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
    System.out.println("s1 = " + s1);
    String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
    System.out.println("s2 = " + s2);
    String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
    CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
    System.out.println("s3 = " + s3);
    if(requestId != 0)
    try
    Number number = new Number(requestId);
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, number.intValue());
    callablestatement.setString(3, s2);
    callablestatement.setString(4, s1);
    callablestatement.execute();
    String s4 = callablestatement.getString(1);
    System.out.println("Before S4 if statement");
    if(s4 == null || s4.equals(""))
    // throw new RuntimeException();
    System.out.println("URL is null");
    System.out.println(" print ouput url - " + s4 );
    // throw OAException.wrapperException(exception);
    oadbtransactionimpl.putValue("OutputURL", s4);
    System.out.println(" print ouput url - " + s4 );
    }

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

  • XML Publisher Report in EBS without Standard Oracle Report

    Hi folks ,
    i have some questions.
    Can I create a XML Publisher Report for the EBS without a Standard Oracle Report in EBS.
    So that I can build up the files with the Desktop Publisher, create Data Definition / Template with Upload / Create the executable und concurrent and than only start the new program in EBS ?
    I have the situation that I can start my program with the template in the background but ít is searching for the report on the file system.
    Thanks in advance for the feedback.
    regards
    Kay

    Hi Ravi ,
    can i do it only with the xml Publisher , because when i tried it in the past and get all the staff like Template / DD / CP up and running and started the CR i get an error from the system that he is missing a report directly in the file system... so he searched for the report himself on system like a standard 6i Report. But the template and the dd is stored in the db. So my question again, can I use the XML Puplisher without a Standard Report or can i use a dummy file only for checking and after that he use my template / dd.
    regards
    Kay

  • XML Publisher Report with PL/SQL

    Hi
    Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
    1. created a pkg like as below
    CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
    PROCEDURE main (errbuf OUT VARCHAR2,
    retcode OUT NUMBER
    ) IS
    BEGIN
    DECLARE
    ctx DBMS_XMLGEN.ctxHandle;
    xml CLOB;
    BEGIN
    ctx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    END;
    END;
    END TEST_XMLTAG_PKG;
    this pkg produces the output with xml tag in the view log.
    I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
    can you please let me know the next steps involved.
    Regards
    Yram

    I think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
    add Begin and end tag...then you should be fine.. i.e
    fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
    tx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
    Hope this helps..>Good Luck
    Ravi

Maybe you are looking for

  • 2nd gen Shuffle not syncing blinks green and orange

    My mom got a new computer. I installed Itunes and connected her 2nd gen Shuffle which previously had been administrated by her niece's computer. I deleted all music,restored to factory settings, bought new music but am unable to get music on her shuf

  • Upgrade network card

    I have an T430U with the Intel 2230N wifi card. is there a possibility to upgrade to a different more stabile network card. I tried to install a different card from another Lenovo laptop, but i just prompted that the card was unrecognized.

  • Tiger Upgrading Problem

    Can someone please help with my problem? I have successfully upgraded to Tiger from ver.10.2.8 on my LaCie external HD, but now want to do so on my Main HD. It doesn't work on the main HD, it says it encounters an error. I go to disk utility and get

  • Time machine doesn't show non-current drive.

    I had an external hard drive die.  I need to restore the files, but since the drive's not there anymore Time machine doesn't list it.  How do I access the files without manually finding them on the backup drive?

  • Despues de hacer una llamada se apago el telefono y no prendio mas

    Después de que hice una llamada el teléfono se apago y no quiere prender. El modelo es un Iphone 5S, 16 GB