Xml file formatting

Hi ,
Trying to generate an xml file using this select statement,
SELECT XMLELEMENT("EmpList" , XMLELEMENT("Empinfo", XMLELEMENT("EID",
e.empno),
XMLELEMENT("HD", e.hiredate))) as "Result"
FROM emp e WHERE rownum<4
Result
<EmpList><Empinfo><EID>7369</EID><HD>1980-12-17</HD></Empinfo></EmpList>
<EmpList><Empinfo><EID>7499</EID><HD>1981-02-20</HD></Empinfo></EmpList>
<EmpList><Empinfo><EID>7521</EID><HD>1981-02-22</HD></Empinfo></EmpList>
But, the required out put in this format, could anybody help on this,
<EmpList>
<Empinfo>
<EID>7369</EID>
<HD>1980-12-17</HD>
</Empinfo>
<Empinfo>
<EID>7499</EID>
<HD>1981-02-20</HD>
</Empinfo>
<Empinfo>
<EID>7521</EID>
<HD>1981-02-22</HD>
</Empinfo>
</EmpList>
thanks
Jodus

You are/were looking for something along the lines of this
WITH emp AS
(SELECT 7369 empno, '1980-12-17' hiredate FROM dual UNION ALL
SELECT 7499, '1981-02-20' FROM dual
SELECT XMLElement("EmpList",
          XMLAgg(
            XMLElement("Empinfo",
              XMLForest(e.empno AS "EID",
                        e.hiredate AS "HD")
  FROM emp e; to produce
<EmpList><Empinfo><EID>7369</EID><HD>1980-12-17</HD></Empinfo><Empinfo><EID>7499</EID><HD>1981-02-20</HD></Empinfo></EmpList>
You just needed to add the XMLAgg to aggregate multiple rows into one was all. I also used XMLForest since the EID and HD were at the same level.

Similar Messages

  • How to export table contents in xml file format through SQL queries

    hi,
    i need to export the table data in to xml file format. i got it through the GUI what they given.
    i'm using Oracle 10g XE.
    but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
    and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
    sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
    i get the combined data with this query,
    select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
    it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
    the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
    i need ur valuable suggestions.
    regards
    pavan.

    You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
    Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format.

  • ABAP to XML file - Formatting problem and UTF-8 requirement

    Hi Everyone,
    Could you please guide us on the ABAP coding required to get the proper XML file format. We have prepared the code for downloading SAP transaction data into an XML file format. However, we are stuck with an improper format as per Example 1.
    The file format we get is this:
    Example 1:
    <?xml version="1.0"?><FDXLMDOrd><FXNHdrLp><CrtDtTm>20070613094517</CrtDtTm><MsgID>319304155</MsgID><MsgTyp>850</MsgTyp><MsgSubTyp>SALES_A</MsgSubTyp><Pr
    <RcvTP>FSCS</RcvTP><SndSrc>FXN</SndSrc><RcvSrc>EIB</RcvSrc><UsrID>VAR</UsrID></FXNHdrLp><OrdHdrLp><OrdNbr>319304155</OrdNbr><OrdActnCD>9</OrdActnCD><Ord
    teCarrReq>FDE</RteCarrReq><RteTptSvcReq>FEIP</RteTptSvcReq></DprtRteLp><SpecInstrLp><SpecInstrTyp>SHIP</SpecInstrTyp><SpecInstr>Example Packing Instruct
    les Order</RefDesc></RefLp><RefLp><RefIDQual>CPO</RefIDQual><RefID>test 1 line 1 pc - s</RefID><RefDesc>Customers Customer Purchase Order</RefDesc></Ref
    Typ><EntIDQual>91</EntIDQual><EntID>H00092</EntID><EntNm>VLAD BOBES</EntNm><Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA
    ></AdrLnLp><ConLp><ConTypCD>IC</ConTypCD><ConNm>VLAD BOBES</ConNm><CommLp><CommNbrQual>TE</CommNbrQual><CommNbr>514-731-8361</CommNbr></CommLp></ConLp><
    <Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA</CtryISOCD><AddlNmLp><AddlNm1>VLAD BOBES</AddlNm1></AddlNmLp><AdrLnLp><Str
    However, the format need to look like this as in Example 2 below.
    We also need help in how to get  " encoding="UTF-8"?> " as part of the file format.
    Example 2:
    <?xml version="1.0" encoding="UTF-8"?>                
    <FDXLMDProdRcpt>                                      
        <FXNHdrLp>                                        
            <CrtDtTm>20070612151817</CrtDtTm>             
            <SessID>26796</SessID>                        
            <MsgTyp>861</MsgTyp>                          
            <MsgSubTyp>WRE_A</MsgSubTyp>                  
            <PrcsingPrty>5</PrcsingPrty>                  
            <SndTPQualCD>ZZ</SndTPQualCD>                 
            <SndTP>FSCS</SndTP>                           
            <RcvTPQualCD>ZZ</RcvTPQualCD>                 
            <RcvTP>EIB</RcvTP>                            
            <SndSrc>YANTRA</SndSrc>                       
            <RcvSrc>EIB</RcvSrc>                          
            <UsrID>VAR</UsrID>                            
        </FXNHdrLp>                                       
        <ProdRcptHdrLp>                                   
            <ShpID>VAR20070612NCHIC1</ShpID>              
            <ShpTyp> </ShpTyp>                            
            <ShpActnCD>00</ShpActnCD>                     
            <InTransMrgTyp> </InTransMrgTyp>              
            <ShpVolUOM>CI</ShpVolUOM>                     
            <ShpWgtUOM>LB</ShpWgtUOM>                     
            <ShpTotVol>310022.00</ShpTotVol>              
            <ShpTotWgt>861.00</ShpTotWgt>                 
            <DtTmLp>                                      
                <DtTyp>050</DtTyp>                        
                <DtTmQual>501</DtTmQual>                  
                <DtTm>2007-06-12T15:07:41-04:00</DtTm>    
            </DtTmLp>                                     
            <AdrLp>                                       
                <EntTyp>RC</EntTyp>                       
                <EntIDQual>93</EntIDQual>                 
                <EntID>NCHIC</EntID>                      
                <EntNm>NCHIC</EntNm>                      
                <AutoCrtTrdPar>0</AutoCrtTrdPar>          
                <AutoCrtTrdParRole>0</AutoCrtTrdParRole>  
                <AutoUpdtTrdPar>0</AutoUpdtTrdPar>        
            </AdrLp>                                      
            <ProdRcptTptLp>                               
                <TptIDQual>BOL</TptIDQual>                
                <TptSCAC> </TptSCAC>                      
                <TptID> </TptID>   
    Thanks and Best Regards
    Sitaraman

    You could try to use the following coding:
    *& Report  ZUS_SDN_UC_XML_TO_UTF8_TRANSF
    REPORT  zus_sdn_uc_xml_to_utf8_transf.
    define local data
    CONSTANTS:
      gc_encoding           TYPE string VALUE 'UTF-8'.
    DATA:
      gd_result             type string,
      go_ixml               TYPE REF TO if_ixml,
      go_stream_factory     TYPE REF TO if_ixml_stream_factory,
      go_encoding           TYPE REF TO if_ixml_encoding,
      go_resstream          TYPE REF TO if_ixml_ostream.
    DATA:
      gt_knb1    TYPE STANDARD TABLE OF knb1,
    gd_xml     TYPE string,
      gt_xml     TYPE TABLE OF string.
    START-OF-SELECTION.
      SELECT * FROM knb1 INTO TABLE gt_knb1 UP TO 10 ROWS
          WHERE bukrs = '1000'.
      go_ixml = cl_ixml=>create( ).
      go_stream_factory = go_ixml->create_stream_factory( ).
      go_encoding = go_ixml->create_encoding( character_set = gc_encoding
                                            byte_order = 0 ).
      go_resstream =
                  go_stream_factory->create_ostream_cstring( gd_result ).
      CALL METHOD go_resstream->set_encoding
        EXPORTING
          encoding = go_encoding.
    XML Transformieren
      CALL TRANSFORMATION id_indent
        SOURCE     itab = gt_knb1
        RESULT XML go_resstream.
      APPEND gd_result TO gt_xml.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
         BIN_FILESIZE              =
          filename                  = 'C:\temp\xml_to_utf8.txt'
         FILETYPE                  = 'ASC'
         APPEND                    = SPACE
         WRITE_FIELD_SEPARATOR     = SPACE
         HEADER                    = '00'
         TRUNC_TRAILING_BLANKS     = SPACE
         WRITE_LF                  = 'X'
         COL_SELECT                = SPACE
         COL_SELECT_MASK           = SPACE
         DAT_MODE                  = SPACE
         CONFIRM_OVERWRITE         = SPACE
         NO_AUTH_CHECK             = SPACE
         CODEPAGE                  = SPACE
         IGNORE_CERR               = ABAP_TRUE
         REPLACEMENT               = '#'
         WRITE_BOM                 = SPACE
         TRUNC_TRAILING_BLANKS_EOL = 'X'
       IMPORTING
         FILELENGTH                =
        CHANGING
          data_tab                  = gt_xml
        EXCEPTIONS
          file_write_error          = 1
          no_batch                  = 2
          gui_refuse_filetransfer   = 3
          invalid_type              = 4
          no_authority              = 5
          unknown_error             = 6
          header_not_allowed        = 7
          separator_not_allowed     = 8
          filesize_not_allowed      = 9
          header_too_long           = 10
          dp_error_create           = 11
          dp_error_send             = 12
          dp_error_write            = 13
          unknown_dp_error          = 14
          access_denied             = 15
          dp_out_of_memory          = 16
          disk_full                 = 17
          dp_timeout                = 18
          file_not_found            = 19
          dataprovider_exception    = 20
          control_flush_error       = 21
          not_supported_by_gui      = 22
          error_no_gui              = 23
          OTHERS                    = 24.
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    END-OF-SELECTION.
    However, I like to mention that the file created from out ECC 5.0 (6.40, non-Unicode) contains a special character between the XML header and the data part (when displayed using NotePad Editor):
    ...xml version="1.0" encoding="utf-8"?>[special character]<asx:abap xmlns:asx="http://www.sap.com/a...
    Using a HexEditor the special character (0x0A) is displayed as a dot.
    Also Check with FM - TREX_TEXT_TO_UTF8
    Reward Points if it is helpful
    Thanks
    Seshu

  • Convert the Database records to a standard XML file format?

    Hai,
    i want to convert the Database records to a standard XML file
    format which includes the schema name, table name, field name
    and field value. i am using Oracle 8.1.7. Is there any option
    please help me
    Thanks in advance.

    You could put the files somewhere and I can export them as QuickTime. Or you could find anyone you know who has Director. Or do the 30 day trial download
    Another approach would be to play the DCR in a browser window, and do a screen recording. But that’s unlikely to give the perfect frame rate that you would get by exporting from Director.

  • How to read XML file format

    Presently calling a webservice to search for customer which generates a XML file. Requirement is to check the XML file format in case of success move to next step and in case of error exit from the application.
    The file generated can have multiple formats as per input supplied.
    Please advise how the file format can be checked.
    Thanks
    anya

    hi anya,
    Try to use FM IDOC_XML_FROM_FILE.
    or check the below code
    data: temp_str type string.
    concatenate '>' cl_abap_char_utilities=>cr_lf '<'><' in XML_STRING with temp_str.
    xml_string is the straing variable to hold the xml .
    now use xml_string to show it in texteditor.
    -Thanks
    Saurabh Goel

  • Backing up using Export/Import & ITL, XML file formats

    Using Windows XP I have reset my default Itunes folder to c:\Itunes (too big for MY Documents\...). then copied everything from c:\itunes to an external hard drive. (I didn't realize the ITL file doesn't move and therefore I may not have a good backup of it.
    Starting with a new computer, installed Itunes, then did a 'File, Add folder to library (with copy option)' from the external hard drive. This restored all my songs but I lost playlists, play count & my ratings.
    I then did an import from library.xml, this restored the playlists, but still no play count or ratings.
    My question is
    1) IS there a better way to backup from Hard Drive to Hard drive? (Maybe all I really needed was the ITL file also?)
    2) what is the format of the ITL file (I am a systems programmer, would appreciate a URL that has detail), what (hopefully free) utility would edit it?
    3) a high level view of the XML file (I know XML)
    4) Where is there complete documentation on Itunes ( a detailed description of export/import would be appreciated)
    AMD Sempron, Duron, Athlon, Celeron   Windows XP Pro  
    AMD Sempron, Duron, Athlon, Celeron   Windows XP Pro  

    Here's my old standard answer for this topic - hope you can find something useful from it ...
    iTunes Music Library.itl & iTunes Music Library.xml must stay where you found them.
    To move your music files, use iTunes to do the work. Don't manually drag them around yourself.
    • change the library location in iTunes Advanced Preferences tab, the new location does not need to exist; iTunes will create it. The new location should be empty of music files. This just sets the location for any new files brought into iTunes; it does not affect any existing files in the iTunes library.
    • Select iTunes Advanced menu, Consolidate Library command. This copies all iTunes music files to the new library location. Playlist & Ratings data is preserved!
    • After it completes (assuming no errors), quit iTunes and get rid of the original files from your previous location. The xml & itl files must remain in the old location, the library location setting does not control the location of these two critical files.

  • XML file format

    I'm using UTL_FILE package to write into a text file. Instead of writing this into a text file I want to write this into a XML file. How to do this using the pl/sql procedure?What package and function I have to use to accomplish this?Please let me give one suggestion.

    Instead of writing this into a text file I want to write this into a XML file.An XML file[i] is a text file. Just bigger, because of all the tags.
    How are you generating the XML? There are many possible solutions here, some of which involve UTL_FILE. As far as I know there is no PL/SQL dedicated to generating XML files: all the functionality is devoted to retrieving data in XML format or processing existing XML.
    Cheers, APC

  • RELAX NG or Schematron schemas for Pages XML file format?

    Hey, I have been following with interest for over a year - more like two years - the whole "where are the XML schemas" for Keynote 1, and then Pages and Keynote 2.
    Apparently there is some difficulty obtaining them and I would guess that means defining them. Because if Apple had their hands on them, they would be out - and up to date - by now.
    XML Schema (.xsd) files are pretty painful to generate. There is a much simpler and and yet even more powerful schema format called "Relax NG". Assuming someone knows what the grammar is that Pages will willingly/successfully slurp up - they could probably create a .rnc file from scratch pretty quickly. The learning curve is pretty short for basic stuff and the amount of typing required is at least 40% less than when you create a .xsd file.
    Some things do not lend themselves to grammar based schemas like XSD, RNG, or RNC.
    Instead, a rule based schema language works better. Schematron is very good for this. The suffix for this file type is ".sch". The web site is easy to get to - just type schematron in your web browser's address field and press enter. Specs are all there.
    There is a program called Examplotron that creates a Schematron schema for you, given an XML file that is a sample. Of course, making rules from one example is not the same as knowing all the rules. The more different kinds of stuff you have in the file though, the better your chances are of getting a decent start going. Examplotron lives on the web at examplotron.org in case you are curious.
    OxygenXML is a very, very good XML editor and schema development environment. I have used it and a bunch of others. It is my favorite, by far.
    Someone at Apple should get on this. If it is too hard to create an XML Schema file - then please, please - try to create an RNG, RNC, or SCH file.
    If Apple cannot do it, then perhaps the user community could take a crack at it. However, it is a little bit like trying to document the laws of a country by watching what the government people do, what people do who do not get arrested, and what people do who do get arrested.
    You are not certain to see an example of every law being broken - for starters, so you will miss some. (One hopes you will not see every law that exists broken!)
    You are also not going to be able to tell what laws have influenced behavior that is lawful.
    So, for both reasons, you might unwittingly "break the laws" of this hypothetical land. In that case, you might be executed, fined, imprisoned, or as is the case still in some countries - have your hand chopped off!
    In the case of feeding a file based on mistaken assuptions to Pages, it certainly will not do what you want it do do. In theory, it might even crash, lose some data, pop up an error - or worse maybe not pop up an error, or corrupt its internal structures and become unstable. Or seem to work but fail to write the whole file out again. Or write out something that it cannot read in again - or does not reconstitute into the document that you used to have.
    Granted, there is a brute force technique that can be employed. You can write an AppleScript that gets pages to create a document that exercises every possible style and feature and logical ordering and nesting of things.
    Then you can study the XML that generates, or even feed to to Examplotron or a DTD generator.
    Doing so would probably be a way to get a good start going.
    Without any schema, there is no way to know if a complex program-generated Pages document will work right with pages.
    Granted, such program-generated documents can be generated with Applescripts. But if one already has some XML that one wants to blend in, for example - then it would be better to do it with XSLT. Or Java. Or whatever.
    Unfortunately, you really have to know what XML is legal in pages - and you have to know the grammar or rules for what Pages expects.
    So, any XSD coming from Apple in the near future - or any interest at Apple in completing a .rnc or .rng schema if it gets mostly done by customer(s) and then handed off to Apple to finish?

    XML converter (an add on to Inbound Refinery) could be used to display the contents with your XSLT choices but analyzing the file to prevent checkin would take data validation that would be custom. The CS does not care the file format or file type for checkin. Others have looked for analysis of file extension to stop checkin of certain extensions. This has been custom. I think there may be enhancement requests from customers for this kind of validation for the CS but it does not exist in the core yet.

  • Regarding sales order not created in xml file format

    Hi Friends,
                       I have the xml file,I sort the xml file alphabetically on material master codes, WHen program try to create the sales order by using this xml file through call transaction method, the line item numbers does not matches with the line items of xml file.
    I want same sequence.Please suggest me..
    Best Regards,
    SHialpa.

    HI Divya,
    Have u uninstalled Acrobt Reader from your system???
    Regards
    Manoj S

  • How to send XI a record from GDS which is either a Flat or XML file format.

    Dear All,
    I am working on a GDS scenario. I have created a GTIN manually in GDS and now want to register it to a data pool. As this is an internal project, I do not have connection to any pilot client and hence we are using a dummy destination data pool number of 1Sync.
    As per my basic understanding of this Scenario, It is still possible for me to "Register" a GTIN and an XML file will be generated with the GTIN details.
    However, when I do "Register" a GTIN, I get a Register error "Failed to send message, reason" Exception in method gDSDPOut"
    I have a few Queries:
    1. Is any XML generated on clicking the Register Button?
    2. What is the functionality of the " Register" Button? Does it send the XML to XI system directly.If the XML is created, how and where should I locate it to see the content.
    Can any of the experts who have worked on this scenario please validate my understanding.Can anybody please share some details on how to proceed.
    Thanks & Regards.
    Sumit Khanduri

    Hi Sumit/SDNer's
    1. Is any XML generated on clicking the Register Button?
    2. What is the functionality of the " Register" Button? Does it send the XML to XI system directly.If the XML is created, how and where should I locate it to see the content.
    I am also having the same problem. How do I see the XML file.
    Please answer ASAP.
    BR
    Deepak

  • Help! Urgent !- Mapping error - XML file format ?

    Hello,
    I can't load this xml file (by http adapter):
    <?xml version="1.0" encoding="UTF-8"?>
    <ZVG_GetOrderList_requ>
    <Orders>
        <Order MessageType="GETORDERLIST" DecimalSeparator="POINT" Currency="EUR">
            <CustomerCode type="AG">0330029839</CustomerCode>
            <Plant>1141</Plant>
            <SalesOrganisation>1141</SalesOrganisation>
            <DocType>1</DocType>
            <DistributionChannel>01</DistributionChannel>
            <Division>99</Division>
            <BeginDate>20040926</BeginDate>
            <EndDate>20041026</EndDate>
            <TransactionGroup>0</TransactionGroup>
            <CustomerOrderNumber />
            <ERPOrderNumber />
        </Order>
    </Orders>
    </ZVG_GetOrderList_requ>
    is there any problem in this file ?
    The message mapping seem to be correct
    do we have to add some tags in the file ?
    Thanks for your help
    Message was edited by: Fabrice Petetin
    Message was edited by: Fabrice Petetin

    I obtain the following error message :
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <Top>
      <First>BeginTrace</First>
      <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      <Trace level="2" type="T">......attachment XI_Context not found</Trace>
      <Trace level="1" type="T">Interface Mapping http://ZVGEPOWER_TRANSACTIONS ZVG_GetOrderList</Trace>
      <Trace level="3" type="T">Object ID of Interface Mapping A6AE36BEA38F36198AF80ECE75E2F905</Trace>
      <Trace level="3" type="T">Version ID of Interface Mapping 1AADFDF03E2611D9CF65DA19C0A82AA1</Trace>
      <Trace level="3" type="T">Mapping Steps 1 JAVA com/sap/xi/tf/_ZVG_GetOrderList_request_</Trace>
      <Trace level="2" type="T">Mode 3</Trace>
      <Trace level="3" type="T">Creating Java mapping com/sap/xi/tf/_ZVG_GetOrderList_request_.</Trace>
      <Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._ZVG_GetOrderList_request_</Trace>
      <Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>
      <Trace level="3" type="T">Document start</Trace>
      <Trace level="3" type="T">Start tag [ns0:BAPI_SALESORDER_GETLIST]</Trace>
      <Trace level="3" type="T">Add raw attribute [ xmlns:ns0="urn:sap-com:document:sap:rfc:functions"]</Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>
      <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_ZVG_GetOrderList_request_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:296) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:68) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:236) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy22.processFunction(Unknown Source) 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 com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>
      <Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_ZVG_GetOrderList_request_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_ZVG_GetOrderList_request_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy22.processFunction(Unknown Source) 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 com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:296) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:68) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:236) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy22.processFunction(Unknown Source) 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 com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Top>

  • How to convert text file into xml file format with and check that with DTD

    I have an text file with | seperator . I have to convert this to an xml file and check with DTD present with me..
    plz help me out

    can i get some code that how to compare the xml with dtd or just give the DTD name with an XML

  • XML file format for Captivate 5 Quiz Result Analyzer

    I need to know how the XML files and folders created by Adobe's php files are structured so I can try to duplicate the proces in Coldfusion.
    We're a Microsoft shop so there's no way I'd be able to set up a WAMP server.
    Is there documentation anywhere or would somebody be willing to post an example?
    Many thanks in advance...

    One of Adobe's Tech folks on the forum mentioned writing something like this for ColdFusion a few months back.  He never got back to me and told me when he did write it it wouldn't be supported.
    Susan Wright (Equilady)
    Remember, the mighty oak was just a nut that held its ground.
    http://www.equilady.com

  • To append tasks to an Microsoft XML file format i,e MSPDI using MPXJ.

    I have used the below mentioned code.But with this code, The new task is not appending in the proper Order.. i,e the newly added Major task gets inserted after the first major task. instead of getting added after the last task.
    can anyone help me to solve the above mentioned issue.
    import java.io.PrintStream;
    import java.text.SimpleDateFormat;
    import net.sf.mpxj.*;
    import net.sf.mpxj.mpp.MPPReader;
    import net.sf.mpxj.mpx.MPXReader;
    import net.sf.mpxj.mpx.MPXWriter;
    import net.sf.mpxj.mspdi.*;
    import net.sf.mpxj.mspdi.MSPDIWriter;
    import net.sf.mpxj.utility.NumberUtility;
    import net.sf.mpxj.writer.ProjectWriter;
    public class CreateXML
    public CreateXML ()
    public static void main(String args[])
    try
    create("d:\\output.XML");
    catch(Exception ex)
    ex.printStackTrace(System.out);
    private static ProjectWriter getWriter(String filename)
    String suffix;
    if(filename.length() < 4)
    suffix = ".MPX";
    else
    suffix = filename.substring(filename.length() - 4).toUpperCase();
    ProjectWriter result;
    if(suffix.equals(".XML"))
    result = new MSPDIWriter();
    else
    result = new MPXWriter();
    return result;
    private static void create(String filename)
    throws Exception
    SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
    MSPDIReader r=new MSPDIReader();
    ProjectFile file=r.read("d:\\input.XML");
    file.setAutoTaskID(true);
    file.setAutoTaskUniqueID(true);
    file.setAutoResourceID(true);
    file.setAutoResourceUniqueID(true);
    file.setAutoOutlineLevel(true);
    file.setAutoOutlineNumber(true);
    file.setAutoWBS(true);
    file.setAutoCalendarUniqueID(true);
    ProjectCalendar calendar = file.addDefaultBaseCalendar();
    ProjectCalendarException exception = calendar.addCalendarException();
    exception.setFromDate(df.parse("13/06/2007"));
    exception.setToDate(df.parse("13/06/2007"));
    exception.setWorking(false);
    ProjectHeader header = file.getProjectHeader();
    header.setStartDate(df.parse("1/06/2007"));
    Resource resource1 = file.addResource();
    resource1.setName("Resource1");
    Resource resource2 = file.addResource();
    resource2.setName("Resource2");
    resource2.setMaxUnits(new Double(50D));
    Task task1 = file.addTask();
    task1.setName("Main Task2");
    task1.setStart(df.parse("12/07/2007"));
    task1.setDuration(Duration.getInstance(100D, TimeUnit.DAYS));
    Task task2 = task1.addTask();
    task2.setName("T13");
    task2.setDuration(Duration.getInstance(5, TimeUnit.DAYS));
    task2.setStart(df.parse("6/10/2007"));
    task2.setPercentageComplete(NumberUtility.getDouble(50D));
    ProjectWriter writer = getWriter(filename);
    writer.write(file, filename);
    }

    so, I got that working, and then when I tried to repeat for another text field on another timeline frame, I get the message:
    Scene 1, Layer 'TEXT', Frame 62, Line 6
    1021: Duplicate function definition.
    here's the code:
    var restaurant:URLLoader = new URLLoader();
    restaurant.EventListener(Event.COMPLETE, onLoaded);
    function onLoaded(e:Event):void {
    restauranttxt.text = e.target.data;
    myTextLoader.load(new URLRequest("editable/restaurant.txt"));
    so the error is coming on line 6, which is the function onLoaded line.
    I tried renaming onLoaded in the listener and here to "restaurant", even to "onLoaded 2".  when I do that, my movie goes haywire.  it either gets to frame 16 and stops (a frame that contains a mouse click goto and stop event handler to go to this frame), or, none of the timeline stop(): actions work.
    I feel like I'm so close to understanding.  I guess I just don't understand the part that makes it go haywire if I change the names.

  • BODI XML File Format - Runtime error

    Hi Friends:
    I am able to import xsd file in the designer and validate the job. However when I run the job, I get the following runtime error:
    XML-240308 XML parser failed: Error: <An exception occurred! Type:RuntimeException, Message:The primary document entity could not be
    opened. Id=D:\DI Install\Business Objects\Data Integrator 11.7\bin///usohcol1nas9k01/Etl/SkipRobot/DataFiles/ XML_Data/XMLFiles/CCD_14817356337494.man> at line <0>, char <0> in file <>.
    |Dataflow New_DataFlow4|Reader READ MESSAGE xml_test2 OUTPUT(xml_test2)
    XML parser failed: See previously displayed error message.
    Please note that I am using vnc path for the XML files. However, If I use a directory local to the job server, the job runs fine.
    Can any one tell me what the issue is?
    Thanks
    Raj

    Hi Raj,
    That's funny that you are using 11.7.2.2 -- this problem was reported in bug ADAPT00777107 which was reported in 11.7.0.x.  11.7.2.2 contained a fix for this issue.  It is also resolved in version 11.7.3.x and 12.x.  (In the "doc" directory of the 11.7.2.2 installer, you will find a PDF called FixPack_ReleaseNotes which mentions that ADAPT00777107 was resolved.)
    Maybe your jobserver is version 11.7.0.x and your Designer is version 11.7.2.2?  Let me know. 
    Thanks,
    ~Scott

Maybe you are looking for