Unable transform,source XML is null

Hi ,
I have the following transformation and the input xml as below.
When i test it in jdeveloper , it's giving "Unable transform,source XML is null".
On the traget XML , there is no data and the error is " Document has no root element ,start of root element expected".
Please revert back if someone has solution.

In the Type Chooser Window where you are selecting the XSD as input. Click on the option Show Detailed Node Information Check box,this will show you the error.
Start of root element comes only in case if XSD is not proper.
Regards,
Pushp

Similar Messages

  • BI Admin Tool and XSLT transformation for XML data source - How it works ?

    Hello,
    There is a possibility to import data from XML data source using BI Admin Tool.
    In the import window we can point XSLT file. What is the purpose of that XSLT field?
    Why I am asking ?
    I thought it is smth like XSLT processor, but simply it doesnt work.
    What I did:
    - I pointed XML data source file
    - I pointed XSLT transformation file
    - Click OK, and still get the message that the XML file structure is not supported
    After that I transformed that XML file with some desktop XSLT processor using the same XSLT file, and I tried to connect that file directly using BI Admin tool.Then it works. So it means that the transformation is ok.
    So basically one question comes to my mind in that situation:
    What is the purpose of XSLT field in BI Admin Tool when it comes to XML data source ?
    (it doesnt look like XSLT processor)
    Greetings
    /Michal

    Hi Mariano
    Why you need to use XSLT for transforming XML file into ABAP table
    Code is a part of some ABAP report. Looks like it is reading a file from file system and updating table after transformation
    If you have requirement like you need to read XML file and then insert the data into a SAP table
    You can use
    File to RFC
    File to Proxy scenario using SAP PI.
    Please provide more inputs on requirement to help
    Thanks
    Gaurav

  • Trying to get the string from javax.xml.transform.Source

    I have a SOAP client that will submit a string of data to a url and return an xml string back. It works ok besides that last part.
    I found on another site someone took the returned XML and printed it to the system print box. I want to just get the string out to a variable to pass back..
    This chunk works:
    TransformerFactory tff = TransformerFactory.newInstance();
    Transformer tf = tff.newTransformer();
    Source sc = rp.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    tf.transform(sc, result);
    System.out.println();Instead of this I just want to catch the XML string in a String variable. Thanks for the help.

    Instead of giving your StreamResult System.out, give it a StringWriter. You can then call toString on the StringWriter, and get what you're after
    StringWriter output = new StringWriter();
    TransformerFactory.newInstance().newTransformer().transform(source, new StreamResult(output));
    String xmlResult = output.toString();

  • Problem with return of javax.xml.transform.Source impl from webService

    I have a web services that needs to return an XML string to the calling client. If I return the XML as a String object it gets deserialized twice and the end result is no longer XML. My research indicates that I can return an implementation of javax.xml.transform.Source and this will cause SOAP to attach the XML string to the message rather than embed it (protecting it from deserialization). The following is the effective part of my method:
    public Source[] consumeTextMessage(String id) throws RemoteException {
    try {
    MessageConsumer mc = new MessageConsumer();
    String[] messages = mc.consumeTextMessage(id);
    StreamSource[] sources = new StreamSource[messages.length];
    for(int i = 0; i < messages.length; i++) {
    sources[ i ] = new StreamSource();
    return sources;
    } catch(RemoteException e) {
    throw e;
    note: the mc.consumeTextMessage(id) call works correctly and I know that I'm not putting anything in the StreamSource objects in the loop to build the array of StreamSource objects - just trying to get SOMETHING to work
    so this deploys without problem, but when I try to get a wsdl for the webservice i get a Server 500 error; the log says this:
    javax.servlet.ServletException: WSDL Generation exception: java.lang.Exception javax.xml.transform.Source is an abstract class: cannot be instanciated
    ok.... if I change the method return type to a concrete class (StreamSource[]), redeploy and try to get a wsdl, I get this absolutely crazy error:
    javax.servlet.ServletException: WSDL Generation exception: java.lang.Exception java.io.Reader is an abstract class: cannot be instanciated
    I have NO clue why it thinks it needs a Reader.
    If I change the method return type to String[] (and make the various adjustments to the method) then it deploys ok and gives me a good WSDL (though it still doesn't work because the Strings are deserialized twice so this isn't a viable solution but it does show that my webservice config is correct).
    So... bottom line seems to be that the webService "engine" of 10g AS doesn't like Source or StreamSource.....
    Any ideas what I can do??

    Funny story here: trying to deploy a different webserivce all together and got the same error message; thought I remembered seeing it before but wasn't sure; did a google search on it and lo and behold came across my first posting in this thread.... crazy.
    Anyway, I have discovered something that answers some of the questions I had in my first post: It seems that the argument types used in a webservice signature MUST be CONCRETE classes (and I would think primitives would work too though I don't remember trying them) - they can not be Interfaces or abstract classes. Probably if I read the webservices spec it would tell me that.
    So the error I was getting before was because Source was not a concrete class, and presumably the second error was caused by some signature somewhere along the line using the Reader abstract class.
    Fun stuff.

  • XSLT transformation for XML to ABAP internal table

    Hi, can anyone please tell me how it should be the xslt tranformation to conver this xml
    <Embargos_ARBA_DOC>
         <ns:Embargos_ARBA_MT
              xmlns:ns="un:swissmedical:sap:proxy:embargos_arba:file">
              <Embargos_ARBA_MT>
                   <FECHA>20081101</FECHA>
                   <CUIT>50000002124</CUIT>
                   <MONTO>0000013794090</MONTO>
                   <RAZON_SOCIAL>RAUL ARMANDO CUNQUEIRO S.A.C.I.</RAZON_SOCIAL>
              </Embargos_ARBA_MT>
              <Embargos_ARBA_MT>
                   <FECHA>20081101</FECHA>
                   <CUIT>55000001456</CUIT>
                   <MONTO>0000001144410</MONTO>
                   <RAZON_SOCIAL>PARODI ESTEBAN ARMANDO</RAZON_SOCIAL>
              </Embargos_ARBA_MT>
         </ns:Embargos_ARBA_MT>
    </Embargos_ARBA_DOC>
    to this abap Table....
      DATA: BEGIN OF i_embargos_arba_doc occurs 0,
              fecha TYPE d,
              cuit TYPE char11,
              monto TYPE char13,
              razon_social(120),
            END OF i_embargos_arba_mt.
    so i can transform it with this sentence
          CALL TRANSFORMATION ('embargos_transformation')
            SOURCE XML source
            RESULT Embargos_ARBA_DOC = embargos.
    pls i need help because i am unable to create this xslt transformation...
    I will give the highest rewards points to the one who can help me.
    thanks!
    mariano

    Hi Mariano
    Why you need to use XSLT for transforming XML file into ABAP table
    Code is a part of some ABAP report. Looks like it is reading a file from file system and updating table after transformation
    If you have requirement like you need to read XML file and then insert the data into a SAP table
    You can use
    File to RFC
    File to Proxy scenario using SAP PI.
    Please provide more inputs on requirement to help
    Thanks
    Gaurav

  • Problem with transform(source, result)

    Dear gurus,
    I have DOM document as source in my java program. The document has data for 1 record insert into a table.
    The insert will be done on the database side with dbms_xmlsave.insertxml(insctx, xmldoc) where xmldoc is my document and has VARCHAR2 type.
    I am looking for the correct syntax at the time when I do
    transformer.transform(source, result);
    so that I can pass 'result' to my database function that will do the insert with dbms_xmlsave.
    Can I have 'result' as of type 'String'?
    Thank you.
    Anatoliy

    Folks,
    Never mind - I found an example, I am using
    Writer outWriter = new StringWriter ( ) ;
    StreamResult outResult = new StreamResult ( outWriter ) ;
    transformer.transform ( source, outResult ) ;
    String strResult = null;
    strResult = outResult.getWriter ( ) .toString ( ) ;
    but now the problem is with the first line of the xml doc which is
    <?xml version = '1.0'?>
    The CallableStatement doesn't like the single quotes! What should I do - get rid of the first line OR change single quote with douable quotes OR may be something else?
    Thank you.
    Anatoliy

  • Source XML File Issue....

    Hi All,
    I am importing a source xml file using import manager.But the Number of root nodes changes in the source file changes when i import a xml file with only 1 record and multiple record.So I am unable to maintain a same map for the same xml file with different records.I guess something is wrong in my xml structure.
    This is my source xml file:
      >><?xml version="1.0" encoding="utf-8" ?>
      >><ns1:MT_MDM_003_Shipping xmlns:ns1="urn:HaworthInc-com:Customer_Master">
      >><Record>
      >><Sales_Organization>1001</Sales_Organization>
      >><Distribution_Channel>00</Distribution_Channel>
      >></Record>
      >><Record>
      >><Sales_Organization>1001</Sales_Organization>
      >><Distribution_Channel>00</Distribution_Channel>
      >></Record>
      >></ns1:MT_MDM_003_Shipping>
    If i use the above file in the import manager I am seeing the Source dropdown (Source Hierarchy) where we select the source file as
    >>None
    >>ns1:MT_MDM_003_Shipping
    >>Records
    If i use the same import file with just 1 record  as follows
    >><?xml version="1.0" encoding="utf-8" ?>
      >><ns1:MT_MDM_003_Shipping xmlns:ns1="urn:HaworthInc-com:Customer_Master">
      >><Record>
      >><Sales_Organization>1001</Sales_Organization>
      >><Distribution_Channel>00</Distribution_Channel>
      >></Record>
      >></ns1:MT_MDM_003_Shipping>
    If i use the above file in the import manager Now I am seeing the Source dropdown (Source Hierarchy) where we select the source file as only.Records is missing
    >>None
    >>ns1:MT_MDM_003_Shipping
    >>Records (This is missing now)
    Since I am missing the Records I have to create the different map for the same file.
    Is there anything missing in the XML???Or the XML structure is wrong????
    Any Help greatly appreciated.

    Thanks for the reply,
    I am running into this error now,when I use schema gainst the xml file...
    Logon Error: Cannot load xml file
    Error:
    COM error 80004005 Unspecified error
    source = msxml4.dll Description = file:///c:/.........
    The "namespace provided differs from the schema's 'urn:Test-com:Customer_Master' targetNamespace
    XML File:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:Import_File_Format_008_Correspondence xmlns:ns0="urn:Test-com:Customer_Master">
    <Record>
      <Customer_Nr>ZTEST001</Customer_Nr>
      <Company_Code>1001</Company_Code>
      <Acctg_clerk>03</Acctg_clerk>
      <Bank_statement>1</Bank_statement>
      <Acct_at_cust>ZZZZ1234</Acct_at_cust>
      <Decentralized_processing>x</Decentralized_processing>
      <Coll_Invoice_variant>z</Coll_Invoice_variant>
      <Customer_user>ZCUST USER</Customer_user>
      <Actclk_telno>CLERK TEL NR</Actclk_telno>
      <Clerks_fax>12345678</Clerks_fax>
      <Clerks_internet>clerk internet</Clerks_internet>
      <Account_memo>account memo</Account_memo>
      <Dunn_Procedure>1000</Dunn_Procedure>
      <Dunning_block>A</Dunning_block>
      <Dunnrecipient>CP3016</Dunnrecipient>
      <Legdunnproc>04/22/2008</Legdunnproc>
      <Last_dunned>04/21/2008</Last_dunned>
      <Dunning_level />
      <Dunning_clerk>06</Dunning_clerk>
      </Record>
      </ns0:Import_File_Format_008_Correspondence>
    XSD File:
      <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns="urn:Test-com:Customer_Master" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Test-com:Customer_Master">
      <xsd:element name="MT_MDM_008_Correspondence" type="DT_MDM_008_Correspondence" />
    <xsd:complexType name="DT_MDM_008_Correspondence">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">51f4f670330e11ddabec00112539c3ab</xsd:appinfo>
      </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="Record" minOccurs="0" maxOccurs="unbounded">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb01c4111ddabe302004c4f4f50</xsd:appinfo>
      </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Customer_Nr" type="xsd:string">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb11c4111ddccfa02004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Company_Code" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb21c4111dd818902004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Acctg_clerk" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb31c4111dda34102004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Bank_statement" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb41c4111dda01702004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Acct_at_cust" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb51c4111dd817202004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Decentralized_processing" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb61c4111ddb52602004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Coll_Invoice_variant" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb71c4111ddca1902004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Customer_user" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb81c4111ddb7a302004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Actclk_telno" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bb91c4111ddca3502004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Clerks_fax" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bba1c4111ddaad102004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Clerks_internet" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bbb1c4111dd956902004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Account_memo" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bbc1c4111ddb20902004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Dunn_Procedure" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bbd1c4111dd87e302004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Dunning_block" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bbe1c4111dd9aaa02004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Dunnrecipient" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bbf1c4111dda84302004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Legdunnproc" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bc01c4111ddae5402004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Last_dunned" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bc11c4111dd82e802004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Dunning_level" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bc21c4111ddc26a02004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    <xsd:element name="Dunning_clerk" type="xsd:string" minOccurs="0">
    <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">bcb36bc31c4111ddce7f02004c4f4f50</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>

  • EhP1 - Unable to create XML file in Solman

    Hi all,
    I need some assistance
    I am trying to upgrade our XI system to EhP1 - SP04. I use Maintenance Optimizer in our Solution Manager (SAP EHP 1 for SAP Solution Manager 7.0) to select the necessary files for my upgrade. The XI system has been set up in SMSY an given a Logical Component. Also, added to the Solution Landscape. I use the SAPehpi-installer to upgrade XI.
    However, when I get to section three, I am supposed to provide the SMSDXML.xml file. This file is not created by our Solution Manager for some reason. The file, as I understand it, is supposed to be generated automatically during Maintenance Optimizer. But when I check the EPS and EPS/in folder of our solman, the file is not to be found. I have also checked the parameter DIR_EPS_ROOT in RZ11. It is correct. The authorization has been set to full on group Everyone, just to check if that could be the problem, but with no luck.
    When I use transaction /n/tmwflow/mopz_stack i am able to view the XML file (I assume that it is the correct file), but any attempt to copy the text displayed, and to save it as an XML-file has not resulted in any success.
    The only thing I have to go on, is a warning displayed in Maintenance Optimizer, stating: "Warning - No SLM configured in system - <SID>. Every document etc, Iu2019ve read sais that one can use Software Lifecycle Manager as an alternative to Download Basket. I havenu2019t seen SLM listed as a prereq, so I donu2019t believe that this could be the reason why the XML-file is not generated.
    Is there some setup/configuration Iu2019ve missed?
    Any help will be much appreciated!
    Best Regards,
    Stian
    Notes checked:
    1134872 FAQ for stack Delta Files
    1022704 Upgrade phase EHP_INCLUSION and SPSTACK_REQUEST
    1277035 Solution Manager: EHP4 product data missing

    I downloaded the SPSTab.xml from SMP, but it didnt work. It gave an error: "The selected configuration file ("C:EHP1SPSTab.xml") is not usable. Reason: "Stackfile not found""
    I have used the dockument in the link you provided as a basis for my upgrade. So I still need this to work in order to upgrade my XI Netweaver 7.0 to Enhancement Package 1...
    In the document you provided:
    Section 3 SAP Solution Manager
    3.1 Support Package Level of SAP Solution Manager (Check - Mine is EHP1)
    3.2 System Landscape (SMSY) of SAP Solution Manager (Check - as stated above in opening post)
    3.3 SAP Solution Manager Maintenance Optimizer (Check)
    3.4 SAP Solution Manager Troubleshooting: (Check)
    3.4.4 No Stack Configuration File is generated: This is the core of my problem... I have read the notes listed, and run the IMG activity under Maintenance Optimizer, as per note 1134872. I get an warning stating "SAP ChaRM auto-configuration warnings" This could be the source of the problem, but in the thread Re: Message no. IMG_FASTCONF028  in Charm SolManiac says that it is nothing to worry about.
    So to summarise:
    I an still unable to generate XML file in Solman, and I am uable to get the XML downloaded from SMP to work with SAPehpi.
    BR
    Stian
    (EDIT: I am however not shure if the settings under SMSY etc are 100% correct, but in my mind, that should prevent Maintenance Optimizer from generating the XML file)
    Edited by: Stian Eiken on Jul 13, 2009 1:18 PM

  • Problem in transforming the xml in applet

    Hi guys
    I am parsing and transforming an xml in applet. parsing is working fine but transform is giving error. I am using jaxp and jdk1.4 plugin for applet. The error is
    Exception:
    Output method is xml could not load output_xml.properties (check CLASSPATH)
    org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not load output_xml.properties (check CLASSPATH)
         at org.apache.xalan.templates.OutputProperties.getDefaultMethodProperties(OutputProperties.java:364)
         at org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.java:130)
         at org.apache.xalan.transformer.TransformerIdentityImpl.<init>(TransformerIdentityImpl.java:104)
         at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:804)
    Code is
    *********************code***********************************
    TransformerFactory xformFactory = TransformerFactory.newInstance();
    Transformer idTransform = xformFactory.newTransformer();
    //create the Source object from document object
    Source input = new DOMSource(doc);
    StringWriter writer = new StringWriter();
    Result output = new StreamResult(writer);
    idTransform.transform(input, output);
    xmlString = writer.toString();
    *********************code***********************************
    Hope some one get a solution

    Hi
    I am using the parsers & transformers that came with JDK 1.4.
    i.e class org.apache.xalan.processor.TransformerFactoryImp
    Thank you.
    I solved that problem my making my applet signed.
    Now it is working fine.

  • XSLT transformation of XML string

    Hello Everyone,
    This is my first endeavor to use XSLT and XML in our newly upgraded system.  I can't for the life of me figure out what is wrong with my code and would appreciate someone just glancing over it and pointing out what is likely a realy dumb problem.
    I have a program that reads a PEXR2002 IDoc. For testing purposes, I've hardcoded that IDoc number. It runs fine, creates the XML fine, the xslt in STRANS tests fine as well...but in the end my ls_table is blank.  I've been fuddling with this for a while and would really appreciate another pair of eyes taking a look at it.
    THANKS!!
    Greg
    My program. (xslt is below...really simple, but it's my first time).
    TYPES: BEGIN OF ty_table,
            sndprn LIKE edidc-sndprn,
            bgmref TYPE edif1004_r,
            moabetr TYPE edif5004_a,
            credat TYPE edidat8,
            datum TYPE edidat8,
          END OF ty_table.
    DATA: o_idoc TYPE REF TO cl_idoc_xml1, str type string, ls_table type ty_table. 
    CREATE OBJECT o_idoc
      EXPORTING
        docnum = '0000000000211014'.
    CALL METHOD o_idoc->get_xmldata_as_string
      IMPORTING
        data_string = str.
    CALL TRANSFORMATION ZUSL_PEXR2002_V1
    SOURCE XML str
    RESULT HEADER_DATA = ls_table.
    My XSLT....
    <xsl:transform
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:asx="http://www.sap.com/abapxml"
        xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <asx:abap version="1.0">
          <asx:values>
            <HEADER_DATA>
              <SNDPRN>
                <xsl:value-of select="PEXR2002/IDOC/EDI_DC40/SNDPRN"/>
              </SNDPRN>
              <BGMREF>
                <xsl:value-of select="PEXR2002/IDOC/E1IDKU1/BGMREF"/>
              </BGMREF>
              <MOABETR>
                <xsl:value-of select="PEXR2002/IDOC/E1IDKU5/MOABETR"/>
              </MOABETR>
              <CREDAT>
                <xsl:value-of select="PEXR2002/IDOC/EDI_DC40/CREDAT"/>
              </CREDAT>
              <DATUM>
                <xsl:value-of select="PEXR2002/IDOC/E1EDK03/DATUM"/>
              </DATUM>
            </HEADER_DATA>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:transform>

    Hi Greg,
    please try it with the following (just slightly) modified transformation (works fine for me):
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns:asx="http://www.sap.com/abapxml"
                   xmlns:sap="http://www.sap.com/sapxsl"
                   version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:template match="/PEXR2002/IDOC">
        <asx:abap version="1.0">
          <asx:values>
            <HEADER_DATA>
              <SNDPRN>
                <xsl:value-of select="EDI_DC40/SNDPRN"/>
              </SNDPRN>
              <BGMREF>
                <xsl:value-of select="E1IDKU1/BGMREF"/>
              </BGMREF>
              <MOABETR>
                <xsl:value-of select="E1IDKU5/MOABETR"/>
              </MOABETR>
              <CREDAT>
                <xsl:value-of select="EDI_DC40/CREDAT"/>
              </CREDAT>
              <DATUM>
                <xsl:value-of select="E1EDK03/DATUM"/>
              </DATUM>
            </HEADER_DATA>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:transform>
    I recommend to test all transformations that you define on a sample source and check the output. If you apply your original transformation you would see that it basically doesn't select anything and therefore you just get an XML document with the field names but no values.
    Cheers, harald

  • XSLT Transformation from XML to ABAP  field

    Hi all,
    How can I retrieve my XML node's value (EMPLOYEE) XML to an ABAP variable (W_KUNNR)
      DATA w_kunnr TYPE string.
      CONCATENATE
        '<services>'
        '<Myservice>'
        '<APPLICATION>APPLI1</APPLICATION>'
        '<SERVICE>SERV1</SERVICE>'
        '<TOSAP>'
        '<EMPLOYEE>00000036</EMPLOYEE>'
        '</TOSAP>'
        '</Myservice>'
        '</services>'
      INTO request.
      CALL TRANSFORMATION z_trans
      SOURCE XML request
      RESULT kunnr = w_kunnr.
    thanks.
    Edited by: Noureddine MOUTAA on Oct 28, 2008 2:25 PM

    I did like this:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:output encoding="iso-8859-1" indent="yes" method="xml" version="1.0"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <KUNNR>
              <xsl:value-of select="//services/Myservice/TOSAP/EMPLOYEE"/>
            </KUNNR>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:transform>

  • Generating multiple target xmls from one source xml using xslt mappings

    Hi,
    I need to create more than one xml file from one source xml file using xslt mappings in file to file scenario.
    Can you please let me know how this can be achieved.
    Thanks,
    Rajesh

    Rajesh,
    If you must use the XSL Transformation then you can find a nice simple example here.  It's based on the Xalan XSLT Processor which to my knowledge is incorporated in PI7.1.  I've not actually tried this but it makes for an interesting mapping case so please let us know the results: 
    [XSLT Split for multiple XML file output|http://abbeyworkshop.com/howto/xslt/xslt_split/index.html]
    The XSL file will require a namespace addition:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="redirect" version="1.0">
    The redirect prefix is used for the write tags in the XSL file.
    The details cover the transformation of the source file:
    1:<student_list>
       2:    <student id="1">
       3:        <name>George Washington</name>
       4:        <major>Politics</major>
       5:        <phone>312-123-4567</phone>
       6:        <email>gw_at_example.edu</email>
       7:    </student>
       8:    <student id="2">
       9:        <name>Janet Jones</name>
      10:        <major>Undeclared</major>
      11:        <phone>311-122-2233</phone>
      12:        <email>janetj_at_example.edu</email>
      13:    </student>
      14:    <student id="3">
      15:        <name>Joe Taylor</name>
      16:        <major>Engineering</major>
      17:        <phone>211-111-2333</phone>
      18:        <email>joe_at_example.edu</email>
      19:    </student>
      20:</student_list>
    Using this transformation:
    2:<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    3:    xmlns:redirect="http://xml.apache.org/xalan/redirect"
    4:    extension-element-prefixes="redirect"
    5:    version="1.0"
    6:>
    7:<xsl:output method="xml"/>
    8:
    9:<xsl:template match="/">
    10:    <xsl:apply-templates />
    11:</xsl:template>
    12:
    13:<xsl:template match="student_list">
    14:    <xsl:apply-templates />
    15:</xsl:template>
    16:
    17:<xsl:template match="student">
    18:    <xsl:variable name="filename" select="concat(@id,'.xml')" />
    19:    <redirect:write select="$filename">
    20:        <student id="{@id}">
    21:            <xsl:apply-templates />
    22:        </student>
    23:    </redirect:write>
    24:</xsl:template>
    25:
    26:<xsl:template match="name | major | phone | email">
    27:    <xsl:copy-of select="." />
    28:</xsl:template>
    29:
    30:</xsl:stylesheet>

  • ConnectionCacheName not read from data-sources.xml

    I created a simple web application to test the use of the ConnectionCacheBean (from the jdbc 3.0 examples page). I read through the code and some other articles regarding data sources and noted that you "should" be able to set the connection cache name and caching enabled, as well as failover support, even in oc4j 9.0.4 and 10.1.2. I tried this (at least the first two), and it would NOT set the cache name.
    The data-sources.xml entry was the same as in the one documented here:
    http://www.oracle.com/technology/tech/java/newsletter/articles/oc4j_data_sources/oc4j_ds.htm
    What gives?
    Also, I tried to simulate the database going down - I killed all the sessions rather than doing a shutdown, but anyway... even with a connection cache property of validatelogin (i think that's the name) to true, and a refresh of invalid connections (they'd all be invalid if I killed them), it would only reactivate ONE SESSION. If I refreshed ALL Sessions, then it would do 9 of the 10 sessions (10 being my initial cache limit).
    Any ideas?
    I can post the code if that is an issue.

    A response I got back from Frances Zhao regarding the two issues that I experienced was:
    Issue#1: Cannot set the connectionCacheName via data-sources.xml
    1. This is very likely because of an OC4J bug that affects the actual order of
        setting each <property> specified in data-sources.xml.  The connection cache
        in OracleDataSource requires the cache-name property be set after the cache
        is enabled; but OC4J may not always follow this order, causing the name
        to be null.  If you really need the cache name, you have to do it in the code
        for now.
    Issue#2: Can't refresh the invalid connections
    2. These are known issues in the Oracle JDBC driver in both 10.1.0.4 and
        10.2.0.1.  The fix for the REFRESH_INVALID case will be in the next
        patch release for both 10.1.x and 10.2.x; the fix for the REFRESH_ALL
        case will come later.

  • Best way to Transform one XML to another XML using SSIS

    I am using Altova Mapforce tool to transform one XML into another XML, but now we are planning to use any other best way of using XSLT transformation. Could you guys shed me some light on different approaches and which one would be best based on time and
    cost constraint.
    In Altova Map force Tool, due to below reasons we wanted to avoid that,
    Resource cannot work parallely in single XSLT
    Maintanence is very difficult
    Licensed version of tool
    When the XML size grows, new resourse are feeling difficult to edit the XSLT etc.,
    Related to .net approaches would be best.
    Can we create XSLT by using SSIS to transfrom one xml into another xml format.
    In .net code we can do, but feel that it is time consuming due to large size of XML.
    Any other best way for handling XSLT transformation or any tool

    XSLT can be applied to an XML file fed as a source, but it does not resolve #1. I by the way do not understand this point, technically.
    For SSIS to go live in prod you need to deplete a SQL Server license (CPU + CALs).
    The time to transform in SSIS will be equal to doing in .net code as the whole SSIS is coded in .Net, too.
    Here, in this section of the forum we may not have the needed expertise in XSLT or XML transformations.
    In my IT life, XML transformations were done in Java if on a *NIX box. On Windows a C# .net app webservice did it. The most interesting implementation, and if you are a heavy users of XML is to use a dedicated database as Base X, it has an XLSLT transform
    moduleL http://docs.basex.org/wiki/XSLT_Module
    Arthur
    MyBlog
    Twitter

  • Splitting source xml tag value into parts in target xml

    Hi All,
    We have a requirement in our transformation as follows
    If you get String morethan 20 it should be split and assigned to target element.
    For example:
    There is one condition that the maximum lenght of the target element is 5.
    source xml:
    <test1>aassdfgghjkkll</test1>
    So the Target xml is should be like this
    <test2>aassd</test2>
    <test2>gghjk</test2>
    <test2>kll</test2>
    another example
    Source xml:
    <test1>qwert</test1>
    Target xmls
    <test2>qwert</test2>
    Thanks in Advance.
    Thanks and Regards,
    Nagaraju .D
    Edited by: user645787 on Feb 10, 2009 2:24 AM

    SQL> with Src_Data as (
      2    select XMLType('<test1>aassdfgghjkkll</test1>') as Src from dual union all
      3    select XMLType('<test1>qwert</test1>') as Src from dual
      4  )
      5  select XMLQuery(
      6      '
      7        for $s in 1 to (fn:string-length($Src) + 4) idiv 5
      8          let $substr := fn:substring($Src, ($s - 1) * 5 + 1, 5)
      9        return <test2>{$substr}</test2>
    10      '
    11      PASSING Src AS "Src"
    12      RETURNING CONTENT
    13    ).GetStringVal()
    14  from Src_Data
    15  ;
    XMLQUERY('FOR$SIN1TO(FN:STRING-LENGTH($SRC)+4)IDIV5LET$SUBSTR:=FN:SUBSTRING($SRC
    <test2>aassd</test2><test2>fgghj</test2><test2>kkll</test2>
    <test2>qwert</test2>Regards,
    Dima

Maybe you are looking for

  • AirPlay Mirroring Target has stopped working

    I'm attempting to record a demo from my iPhone 5 using the Reflector app (AirPlay Mirroring Target).  When I attempt to save the recorded video (MP4 is the only option available), I get this message: AirPlay Mirroring Target has stopped working A pro

  • Acknowledgment through Idoc ALEAUD

    Hi all, I'm receiving an invoice from a third-party system in SAP ECC through the Idoc INVOIC01. I have configured the Idoc ALEAUD01 to confirm to the 3rd-party system if the invoice has posted correctly. This Idoc sends out the idoc number of the in

  • How to configure TAF on RAC 10g

    Hi, I am facing issue with TAF over jdbc client. I have created the jdbc client (HelloWorld java program) to test TAF. The following is my jdbc url: "jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE=on)(FAILOVER=on)(ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP

  • Demo servlet IsItWorking doesn't work after fresh install

    Hello, We did a fresh install of Oracle 9iAS 1.0.2.2 on Hp-ux 11i The installation completed succesfully, but when trying to run the demo servlet IsItWorking, we get error 'The page cannot be displayed' The apache error_log file contains following li

  • The new version of Adobe Flash Player not working.

    The new version of Adobe Flash Player not working. She plants the clock to all videos , advertisements and links. I tried to uninstall and reinstall everything but the result remains unchanged. I am using Windows 8.1 and Mozilla Firefox. I need your