XML output from BW

Hi Folks,
I want to know if we can extract data from BW in XML format.
I don't see xml as an output format while creating infospokes. Is there any other way.

There is the XMLA web service that allows you to pass MDX query statements in and get XML formatted results back.  This is not good for raw data, though only for aggregated summary level information.  Here is a link to the online docs about it...
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/9b8f3c855f0454e10000000a11405a/frameset.htm

Similar Messages

  • Build Reports from XML output from Reports

    Hi,
    I was just wondering if it is possible to build reports from output in XML format, originally generated by Oracle Reports.
    The XML output produced by Reports is stored in a database for further processing.
    TIA
    Hien

    Hi Hien
    If I have understood this right, you need to create report in XML format from an XML Report Definition File. From the Builder, Generate to File from the File menu and choose XML format for the output.
    Remember that XML output from Reports is Data driven and faithfully reproduces the Data Model. It is NOT layout driven.
    Regards
    Sripathy

  • Controlling XML Output from a Crystal Report

    Hi guys,
    I need to provide an XML output from one of my reports. The customer has defined his schema and I have tried to implement it using the 'XML Expert" With reference to the two snippets below:
    this is what I want:
    <DEPADDR>ZBTJ</DEPADDR>
        <ACFTYPE>EMB145</ACFTYPE>
    and this is what I get:
    <DEPADDR FieldName="{@DEPADDR}">ZBTJ</DEPADDR>
        <ACFTYPE FieldName="{@ACFTYPE}">EMB145</ACFTYPE>
    Does anyone know how to suppress "FieldName="{@DEPADDR}"" from the output? In the XML Expert Dialog both the name, which prints, and the type, which doesn't, are greyed out so you can't do anything with them. There is a "Suppress XML  Tag" tick box but that seems to have no effect on what is included in the export.
    Thanks in advance
    Richard

    Duplicate of
    Crystal reports with a DB procedure
    Closing and locking this thread
    Ludek

  • JDev generated webservices encodes XML output from PL/SQL procedure

    I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
    Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
    Here is an example of the SOAP message that the webservice returns:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
    Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
    & gt;diensten& lt;
    & gt;dienst>some value& gt;/dienst& lt;
    & gt;/diensten& lt;
    </ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
    (I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
    The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
    How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?

    Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
    At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
    Any help is greatly appreciated.

  • XML Output from Concurrent Request DBMS_XMLGEN

    I am trying to create xml output for a concurrent request, using the DBMS_XMLGEN package to generate my XML?
    I have gotten so far as to be able to run my procedure and see the output in TOAD using dbms_output.put_line, but I can't seem to quite get the right link to convert this to Oracle Apps output.
    I have a concurrent request setup to output XML.
    This calls my procedure to return to the output file.
    So far, when I run from APPS, all that shows in the Output file is 'XML document must have a top level element.'
    Here is the relevant code...
    ctx DBMS_XMLGEN.ctxHandle; -- vars to convert SQL output to xml
    xml clob;
    xmlc varchar2(4000);
    off integer := 1;
    len integer := 4000;
    i number := 0;
    rc_data sys_refcursor;
    begin
    -- this calls simple open cursor for sql statement, returns rows
    rc_data := fa10022_data(P_BOOK_TYPE_CODE
    , P_STATE
    , v_BEG_DATE_EFFECTIVE
    , v_END_DATE_EFFECTIVE
    , P_BEG_ASSET_ACCT
    , P_END_ASSET_ACCT
    , v_depr_per_ctr);
    ctx := dbms_xmlgen.newContext(rc_data);
    dbms_xmlgen.setRowsetTag(ctx, 'XXFA10022');
    dbms_xmlgen.setRowTag(ctx, 'G_DATA');
    xml := dbms_xmlgen.getXml(Ctx);
    i := dbms_xmlgen.getNumRowsProcessed(ctx);
    dbms_xmlgen.closeContext(Ctx);
    apps.fnd_file.put_line(apps.fnd_file.output, xml);
    I was also following this link...
    http://www.appsassociates.com/products/Generation_XML_PLSQL.pdf
    any suggestions?
    Thanks!!
    Janel

    That was painful, but it helped!
    Most of it is workflow code...POXMLGEN contains the pertinent coding.
    I think my problem now lies with some of my data. Depending on what is returned, I sometimes receive a warning with no output. I know there are special characters in the data (ex eacute), but I can't tell if that is what is causing the issue. I do have the statement dbms_xmlgen.setConvertSpecialChars(ctx, TRUE); in my code, so not sure what else to do.
    This is what is being returned in OPP log...
    Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element expected.

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

  • How to generate as XML output from Oracle Apps 11

    Hi Anyone has the experience to generate the output from Oracle Apps 11 as XML file? Database is 8.1.7, Oracle Apps 11. The concurrent program can be written in PL/SQL or can report 2.5 generate the output as XML?
    The scenario is:
    1) Run a concurrent program in Oracle Apps 11
    2) Output generated is XML (.xml)
    Regards.

    This forum is for Oracle XML DB features. XML DB is only available as of database 9iR2.
    You may be better off in legacy XML Features forum...
    PL/SQL XML Programming

  • To generate XML output from Oracle Apps 11

    Hi Anyone has the experience to generate the output from Oracle Apps 11 as XML file? Database is 8.17, Oracle Apps 11. The concurrent program can be written in PL/SQL or can report 2.5 generate the output as XML?
    The scenario is:
    1) Run a concurrent program in Oracle Apps 11
    2) Output generated is XML (.xml)
    Regards.

    This forum is for Oracle XML DB features. XML DB is only available as of database 9iR2.
    You may be better off in legacy XML Features forum...
    PL/SQL XML Programming

  • XML output from oracle equivalent to sql server

    Hi,
    I need an equivalent sql server 2005 equivalent output from oracle.
    Tried with DBMS_XMLGEN.getxml, xforest etc. But I am not able to get desired output.
    Could anyone help me in giving a hint to do so.
    Here below i am pasting sql server 2005 query and output, oracle query and output.
    SELECT top 5
    P.process_id AS Ppid,
    P.name AS Pn,
    P.group_id AS Pg,
    P.locked AS Pl,
    P.build AS Pb,
    100 AS qcount,
    200 AS ocount,
    PI.question_id AS PIqid,
    PI.process_id AS PIpid,
    PI.posx AS PIpx,
    PI.posy AS PIpy,
    PI.innertext AS PItext,
    PI.itemtype AS PItype,
    PI.linkfrom AS PIfrom,
    PI.linkto AS PIto,
    PI.associated AS PIas,
    PI.content_id AS PIc,
    PI.exitpoint1_id AS PIe1,
    PI.exitpoint2_id AS PIe2,
    PI.exitpoint3_id AS PIe3,
    PI.resolveidentifier AS PIri,
    PI.libquestion_idfk AS PIlqid,
    PI.followoncall AS PIfoc,
    PI.userinput AS PIui,
    PI.isLocked AS PIstls,
    PI.PreviousAnswer as PIPAns,
    PI.VisibleToAgent as PIVAgent,
    PI.RetryAttempt as PIRetry,
    PI.Tags as PITag,
    PO.option_id AS POoid,
    PO.question_id AS POqid,
    PO.process_id AS popid,
    PO.posx AS POpx,
    PO.posy AS POpy,
    PO.opt_innertext AS POtext,
    PO.opt_linkfrom AS POfrom,
    PO.opt_linkto AS POto,
    PO.libquestion_idfk AS POlqid,
    PO.liboption_idfk AS POloid
    FROM
    dbo.processes_ec AS P WITH (nolock) INNER JOIN
    dbo.vw_ProcessesQuestions_Simulator_v6 AS PI WITH (nolock)
    ON P.process_id = PI.process_id LEFT OUTER JOIN
    dbo.vw_ProcessesOptions_Simulator_v6 AS PO WITH (nolock)
    ON PI.question_id = PO.question_id AND PI.process_id = PO.process_id
    ORDER BY Ppid, PIqid, POoid ASC
    FOR XML AUTO, ELEMENTS
    O/P
    <P>
    <Ppid>450</Ppid>
    <Pn>CBB1015 - Router Firewall Settinngs Process</Pn>
    <Pg>9</Pg>
    <Pl>0</Pl>
    <Pb>5</Pb>
    <qcount>100</qcount>
    <ocount>200</ocount>
    <PI>
    <PIqid>1</PIqid>
    <PIpid>450</PIpid>
    <PIpx>366</PIpx>
    <PIpy>-516</PIpy>
    <PItext>CBB1015 - Router Firewall Settinngs Process</PItext>
    <PItype>Title</PItype>
    <PIto>2</PIto>
    <PO />
    </PI>
    <PI>
    <PIqid>2</PIqid>
    <PIpid>450</PIpid>
    <PIpx>366</PIpx>
    <PIpy>-437</PIpy>
    <PItext>Is the customers PC Firewall turned off?</PItext>
    <PItype>Question</PItype>
    <PIfrom>1</PIfrom>
    <PIto>2.2,2.1</PIto>
    <PO>
    <POoid>1</POoid>
    <POqid>2</POqid>
    <popid>450</popid>
    <POpx>-50</POpx>
    <POpy>70</POpy>
    <POtext>Yes</POtext>
    <POto>5</POto>
    </PO>
    <PO>
    <POoid>2</POoid>
    <POqid>2</POqid>
    <popid>450</popid>
    <POpx>50</POpx>
    <POpy>70</POpy>
    <POtext>No</POtext>
    <POto>3</POto>
    </PO>
    </PI>
    <PI>
    <PIqid>3</PIqid>
    <PIpid>450</PIpid>
    <PIpx>468</PIpx>
    <PIpy>-344</PIpy>
    <PItext>Advise the customer to turn off the PC Firewall in order to continue. Has this been done?</PItext>
    <PItype>Question</PItype>
    <PIfrom>2.2</PIfrom>
    <PIto>3.2,3.1</PIto>
    <PIc>278</PIc>
    <PO>
    <POoid>1</POoid>
    <POqid>3</POqid>
    <popid>450</popid>
    <POpx>-50</POpx>
    <POpy>70</POpy>
    <POtext>Yes</POtext>
    <POto>5</POto>
    </PO>
    <PO>
    <POoid>2</POoid>
    <POqid>3</POqid>
    <popid>450</popid>
    <POpx>50</POpx>
    <POpy>70</POpy>
    <POtext>No</POtext>
    <POto>4</POto>
    </PO>
    </PI>
    </P>
    Oracle query and output
    select DBMS_XMLGEN.getxml('select * from (SELECT
    P.process_id AS Ppid,
    P.name AS Pn,
    P.group_id AS Pg,
    P.locked AS Pl,
    P.build AS Pb,
    100 AS qcount,
    200 AS ocount,
    PI.question_id AS PIqid,
    PI.process_id AS PIpid,
    PI.posx AS PIpx,
    PI.posy AS PIpy,
    PI.innertext AS PItext,
    PI.itemtype AS PItype,
    PI.linkfrom AS PIfrom,
    PI.linkto AS PIto,
    PI.associated AS PIas,
    PI.content_id AS PIc,
    PI.exitpoint1_id AS PIe1,
    PI.exitpoint2_id AS PIe2,
    PI.exitpoint3_id AS PIe3,
    PI.resolveidentifier AS PIri,
    PI.libquestion_idfk AS PIlqid,
    PI.followoncall AS PIfoc,
    PI.userinput AS PIui,
    PI.isLocked AS PIstls,
    PI.PreviousAnswer as PIPAns,
    PI.VisibleToAgent as PIVAgent,
    PI.RetryAttempt as PIRetry,
    PI.Tags as PITag,
    PO.option_id AS POoid,
    PO.question_id AS POqid,
    PO.process_id AS popid,
    PO.posx AS POpx,
    PO.posy AS POpy,
    PO.opt_innertext AS POtext,
    PO.opt_linkfrom AS POfrom,
    PO.opt_linkto AS POto,
    PO.libquestion_idfk AS POlqid,
    PO.liboption_idfk AS POloid
    FROM
    processes_ec P INNER JOIN
    vw_ProcessesQuestions_Sim_v6 PI
    ON P.process_id = PI.process_id LEFT OUTER JOIN
    vw_ProcessesOptions_Sim_v6 PO
    ON PI.question_id = PO.question_id AND PI.process_id = PO.process_id
    ORDER BY Ppid, PIqid, POoid ASC) where rownum<=5') from dual
    O/P
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <PPID>450</PPID>
    <PN>CBB1015 - Router Firewall Settinngs Process</PN>
    <PG>9</PG>
    <PL>0</PL>
    <PB>5</PB>
    <QCOUNT>100</QCOUNT>
    <OCOUNT>200</OCOUNT>
    <PIQID>1</PIQID>
    <PIPID>450</PIPID>
    <PIPX>366</PIPX>
    <PIPY>-516</PIPY>
    <PITEXT>CBB1015 - Router Firewall Settinngs Process</PITEXT>
    <PITYPE>Title</PITYPE>
    <PITO>2</PITO>
    </ROW>
    <ROW>
    <PPID>450</PPID>
    <PN>CBB1015 - Router Firewall Settinngs Process</PN>
    <PG>9</PG>
    <PL>0</PL>
    <PB>5</PB>
    <QCOUNT>100</QCOUNT>
    <OCOUNT>200</OCOUNT>
    <PIQID>2</PIQID>
    <PIPID>450</PIPID>
    <PIPX>366</PIPX>
    <PIPY>-437</PIPY>
    <PITEXT>Is the customers PC Firewall turned off?</PITEXT>
    <PITYPE>Question</PITYPE>
    <PIFROM>1</PIFROM>
    <PITO>2.2,2.1</PITO>
    <POOID>1</POOID>
    <POQID>2</POQID>
    <POPID>450</POPID>
    <POPX>-50</POPX>
    <POPY>70</POPY>
    <POTEXT>Yes</POTEXT>
    <POTO>5</POTO>
    </ROW>
    <ROW>
    <PPID>450</PPID>
    <PN>CBB1015 - Router Firewall Settinngs Process</PN>
    <PG>9</PG>
    <PL>0</PL>
    <PB>5</PB>
    <QCOUNT>100</QCOUNT>
    <OCOUNT>200</OCOUNT>
    <PIQID>2</PIQID>
    <PIPID>450</PIPID>
    <PIPX>366</PIPX>
    <PIPY>-437</PIPY>
    <PITEXT>Is the customers PC Firewall turned off?</PITEXT>
    <PITYPE>Question</PITYPE>
    <PIFROM>1</PIFROM>
    <PITO>2.2,2.1</PITO>
    <POOID>2</POOID>
    <POQID>2</POQID>
    <POPID>450</POPID>
    <POPX>50</POPX>
    <POPY>70</POPY>
    <POTEXT>No</POTEXT>
    <POTO>3</POTO>
    </ROW>
    <ROW>
    <PPID>450</PPID>
    <PN>CBB1015 - Router Firewall Settinngs Process</PN>
    <PG>9</PG>
    <PL>0</PL>
    <PB>5</PB>
    <QCOUNT>100</QCOUNT>
    <OCOUNT>200</OCOUNT>
    <PIQID>3</PIQID>
    <PIPID>450</PIPID>
    <PIPX>468</PIPX>
    <PIPY>-344</PIPY>
    <PITEXT>Advise the customer to turn off the PC Firewall in order to continue. Has this been done?</PITEXT>
    <PITYPE>Question</PITYPE>
    <PIFROM>2.2</PIFROM>
    <PITO>3.2,3.1</PITO>
    <PIC>278</PIC>
    <POOID>1</POOID>
    <POQID>3</POQID>
    <POPID>450</POPID>
    <POPX>-50</POPX>
    <POPY>70</POPY>
    <POTEXT>Yes</POTEXT>
    <POTO>5</POTO>
    </ROW>
    <ROW>
    <PPID>450</PPID>
    <PN>CBB1015 - Router Firewall Settinngs Process</PN>
    <PG>9</PG>
    <PL>0</PL>
    <PB>5</PB>
    <QCOUNT>100</QCOUNT>
    <OCOUNT>200</OCOUNT>
    <PIQID>3</PIQID>
    <PIPID>450</PIPID>
    <PIPX>468</PIPX>
    <PIPY>-344</PIPY>
    <PITEXT>Advise the customer to turn off the PC Firewall in order to continue. Has this been done?</PITEXT>
    <PITYPE>Question</PITYPE>
    <PIFROM>2.2</PIFROM>
    <PITO>3.2,3.1</PITO>
    <PIC>278</PIC>
    <POOID>2</POOID>
    <POQID>3</POQID>
    <POPID>450</POPID>
    <POPX>50</POPX>
    <POPY>70</POPY>
    <POTEXT>No</POTEXT>
    <POTO>4</POTO>
    </ROW>
    </ROWSET>
    Any help really appreciated.
    Thanks in advance

    Here are the links ->
    http://www.psoug.org/reference/xml_functions.html
    http://www.psoug.org/reference/dbms_xmlgen.html
    http://www.adp-gmbh.ch/ora/sql/xmlelement.html
    http://www.oracle-base.com/articles/9i/SQLXML9i.php
    http://download.oracle.com/docs/cd/B10500_01/appdev.920/a96620/toc.htm
    Regards.
    Satyaki De

  • Xml output from smartforms

    Hi,
    I need to get xml (xsf?) output from I-SU Print Workbench/Smartforms document. Has anybody done this? I would apriciate some hints of how to solve this?
    regards,
    erki

    Hello Erki,
                      This is how i did it.
    data :  s_archive_index     TYPE toa_dara,
           s_archive_index_tab TYPE tsfdara,
           s_archive_params    TYPE arc_params,
           s_control_param     TYPE ssfctrlop,
           s_mail_appl_obj     TYPE swotobjid,
           s_mail_recipient    TYPE swotobjid,
           s_output_options    TYPE ssfcompop,
           s_mail_sender       TYPE swotobjid,
           s_doc_output_info   TYPE ssfcrespd,
           s_job_output_info   TYPE ssfcrescl,
           l_line(1024)        TYPE C,
           l_table             like table of l_line,
           xsf_line            like line of s_job_output_info-xsfdata.
    s_output_options-xsfcmode = 'X'.
         s_output_options-xsf      = 'X'.
         s_output_options-xsfoutmode  = 'A'.
         s_output_options-XSFFORMAT  = 'X'.
        CALL FUNCTION v_fm_name
         EXPORTING
           ARCHIVE_INDEX              = s_archive_index
           ARCHIVE_INDEX_TAB          = s_archive_index_tab
           ARCHIVE_PARAMETERS         = s_archive_params
           CONTROL_PARAMETERS         = s_control_param
           MAIL_APPL_OBJ              = s_mail_appl_obj
           MAIL_RECIPIENT             = s_mail_recipient
           MAIL_SENDER                = s_mail_sender
           OUTPUT_OPTIONS             = s_output_options
           USER_SETTINGS              = 'X'
           LV_SALES                   = p_sales
           LV_PADDR                   = v_address_num
           LV_ADRNR                   = v_adrnr
           LV_EQUNR                   = v_equnr
           LV_SERNR                   = v_sernr
         IMPORTING
           DOCUMENT_OUTPUT_INFO       =  s_doc_output_info
           JOB_OUTPUT_INFO            =  s_job_output_info
         EXCEPTIONS
           FORMATTING_ERROR           = 1
           INTERNAL_ERROR             = 2
           SEND_ERROR                 = 3
           USER_CANCELED              = 4
           OTHERS                     = 5              .
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    loop at s_job_output_info-xsfdata into xsf_line.
      l_line = xsf_line.
      append l_line to l_table.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME                        = 'C:\temp\test.xml'
       TABLES
         DATA_TAB                        = l_table.

  • How do I read a report's XML Output from a procedure?

    I am using E-Business suite 11.5.10.2 and XMLP 5.5. I have a report that will output XML. When this report is run, I can click the 'View Output' button and view the XML. This appears to be a temp file somewhere, because the temp id in the URL changes each time a new report is run. Here's my problem: After running this report, I want to execute a procedure that will loop through the XML output and transform it into HTML. I will then output this HTML to the screen. But I'm not sure how to pass this file as a parameter to my procedure.
    Is there anyway to allow a procedure to consume the XML output?
    The reason I'm trying to do this, is because we need to transform certain reports into Excel format. This is becoming a critical issue. After testing, I found that if I can extract data into an HTML table and display it on the screen, it dumps perfectly into Excel. I tested it using a cursor, but that won't work for production reports. There is a ton of logic built into these Oracle reports, so I need to go the XML route after running the report.
    Looking at previous posts, the current Excel output process seems to be a bit buggy. And, we can not upgrade to Excel 2003 at this time.
    Any ideas would be greatly appreciated!!!
    Thanks.
    Mark K

    Hello Klaus. I appreciate your response. While I'm no expert with XMLP, I have created about 8 production reports using XMLP. I am using XMLP 5.5, and not 5.6.1 I am using Excel 2002 and not Excel 2003. From other posts (shown below), it is my understanding that the Excel output may have bugs unless you're using XMLP 5.6.1 and Excel 2003.
    Please see the following posts for more information:
    Re: EXCEL output not displaying properly
    Excel output in 5.6 version
    Also, when I tried to output to Excel using my desktop version, I received an error message. But, when I switch to PDF format, it opens just fine.
    We are not prepared to upgrade Excel and/or install another patch for XMLP at this time. If I can do what I need to do programmatically, I will have much more leverage when it comes to troubleshooting. On the other hand, when I run into a bug with Oracle software, I usually have to wait for a patch.
    Thanks again.
    Mark K.

  • 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

  • XML output from conc request too large

    We are running an AP trial balance conc request with output type of XML. Once the parameters are entered for this report, it is only a couple page report when running output as text. But when it's run as XML output for the same params, I get over 10K+ pages in the output, too much that I cannot export it. I've tried several different parameters to make the report even shorter but the XML output is always over 10K pages. Is there a way to limit what comes out in the XML or not include DFF's in it? That's what seems to be taking up most of the space.
    Thanks,
    TSM

    Check for any format trigger, which restrict the data when you execute the report int text mode.
    -Ashish

  • Costomize xml output from CS4

    CS4 has a feature to save into xml (.aepx), however, it is not the standard xml. Is there a way to write a plug-in to output xml in a customized format? Thx, Mark

    Hi,
    There are two ways you may want to go, depending on your requirement:
    - If you have relatively small elements in the XML file, then you may be able to generate a list of tags (generated from expressions) in Warehouse Builder and target the flat file. This will not work if your elements exceed a large number (this may be 4000 characters; not sure).
    - Use a post mapping process to create the file using the XML SQL utility.
    I have to admit that Warehouse Builder's support in this area has room for improvement. Hence, I would suggest you select the second option (unless you think the first one could fit your requirement; typically it does not).
    Thanks,
    Mark.

  • XML output from Oracle 8.1.6

    I need to generate XML from oracle 8.1.6 and place the output into a file on NT directory. The RDBMS is running on SUN 2.7 (Solaris7).
    What is the best approach to accomplish this?
    I am new to XML, any sample code is greatly appreciated.
    Thanks for your help.
    null

    If you want to write the code yourself, you can download the XML SQL Utility and write Java code (or use its PL/SQL api) to accomplish this.
    You can also download the XSQL Pages technology and do it declaratively.
    If you want to create XML for a query
    like:
    SELECT * FROM EMP
    then with XSQL Pages you create a template
    page like this:
    <!-- MyQuery.xsql -->
    <xsql:query connection="myDB" xmlns:xsql="urn:oracle-xsql">
    SELECT * FROM EMP
    </xsql:query>
    And then you can use the "xsql" command-line
    utility to process the page and write the
    output into a file like this:
    $ xsql MyQuery.xsql MyOutputFile.xml
    null

