Urgent ! XML Output with header, body, trailer

Gurus,
I am trying to use Report to output an xml file with header, body and trailer regions. However, I find that the tool does not allow me to create a header region with info like <report_date>, <report_name>, <report_desc> etc.
Moreover, the tool is not flexible that in the group level, it always automatically fills in the outer tag for me even if I intentionally leave it blank.
So, except using the XML file output function, is there any other way outputing XML file using the tool? Otherwise, I may need to hard code a program to do so!
Thanks for your advice!
Shoshi

Hi
Reports XML file is driven by your queries and groups therein. This means that the groups (and break groups) are represented in XML form.
It is not driven by the layout. So your header region does not appear.
What I suggest is that you need to create a report level formula column in the Data Model. The formula returns date, name and description etc. Since this is a part of Data Model now, it will appear in the XML output.
Regards
Sripathy

Similar Messages

  • Having a xml output with custom xml tags

    Hi All,
    I have a requirement where we need to generate an xml output with a custom set of tags as given below.
    <templates>
    <list>
    <List_no></list_no>
    <List_name> </List_name>
    </List>
    </templates>
    I am not sure how to get the list part as tags within tags.
    I am able to get the output if the tag level is just one level like ,
    <templates>
    <List_no></list_no>
    <List_name> </List_name>
    </List>
    </templates>
    Does anybody know how I could get the multi-level tags. Any help would be much appreciated. Thank you all.
    -Vin

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • Extracting body with header and trailer multiple times from a multirow file

    Hello Everyone,
    I am new to OSB and currently working on a project where I need to extract data from a flat file containing multiple rows of body and a single header and trailer in the following fashion:
    Original File:
    <Header></Header>
    <Details></Details>
    <Details></Details>
    <Trailer></Trailer>
    Desired format using OSB:
    <Header></Header>
    <Details></Details>
    <Trailer></Trailer> ... in a single file, multiple times
    Please help me in carrying out this functionality. It's really urgent and important.
    Thanks,
    Saurabh

    Some may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
    As I see it It depends on your spooling tool.
    Lets assume you are using sqlplus.
    I that case the sql prompt command may serve your purpose
    Alternatively
    select 'header' from dual
    union all
    select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
    union all
    select 'trailer' from dual;may suit.
    However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
    Edited by: bigdelboy on 19-Apr-2009 14:32

  • Excel Outputs with Header, page breaks, margins in EBS R12, 10.1.3.2 BI Pub

    Hi All,
    We have most of our report outputs as Excel.
    Our client is expecting a common format for outputs in excel, with header, margins, page breaks , page numbers
    And some of our reports has more than 70 columns
    Using RTF, we could not able to manage this. the header or page breaks are being overwritten when it generated the excel outputs.
    Please let me know how to achive this.
    Thanks in advance
    Edited by: DharV on Oct 15, 2012 8:44 PM

        Hi Rohit ,
    I had copied these .class & .xml files under Myclasses -> oracle.apps.icx and oracle.apps.po and oracle.apps.fnd was same which comes part of the standard OA tutorial.
    I copied same under Myprojects as well.
    you have to decompile the class file into java file and then place it in Myproject directory , also copy all dependency files like BC4J components , and then
    try to run from Jdeveloper .
    Alternatively you can get the entire ICX folder and zip it and add it via library .
    --Keerthi

  • Internal table in Excel output with Header and Total

    Hi All,
    I have a selection-screen of a report where there is option to specify the path of a file to be stored in local PC. This Report gives output in ALV format which displays header and total of columns.
    Now, the requirement is, when the user specifies a path for the file in selection screen it should download in the specified location with header and total row into an excel format.
    The issue is, I have the internal table with data without total and header row and the total is getting displayed in the screen through ALV feature. I am not sure, how to give the same output in downloaded excel with header row and total as it is displayed on screen.
    Please let me know, if you have any suggestions.
    Thanks & Regards,
    Anshumita.

    try using TOP OF PAGE event and write the number of records in the header part.
    hope this will help.

  • URGENT: XML Report with warning(java.lang.StackOverflowError)

    Hello,
    I have created a custom report using XML Publisher(with PDF output). The report runs fine for limited data. But when more than 3 Lakh records are retrieved, the report gets completed with Warning.
    The log details show the following error message:
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 18175653 on node PWXS3Q-E at 25-JUL-2008 06:56:22.
    Post-processing of request 18175653 failed at 25-JUL-2008 06:58:01 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    The OPP log shows the following message:
    [7/24/08 10:37:04 PM] [main] Starting GSF service with concurrent process id = 297839.
    [7/24/08 10:37:04 PM] [main] Initialization Parameters:
    oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [7/24/08 10:37:05 PM] [Thread-25] Service thread starting up.
    [7/24/08 10:37:05 PM] [Thread-26] Service thread starting up.
    [7/25/08 6:56:23 AM] [OPPServiceThread1] Post-processing request 18175653.
    [7/25/08 6:56:23 AM] [297839:RT18175653] Executing post-processing actions for request 18175653.
    [7/25/08 6:56:24 AM] [297839:RT18175653] Starting XML Publisher post-processing action.
    [7/25/08 6:56:24 AM] [297839:RT18175653]
    Template code: PFOA249P
    Template app: XXPOP
    Language: nl
    Territory: NL
    Output type: PDF
    [7/25/08 6:58:00 AM] [UNEXPECTED] [297839:RT18175653] 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:324)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:580)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:378)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:197)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
    at
    oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1816)
    at
    oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1278)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    Caused by: java.lang.StackOverflowError
    [7/25/08 6:58:01 AM] [297839:RT18175653] Completed post-processing actions for request 18175653.
    Any help would be greatly appreciated

    Note:315477.1 : XML Report Publisher Fails With java.lang.OutOfMemoryError.
    Could any one point me to the right place where i can find this note. I searched in Oracle metalink and google but no success.Here you go ..
    Note: 315477.1 - XML Report Publisher Fails With java.lang.OutOfMemoryError
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=315477.1

  • Spooling data with Header and trailer

    Hi everyone,
    I have a problem in spooling the data.
    I get a .dat file to load into db .That .dat file will be having header,records,trailer.While loading into the db i load only the records .
    I load the .dat file into table using sqlldr with direct= true and parallel=true.
    I load data into one table.header and trailer into one table(Loading into two different tables using three control file each for header,records,trailer to load from same .dat file).But while spooling the data out after some modifications to the table.i need to spool it with the header and trailer.I am able to spool only the records but not header and trailer.
    That header and trailer are in standard form,everytime i get the .dat file.
    Help me how to spool data from a table with the HEADER & TRAILER in the spool file.
    Thanks

    Some may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
    As I see it It depends on your spooling tool.
    Lets assume you are using sqlplus.
    I that case the sql prompt command may serve your purpose
    Alternatively
    select 'header' from dual
    union all
    select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
    union all
    select 'trailer' from dual;may suit.
    However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
    Edited by: bigdelboy on 19-Apr-2009 14:32

  • Billing output with Header & Item data fields

    Hello Friends,
    I liked to create new access for Billing output with Sales Orgn/Bill to party(Billing Header data) & Material number (Item data).
    I tried but system not recognizing the field Material number from billing item level.
    Please guide me how to add Material number for item level with other fields form Header for creating new Output access.
    kindly do the needful.
    regards,
    Nitin M.Pawar

    Dear Nithin,
    In the output determination for billing documents, click on maintain condition tables,
    select 'Field catalog: Messages for billing documents'
    new entries and enter MATNR.
    However after this you will have to get the help of ABAP i suppose (for making this new field accessible for creating condition table).
    Thanks & Regards,
    Hegal K Charles

  • XML output with multiple tags in one line

    I have not done much XML exporting with SQL. Previously I had just been ending my SQL queries with
    FOR XML RAW ('Company'), ROOT ('Companies'), ELEMENTS;
    and it formatted my query nicely in an XML output. That put every column name as a tag and the cell data within the tag.
    However, now the criteria has changed on me. I need to create a tag with multiple sub tags in it.
    Example: <Location Floor="10" Suite="512" DoorType="Metal">
    But I'll still need other tags to be normal in the XML output such as
    <Address>123 Fake St</Address>
    <City>Springfield</City>
    <Location Floor="10" Suite="512" DoorType="Metal">
    Is there any way to get this XML mixed in the output like above?
    Thank you for any help. 

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • XML output with UTF8 Encoding scheme

    In external partner wants that we provide him an XML file with data, encoded in UTF8 format.
    Using the SQL/XML functions I can construct the XML with the structure (shcema) he asks for.
    But how can I guarantee that my XML-output is in UTF8, because our oracle database has been built in the default character set WE8ISO8859PI.
    I suppose it is not enough to add in front off my document: <?xml version="1.0" encoding="UTF8"?> ?

    Jan,
    You may want to check on metalink for WE8iso8859P1 to see if it is a subset of UTF8. There are some documents on metalink that discuss the UTF8 character set and ways to pull differenct character sets and conversion from the database depending on what is stored in the database, or changing the database character set to UTF8.
    Have you tried a test extract to see if the characters are correct?

  • Using RDF XML output with custom java concurrent program.

    Hi, I started investigating the java API and did not find the way to use RDF XML output ? The goal is to use the Bursting engine to send out PDF generated from a "RDF XML" and a RTF template.
    Is there someone that could help be with this ?
    Thanks

    Hi Jacky
    Im looking to write a paper on this subject.
    Basically you can write a java conc program that will take the XML output from the Oracle Report and burst it. So you could tackle it a couple of ways.
    1. Have the JCP call the Oracle Report, sit and wait for it to complete then call the bursting engine with the XML and the control file. this has the advantage that its a single step for users to submit the report on the other hand you'll be writing a JCP specifically for that report.
    2. Write a generic JCP that can burst any XML, a little tougher to write but will have applications all over the Apps suites.
    Regards, Tim

  • XML Output with nesting of group

    Hi,
    Not sure if this is even possible to resolve but I figured I might as well ask.
    I have a report which is built using a Reference Cursor which outputs to XML. The data is coming back exactly as expected so I am happy that the cursor is working.
    I am now moving into trying to make the report a bit more advanced.
    My aim is to get the XML output looking like:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <!-- Generated by Oracle Reports version 9.0.2.0.3 -->
    <TEST1>
    <STANDARD1>
    <IDENTIFIER>000005385/7743198743</IDENTIFIER>
    <RUNDATE>21-AUG-09</RUNDATE>
    <TABLE1>
    <TABLE1_FIELD1>000708</TABLE1_FIELD1>
    <TABLE1_FIELD2>ABCDEF</TABLE1_FIELD2>
    <TABLE1_FIELD3>123456</TABLE1_FIELD3>
    </TABLE1>
    <TABLE2>
    <TABLE2_FIELD1>Happy</TABLE2_FIELD1>
    <TABLE2_FIELD2>Days</TABLE2_FIELD2>
    <TABLE2_FIELD3>Are Here</TABLE2_FIELD3>
    </TABLE2>
    </STANDARD1>
    </TEST1>
    At the moment the best that I can seem to do is the following using Break Groups.
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <!-- Generated by Oracle Reports version 9.0.2.0.3 -->
    <TEST>
    <STANDARD1>
    <IDENTIFIER>000005385/7743198743</IDENTIFIER>
    <RUNDATE>21-AUG-09</RUNDATE>
    <TABLE1>
    <TABLE1_FIELD1>000708</TABLE1_FIELD1>
    <TABLE1_FIELD2>ABCDEF</TABLE1_FIELD2>
    <TABLE1_FIELD3>123456</TABLE1_FIELD3>
    <TABLE2>
    <TABLE2_FIELD1>Happy</TABLE2_FIELD1>
    <TABLE2_FIELD2>Days</TABLE2_FIELD2>
    <TABLE2_FIELD3>Are Here</TABLE2_FIELD3>
    </TABLE2>
    </TABLE1>
    </STANDARD1>
    </TEST>
    So the Table2 tags are a child of the Table1 grouping. In reality the table2 information should be at the same level as table1.
    Is there anyway in Oracle Reports where you can create the equivilant of a break group but allow multiple groups to have the same level?
    My aim is to allow multiple groups (at least 8) that are a subset of the STANDARD1 tag, but are all at the same level.
    Any ideas?
    Thanks in advance,
    Leanne

    I am facing same problem when i generate the xml from oracle reports. did you get any solution from this problem.
    Thanks in advance,

  • Is a record ID field required for File Adapter (Header, Body, Trailer)?

    Hi,
    File to File scenario. The sender file is a text file i.e. .txt which needs a conversion on the sender file adapter. There are three structures in the file namely header (one), body (many) and Trailer (one). From what I can see I need a record Id field (with the same name) in all the structure types, can anyone confirm this for me?
    Thanks,
    Leanne

    That is correct. If you have a variable number of records of a particular type, then you need a way to accurately identify each type of record... and that is done via the key field (or Record ID)  which is present in each record type.
    Extract from SAP Online Help:
    <i>Key Field Name
    If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value ‘*’, then the substructures must be identified by the parser from their content. A key field must be set with different constants for the substructures. In this case, you must specify a key field, and the field name must occur in all substructures.
    Specify the Key Field Type to be used to compare the predefined values. This entry is used if the key field name is defined.
    NameA.keyFieldValue: Specify the value of the key field for the structure. This entry is mandatory if the key field name is set. Otherwise, the entry is ignored.</i>
    For more info, refer to the SAP Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

  • XML Output with multiple categories

    I am driving myself insane trying to get this to output and I can't seem to find much on the internet that is helpful. Sometimes there is 1 category and sometimes there could be 2.
    For example:
    <Article>
    <Heading>Study: Ban on cell phone use hasn't reduced accident rate</Heading>
    <Date>01/02/2010</Date>
    <Contents>Content regarding cell phone use.</Contents>
    <Categories>
    <Category ID="438024898">General Auto News</Category>
    <Category ID="438022448">Electronics</Category>
    </Categories>
    </Article>
    I set myitems with the xml search and can manage to output everything below perfectly, except for the multiple categories.
    <cfloop from="1" to="#arrayLen(myItems)#" index="i">
    #myItems[i].Heading.xmltext#
    #myItems[i].Categories.Category.xmltext#        this outputs only the first one, but I can not seem to get the second.
    </cfloop>
    Thanks for any help in advance!!!!

    <cfloop from="1" to="#arrayLen(myItems[i].Categories.Category#" index="c"
        #myItems[i].Categories.Category[c].xmltext#
    </cfloop>
    OR
    #myItems[i].Categories.Category[1].xmltext#
    #myItems[i].Categories.Category[2].xmltext#
    Category is just a nested array just like your myItems was.
    Or you could do another xmlSearch if you prefer.

  • Please Help Xml output with extra lines after removeNodeChild

    Hi guys. I'm having trouble googling this out.
    Here is the problem. Given an xml document. I read it on my app and manipulate it, then save it when I am done.
    When I remove a child, the output files shows all the extra lines from the formatting and indent. So it looks like a big hole in the xml file after the node is removed. Here is an example
    <bookshelf>
    <books>
    <book>
    <isbn>3349583080580584308</isbn>
    <author>Jon Stewart</author>
    </book>
    <book>
    <isbn>9900909770543356488</isbn>
    <author>Stephen Colbert</author>
    </book>
    </books>
    </bookshelf>
    Node parentNode = jonStewartNode.getParentNode();
    parentNode.removeChild (jonStewartNode);The result of this is the following xml.
    <bookshelf>
    <books>
    <book>
    <isbn>9900909770543356488< /isbn>
    <author>Stephen Colbert</author>
    </book>
    </books>
    </bookshelf>
    How can I output the xml without this extra lines?
    Thanks in advance,
    f(t)
    PS: here is the initialization, and configuration of the TransformerFactory, and Transformer, and finally the save method.
         * Initializes factory instances and member variables.
        private void initialize(){
            try{
                //obtain a trasformer factory to save the file
                this.transformerFactory = TransformerFactory.newInstance();
                this.transformerFactory.setAttribute("indent-number", 4);
                //obtain the transforme
                this.transformer = this.transformerFactory.newTransformer();
                //setup transformer
                this.transformer.setOutputProperty(OutputKeys.METHOD, "xml");
                this.transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                //this.transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount ", "4");
            }catch(TransformerConfigurationException tcex){
                this.logger.logException(this, "errors.storage.xml.configuringXmlTransformer", true, tcex);
         * Saves the DOM document to the XML file.
        private void saveDocument(){
            //verify that the documents is not null
            if(this.document==null)
                return;
            //sincronize document
            synchronized (this.document){
                try{
                    //normalize document
                    this.document.normalizeDocument();
                    //get a document documentSource object out of the document
                    DOMSource documentSource                = new DOMSource(this.document);
                    //create the file output stream
                    FileOutputStream fileOutputStream       = new FileOutputStream( this.file);
                    //create the output stream writer
                    OutputStreamWriter outputStreamWriter   = new OutputStreamWriter(fileOutputStream);
                    //create the stream streamResult out to the file Stream
                    StreamResult streamResult               = new StreamResult(outputStreamWriter);
                    //performe the trasformation
                    transformer.transform(documentSource, streamResult);
                    //clean up
                    outputStreamWriter.close();
                    outputStreamWriter = null;
                    fileOutputStream.close();
                    fileOutputStream = null;
                    documentSource = null;
                } catch (TransformerConfigurationException tcex) {
                    // Error generated by the parser
                    // Log Error
                    this.logger.logException(this, "errors.storage.xml.saveXMLRepositoryFile", true, tcex);
                } catch (TransformerException tex) {
                    // Error generated by the parser
                    // Log Error
                    this.logger.logException(this, "errors.storage.xml.saveXMLRepositoryFile", true, tex);
                } catch (Exception ex) {
                    // Unknown error
                    // Log Error
                    this.logger.logException(this, "errors.storage.xml.saveXMLRepositoryFile", true, ex);
        }

    I have an rtf template which is used to print output in pdf format. I have a table which has many rows which displays data for each record. In order to avoid breaking the page in between the rows of a record , i have added an outer table with single row and column and pasted the data table inside it and changed the row property of outer table to 'Allow Rows to Break Across Pages' to unchecked. It works fine only if the first record set length does not exceed a full page. IF the first record expanded to more than one page, it leaves a blank page at the very first and start the record at the second page. Can you please advise how to solve this issue. Its very URGENT please..

Maybe you are looking for

  • 2504 controller + 2602 APs = wireless clients connectivity problems

    Hello, everybody! I have a connectivity problems of wireless clients. The symptoms are: 1) Some clients receive 169.254.x.x., instead a correct DHCP addresses, less in a minute connection drops, and in controller's "Monitor" > "Clients" tab these cli

  • Organizational Unit Report

    Need a ZENworks Inventory report (any report) that features the Organizational Unit of the workstation object(s) in question. Need to be able to sort or filter on Organizational Unit; can't find one. Any ideas?

  • Scenebuilder not working with FXML that works fine otherwise

    Hi ~ I'm using the Mac version of Scenebuilder (1.0), integrated with NetBeans, and although it works fine for simple (sample) apps, for my application it does not. IOW, I can run my application fine, looks great, but Scenebuilder gives the following

  • IWork (number) lags after Snow Leopard upgrade install

    My dad upgraded his mac with SL. After he did his iWork and iLife started lagging really bad. When he opens a large numbers spreadsheet, it takes a very long time to load. Activity monitor shows 98% use and application not responding. If you wait lon

  • Accessing Work Managers Using MBeans forum

    hi all, I am trying to write code using JMX that gives me all work manager that I've created on WLS 9.0 but when trying to retrieve it using getMBeansByType() shows me MBean size as zero and with getRuntimeMBean() it shows me instance not found in sh