FTP XML output

EBS 11.5.10.2
XMLP 5.6.3

Hi all

I have a situation where I need to FTP the definition of data model XML output to a remote site. (There is no model site)

I would have used bursting to do this, but the burst XML is not supported. What I came up with is rather: in my trigger after report, I use fnd_request.submit_request to submit a simultaneous 'child' program that calls a script host at the exit of the concurrent parent of ftp program.
(I also have a history table when I connect a key to each row of data sent via ftp, so I don't ftp a line twice).

It appeared large worked until I decided to use fnd_concurrent.wait_for_request to make my program for parents to wait my ftp program for.
My intention was to remove lines from the history table when the children ftp program ends normally, so that the next time that my parent program is running, it would be "try again" on these same lines.

What REALLY happened after that I put in the wait_for_request, it is that child ftp program would always download a file of 0 bytes. I think that what happened was that, given that this logic is to relax after report, my XDODTEXE file had not yet finished running, so he didn't rinse out memory data in the output file.

SO my question is:
Is there someone out there who has something like this work?

Right now my options are:
(1) find a place that I can use wait_for_request that happens AFTER XDODTEXE is finished.
(2) find a way to get XDODTEXE to purge there output buffer
(3) not to use XML Publisher (I decided to try XMLP because the implementation of the def of data was so easy)

Any ideas?

Steve

Your script host will have apps user and password name and request_id passed as parameters, then it can go through the files to call the FTP script, then call SQL * more using apps name of user and password for update history table as appropriate (to identify the name of file/request_id line).

Kind regards
Gareth

Tags: Business Intelligence

Similar Questions

  • IBY_FD_PAYMENT_FORMAT_TEXT xml output

    Hello

    IBY_FD_PAYMENT_FORMAT_TEXT used to always save the XML output, generally as follows:

    ....

    No extract has been created beforehand. Create extract. Timestamp: Wed Mar 05 12:42:20 WST 2014

    Size of the product extract - doc::590376

    After create extract, extract is not null.

    Check-in first 1 MB of generated excerpt below:

    ==================

    <? XML version = "1.0" encoding = "UTF-8"? > < OutboundPaymentInstruction...

    After application of a number of CPP (17167654 & 17176017), the XML is no longer registered in the log file.  The log looks like:

    ...

    No extract has been created beforehand. Create extract. Timestamp: Kills Mar 04 15:59:21 WST 2014

    Size of the product extract - doc::23158

    After create extract, extract is not null.

    Start formatting. Timestamp: Kills Mar 04 15:59:25 WST 2014

    Before formatting: Timestamp: kills Mar 04 15:59:25 WST 2014

    Model type: ETEXT

    ...

    Anyone would offer any suggestion as to how restore us this connected XML functionality?

    Thank you

    Hello

    This change was due to a fix implemented in bug 11828195. They have limited xml extracts to be included in the payment format logs instructions when FND 'Statement' debug level is ONE, then the section of code that primts the xml extracted for the log file is included when the FDFormatProgramUtils.java file is version 120.35.12010000.34 or 12.0.x, version 120.30.12000000.39 and more.

    You can still see, but you will need to turn on statement-level debugging.

    Cheryl

  • Adding namespace to the XML output

    Hello

    I have a requirement to generate an XML document for the columns in the table. I use DBMS_XMLgen.getXML inside my procedure to get the XML document.

    The result I get after my procedure is:

    <? XML version = "1.0"? >
    < EMP >
    < EMPLOYEE_NO > 000017 < / EMPLOYEE_NO >
    ASSETS of < EMPLOYEE_STATUS > < / EMPLOYEE_STATUS >
    Mini < NAME_LAST > < / NAME_LAST >
    < NAME_FIRST / >
    < / EMP >

    But I also need to prefix and uri of namespace in the xml output. Is it possible to add the prefix and namespace uri to the xml output.

    So what I need, is something like below one:

    <? XML version = "1.0"? >
    < xs:EMP > xmlns: out = "http://xmlns:out="http:/example.org/ver1.0/ThisISTest#">
    < xs:EMPLOYEE_NO > 000017 < / xs:EMPLOYEE_NO >
    ACTIVE < xs:EMPLOYEE_STATUS > < / xs:EMPLOYEE_STATUS >
    Mini < xs:NAME_LAST > < / xs:NAME_LAST >
    < xs:NAME_FIRST / >
    < / xs:EMP >


    Any solutions or examples of code on it would be a great help.

    Thanks in advance.

    Strange...

    OK, back to the basics:

    What is your version of db (all four digits please)?

    The following gives the expected result?

    select xmltype('
    
    000017
    ACTIVE
    Mini
    
    ').transform(
     xmltype(
    '
    
    
    
    
    
    
    '
     )
    ).getClobVal()
    from dual;
    
  • How to hide a column in a RTF based XML output

    I have a XML output that has a column called STATE of a "REJECTED" or "PROCESSED"

    I have another column called REJECT_DESC. This is null when the State is PROCESSED and it fits the description of rejection if the status of this line is REJECTED.

    In a RTF I want to show if the value of REJECT_DESC if the line has a status of "REJECTED".

    How can I show only this column when she is rejected?

    I have the group by the State, so the report separates the lines... but how to hide the column? I don't want a column null

    Thank you

    I think that the STATUS will be same in the XML data, and you have two lines in your table. A line for all the column headings and another line for repeating group for these column values. So you can simply keep,

    Reject the Description //row1 the title of column
    row2 column values

  • Value XML output

    I'm not so familiar with XML output and can manage the outputs of the base, but has problems with the child.

    I want the void of great photo width and height value. How?

    Thanks in advance.

    Cool. Thank you.

    myItems . Picture.Large.XmlAttributes.Height

  • The results in the debugger do not correspond with the result in the xml output is spent OPA


    Hello

    I use the OPM Version 10.4.6. I am facing a problem where I have a result field which is calculated by OPM in session of the debugger gives the correct result. While the same field has a different value in the output xml file passed from OPA to another system. Please give some advice on above question.

    Kind regards

    Mounia

    Sorry, I did not respond earlier. Do you have a support call opened in this regard, otherwise there is someone who has a very similar problem.

    I answered internally on this and the problem seems to be that of mathematical accuracy and very low values, which are then compared with zero. The debugger uses a .net implementation that can give slightly different numerical values at the extremes. I think that your rules would benefit from a degree of rounding applied before you test for equality with anything. Note the type of value that I've seen is 4-16

    I have provided more information to Schneider, who also provided a (Simplified) modules and some sample data.

    The debugger uses essentially the same engine of determinations and in general, you will see exactly the same result except that you've discovered to some extremely small numbers. In your case even if the value is 4-16 in the debugger and 0 in the API (or vice versa) the effect that has on the logic is that a single value is zero, so that the other does not which translates an extra 1000 added and results of 1000 and 2000 respectively.

    Concerning

    Ian

  • Report XML output problem

    Hello
    I am trying to execute the XML (work order print report eAM) report this report had parameters (name work order / on behalf of the work order) that allow me to run more State control work.
    but when I chose for example parameters
    Parameters: Name (UF1) work order / / / name of the order (UF5) work
    It must be good work 5 printing

    but problem is work order 1 print output only when I use the XML model alone, even if it must print 5 work as input parameters but the models show that 1 out of work order ...

    If I remove the template and change the output format of text report output run successfully.

    Thank you

    Thanks Farhan. problem solved by added repeating group.

  • Querying XML output

    Hi people,

    I have a SOAP output stored in the sample table in columns of type CLOB, RESP as XMLTYPE

    SQL > desc TEST_CLOB

    Name Type Nullable default comments

    ----- ------- -------- ------- --------

    TCLOB CLOB Y

    THE XMLTYPE XML Y

    Output XML looks like:

    "< xmlns:soap: envelope soap = 'http://schemas.xmlsoap.org/soap/envelope/' > '.

    < soap: Body >

    < checkVatResponse xmlns = "urn:ec.europa.eu:taxud:vies:services:checkVat:types" >

    < countryCode > CZ < / countryCode >

    < > 123456789 vatNumber < / vatNumber >

    < requestDate > 2013-11-08 + 01:00 < / requestDate >

    < valid > true < / valid >

    < name > Omacka, s.r.o. < / name >

    Brno < address > < / address >

    < / checkVatResponse >

    < / soap: Body >

    < / envelope soap: >

    I would like to ask for field < invalid > :

    Select x.*

    of TEST_CLOB t

    XMLTABLE (xmlnamespaces)

    "http://schemas.xmlsoap.org/soap/envelope/" as "SOAP."

    , 'urn:ec.europa.eu:taxud:vies:services:checkVat:types' as 'xx '.

    )

    ,'/: soap envelope / soap: Body / xx:checkVatResponse'

    PASSAGE t.txml

    COLUMNS

    VARCHAR2 (100) valid "valid" PATH) x

    So far, a null result returned.

    Please suggest what to change.

    Kind regards

    Tomas

    The element belongs to the namespace 'xx' as well, so:

    valid varchar2 (100) PATH ' xx: valid '

    NB: you can also declare a namespace by default so that you don't have to precede these elements.

  • XML output - two classes, a different output.  CDATA appears

    I'm developing a java class to export data to an xml file. Finally, I intend to connect it to the iteration of a display object and export the data from the data in the xml file. Since the data can have many formats, I'm trying to export in a CData element.

    I have two projects open in Jdeveloper. A sample where I developed the xml file, then a model ADF project. I put the class in the same package as the module of the application. (eventually I hope get this job by a button in a form).

    The output of the XML file should look like this:

    <? XML version = "1.0" encoding = "UTF-8"? >
    -lesson > < name > Jdev < / name > < description > Learn Jdev! < / description >
    -< card >
    frontside data < frontside > < / frontside >
    -< back >
    * <! [CDATA [cdatatest BILHIRD adfadfadfa adfadsfadf adsfadfadfsadsf adfadfadf]] > *.
    * < / rear > *.
    < / map >
    < / lesson >

    The problem is the output of the java class in the application module package doesn't produce the CDATA section.
    It produces

    * < back > cdatatest BILHIRD adfadfadfa adfadsfadf adsfadfadfsadsf adfadfadf < / rear > *.

    The code is EXACTLY the same. I checked the properties of each project to see if there are different libraries (the app module had a bunch, none for the other).

    Puzzled in New Jersey. Would appreciate any help! Thank you
    Stuart

    Here is my code:
    public void WriteDBDataToXML() {}
    try {}
    DocFactory DocumentBuilderFactory = DocumentBuilderFactory.newInstance ();
    DocumentBuilder docBuilder = docFactory.newDocumentBuilder ();

    root elements
    Doc document = docBuilder.newDocument ();
    Element rootElement = doc.createElement ("lesson");
    doc.appendChild (rootElement);

    name components
    Element name = doc.createElement ('name');
    name.appendChild (doc.createTextNode ("Jdev"));
    rootElement.appendChild (name);

    elements of description
    Description of the element = doc.createElement ("description");
    description.appendChild (doc.createTextNode ("Learn Jdev!"));
    rootElement.appendChild (description);

    Element card = doc.createElement ('card');
    rootElement.appendChild (card);

    Element frontside = doc.createElement ("frontside");
    frontside.appendChild (doc.createTextNode ("frontside data"));
    card.appendChild (frontside);

    Back of the element = doc.createElement ("backside");
    backside.appendChild (doc.createTextNode ("back data"));
    card.appendChild (backside);

    This is test for cdata and comments and text...
    CDATASection cdataNode = doc.createCDATASection ("cdatatest BILHIRD adfadfadfa adfadsfadf adsfadfadfsadsf adfadfadf");
    backside.appendChild (cdataNode);

    write the content in the xml file
    TransformerFactory transformerFactory = TransformerFactory.newInstance ();
    Transformer transformer = transformerFactory.newTransformer ();
    DOMSource source = new DOMSource (doc);
    StreamResult result = new StreamResult (new File("C:\\temp\\works.xml"));)
    transform. Transform (source, result);
    } catch (ParserConfigurationException pce) {}
    pce.printStackTrace ();
    } catch (TransformerException tfe) {}
    tfe.printStackTrace ();
    }

    Published by: Stuart on May 14, 2012 18:59

    Published by: Stuart on May 14, 2012 18:59

    Published by: Stuart on May 14, 2012 19:05

    CDATA section is to escape the characters... so its ok if you do not have added to the xml generated... but output CDATA section when you have the charactr as > &< the="" nit="" gets="" escaped="" to="" >="" &="">
    the output you get is valid.
    http://StackOverflow.com/questions/3858290/cretion-CDATA-section-confusing
    for your second question, you can add

    doc.setXmlStandalone(true);
    

    by default, the value is "false".

  • XML output

    Dear masters,

    I need an output xml, as shown below using EMP, dept of standard tables. I have to write a query to get the result. I put examples of data in the output tags, no accurate data as in the tables. Please help me

    *_OUTPUT: _ * _

    < files >
    account <>
    < dname > 10 < / dname >
    < listItems >
    < listItem > < ename > ALLEN < / ename > < job > SELLER < / job > < sal > 5000 < / sal > / listItem >
    < listItem > < ename > WARD < / ename > < job > SELLER < / job > < sal > 8000 < / sal > / listItem >
    < / listItems >
    < / recording >
    account <>
    < dname > 20 < / dname >
    < listItems >
    < listItem > < ename > MARTIN < / ename > < job > SELLER < / job > < sal > < / sal > / listItem >
    < listItem > < ename > CLARK < / ename > < job > MANAGER < / job > < sal > < / sal > / listItem >
    < / listItems >
    < / recording >
    ...
    < / documents >

    Something like this:

    select xmlelement("records",
             xmlagg(
               xmlelement("record",
                 xmlelement("dname", d.dname)
               , xmlelement("listItems",
                   xmlagg(
                     xmlelement("listItem",
                       xmlelement("ename", e.ename)
                     , xmlelement("job", e.job)
                     , xmlelement("sal", e.sal)
                     )
                     order by e.empno
                   )
                 )
               )
               order by d.dname
             )
           )
    from dept d
         left outer join emp e on e.deptno = d.deptno
    group by d.dname
    ;
    
  • XML output format

    Hello world

    I wrote this query

    SELECT XMLElement ("xbrli:xbrl",
    XMLAttributes ("http: / /...") "AS
    "xsi: schemaLocation",.
    "http://...". "AS
    "xmln:n1,"
    "" "" as id_num
    )
    ) AS THE 'RESULT '.
    OF hr.employees
    WHERE department_id = 10;

    is the not well formatted outputis, possible to put CR or new line? because I want to export the result to an XML file
    and also in the output, I see ID_NUM = "& quot; & quot; "and I want to have ID_NUM =" ' how can I achieve this? "

    Thanks in advance

    MDK.

    I agree with Mark D. here, but in case you really need for some reason...

    I added the declaration of namespaces in an element root in order to obtain a valid document:

    SQL> SELECT insertChildXML(
      2           xmlelement("root",
      3                      xmlattributes( 'ns1' as "xmlns:link",
      4                                     'ns2' as "xmlns:xlink" ),
      5             xmlelement("link:abc")
      6           ),
      7           '/root/link:abc',
      8           '@xlink:a',
      9           '',
     10           'xmlns:link="ns1", xmlns:xlink="ns2"'
     11         ) result
     12  FROM dual
     13  ;
    
    RESULT
    --------------------------------------------------------------------------------
    
     
    

    In addition, outputs XMLSerialize empty elements with self-closing tags if the option [NO] INDENT is specified (it doesn't seem to be documented however):

    SQL> select xmlserialize(document xmltype('') as clob no indent) result from dual;
    
    RESULT
    --------------------------------------------------------------------------------
    
     
    

    Published by: odie_63 on 11 nov. 2010 17:33

  • XML output with several categories

    I'm driving myself crazy trying to figure it out and I can't seem to find much on the internet is useful. Sometimes, there is 1 category and sometimes there may be 2.

    For example:

    < section >
    < title > study: ban on cell phone use did not reduce the accident rate < / section >
    < date > 02/01/2010 < / Date >
    < content > content about the use of the cell phone. < / Summary >
    < categories >
    < category ID = "438024898" > general Auto News < / category >
    < category ID = "438022448" > Electronics < / category >
    < / categories >
    < / item >

    I set myitems with xml search and can happen to everything below about exit perfectly, except for the multiple categories.

    < = cfloop '1' to = "#arrayLen (myItems) ' # ' index 'i' = >"

    #myItems [i]. Heading.XmlText #.

    #myItems [i]. Categories.Category.xmltext # this outputs only the first, but I can't seem to get the second.

    < / cfloop >

    Thanks for any help in advance!

    
    

    OR

    #myItems[i].Categories.Category[1].xmltext#
    #myItems[i].Categories.Category[2].xmltext#
    

    Category is just a nested table as your myItems was.

    Or you could do an another xmlSearch if you prefer.

  • Conversion of XML output SQL output

    Hello

    How to convert the result of the SQL query in XML format? Pl help.

    Thank you
    Mano

    You use DBMS_XMLGEN, you can generate the output XML form.

    SQL> SELECT * FROM CUSTOMER;
    
    C  D1         D2
    -- ---------- ----------
    c1 01/04/2009 01/04/2009
    c2 01/04/2009 02/04/2009
    c3 01/04/2009 02/04/2009
    c4 01/04/2009 02/04/2009
    
    SQL> select dbms_xmlgen.getxml('select c,d1,d2 from customer') xml FROM DUAL;
    
    XML
    --------------------------------------------------------------------------------
    
    
     
      c1
      01/04/2009
      01
    
    SQL> 
    

    Other means, also refer
    http://www.stylusstudio.com/sqlxml_tutorial.html

  • Published XML output path

    Does anyone know where the output XML (Path) the publication resides for FSG reports? I set my output published to be an Excel file. I am not able to find it.

    Thank you, Naveen.

    In EBS, normally it must be less than $APPLCSF / out - the file could still be as o.out but contains excel or pdf output... correctly displayed in EBS depending on the configuration of the Viewer.

    Kind regards
    Rownald

  • Has no XML output

    Hey gurus,

    No data output generated (serveroutput on) the following when trying to parse XML to data entry. Any help would be greatly appreciated.


    XML input parameter:

    < PUDOINPUT >
    < SHIPMENTDETAILS >
    < PKG >
    < CARRIER > UPS Europe < / CARRIER >
    < SERVICE_LEVEL > UPS Next Day Air < / SERVICE_LEVEL >
    < ORDERNUMBER 12345678 > < / ORDERNUMBER >
    < SHIPMENTID > 87346571 < / SHIPMENTID >
    < ITEM >
    < ORDERLINEID > 13344526 < / ORDERLINEID >
    < ITEMID > 554298 < / ITEMID >
    < LPN > 554298 < / LPN >
    < PICKING_LINE_DETAIL_ID > 554298 < / PICKING_LINE_DETAIL_ID >
    < QUANTITY > 1 < / QUANTITY >
    < / POINT >
    < / PKG >
    < / SHIPMENTDETAILS >
    < / PUDOINPUT >


    Stored procedure:

    create or replace procedure spl_pudo_wms_input (order_details in xmltype)
    is
    Start
    because me in (select xmltype.extract(value(a),'/CARRIER/TEXT()').getstringval () as a carrier,
    XmlType.Extract(value(a),'/SERVICE_LEVEL/Text () '). GETSTRINGVAL() as service_level,
    XmlType.Extract(value(a),'/ORDERNUMBER/Text () '). GETSTRINGVAL() like ordernumber,
    XmlType.Extract(value(a),'/SHIPMENTID/Text () '). GETSTRINGVAL() as shipmentid,
    XmlType.Extract(value(a),'/ItemId/Text () '). GETSTRINGVAL() as itemid,
    XmlType.Extract(value(a),'/Item/LPN/Text () '). GETSTRINGVAL() as lpn,
    XmlType.Extract(value(a),'/Item/PICKING_LINE_DETAIL_ID/Text () '). GETSTRINGVAL() as picking_line_detail_id,
    XmlType.Extract(value(a),'/Item/Quantity/Text () '). GETSTRINGVAL() as quantity,
    XmlType.Extract(value(a),'/Item/UPDATE_FLAG/Text () '). GETSTRINGVAL() as update_flag
    table (xmlsequence (order_details.extract ("/ PUDOINPUT/SHIPMENTDETAILS/PKG '))) a)
    loop
    dbms_output.put_line (' carrier: ' | i.Carrier);
    dbms_output.put_line (' service level: ' | i.service_level);
    dbms_output.put_line (' order number: ' | i.OrderNumber);
    dbms_output.put_line ('shipmentid: ' | i.shipmentid);
    dbms_output.put_line ('itemid: ' | i.ItemId);
    dbms_output.put_line ('lpn: ' | i.LPN);
    dbms_output.put_line ('picking_line_detail_id: ' | i.picking_line_detail_id);
    dbms_output.put_line (' quantity: ' | i.Quantity);
    dbms_output.put_line ('update_flag: ' | i.update_flag);
    end loop;
    end spl_pudo_wms_input;




    The procedure call:

    Start
    spl_pudo_wms_input (xmltype ("<?")) XML version = "1.0"? > < PKG > < CARRIER > Europe < /TRANSPORTEUR > < SERVICE_LEVEL > UPS Next Day Air UPS < / SERVICE_LEVEL > < ORDERNUMBER > 12345678 < /ORDERNUMBER > < SHIPMENTID > 87346571 < /SHIPMENTID > < ORDERLINEID > 13344526 < /ORDERLINEID > < ITEMID > 554298 < /ITEMID > < LPN > 554298 < /LPN > < PICKING_LINE_DETAIL_ID > 554298 < / PICKING_LINE_DETAIL_ID > < QUANTITY > 1 < / QUANTITY > < /. PKG > '));
    end;

    Published by: user608904 on October 29, 2008 14:09

    It would seem that your query will return no rows.

    You are passing in the XML is

    xmltype('UPS Europe...
    

    However, your request is

    from table (xmlsequence (order_details.extract ('/PUDOINPUT/SHIPMENTDETAILS/PKG'))) a
    

    The XPath (pkg/PUDOINPUT/SHIPMENTDETAILS/PKG) in the query does not match the input (...) xml file.

Maybe you are looking for