Maybe you are looking for

  • Cursor in if statement with two sql statements

    if :v_project_number ='ALL' then cursor c1 is select * from gl_je_lines gjl where   nvl(gjl.attribute10,1) in(select decode(:v_project_number,'ALL',nvl(gjl.attribute10,1),:v_project_number) from dual)    else if :v_project_number !='ALL' then cursor

  • Stock Pegging Report for Vendor Stock in Subcontractor scenario

    Hello all, As we know, CTM pegs the component inventory available with subcontractor when the parent FG demand drops in. Now, my requirement is can we extract a report that can give the details of all demands that are pegged to the stock? 1. This rep

  • Setting a reverse counter of the # of characters as form is being filled.

    Hi, This question maybe a little strange. I was wondering, if it's possible to have a <counter> that counts the # of characters as it<s being typed into the field that I'll create in a form using Acrobat Pro. I've seen this function before, but in ot

  • Searching TREX Index through Web Dynpro

    Hi experts, I'm trying to search through my TREX indexes with Web Dynpro. I have found some sources on this website and they seem to work, but when I test my Application, the table I want to fill stays empty. The strange thing is that the "getNumberR

  • PDF vs. Flash

    Project: Interactive CD-ROM Programs: Adobe 9 or Flash We will be creating and designing an interactive CD-ROM. The original document will be a word document. After designing and formatting the text, we will end up having a 100 page document. The end