Xml header in transformation strans

Hello,
I would like to create an xml file with the following header information:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<tem:mygesttem>
<tem:mytem>
So, I have created the following piece of code in transaction STRANS:
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="ROOT"/>
<tt:template>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<tem:mygestem>
<tem:mytem>
However, as soon as I launch it with CALL TRANSFORMATION in my ABAP program the xml file is different from I would expect:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<tem:mygestem xmlns="http://tempuri.org/">
<tem:mytem>
Could anyone tell me why the header is different from expected?
Thank you,
Oscar

Any ideas? please.

Similar Messages

  • Create a new line in the xml-header structure.

    Hi,
    Can any one tell me how to create a new line in the xml-header structure.
    I am doing a IDOC-XI-HTTP scenario.
    Actually my mapping create this file:
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    The result must look like this.
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    Thanks and Regards,
    Eren

    Hi,
    thanks for you quick answer.
    I found a xsl script.
    It works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes"/>
       <xsl:template match="*">
          <xsl:param name="depth">0</xsl:param>
          <!-- New line with indenting. -->
          <xsl:if test="$depth > 0">
             <xsl:text>    </xsl:text>
          </xsl:if>
          <xsl:text>&#xA;</xsl:text>
          <xsl:element name="{name(.)}">
             <xsl:for-each select="@*">
                <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
             </xsl:for-each>
             <xsl:apply-templates>
                <xsl:with-param name="depth" select="$depth + 1"/>
             </xsl:apply-templates>
          </xsl:element>
       </xsl:template>
    </xsl:stylesheet>
    Best regards
    Eren

  • How to change XML Header in  file

    Hi,
    How to have the following XML output header XML with simple transformation:
    <?xml version="1.0"> encording="ISO-8859-1"?>
    When I used the following transformation template:
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    I get the following output header and file is not readable.
    <?xml version="1.0" encoding="utf-16" ?>
    If i call tranformation without encoding option file is creted and readable. Does there is any impact on functionality if file is without header.
    Thanks
    anya

    Hi,
    you could use the below alternative solution also as some Web services do not accept the message , if Content type is application/XML in the HTTP Header, it will accept only Text/XML. So While calling the Web service, the content has to be changed, This is possible using Module of the adapter as shown in the screen shot.
    HTTP Header field values before using the module
    User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
    content-id: [email protected]
    content-type: application/xml
    Content-Length: 1280
    Module name - localejbs/AF_Modules/MessageTranspormationBean
    Type - Local Enterprise Bean Module - This is defined by the user, but the same name should be given in the module configuration for passing the parameters. In this case “transform” In the module configuration ,
    Module key - In this case “transform”
    Parameter name - Transform.ContenType
    Parameter Value - text/xml;charset=utf-8
    Here you could use the required parameters and pass the values....:-))
    Thanks
    Swarup

  • How to update the value in xml file using transformer after setNodeValue

    Hi,
    This is my code
    I want to set update the values in xml file using transformer..
    Any one can help me
    This is my Xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <place>
    <name>chennai</name>
    </place>
    Jsp Page
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory,
    javax.xml.parsers.DocumentBuilder,org.w3c.dom.*,org.w3c.dom.Element"
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <% String str="";
    String str1="";
    try
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse("http://localhost:8084/XmlApplication1/sss.xml");
    out.println("Before change");
    NodeList n11 = doc.getElementsByTagName("name");
    Node n22= n11.item(0).getFirstChild();
    str1 = n22.getNodeValue();
    out.println(str1);
    out.println("After change");
    String name = "Banglore";
    NodeList nlst = doc.getElementsByTagName("name");
    Node node= nlst.item(0).getFirstChild();
    node.setNodeValue(name);
    NodeList n1 = doc.getElementsByTagName("name");
    Node n2= n1.item(0).getFirstChild();
    str = n2.getNodeValue();
    out.println(str);
    catch(Exception e)
    out.println(e) ;
    %>
    <h1><%=str%></h1>
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
    <!-- Let's welcome the user ${param.name} -->
    Hello ${param.name}!
    </c:if>
    --%>
    </body>
    </html>

    hi check this exit...
    IWO10012

  • Remove XML Header

    I am developing a Java Servlet and would like to query the database multiple times. I have used OracleXMLQuery and an array to be able to run three separate queries. My problem is occuring in my returned XML Document. Each query comes back with a XML Header such as:
    <?xml version = '1.0'?>
    <Query_1>
    <COL1>10</COL1>
    </Query_1>
    <?xml version = '1.0'?>
    <Query_2>
    <COL1>20</COL1>
    </Query_2>
    <?xml version = '1.0'?>
    <Query_3>
    <COL1>30</COL1>
    </Query_3>
    I have assigned the header separately and would just like to be able to turn off the generated header. My problem is coming when I am trying to use an applet and it does not like when it sees the XML header more than once. Any ideas or hints on how this can be done I would appreciate it.

    Hello this did solve my issue. I have same issue infact. I used this xsl mapping  as
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
    </xsl:stylesheet>
    But my output xml struıcture has broken. Should I  do some changing in my xsl mapping and how ?
    Regards,
    Ceren.

  • Encoding missing from XML header

    I have to manipulate an XML document. Using Java 1.4.1, I build a Document object based on the XML file, manipulate the Document and output it as attached below.
    The problem is that the xml header in the output does not contain the "encoding" information. I could of course manipulate the output afterwards, but it would not be a neat solution. Any ideas?
    DOMSource domSource = new DOMSource(document);
      StreamResult streamResult = new StreamResult(
           new OutputStreamWriter(System.out , java.nio.charset.Charset.forName("UTF-8"))
      TransformerFactory tf = TransformerFactory.newInstance();
      Transformer serializer = tf.newTransformer();
      serializer.transform(domSource, streamResult);

    When you serialize your output to a Writer, the parser has no way to tell what encoding the Writer uses, so it's up to you to ensure that the parser knows what encoding the Writer is using. Otherwise it will not specify any encoding, essentially assuming the Writer is using either UTF-8 or UTF-16 encodings.
    In your case you don't have a problem, because "no encoding" means that the document is encoded in UTF-8 or UTF-16; it's easy for a parser to examine the first few bytes of the file and tell which it is. Yours is encoded in UTF-8, so it's correct.

  • Adding Encoding in XML header without mapping

    Hi Gurus,
    I am stuck in a situation where in a pass through scenario, I need to add encoding type in XML header.
    Below is example -
    Current Situation - <?xml version="1.0"?>
    Expected result -  <?xml version="1.0" encoding="UTF-8"?>
    Can anybody help me in this regard? how to achieve this?
    Regards
    Vidhi S

    Hi Vidhi
    Use it in the below way in the receiver adapter.
    Module name: AF_Modules/XMLAnonymizerBean
    Parameter name: anonymizer.encoding
    This will work. I have tested already.

  • Adding additional XML Header in Target XML structure

    Hi all,
    I have a requirement that i need add one additional XML header to target XML messages. At the moment i can see default XML header as ,
    <?xml version="1.0" encoding="UTF-8" ?>
    <Test>
    <Add>Test Mesage</Add>
    </Test>
    But i would like to have one more additional header like below,
    <?xml version="1.0" encoding="UTF-8" ?>
    <?Siebel-Property-Set EscapeNames="false"?>
    <Test>
    <Add>Test Mesage</Add>
    </Test>
    Can some one help me to find a way to adding this additional header?
    Thanks in advance.
    Prasad Babu.

    Hi Prasad,
    Yes it is possible by Java Mapping. Please check my response for similar thread
    Re: Add XML header?

  • XML header for WebServices (SOAP)

    Hi all!
    I have quite strange problem about XML header in SOAP message for WS. Usually I don't care about XML header in SOAP message, because so far I had no problems calling load of WS on different servers. Stnadard XML header that comes out looks like this (1.0 and UTF-8 are in single quotes): <?xml version='1.0' encoding='UTF-8'?>.
    But this time, the webserver I'm trying to call accepts only double quotes, e.g. like this: <?xml version="1.0' encoding="UTF-8"?>, it doesn't understand single quotes at all and there is no way of changing it!
    JDeveloper uses apache soap for standard and makes single quotes. I tried raw http call by wrapping all text into post method -> that works, so webservice is working.
    I can't set anything except endpoint, parameters, method :(
    How can I make call that uses double quotes?
    Pseudo logic is like this:
    Vector params = new Vector();
    params.addElement(xxxx);
    Call call=new Call("xxx", "xxx", params, xxx, Constants.NS_URI_SOAP_ENC);
    Response response = call.invoke(endpointURL, "xxx");

    Hacked Oracle (apache) classes and put right values in it.
    It was hard coded string, who on earth could thought that :D

  • XML header?

    Hi experts,
    I am generatig an xml file. I want to add FileID = "X123" before version="1.0" in the xml header.
    For ex:
    <?xml version="1.0" ?>
    to
    <?xml FileID="X123" Version="1.0">
    Any idea?

    NO. SAP XML parser are the tools created by SAP to work with XML.
    Parsing XML
    All modern browsers have a build-in XML parser that can be used to read and manipulate XML.
    The parser reads XML into memory and converts it into an XML DOM object that can be accessed with JavaScript.
    You will learn more about the XML DOM in the next chapter of this tutorial.
    There are some differences between Microsoft's XML parser and the parsers used in other browsers. The Microsoft parser supports loading of both XML files and XML strings (text), while other browsers use separate parsers. However, all parsers contain functions to traverse XML trees, access, insert, and delete nodes (elements) and their attributes.
    In this tutorial we will show you how to create scripts that will work in both Internet Explorer and other browsers.
    Note: When we talk about parsing XML, we often use the term "Nodes" about XML elements.
    In package SIXML you have the tools and examples for work with XML in an efficient way.

  • [svn:fx-trunk] 13383: Modify to include the xml header (with encoding) in the DITA xml files.

    Revision: 13383
    Revision: 13383
    Author:   [email protected]
    Date:     2010-01-08 12:04:00 -0800 (Fri, 08 Jan 2010)
    Log Message:
    Modify to include the xml header (with encoding) in the DITA xml files.
    QE notes: None.
    Doc notes: None
    Reviewed By: Pete
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Thats good news.

  • Error in xml to html transform function in 11g(Help needed urgent)

    We are migrating from 9g to 11g.Code given below is working fine with 9g but giving following error while converting xml to html.
    Error:Exception occurred in XML_TO_HTML :ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00609: Function call with invalid number of arguments in 'position (//USER)'.
    Code :<?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <HTML>
    <BODY>
    <!--begin header-->
    <xsl:for-each select="AMAP_REMMIT_EMP/HEADERS/HEADER">
    <TABLE border="0" cellpadding="0" cellspacing="0" style="padding:1px" width="100%" height="95" bgcolor="#EAEAEA"><font size="6" face="Arial">amdocs </font>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="VENDOR_NAME"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Date: <xsl:value-of select="RUN_DATE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="ADDRESS"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="TAX_ID"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="CITY"/> <xsl:value-of select="ZIP"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Vendor Number: <xsl:value-of select="OSEK_MURSHE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> </TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Fax Number: <xsl:value-of select="FAX"/>
    </TD>
    </TR>
    </TABLE>
    </xsl:for-each>
    <!--end header-->
    <!--begin lines-->
    <p dir="ltr" align="center">
    <span style="font-family: Arial; text-decoration: underline; font-weight: 700">
    Subject: Remittance Advice</span></p>
    <table border="1" cellspacing="1" width="100%" bgcolor="#C0C0C0">
    <tr>
    <th width="20%"><font face="Arial"><b>Invoice Date</b></font></th>
    <th width="20%"><font face="Arial"><b>Invoice Number</b></font></th>
    <th width="40%"><font face="Arial"><b>Description</b></font></th>
    <th width="20%"><font face="Arial"><b><xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/CURRENCY"/> Amount</b></font></th>
    </tr>
    <xsl:for-each select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE">
    <tr>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_DATE"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_NUM"/></td>
    <td width="40%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="DESCRIPTION"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="AMOUNT"/></td>
    </tr>
    </xsl:for-each>
    <tr>
    <td width="80%" bgcolor="#FFFFFF" colspan="3" align="right">
    <b>Total Payment:</b></td>
    <td width="20%" bgcolor="#FFFFFF"><xsl:value-of select="//TOTAL"/></td>
    </tr>
    </table>
    <p dir="ltr" align="left"><span style="font-family: Arial"><font size="2">In accordance with your instructions, this amount will be transferred to your <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES='Y'">
    account number <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/ACCOUNT"/> in bank
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BANK"/> , branch <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BRANCH"/>
    on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES!='Y'">
    account on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/CREDITNOTES/CREDITNOTE/CREDITNOTE>'0'">
    <p>The payment will be credited in two days from the payment date in your account.</p>
    </xsl:if>
    <p>In case this date is not a valid value date in the bank system, the money will be transferred in the next valid value date.</p>
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/NOTES/NOTE/DESCRIPTION"/>
    </font></span></p>
    <TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="50">
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" />Yours sincerely,</TD>
    </TR>
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/COMPANY_NAME"/></TD>
    </TR>
    <!--end lines-->
    <!--end trailer-->
    </TABLE>
    <table cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1; padding: 0" bordercolor="#111111" width="100%">
    <tr>
    <td width="34%">Alert No:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/ALERT_ID"/></td>
    <td width="33%">Environment: <xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/DB_NAME"/></td>
    <td width="33%">Date:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/MAIL_DATE"/></td>
    </tr>
    </table>
    <!--end trailer-->
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    Thanks in advance.

    #1. We need to see the code that is being used to invoke the stylesheet.
    #2. We need to see the document that is being transformed...
    It's most likely a bug in 9g which has been fixed in 11g...

  • XML to ABAP transformation

    Hi,
    I want to get my XML data into an internal table in ABAP. I use statement 'CALL TRANSFORMATION' for that, but i get an error named 'Error accessing the ref. node "EMPLOYEE"'.
    I don't get it. As far as i can see everything is correct, but when i process the code, it triggers this exception.
    Here's my XML i use:
    <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <batch>
      <header>     <molga>01</molga>     <usrty/>    <orgeh/>  </header>
      <body>
        <employee>
          <begda>01012010</begda>      <eindt>20100101</eindt>      <cdedt>99991231</cdedt>      <persg>1</persg>      <persk>01</persk>     <plans>54000029</plans>     <anrex>1</anrex>     <nachn>Leeraar</nachn>     <vorsw></vorsw>      <inits>M</inits>     <gbdat>19791205</gbdat>     <uansp>26</uansp>     <empct>100.00</empct>     <id>566</id>      <usrid_long>testATtest.com</usrid_long>     <lstar>CX123</lstar>     <werks>NL01</werks>
       </employee>
      </body>
    </batch>
    Here is the transformation:
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
      <tt:root name="EMPLOYEE" type="ddic:ZTTRANS_EMPLOYEE"/>
      <tt:template>
        <batch>
          <header>
            <molga>
              <tt:skip/>
            </molga>
            <usrty>
              <tt:skip/>
            </usrty>
            <orgeh>
              <tt:skip/>
            </orgeh>
          </header>
          <body>
            <tt:loop ref="EMPLOYEE">
              <employee>
                <begda tt:value-ref="BEGDA"/>
                <eindt tt:value-ref="EINDT"/>
                <cdedt tt:value-ref="CDEDT"/>
                <persg tt:value-ref="PERSG"/>
                <persk tt:value-ref="PERSK"/>
                <plans tt:value-ref="PLANS"/>
                <anrex tt:value-ref="ANREX"/>
                <nachn tt:value-ref="NACHN"/>
                <vorsw tt:value-ref="VORSW"/>
                <inits tt:value-ref="INITS"/>
                <gbdat tt:value-ref="GBDAT"/>
                <uansp tt:value-ref="UANSP"/>
                <empct tt:value-ref="EMPCT"/>
                <id tt:value-ref="ID"/>
                <usrid_long tt:value-ref="USRID_LONG"/>
                <lstar tt:value-ref="LSTAR"/>
                <werks tt:value-ref="WERKS"/>
              </employee>
            </tt:loop>
          </body>
        </batch>
      </tt:template>
    </tt:transform>
    The dictionary type used has the fields with the same name.
    Please help.

    Hi,
    Have a look at this very useful link.
    http://searchsap.techtarget.com/generic/0,295582,sid21_gci1207657_mem1,00.html
    Here all the steps are given to pull data  into an internal table.
    You need to consider all the nested tabs and put them in different interanl tables and then link these interanl  tables.
    Regards,
    Subhashini

  • Convert XML Code into Transformation

    Hi,
    I am currently trying to convert this xml string back to my structure but i have been unsuccessful so far using tcode STRANS. Initially i keep getting illegal operation but now i manage to retrieve only part of my xml data.
    my XML string:
    <?xml version="1.0" ?>
    - <Root>
    - <Transaction_Status>
      <Status>Success</Status>
      <Description>No. of records found = 6</Description>
      </Transaction_Status>
    - <Processing_Exceptions>
    - <Report>
    - <Record>
      <Reason>Validation failed for pan field</Reason>
      <Field_Name>ID_PAN_CARD</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Validation failed for passport field</Reason>
      <Field_Name>ID_PASSPORT</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Father name field is null</Reason>
      <Field_Name>NULL</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Pin field is null</Reason>
      <Field_Name>NULL</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Invalid Mobile Number</Reason>
      <Field_Name>MOBILE_NUM</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>CITYISNULL</Reason>
      <Field_Name>DC_CITY</Field_Name>
      <Field_Value />
      </Record>
      </Report>
      <Reject />
      </Processing_Exceptions>
    - <Output>
    - <Record>
      <search_id>2861</search_id>
      <MATCHED_CUSTOMER_ID>100268</MATCHED_CUSTOMER_ID>
      <defined_match_criteria>[INDV_NAME:70]</defined_match_criteria>
      <actual_matched_criteria>(INDV_NAME : 96.15 )</actual_matched_criteria>
      <CUSTOMER_ID>100268</CUSTOMER_ID>
      <INDV_NAME>BIJENDER SINGH</INDV_NAME>
      <FATHER_NAME />
      <CUR_CITY>DELHI</CUR_CITY>
      <CUR_STATE>DELHI</CUR_STATE>
      <CUR_PIN>110041</CUR_PIN>
      <MOBILE_NUM />
      <ID_PAN_CARD />
      <CUR_PHONE />
      <BIRTH_DATE />
      </Record>
    - <Record>
      <search_id>2861</search_id>
      <MATCHED_CUSTOMER_ID>115993</MATCHED_CUSTOMER_ID>
      <defined_match_criteria>[INDV_NAME:70]</defined_match_criteria>
      <actual_matched_criteria>(INDV_NAME : 100.0 )</actual_matched_criteria>
      <CUSTOMER_ID>115993</CUSTOMER_ID>
      <INDV_NAME>BIRENDER SINGH</INDV_NAME>
      <FATHER_NAME />
      <CUR_CITY>GURGAON</CUR_CITY>
      <CUR_STATE>HARYANA</CUR_STATE>
      <CUR_PIN>122001</CUR_PIN>
      <MOBILE_NUM>9813736856</MOBILE_NUM>
      <ID_PAN_CARD />
      <CUR_PHONE />
      <BIRTH_DATE>1979-08-26 00:00:00.0</BIRTH_DATE>
      </Record>
    </Output>
      </Root>
    Please help . Thanks in Advance.
    Regards,
    Nilesh

    Hi Sandra,
    Thanks for Reply.
    I have create XSLT code like
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
    <xsl:strip-space elements="*"/>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
      <asx:values>
        <xsl:for-each select="//Root/Output/Record">
          <item>
            <CUSTOMER_ID>
              <xsl:value-of select="CUSTOMER_ID"/>
            </CUSTOMER_ID>
            <INDV_NAME>
              <xsl:value-of select="INDV_NAME"/>
            </INDV_NAME>
            <FATHER_NAME>
              <xsl:value-of select="FATHER_NAME"/>
            </FATHER_NAME>
            <CUR_CITY>
              <xsl:value-of select="CUR_CITY"/>
            </CUR_CITY>
            <CUR_STATE>
              <xsl:value-of select="CUR_STATE"/>
            </CUR_STATE>
            <CUR_PIN>
              <xsl:value-of select="CUR_PIN"/>
            </CUR_PIN>
            <MOBILE_NUM>
              <xsl:value-of select="MOBILE_NUM"/>
            </MOBILE_NUM>
            <ID_PAN_CARD>
              <xsl:value-of select="ID_PAN_CARD"/>
            </ID_PAN_CARD>
            <CUR_PHONE>
              <xsl:value-of select="CUR_PHONE"/>
            </CUR_PHONE>
            <BIRTH_DATE>
              <xsl:value-of select="BIRTH_DATE"/>
            </BIRTH_DATE>
          </ITEM>
    </ABAP>
    </xsl:transform>   
    and calling program like
    TYPES: BEGIN OF i_det,
            CUSTOMER_ID(10),
            INDV_NAME(20),
            FATHER_NAME(20),
            CUR_CITY(15),
            CUR_STATE(15),
            CUR_PIN(06),
            MOBILE_NUM(10),
            ID_PAN_CARD(18),
            CUR_PHONE(10),
            BIRTH_DATE(10),
           END OF i_det.
    DATA: i_data TYPE TABLE OF i_det,
          w_data type i_det.
    DATA: xml_string TYPE string." type ref to cl_fx_reader .
    DATA: xslt_error  TYPE REF TO cx_xslt_exception,
    xslt_message  TYPE  string .
    try .
        call transformation ('ZXSLT_CODE')
        source xml  xml_string
        result     i_data = i_data.
      catch cx_xslt_exception into xslt_error.
        xslt_message = xslt_error->get_text( ).
    endtry.
    Waiting for Response.
    Regards,
    Nilesh

  • Xml validation and transformation in a row: Possible?

    Hi.
    I'm working on a small tool that uses javax.xml.validation and javax.xml.transform (JDK 6) to perform validation and transformation of xml files in a row.
    The problem is, the namespaces and reference to the xml schema required by the validator somehow prevent the transformation from extracting data from the xml file.
    Here's the header I use in the xml file:
    <tagWhatever
    xmlns="http://www.myPlace.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.myPlace.com mySchema.xsd">To sum it up, with the namespace declaration within the xml I can validate but not transform, and without the declaration, I can transform but not validate.
    Can anyone help me out witht this one?
    Thanks
    5thString

    Hi.
    I'm working on a small tool that uses javax.xml.validation and javax.xml.transform (JDK 6) to perform validation and transformation of xml files in a row.
    The problem is, the namespaces and reference to the xml schema required by the validator somehow prevent the transformation from extracting data from the xml file.
    Here's the header I use in the xml file:
    <tagWhatever
    xmlns="http://www.myPlace.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.myPlace.com mySchema.xsd">To sum it up, with the namespace declaration within the xml I can validate but not transform, and without the declaration, I can transform but not validate.
    Can anyone help me out witht this one?
    Thanks
    5thString

Maybe you are looking for

  • How can we see Last Date and last quantities in Bex Analyzer ?

    Hı BW Gurus, I have a query that shows consumption quantities for a material regarding to a date interval. On initial screen i specify a material and a date interval ( 01.04.2007 - 15.04.2007 for example). Then query brings total consumptions(261 and

  • Groups created in OID cannot be seen in Portal - Admin screen

    Hi, I'm working on an intranet application for my company, and trying to structure Groups/Users in the OID to enable role-based security. I'm having a problem where the groups created in OID through the OID Self Services Console, cannot be viewed in

  • Reading value from a text file

    hi , I have a text filed with values for this field lotid , how in PL/SQL can i make use of the values from this file in query like select * from tbl1 a where a.lotid = values from text file ? kindly advise tks & rdgs

  • Slow IE on Satellite P10-504

    Hi guys and gals, after IE stopped I got the message did I want to report it, so I did, then the link came back and there was a link to review the report. It came up with the message some tool bars and add ons were slowing the computer down , click t

  • Links will not open web browser

    The last week I noticed that when i click on a hyper link in mail it will not open unless I copy & paste it.