XML Output order

Hi,
How can I control the order of columns in XML output? The order in data model applies only to database columns. The formuale columns appear at the end of database columns irrespective of the location of formuale column in the data model.

The order of the elements is determined by the order of the columns in the Data Model. Note that you can also use the "Exclude from XML output" property to completely omit columns form the XML output.
Message was edited by:
Brian Hill
This applies to Reports 10g. I don't know if it also works in 6i.

Similar Messages

  • XML Elements Ordering in Generated XML Output

    I have a requirement where I need the xml element tags to appear in the generated xml output in the same order as in data template definition but in my case this is not happening. I have one master group - Customer and two subgroups - BillingAddress and ShipToAddress. The subgroups appear below some master elements eg. Contact but above other master elements eg. Telephone . However when the xml output is finally generated all the Master Elements appear first followed by the subgroup elements. Does anyone know how I can rectify this?
    See below:
    my data template structure is as follows:
    - <group name="Customer" dataType="varchar2" source="Q_MASTER_FILE_CUST">
    <element name="CustomerID" datatype="varchar2" value="CUSTOMER_NUM" />
    <element name="CustomerTaxID" datatype="varchar2" value="TAXPAYER_ID" />
    <element name="CompanyName" datatype="varchar2" value="COMPANY_NAME1" />
    <element name="Contact" datatype="varchar2" value="CONTACT_NAME" />
    - <group name="BillingAddress" dataType="varchar2" source="Q_MF_CUST_BILLTO">
    <element name="BuildingNumber" datatype="varchar2" value="BUILD_NUM1" />
    <element name="StreetName" datatype="varchar2" value="STREET_NAME1" />
    <element name="AddressDetail" datatype="varchar2" value="ADDRESS_STYLE1" />
    <element name="City" datatype="varchar2" value="CITY1" />
    <element name="PostalCode" datatype="varchar2" value="POSTAL_CODE1" />
    <element name="Region" datatype="varchar2" value="COUNTY1" />
    <element name="Country" datatype="varchar2" value="COUNTRY1" />
    </group>
    - <group name="ShipToAddress" dataType="varchar2" source="Q_MF_CUST_SHIPTO">
    <element name="BuildingNumber" datatype="varchar2" value="BUILD_NUM2" />
    <element name="StreetName" datatype="varchar2" value="STREET_NAME2" />
    <element name="AddressDetail" datatype="varchar2" value="ADDRESS_STYLE2" />
    <element name="City" datatype="varchar2" value="CITY2" />
    <element name="PostalCode" datatype="varchar2" value="POSTAL_CODE2" />
    <element name="Region" datatype="varchar2" value="COUNTY2" />
    <element name="Country" datatype="varchar2" value="COUNTRY2" />
    </group>
    <element name="Telephone" datatype="varchar2" value="PHONE_NUMBER" />
    <element name="Fax" datatype="varchar2" value="FAX1" />
    <element name="Email" datatype="varchar2" value="EMAIL_ADDRESS" />
    <element name="WebSite" datatype="varchar2" value="URL" />
    </group>
    </group>
    My XML Output is as follows:
    <Customer>
    <CustomerID>1000</CustomerID>
    <CustomerTaxID>65-94238654</CustomerTaxID>
    <CompanyName>World of Business</CompanyName>
    <Contact>MS. Jolene Smith-Kelly</Contact>
    <Telephone>8441212</Telephone>
    <Fax />
    <Email />
    <WebSite />
    - <BillingAddress>
    <BuildingNumber />
    <StreetName />
    <AddressDetail />
    <City>San Jose</City>
    <PostalCode>95053</PostalCode>
    <Region>Santa Clara</Region>
    <Country>US</Country>
    </BillingAddress>
    - <ShipToAddress>
    <BuildingNumber />
    <StreetName />
    <AddressDetail />
    <City>San Jose</City>
    <PostalCode>95053</PostalCode>
    <Region>Santa Clara</Region>
    <Country>US</Country>
    </ShipToAddress>
    </Customer>
    It should be as follows:
    <Customer>
    <CustomerID>1000</CustomerID>
    <CustomerTaxID>65-94238654</CustomerTaxID>
    <CompanyName>World of Business</CompanyName>
    <Contact>MS. Jolene Smith-Kelly</Contact>
    - <BillingAddress>
    <BuildingNumber />
    <StreetName />
    <AddressDetail />
    <City>San Jose</City>
    <PostalCode>95053</PostalCode>
    <Region>Santa Clara</Region>
    <Country>US</Country>
    </BillingAddress>
    - <ShipToAddress>
    <BuildingNumber />
    <StreetName />
    <AddressDetail />
    <City>San Jose</City>
    <PostalCode>95053</PostalCode>
    <Region>Santa Clara</Region>
    <Country>US</Country>
    </ShipToAddress>
    <Telephone>8441212</Telephone>
    <Fax />
    <Email />
    <WebSite />
    </Customer>
    is anyone able to advise?
    Rani

    If you know the changes necessary then you could write an XSL transformation to do them. But a generalized piece of code that examined an XML document and a schema, then produced a corrected document, would be quite difficult to write.

  • Specifying the output order of elements in XML using Oracle Reports.

    Hi,
    I am developing an Oracle Reports report, using Report
    Builder 6.0.8.17.0 on WinNT. The requirement is that the report
    will only ever be used to generate XML output.
    However, due to a bug in the XML Parser at the other end,
    it's necessary to have certain elements appear in the XML before
    others.
    e.g. This simplistic example shows XML output from Reports
    runtime, which looks something like this:
    <DEPT id="10">
    <NAME>Government</NAME>
    <EMP id="4435">
    <SAL>12000</SAL>
    <ENAME>Harry Boland</ENAME>
    <EMP>
    <EMP id="8643">
    <SAL>21000</SAL>
    <ENAME>Michael Collins</ENAME>
    <EMP>
    <EMP id="9900">
    <SAL>47000</SAL>
    <ENAME>Eamonn de Valera</ENAME>
    <EMP>
    <LOCATION>
    <ADDRESS type="street">Kildare St.</ADDRESS>
    <ADDRESS type="city">Dublin</ADDRESS>
    </LOCATION>
    </DEPT>
    However, the application that is parsing the XML fails due to
    the fact that it expects the LOCATION element to be the first
    within the DEPT element. i.e. before the NAME or any of the EMP
    elements.
    The way I have developed this is by creating a master query
    which creates a master group, G_DEPT, with two column, ID and
    NAME, and two detail queries and corresponding detail groups, EMP
    and LOCATION. These groups are joined to the master using the
    datalink facility in Report Builder.
    Is there any way in Report Builder I can specify that the
    LOCATION element is to be output for each DEPT element before any
    other element belonging to DEPT?
    Thanks,
    Iibhear.

    The order of the elements is determined by the order of the columns in the Data Model. Note that you can also use the "Exclude from XML output" property to completely omit columns form the XML output.
    Message was edited by:
    Brian Hill
    This applies to Reports 10g. I don't know if it also works in 6i.

  • How to generate PDF from XML output without XML publisher

    Hi,
    I am facing a problem while splitting the rdf generated XML output.
    Problem Description:
    I have a oracle invoice report which runs once every day (scheduled program). This report fetches me the invoices generated on that day and needs to be Mailed / Faxed to the customers.
    So i developed the report in such a way that it generates the output order by customers...since the output generated will be as one .out file in APPLCSF/out directory...the .out file needs to be splitted by customers, for which i have written a cursor which takes the data of the main query and submits that many requests as many as customers are there.....There is a possibility of having 1000 customers per day also. If that is the case then my main program will fire that many requests.
    Is there a different approach......any inputs are highly appreciated.
    Also, i am generating the output in XML format. Is there a way from which i can directly generate a PDF from that XML output rather using any other tool.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hi,
    with Reports Bursting and the defined "distributions" it's possible to have one report splittet to several parts with different receipients. Have a look at http://download-uk.oracle.com/docs/cd/B14504_01/dl/bi/B13673_01/pbr_dist.htm.
    With xsl-fo it's possible to create pdf out of xml ... that's what xml publisher is doing.
    Regards
    Rainer

  • XML output in Apps instead of PDF

    Hi All,
    I have converted several Oracle reports to XML Publisher and working fine in EBS. The problem I have is that I am getting the XML instead of a PDF output when running a report under Release Sales Orders form(Pick Slip). I am able to preview the PDF output in the XML Admin page using similar XML file.
    I have the concurrent program definition changed to XML from text and XMLP template/data definition configured. Any idea on the issue?
    Best regards,
    MM

    Hi MM,
    Are you still in 11i? Check if the report(Pick Slip) is being submitted thru document set (OM(R)> Setup> Shipping> Documents> Document Sets)… if yes, then you probably need to apply a patch... or have you tried Gareth's solution explicitly calling from report AfterReport trigger?
    Metalink note:
    NEW FUNCTIONALITY: Ability to Execute Document Sets in XML Output Format - Patch 5688014
    Doc ID: 413108.1
    regards,...

  • XML Output - Issue with multiple field labels.

    Dear Users,
    I am trying to create an XML sheet as output for my program, and am struck at a point where I don't need field labels appearing on the XML output.
    The code looks as below:
          l_element_order = l_document->create_simple_element(
                name = 'Order'
                parent = l_element_ordertype ).
          l_value = it_order-aufnr.
          l_rc = l_element_order->set_attribute( name = 'AUFNR' value = l_value ).
    On my output though, both the field labels 'Order' and 'AUFNR' appear side by side. I would ideally only want the 'Order' label to appear.
    Is there a method through which I can suppress the labels?!
    I am using the following classes as a part of the code:
    DATA: l_ostream         TYPE REF TO if_ixml_ostream,
          l_ixml            TYPE REF TO if_ixml,
          l_streamfactory   TYPE REF TO if_ixml_stream_factory,
          l_renderer        TYPE REF TO if_ixml_renderer,
          l_document        TYPE REF TO if_ixml_document,
          l_value           TYPE string.
    Would be much appreciated if someone could help me with this please. Thanks!
    Vijay

    Hi,
    recipent list is filled once,there are no loops in the program, and the SOST shows two same items with some have same time stamp and some have difference of a second.
    Regards
    Govind

  • XML output from Repostiory Reports

    Hi,
    Any ideas why the table definition report (cktci.rdf) data from the Repository Reports cannot be generated to XML?
    I'm running Designer ver. 9.0.2.91.9, Reports ver. 9.0.2.0.3 . XML is not on the destination format list in Repository Reports, but if you type in xml, the DESFORMAT parameter is correctly set to it. However, only part of the data model is output to the xml file:
    &lt;?xml version="1.0"?&gt;
    &lt;!-- Generated by Oracle Reports version 9.0.2.0.3 --&gt;
    &lt;CKTCI&gt;
    &lt;LIST_G_IRID&gt;
    &lt;G_IRID&gt;
    &lt;IRID&gt;*****&lt;/IRID&gt;
    &lt;NAME&gt;SODO&lt;/NAME&gt;
    &lt;LIST_G_LEV&gt;
    &lt;G_LEV&gt;
    &lt;VERSION&gt;1.8&lt;/VERSION&gt;
    &lt;LEV&gt;0&lt;/LEV&gt;
    &lt;/G_LEV&gt;
    &lt;/LIST_G_LEV&gt;
    &lt;CS_TABS&gt;1&lt;/CS_TABS&gt;
    &lt;/G_IRID&gt;
    &lt;/LIST_G_IRID&gt;
    &lt;D_USERNAME&gt;REP_OWNER&lt;/D_USERNAME&gt;
    &lt;D_USERNAME1&gt;&lt;/D_USERNAME1&gt;
    &lt;F_COL_DET&gt;N&lt;/F_COL_DET&gt;
    &lt;F_VW&gt;&lt;/F_VW&gt;
    &lt;F_SNP&gt;&lt;/F_SNP&gt;
    &lt;TABLES_YN&gt;Yes&lt;/TABLES_YN&gt;
    &lt;VW_TYPE&gt;No&lt;/VW_TYPE&gt;
    &lt;SNP_TYPE&gt;No&lt;/SNP_TYPE&gt;
    &lt;COL_DET&gt;Yes&lt;/COL_DET&gt;
    &lt;D_TABTY1&gt;&lt;/D_TABTY1&gt;
    &lt;CF_PROP_NAME&gt;&lt;/CF_PROP_NAME&gt;
    &lt;P_NULL_IND&gt;Optional ? : &lt;/P_NULL_IND&gt;
    &lt;P_DOMAIN_NAME&gt;Domain : &lt;/P_DOMAIN_NAME&gt;
    &lt;P_UPPERCASE&gt;Uppercase ? : &lt;/P_UPPERCASE&gt;
    &lt;P_ORAC_SEQ&gt;Sequence : &lt;/P_ORAC_SEQ&gt;
    &lt;P_DEF_VAL&gt;Default Value : &lt;/P_DEF_VAL&gt;
    &lt;P_ORD_SEQ&gt;Order By Sequence : &lt;/P_ORD_SEQ&gt;
    &lt;P_SORT_ORD&gt;Sort Order : &lt;/P_SORT_ORD&gt;
    &lt;D_YN&gt;&lt;/D_YN&gt;
    &lt;D_YES&gt;Yes&lt;/D_YES&gt;
    &lt;D_NO&gt;No&lt;/D_NO&gt;
    &lt;D_NULL&gt;Yes&lt;/D_NULL&gt;
    &lt;D_NOT_NULL&gt;No&lt;/D_NOT_NULL&gt;
    &lt;D_NULL_IND&gt;&lt;/D_NULL_IND&gt;
    &lt;D_VERSION&gt;1.8&lt;/D_VERSION&gt;
    &lt;D_CONTAINER&gt;ZSI-WARTA/SODO&lt;/D_CONTAINER&gt;
    &lt;D_VERSION1&gt;&nbsp&lt;/D_VERSION1&gt;
    &lt;D_CONTAINER1&gt;&nbsp&lt;/D_CONTAINER1&gt;
    &lt;COUNTER&gt;*****&lt;/COUNTER&gt;
    &lt;/CKTCI&gt;
    The biggest problem is that the main group G_APP from the report definition is not generated to XML, in spite of its parameter "Exclude from XML Output" being set to No. Any ideas why this happens?
    Regards,
    Tomasz

    hello,
    you can specify the look of the XML tags in the "XML Settings" property of the respective field. so let's say your datamodel has the colun called NAME then by default the xml tag would look soemthing like this
    <NAME>this is the value </NAME>
    now if you set the value for the
    "XML Tag" property and the "XML Tag Attributes" property to e.g. facet and name="his-name"> (the * is just to terminate the the values in this text) the generated XML tag would look something like
    <facet name="his-name">name="his-name"></facet>
    columns that are not in the datamodel (like i asume you mean by <stuff> and <futurestuff> you can create by adding formula columns into your datamodel. formula columns have the same "XML settings" section in their property sheet and can be modified accordingly.
    hope this is what you are looking for.
    thanks,
    ph.

  • Oracle Reports has comma as decimal separator in XML output

    In XML, numbers should be canonical, otherwise BI Publisher errors with java.lang.NumberFormatException.
    (This regards the e-business suite, by the way.)
    We have trouble with our invoice report, a modified RAXINV, that suddenly makes XML files with comma. Which brought our invoicing process to a screeching halt. "Suddenly" means that it used to work, but now it does not work. I think someone has changed a setting somewhere, but nobody admits to doing that.
    Can anybody point out where to look? What is actually controlling the decimal separator used by Oracle Reports in the XML output?
    Thanksalotinadvance,
    Tore.

    Thanks for replying, Tim. (and thanks for a most enlightening "meet the experts" session at OOW)
    The language settings for RAXINV are controlled by an MLS language function. I have logged an SR, but the problem seemed to solve itself, so the SR was closed, and then the problem reappeared. Darn.
    However, I did some more research on Metalink and found this bug that seem to match our problem:
    Bug 5920262 - NLS_NUMERIC_CHARACTERS KEEP CHANGING DYNAMICALLY FROM SESSION TO SESSION
    I've ordered patching, so i think we'll have this fixed soon.

  • Misplaced XML tags order

    Hi all,
    In my target XML structure order/sequencer of few XML tags under a node is changed
    Is the order really an issue. My client complains about the order.
    Any pointers ?
    -Keerthi

    Thanks guys.
    External definition has Name followed by Description as follows
    <Partner>
    <Name>USA</Name>
    <Description>country</Description>
    </Partner>
    But the output xml files has Description followed by name as follows..
    <Partner>
    <Description>country</Description>
    <Name>USA</Name>
    </Partner>

  • R12 Check Printing Need XML output for seeded data definition--urgent

    Hi--
    I really need to get ahold of the XML output from the checks running off the data definition called "Oracle Payments Funds Disbursement Payment Instruction Extract 1.0" in Oracle R12 quickly--particulary the XML tag that holds the MICR string (should be the concatenation of Check Number, Routing and Acct number).
    I found an entry here in the forums about running a query of:
    SELECT XMLType.getClobVal(instruction)
    FROM IBY_XML_FD_INS_1_0_V
    WHERE rownum =1 ;
    to get the entire XML output. I have an open SR but haven't really gotten anywhere with it yet.
    However, all we get back is an error about datatype. Could someone please help out with this--it is quite urgent as I need to finish this last piece of the checks and work with the bank on formatting this week.
    Thanks--I'd really appreciate any assistance!
    Kate

    SELECT XMLType.getClobVal(instruction)
    INTO x_extract_doc
    FROM iby_xml_fd_ins_1_0_v
    WHERE payment_instruction_id = p_payment_instruction_id;
    or you can use
    SELECT document FROM iby_trxn_documents order by creation_date desc;
    provided that the last run was urs.

  • How to get XML output from a stored procedure

    I have a very simple question:
    I would like to write a stored procedure (SP) that will return results in XML format (as a string). My tables in database are not of XML TYPE. But I need XML output.
    ie, SP will run like a typical SP but the only difference will be its output in XML.
    1) is it possible?
    2) if possible, how?
    Please, help
    Omer Koksal

    Thank you Peter, it was a great problem for me !
    Omer Koksal

  • Easiest and/or best methods for generating XML output (not with a report)

    Hi, several of our EBS customers (11.5.10) are converting their PDF reports to use XML/BI publisher to produce output. The data stream comes from a report that generates the XML output, and then the XML template is applied. This works great ... no problems, etc. From what I have read, however, Oracle intends to treat the traditional Forms and Reports Developers as legacy tools (although still supporting them, of course).
    My question is if I wanted to ditch using Reports to generate XML output, what, in your opinion or in your current usage, is the easiest way of getting this data? In Reports, the data modeler is excellent in providing a method to write your queries, split them into different repeating groups, write formula and summary columns, link multiple queries, etc, etc. If one were to become Reports Developer free, what comparable tools are available to take its place? I would expect this tool to handle a mix of GUI and coding like the Reports data modeler. Please note that I'm not looking for an EBS-specific solution -- say for a custom application using regular Oracle 10g DB and iAS, with BI Publisher for reporting.
    Thanks for your feedback,
    Ryan

    What I'm looking for is to not use Oracle Reports to generate the XML data output since Oracle's statement of direction is pushing BI Publisher rather than Oracle Reports as the preferred tool for reporting. That said, the data modeler in Reports provides a very flexible tool to construct and link multiple queries and to manipulate the queries into several levels of a master/detail relationship. Further, the mix of GUI and coding makes setting up the data model a lot more efficient. What I'm looking for (and I don't know if anything exists) is something comparable that can be used to generate XML output from the DB -- the idea being that I wouldn't use legacy tools, like Reports, for this task. I hope that is clearer.
    Really, another way of answering my question is, aside from Reports and the APIs mentioned so far, what are my fellow developers using, if anything, to extract XML data in a way that handles the features i list above?

  • Generate XML output using DBMS_XMLGEN.getxmltype and not from rdf

    Hi,
    I have a requirement to display output from a particular table in XL format. Out of all the known possible options, I am planning to use the XML publisher to generate XL output.
    For the data source, instead of using the conventional way of creating XML data using rdf,I am planning to use DBMS_XMLGEN.getxmltype pl/sql procedure to generate the XML output. And from the output, call the template to generate the required Excel output.
    Now, I am using the following code to generate XML output but am not sure how to proceed from here. I need to first print the XML data in the FND Output file after which I was planning to call the 'XML Report Publisher' (XDOREPPB) program and use the current request id to get the excel output but I am not able to find the way to print the XML data in the output file as:
    fnd_file.put_line (fnd_file.output, l_xml_type); - is throwing an error as l_xml_type is an XML data output.
    PROCEDURE xml_main (
    errbuf OUT VARCHAR2
    ,retcode OUT VARCHAR2
    ,p_project_from IN VARCHAR2
    ,p_project_to IN VARCHAR2
    AS
    l_xml_type XMLTYPE;
    BEGIN
    SELECT DBMS_XMLGEN.getxmltype
    ('SELECT fnd_global.conc_request_id
    ,TO_CHAR (segment1)
    ,to_char(start_date,''MM/DD/RRRR'')
    ,to_char(xxmcc_project_details_pkg.current_profit_projection
    (project_id),''999,999,990.90'')
    ,to_char(xxmcc_project_details_pkg.cost_to_date (project_id),''999,999,990.90'')
    ,''1''
    FROM pa_projects_all
    WHERE segment1 BETWEEN NVL (p_project_from, segment1)
    AND NVL (p_project_to, segment1)')
    INTO l_xml_type
    FROM DUAL;
         fnd_file.put_line (fnd_file.output, l_xml_type);
    END xml_main;
    Can anyone point me as to how to publish XML output using a PL/SQL procedure (DBMS_XMLGEN.getxmltype)
    Thanks.

    Pl see if the example included in this presentation helps http://www.oracle.com/technology/products/applications/Events/OOW-2006/EBS/S281401_Sridhar_Bogelli.pdf
    Also, you do not need to explicitly call XDOREPPB in later versions of XML Publisher. If you set up everything correctly (as described in the presentation above and the link below) the Output Post Processor is called automatically after the XML file is generated successfully.
    Another excellent tutorial is at http://www.oracle.com/technology/obe/fusion_middleware/fusion/bi/xmlp_ebiz/index.html
    HTH
    Srini

  • When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb.But the output records is originally 4000 records. When copy to new excel it is showing 3.5 mb only. Does anyone knows the answer for this issue?

    When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
    Does any one knows the answer please advice?

    Hello,
    This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
    MHTML and XHTML are more verbose formats than binary .xls.
    It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file).  This is a known limitation of RTF layout templates.
    BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
    Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
    Bogdan

  • How to create a xml output in report 2.5

    Hi
    Please Anyone using reports 2.5 and trying to
    implement XML outputsolutions ?? I have some
    oracle reports that need to produce XML output
    I know that 6i supports XML output. i dont know
    how to do in 2.5. If anyone has done anything similar
    to this, I'd be interested in hearing different solutions?
    Thanks,
    Parthi

    [ajayubbott],
    I am not sure if you should create another folder to house all your servlets when using Java Web Server 2.0.
    The servlet invoker of Java Web Server 2.0 looks at the <server_root directory>/servlets/ directory as the root servlet directory by default and any servlets that is housed under this directory is monitored by the custom class loader provided by Java Web Server 2.0.
    This custom class loader will automatically reload any serlvet class files that are modified i.e. a newer version of the servlet that is newly compiled e.g. change in functionality. What this means is that you don't have restart the web server to reload any new version of the existing servlets on the web server.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

Maybe you are looking for