How to invoke XML Publisher report in 11i

Can anybody please guide me on How can we invoke xml publisher report in 11i and how can we call XML publisher report from form or OA framework.
Thanks

Hi
1. From a form ... a little tricky. Forms 6i has v limited java support so calling the XMLP apis directly is going to be tough. We do have a few products and customers that do it, here are a few scenarios:
a. Have a button/menu item to call the report, this actually kicks off the concurrent manager to submit a report that XMLP will format
b. Have a button that calls the plsql package, 'htp', this in turn can call an OA page where a report can be rendered in the page.
2. From OAF page - much easier. You can call the TemplateHelper API form your page passing data, template reference, lang, terr, output format - the API will return the output.
For the OAF approach and option'b' for forms I would recommend using the XMLP common region. This is a region that can be plugged into your custom page. Its very configurable - you can point it to a concurrent request, a completed document e.g. a PDF doc, you can pass it XML data from your BC4J objects or a data template. You can then configure what changes the user can make, change template, language, locale, output - please check the user guide for details on the Common Region.
Tim

Similar Messages

  • How to invoke XML publisher report from APPS 11i forms

    I have a requirement in oracle application forms menu where I need to call the XML publisher report when user clicks the menu item.
    I am using following two API's
    fnd_request.add_layout
    fnd_request.submit_request
    But I am getting the error message
    java.sql.SQLException: No corresponding LOB data found :SELECT L.FILE_DATA FILE_DATA.......
    your help is truly appreciated.
    Thanks
    Siva

    I have registered the report using admin responsibility and ran the reprt form SRS and completed successfully. Eeven from the forms it is submitting the request but the request completed as warning with above message. I can see the out put by clicking the View XML button but it unable to publish output.
    Thanks guru your quick response.
    Thanks
    siva

  • Invoking XML Publisher Report from PL/SQL

    Hi,
    I have a PL/SQL procecedure which invokes the Concurrent Request for the XML Publisher Report. This one finishes with a warning and I get 'Unable to publish output' when I try to view the output. Exact Error: "Unable to find the published output for this request "
    But if I run the same report using Concurrent program, the Report executes with no error. Also the desired output is coming. I am not sure where I am doing wrong in code.
    My code which invokes the XML Publisher Report (from PL/SQL package)is something like this:
    declare
    x boolean;
    l_no_of_copies varchar2(45);
    l_printername varchar2(45);
    l_print_style varchar2(45);
    l_result boolean;
    y number;
    begin
    x := fnd_request.add_layout (template_appl_name => 'XXTMG', template_code => 'XXT_5001_BOL_T', template_language => 'EN', template_territory => 'US', output_format => 'XML');
    l_no_of_copies := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_NO_OF_COPIES');
    l_printername := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_PRINTER');
    l_print_style := NULL; --For setting the Printer Options
    l_result := fnd_request.set_print_options (l_printername, l_print_style, l_no_of_copies, TRUE, 'N');
    l_result := fnd_request.add_printer (l_printername, 0);
    y := fnd_request.submit_request ('XXTMG', 'XXT_5001_BOL', '', TO_CHAR (SYSDATE, 'YYYY/MM/DD HH24:MI:SS'), FALSE, 'CH-120079') ;
    end;
    Please let me know where I might be going wrong
    Thanks

    Hi Sumit,
    You can try with this code:
    exec dbms_application_info.set_client_info(org_id)
    exec fnd_global.APPS_INITIALIZE(user_id,resp_id,appl_id);
    declare
    x boolean;
    l_no_of_copies varchar2(45);
    l_printername varchar2(45);
    l_print_style varchar2(45);
    l_result boolean;
    y number;
    begin
    x := fnd_request.add_layout ('XXTMG' --template_appl_name 
              ,'XXT_5001_BOL_T' --template_code
              ,'en' --template_language 
         ,'US' --template_territory
         ,'XML' --output_format
    if (x=TRUE) then
    y := fnd_request.submit_request (
                        'XXTMG'           --application 
                        ,'XXT_5001_BOL'      --program
                        ,SYSDATE          --start_time
                        ,FALSE               --sub_request
                        ,'CH-120079'          --argument1 (Program's Parameter)
    if y>0 then
              dbms_output.put_line('Request ID '||y);
    end if;
    end if; --if (x=TRUE) then
    end;
    Make sure that program has only one input parameter. If program has other parameters then you can pass those parameters like argument1, argument2... etc.
    Now you can see this submited request in your application using your user id. If you able to see your request in concurrent request then you can add printer parameters in this programs.
    You don't need to pass all 100 parameters.
    I am executing many programs/reports using this code.
    Thanks
    Ravi
    [email protected]
    Message was edited by:
    Ravi Tripathi

  • How to generate XML Publisher report from PLSQL Stored Procedure in APPS

    Hi,
    I have concurrent program of type PLSQL Stored procedure.I need to generate XML Publisher report from the same.I have changed the output of the concurrent program as "XML" but when I tried running it,the XML tags are not generated.Due to this I am unable to create the template.Its a urgent issue.
    Please help me out .
    Thanks in advance.
    Kaveri

    Hi Kaveri
    Sadly there is nothing magic about that output field. The only program type that you can flip it to XML and then magically get XML is for Oracle Reports. For plsql you will need to recode the plsql to generate XML rather than text that you have now.
    You have some options, best option first:
    1. Move the sql to a data template - check the user guide and blog for help or
    2. Use SQL XML or XMLGEN (not great for large datasets) or
    3. Use dbms_output.put_line and write the XML file manually - not performant at all
    Regards, Tim

  • 11i EBS XML Publisher Report with Multiple Data Source

    I need to create XML Publisher report in 11i EBS pulling data from another 10.7 EBS Instance as well as 11i EBS in single report.
    I am not allowed to create extract or use db links.
    My problem is how to create Data Source Connection using Java Concurrent Program.
    The approach I am trying is
    1. create Java concurrent program to establish connection to 10.7 instance.
    2. Will write the SQL queries in Data Tempalete with 2 Data Source 1 for 11i EBS and 2 for 10.7 EBS
    3. Template will show the data from both query in 1 report..
    Is there any other way to proceed using datasource API...
    thanks

    option1:
    The query should be same @ detail level, only the template has to be different for summary and details.
    @runtime, user can choose to see the detail/summary
    Disadvantage, if the data is huge,
    advantage , only one report.
    option2:
    create two separate reports summary and details
    and create diff data and diff layout and keep it as different report
    Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
    Dis advantage , two reports query/template to be maintained.

  • How to change XML Tag sequence in XML Publisher Reports

    Hi Experts,
    I am working on XML Publisher reports, EBS 11I and Database 9i. I have standard report 'PO Printed Purchase Order Report (XML)', it's output type is XML. I want to change the sequence of groups in XML file.
    I am getting XML tags like below at present:
    LIST_G_HEADERS \ G_HEADERS \ LIST_G_HEADER_NOTES
    I want to change the sequence of groups like below.
    LIST_G_HEADERS \ G_HEADERS \ LIST_G_LINES \
    Could somebody help me how to change the sequence of XML Groups.
    Thanks in advance.

    Paul,
    This works.  Thanks!
    I am still working through the implications of having a data connection defined.  I notice that every time I submit, it creates two records in my database, one with all the fields blank, and one with the data and attachment.
    I will have to do some more digging into the double submission, but at least it is uploading the file.
    Thanks again,
    Ed

  • 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

  • How to add different versions of layout in XML Publisher Report?

    How to add two versions of layout(RTF) for different languages in xml publisher report template so that user can see the report in two languages? Is that possible?
    If so then what is the procedure to do that? Can anyone help in this regard?

    Soma,
    Refer to [Oracle XML Publisher User Guide|http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115xdoug.zip] manual, Page 5-8 Adding Localized Templates for Additional Languages.
    Regards,
    Hussein

  • How to call the XML Publisher Report thro Standard PO Output for Comm.

    Hi
    We need to call our custom report(XML Publisher Report) from the standard PO Output for Communication Report.
    There is a parameter(Purchase Order Layout) in PO Output for Communication in which we can see no. of standard reports. We want to add our custom report in that list so that when we will run this standard report by selecting our custom report for Purchase Order Layout parameter, we should get the output as per our Custom report.
    Since PO Output for Communication is a Java Concurrent Program, we are not able to place our custom report in the list of Purchase Order layout Parameter.
    Ram

    Welcome to the forums !
    Pl see if MOS Doc 305307.1 (How To Modify Print PO Report POXPOPDF With Custom Template) can help
    HTH
    Srini

  • How to print output of XML Publisher report in different trays of a printer

    Hi All,
    I have a requirement in XML Publisher Report. I need to print all pages other than last one in one tray of a printer and the last page has to be printed in another tray of the same printer.
    Can anyone help me out...
    Thank You..

    I do not think it is possible to send all the pages to one tray and send only the last page to a different tray. However, you may review the following notes:
    Note: 357402.1 - How to Print the Output to a Different Paper Size Using XML Publisher Delivery Manager?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=357402.1
    Note: 394130.1 - How To Enable Printer Options Such As Duplex Printing Or Tray Selections For Bitmap Concurrent Programs
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=394130.1

  • How to add a digital signature in xml publisher report

    The problem is: There is a existing pick slip report.This is a xml publisher report and the data source is RDF. We have to add digital signature there. Now this signature is stored in a table with type Long Raw and format BMP. XML Publisher do not support Long Raw and BMP format. It supports BLOB and jpg format.
    Could you please guide how to add this signature in the existing RDF with datatype as BLOB and format as jpg.
    Please provide the steps with example.

    Hi,
    Have a look at this thread.
    Implementing electronic signatures on an existing AP check run
    Re: Implementing electronic signatures on an existing AP check run
    Regards,
    Hussein

  • How to go one level up in xml publisher reports

    Hi Experts,
    I am working in XML Publisher reports; I am working Invoice report (standard report), below is my requirement.
    Template sample:
    <?for-each:G_INVOICE?>
    <?trx_number?> <?trx_type?>
    <?for-each:G_LINES?>
    <?LINE_NUMBER?> <?COMMODITY_CODE?> <?QUANTITY?>
    <?end for-each:G_LINES?>
    <?end for-each:G_INVOICE?>
    Requiremet: If 'trx_type' is INV i want to print commodity_code as COMMODITY_CODE else null.
    I tried like this. It's didn't work out.
    <?for-each:G_INVOICE?>
    <?trx_number?> <?trx_type?>
    <?for-each:G_LINES?>
    <?LINE_NUMBER?> *<?xdofx:if TRX_TYPE='INV' then COMMODITY_CODE else CF_BID_ITEM end if?>* <?QUANTITY?>
    <?end for-each:G_LINES?>
    <?end for-each:G_INVOICE?>
    Here, actually trx_type is in upper loop, it's not checking the TRX_TYPE='INV' condition, it's always going to else part. So I tried like below to go one level up.
    *<?xdofx:if ../TRX_TYPE='INV' then COMMODITY_CODE else CF_BID_ITEM end if?>*
    Still this is also not working. Is there any solutions, where we can use the upper level group field in line level to check the if condition.
    Any suggetion is appreciated.
    Kindly help.
    Thanks in advance.

    To go one level up from current,
    you have to use ../ELEMENT_NAME Since you are trying to access a field in G_LINES context.
    you have to open the xml and see, how may levels are there from G_LINES to G_INVOICE
    if its 2 level up, then use ../../ELEMENT_NAME and likewise.

  • How to get the  page count in XML Publisher Report

    Hi Team,
    I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically.
    Best Regards
    Sri

    there is some seeded variable available please read xml publisher developer user guide

  • 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.

  • XML Publisher Report:how to disappear the column if no data found

    Hi,
    I have a XMl publisher report requirement , the format is tabular lets say with the structure of 4 columns and 10 rows.requirement is to if suppose there is no data for row number 6 the row itself should not appear over the report and the immediate next row should come in place.
    please help me if any one of u has implemented the same.
    Ankit

    Ankit,
    This is almost hard to work although NOT impossible to achieve on the template.
    A little big of PL/SQL genius where all the columns are selected into variables may be used to achieve this, although you will have to manage them accordingly.
    I don't any other way round it.
    Rgds

Maybe you are looking for