Problem With Match Transformation

Hi ,
I am using Match transformation to find the duplicates .
My input data like this
EMP NO     ENAME         SAL     DEPTNO
10     SRIRAM MV  10000     100
11     MV SRIRAM  11000     100
12     SRIRAM PV  11000     100
13     SRIHARI       11000     100
14     SUBBIAH       11000     100
15     RAMANA       11000     100
Iam finding the duplicates on Ename .
My ename data like SRIRAM MV, MV SRIRAM  like that data . both are duplicate records . for that iam using WORD SIMILARITY  option instead of field similarity with match score is 100 and no match score is 99.
But i am getting all are unique records .
If i am using match score is 85 and no match  score is 84 then iam getting the result like this .
EMP NO     ENAME     SAL     DEPTNO     GROUP_NUMBER     MATCH_STATUS     MATCH_SCORE
11     MV SRIRAM     11000     100     1     P     94
15     RAMANA     11000     100          U     
13     SRIHARI     11000     100          U     
10     SRIRAM MV     10000     100     1     D     
12     SRIRAM PV     11000     100     1     P     88
14     SUBBIAH     11000     100          U     
means MV SRIRAM,SRIRAM MV ,SRIRAM PV  comes under one group number with SRIRAM MV  as driver and MV SRIRAM as passenger with 94 similarity score and  SRIRAM PV as passenger with 88 score.
While i am using the match score i need to get 100% per SRIRAM MV and MV SRIRAM . then whats the settings needed to get correct result. whats the problem with my settings.
Please help me out to solve the problem
Thanks&Regards,
Ramana.

Ramana,
<<< My ename data like SRIRAM MV, MV SRIRAM like that data . both are duplicate records . for that iam using WORD SIMILARITY option instead of field similarity with match score is 100 and no match score is 99. >>>
You are looking for an exact match here, but MV SRIRAM and SRIRAM MV are not exactly the same.  The characters MV are in different positions.  The Word Similarity option compares words instead of the entire field, but the character position also affects the match score.
<<< While i am using the match score i need to get 100% per SRIRAM MV and MV SRIRAM . >>>
You cannot force the the match score to be a specific value.  SRIRAM MV and MV SRIRAM are not a 100% match and never will be.  What you need to do is adjust the match settings so that the dupe group includes SRIRAM MV and MV SRIRAM but excludes SRIRAM PV.  Try Match Score = 90 and No Match Score = 89.

Similar Messages

  • Why can't I receive help with my problems with Match? A service I pay for??

    Why can't I receive help with my problems with Match? A service I pay for??

    Hi,
    THis is a user help forum. If you tell us what your issues are, maybe someone can offer advice. Otherwise, read this https://www.apple.com/uk/support/itunes/itunes-match/
    JIm

  • Problem with CALL TRANSFORMATION xml - abap

    Hello!
    I got the following problems using call transformation to read a xml-file to local abap datatype!
    Simple xml file for testing:
    <BMECAT>
    <HEADER>
    asdf
    </HEADER>
    </BMECAT>
    XSLT file:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <xsl:value-of select="./BMECAT/HEADER"/>
      </xsl:template>
    </xsl:transform>
    The xslt transformation works with xslt-tester!
    My Source:
    DATA: xmlupl TYPE string,
    outputx TYPE XSTRING,
    lv_string TYPE string.
    * in xmlupl my xml import is stored
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
    text = xmlupl " variable type string
    IMPORTING
    buffer = outputx. " variable type xstring
    TRY .
         CALL TRANSFORMATION path_to_xslt_file
           SOURCE XML outputx
         RESULT HEADER = lv_string.
    CATCH cx_xslt_exception INTO xslt_error.
         data: xslt_message type string .
         xslt_message = xslt_error->get_text( ).
    ENDTRY.
    After debugging in xslt_message is stored the following text:
    "The element abap was expected for the XML-ABAP transformation"
    Can anyone help me with this problem?
    Regards,
    Daniel

    hi
    good
    try this code
    Just look at this piece of code, I think it should help you.
      DATA : ITAB   TYPE TABLE OF SPFLI,
             L_XML  TYPE REF TO CL_XML_DOCUMENT.
      SELECT * FROM SPFLI INTO TABLE ITAB.
    CREATE THE XML OBJECT
      CREATE OBJECT L_XML.
    CONVERT THE DATA TO XML
      CALL METHOD L_XML->CREATE_WITH_DATA( DATAOBJECT = ITAB[] ).
    DATA IS CONVERTED TO XML; DISPLAY THE XML-DOCUMENT
      CALL METHOD L_XML->DISPLAY.
    thanks
    mrutyun^

  • Problem with x:transform function : translation with XSLT

    I've got a problem with this code :
    This is the XML file :
    <%@taglib prefix="x" uri="http://java.sun.com/jstl/xml"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <c:import var="xslDoc" url="test.xsl"/>
    <x:transform  xslt ="${xslDoc}">
      <students>
      <student id="1">
       <name>
         <first>John</first>
         <last>Smith</last>
         <middle>T</middle>
       </name>
       <grade>
         <points>72</points>
         <letter>C</letter>
       </grade>
      </student>
    </students>
    </x:transform>This is the XSLT :
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="students">
      <html>
      <head>
      <title>XSLT Transform</title>
      </head>
      <body>
       <table border="1">
       <tr><th>First</th><th>Last</th>
    <th>Points</th><th>Letter</th></tr> 
       <xsl:apply-templates/>
       </table>
       </body>
      </html>
    </xsl:template>
    <xsl:template match="student">
      <tr>
       <td><xsl:value-of select="name/first"/></td>
       <td><xsl:value-of select="name/last"/></td>
       <td><xsl:value-of select="grade/points"/></td>
       <td><xsl:value-of select="grade/letter"/></td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>I use NetBeans 3.5.1 for compiling and testing, and on my machine all works fine.
    But when i upload the code on the server i''ve this type of error :
    HTTP Status 500 - Internal Server Error
    exception
    org.apache.jasper.JasperException: access denied (java.util.PropertyPermission org.xml.sax.driver read)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.security.AccessControlException: access denied (java.util.PropertyPermission org.xml.sax.driver read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
         at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
         at java.lang.System.getProperty(System.java:572)
         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:81)
         at org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(TransformSupport.java:280)
         at org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(TransformSupport.java:276)
         at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(TransformSupport.java:159)
         at org.apache.taglibs.standard.tag.el.xml.TransformTag.doStartTag(TransformTag.java:104)
         at org.apache.jsp.test_jsp._jspService(test_jsp.java:78)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
         at java.lang.Thread.run(Thread.java:536)
    org.apache.jasper.JasperException: access denied (java.util.PropertyPermission org.xml.sax.driver read)It seems a permission problem, but my experience with JSP is very poor , i've asked to control to my host
    the policy of the folders but they didn't respond me yet.
    Any suggestion ?
    Thx for reading, and sorry for my rusty english :-P

    Thanks.
    I've already tried to insert the whole path. You mean this,right ?
    <c:import var="xslDoc" url="http://www.domain.net/examples/test.xsl"/>I've searched a lot with google but i haven't find anything.
    I've not searched a lot into the jakarta site, I'll do tomorrow, now it's
    a bit late (1:45 AM in Italy :-0 ), so i think that i'll go to sleep.
    Thanks for responding so soon!
    I'll wait for your new infos.
    Thanks again.
    read you tomorrow.

  • Problem with Matching and Merging Step of MDM Workflow

    Hi,
    I have created a workflow which will first Match Step where the user will do both
    Matching and Merging. Then, it will go for a process step Final Review.
    Then, it will go for Branch step which is named as Decide on Check in.
    There are two workflow which are launched after this step.
    My workflow ran one time.
    The number of records is: 19585. The Match step which is assigned to a different user is not performing.
    It is a simple match based on First Name, Middle Name and Last Name.
    Any suggestion?
    Regards
    Kaushik Banerjee

    Hi Kaushik,
    What do you mean with "not Performing"? One suggestion, just log in with the 'Different User' who has been assigned for the matching task, and under that user goto the matching tab, in matching tab you will find a sub tab for Workflow, I hope you can work from there, If this doesnt solve your problem, then please let us know.
    Cheers,
    Cherry.
    Sorry problem with button;... so message came again... apologize.....
    Edited by: Cherry on Mar 23, 2009 9:42 PM

  • Problems with matcher.find()

    Hi,
    Here is what I'm trying to do. Read one (or more later) files...one line at a time and compare it with a regular expresion to extract email addresses.
    Here is my code:
    public final class RegExpressions {
        private static String REGEX;
        private static String INPUT;
        private static BufferedReader br;
        private static Pattern pattern;
        private static Matcher matcher;
        private static boolean found, b;
    public static void main(String[] args) throws Exception {
            initResources();
    private static void initResources() {
           try {         
                      br = new BufferedReader(new FileReader("titleInfo.txt"));
           catch (FileNotFoundException fnfe) {
                System.out.println("Cannot locate input file! "+fnfe.getMessage());
                System.exit(0);
           try {           
                REGEX = "(((\\w)(.)*)+@)";
                INPUT = null ;
                INPUT = br.readLine();
                pattern = Pattern.compile(REGEX);
                while ((INPUT = br.readLine()) != null)
                     // Reset the matcher to begin its next match starting at
                     // the beginning of the newly-read line.
                     matcher.reset(INPUT);
                     matcher = pattern.matcher(INPUT);
                     // Search for a match. A Boolean true value returns if a
                     // match is found.
                     System.out.println("Current INPUT is: "+INPUT);
                     b = matcher.find();
                     System.out.println ("matcher.find() is: " +b);
                     if (matcher.find())
                          System.out.println (INPUT);
           } catch(IOException ioe){}
           catch(PatternSyntaxException pse) {
               System.out.println("There is a problem with the regular expression!");
               System.out.println("The pattern in question is: "+pse.getPattern());
               System.out.println("The description is: "+pse.getDescription());
               System.out.println("The message is: "+pse.getMessage());
               System.out.println("The index is: "+pse.getIndex());
               System.exit(0);
            System.out.println("Current REGEX is: "+REGEX);
            System.out.println("Current INPUT is: "+INPUT);
        }The file I read in looks like this:
    Integration of Scheduling and Replication in Data Grids
    Anirban Chakrti Depak R.A. Shuhis Supta
    Software Engineering and Technology Laboratory
    Something Something Ltd.
    My City, Horse Road
    Bangalore 560 100, India
    Tel: 91 80 852 0261
    Fax: 91 80 852 0740
    {an_chakrti, depak_ra, shuhis_supta }@address.com
    Now what happens is that matcher.find() never finishes executing. Meaning my programs gets stuck at that particular line. I tested with Print statements before and after...etc. Can anyone help me with this problem? Thanks

    the only problem is that some of the emails do not contain the full names. For example if from the text below I extract the email addresses...
    Reckoning Legislative Compliances with Service Oriented Architecture
    � A Proposed Approach1
    Naveen N. Kulkarni K M Senthil Kumar Dr. Srinivas Padmanabhuni
    Software Engineering and Technology Labs, Infosys Technologies Ltd., Bangalore, India.
    {naveen_kulkarni,senthil_km,srinivas_p}@infosys.com
    ....and I'm also able to tokenize them (into naveen and kulkarni for example). How do I use this information to extract the names, which have me mentioned earlier on in the text. The format in which the names are written is not the same. ie it differs from paper to paper. Here is the idea I had....
    it seems that the first part of the email address always exists as it in the full name. If I used that in a regular expression...and went through the text file again trying to match that reg exp...that should work shouldn't it?
    here is my attempt...doesn't work though....any ideas...or an explanation why my code doesn't work?
        private static void extractNames() {
           try {         
                      br = new BufferedReader(new FileReader("titleInfo.txt"));
           catch (FileNotFoundException fnfe) {
                System.out.println("Cannot locate input file! "+fnfe.getMessage());
                System.exit(0);
           try {           
                for (int i=0; i<emails.length;i++){
                     int index = emails.indexOf("_");
              if (emails[i].indexOf("_") != -1){
                   StringBuffer firstName = new StringBuffer(temp.substring(0,index));
                   REGEX = "((.)[ ])*"+firstName+"((.)[ ])";
              pattern = Pattern.compile(REGEX); // I get a null pointer exception on this line...?
         while ((INPUT = br.readLine()) != null )
                   matcher = pattern.matcher(INPUT);
              System.out.println("Current INPUT is: "+INPUT);
              System.out.println ("Matche found? " +b);
              if (matcher.find()){
                   System.out.println (INPUT);
                   System.exit(0);
    } catch(IOException ioe){}
    catch(PatternSyntaxException pse) {
    System.out.println("There is a problem with the regular expression!");
    System.out.println("The pattern in question is: "+pse.getPattern());
    System.out.println("The description is: "+pse.getDescription());
    System.out.println("The message is: "+pse.getMessage());
    System.out.println("The index is: "+pse.getIndex());
    System.exit(0);
    System.out.println("Current REGEX is: "+REGEX);
    System.out.println("Current INPUT is: "+INPUT);
    Thanks!

  • FBL5N : problem with Match-code

    Hi,
    In Tcode FBL5N i click on match-code of Customer Account's field to choose a Customer, in the first table (Customers by company code) when Ii click on one customer the list of customers is closed but i get nothing in Customer Account's field (it is empty)
    Please how to resolve this problem ?
    Regards.
    Edited by: jehade el aoumari on Jan 20, 2010 9:28 AM

    Hi ,
    I had the same issue with FBL1N and I managed to solve it.
    1. Open SE11
    2. Select radio button search Help
    3. Enter DEBI
    4. Click on change
    5. Choose Maint. in logon lang.
    6. Go to tab Included search help
    7. Select line DEBID
    8. Click on Param. assignment
    9. On the 1st line enter      KUNNR     C      KUNNR
    10. On the 2nd line enter   BUKRS     C      BUKRS
    11. Save
    This should solve your issue.
    Regards,
    Ben

  • Problem with "CALL Transformation" in ABAP

    Hello All,
           I am creating XML from ABAP program and using CALL TRANSFORMATION. Everything works fine but when my XML is created sometimes in some "element" values it is truncating space between the texts. For example, I have a field "description" with value "Bon Apetite" it changes to "BonApetite" (space truncated) after transformation! I did research everywhere but could not find why this would happen! Please give me any feedback if you have any information.
    Thanks.
    Mithun

    Hello Mithun,
    when you use the call transformation statement you have to specifiy the xslt transformation used. As a first step you usually use the transformation with the name ID. This is a special transformation for making the asXML representation of abap data. Unfortunately if you look into this transformation you find the following:
    <xsl:transform version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    >
    <xsl:strip-space elements="*"/>
    <xsl:template match="/">
      <xsl:copy-of select="."/>
    </xsl:template>
    </xsl:transform>
    If I remember correctly when you use another transformation this will first call the ID transformation and after this the specified one. So it should not be possible to just copy ID transformation and remove the line. I'll have to think again how to avoid the behaviour.
    Best Regards
    Roman

  • Problem with XSLT Transformation on BPM

    Hi there,
    I have a 1:N File --> Idocs Scenario with BPM, Inside the BPM i have an XSLT Transformation that has a problem i cant figure out, basically this XSLT Groups the file structure like this:
    <File>                                                *                  <Shipments>
       <Route>                                         *                     <Route>
          <Id>1</Id>                                   *                         <Id>1</Id>
          <delivery>1</delivery>               *                         <delivery>1</delivery>
       </Route>                                        *                         <delivery>2</delivery>
      <Route>                                          *                     </Route>
          <Id>1</Id>                                   *                     <Route>
          <delivery>2</delivery>               *                         <Id>2</Id>
       </Route>                                        *                         <delivery>3</delivery>
      <Route>                                          *                         <delivery>4</delivery>
          <Id>2</Id>                                   *                      </Route>
          <delivery>3</delivery>               *                   </Shipments>
       </Route>                                        *
       <Route>                                         *
          <Id>2</Id>                                   *
          <delivery>4</delivery>               *
       </Route>                                        *
    </File>                                               *
    It's supposed to generate 1 Route Segment for each disctint Route Id on the Source file, it has always worked fine as we ran several tests before going into production system, but now, sometimes it misses a few routes for example the output will be 25 different Routes for a source file that 28, or 2 routes from a file that as 3.
    I have tested the XSLT on the repository and it works fine all the time, same thing when using xml spy, i always download the payload i get from the file adapter, i got a source file from PRD that has 28 routes and i ran the whole scenario on QAS and it generated 12 routes only, im about to open an OSS message but first i wanted to know if anyone has seen something like this, thanks in advance for all the help you guys can provide.
    Best Regards,
    Roberto.
    p.s. i can send the XSL if needed or anything just ask for it.

    Hi,
    Basically because i  have to do 2 transformations, first i run the XSLT to group all the deliveries and such, and then i do a graphic mapping to split it into single Shipment Idocs, i dont know how to group by id on graphical mapping..., anyway i don't think the fact that im using BPM would finally alter the xslt result,
    Regards,
    Roberto.

  • Newbie problem with JAXM - Transformer  Exception

    Hi there!
    I am looking for some start- up help.
    I have this SOAP message in a file (test.xml)
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:Header>
        <m:SessionID xmlns:m="Some-URL" value="2123123"/>
      </soap-env:Header>
      <soap-env:Body>
        <m:StartSession xmlns:m="Some-URL">
          <username>TestUser</username>
        </m:StartSession>
      </soap-env:Body>
    </soap-env:Envelope>I use the following lines of code
      StreamSource src  = new StreamSource(new File("c:/test.xml"));
      TransformerFactory tFact=TransformerFactory.newInstance();
      Transformer trans = tFact.newTransformer(src);And i get an Transformer exception saying
    javax.xml.transform.TransformerException: stylesheet requires attribute: versionAny hint? Thanks a lot!

    I think I found the problem because I managed to use the transformer ..and to read from the xml file.Aftwards with the output of the transformrt i produced a separaye xml
    WRONG ->>The passing parameter src
    Transformer trans = tFact.newTransformer(src);
    Anyway thats ok because I had to search through the XSLTC thing and read some usefull things!

  • Problems with xml transformation via xslt - strange results

    hi everybody...
    i've little trouble finalling a little tool programmed by myself for my education.
    the application contains a kind of document-server which enables the client to up- and download xml-document in a special format to/from the server.
    in case of the xml-dtd of client and server are different (same type of content, different dtd) the server implements a method called transform(StreamSource source, StreamSource xsl_stylesheet, StreamResult result) which contains the following code:
        transform(StreamSource source, StreamSource xml_stylesheet, StreamResult result) {
          try {
            TransformerFactory factory = TransformerFactory.newInstance();
            Templates template = factory.newTemplates(xsl_stylesheet);
            Transformer transformer = template.newTransformer();
            transformer.transform(source, result);
            return true;
          catch(Exception e) {
            return false;
        }the method is called by the methods downloadFile(...) and uploadFile(...) which both generate the different StreamSource- and StreamResult-Objects.
    by using the downloadFile(...) method, the requested file is transformed, stored temporary in a tmp-directory, read in and send to the requesting client.
    by using the uploadFile(...) method, the sent file is stored temporary in the tmp-directory, read in, transformed and stored as new server-document (if the file still exists it will be overwritten).
    My Problem:
    the result files generated by transform(SreamSource source, StreamSource xsl_stylesheet, StreamResult result) look strange. That means the result xml-code is not equal to the result xml-code i generated by transforming my xml-documents with saxon.
    The xsl files are correct and the xml files are wellformed as well as they are valid.
    The result files look like this:
    <?xml-stylesheet type="text-xsl" href="../xsl/SERVER.xsl"?>
       XYZ
       ABC
          1
          piece
          One piece of ABC(-> <?xml-stylesheet type="text-xsl" href="../xsl/SERVER.xsl"?> is a "string" of code from the source xml-file...)
    The result should look like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE a-resource SYSTEM "../dtd/A.dtd">
    <a-resource id="XYZ">
       <a-type>ABC</a-type>
       <a-data>
          <a-value>1</a-value>
          <a-unit>piece</a-unit>
          <a-descr>One piece of ABC</a-descr>
       </a-data>
    </a-resource>Is there anyone who knows what kind of mistake i did in my transform(...) method??
    Do I need to add some attributes to any of the Objects of Template of Transformer??
    please... help me
    i've been testing now over two nights long but couldn't find any solution how to bring my application to work "correct".
    thanks,
    Thof!!!

    ok...
    i got it!
    seems like jaxpi is unable to convert files with extensions different to .xml ...
    now it's working

  • B1iF 1.5 SQL Call problem with result transformation

    Hi all,
    i've made a scenario that reads a text file, and for each line, mak an sql call to find corresponding CardCode.
    Everything is ok until i want to transform the result of the SQL Call.
    Here is the result message
    <?xml version="1.0" encoding="UTF-8"?>
    <Msg xmlns="urn:com.sap.b1i.vplatform:entity">
      <Body>
        <Payload Role="C" id="atom5_1" system="0010000102" mode="single" method="Automatic detection by key word(Automatic detection by key word)" sql="SELECT CardCode,52657 as CodeTiers FROM OCRD WHERE U_CRL_CODE_DEN=52657" disable-output-escaping="false">
          <ResultSet xmlns="urn:com.sap.b1i.adapter:jdbcadapter" rowCount="0"/>
        </Payload>
        <Payload Role="C" id="atom5_2" system="0010000102" mode="single" method="Automatic detection by key word(Automatic detection by key word)" sql="SELECT convert(varchar,(Max(Convert(int,substring(CardCode,2,len(CardCode)-1))) + 1),20) as NewCardCode FROM OCRD WHERE Left(CardCode,1)= 'F' AND ISNUMERIC(substring(CardCode,2,len(CardCode)-1))=1" disable-output-escaping="false">
          <ResultSet xmlns="urn:com.sap.b1i.adapter:jdbcadapter" rowCount="1">
            <Row>
              <NewCardCode>3</NewCardCode>
            </Row>
          </ResultSet>
        </Payload>
      </Body>
    </Msg>
    When i apply the following XPath expression :
    //Msg/Body/Payload[@id='atom5_2']/jResultSet/Row/NewCardCode
    It gives nothing. So i've tried with XML Copy Editor, i've changed xmlns="urn:com.sap.b1i.adapter:jdbcadapter" to xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" and it works.
    It seems that the namespace is incorrect at the ResultSet level.
    So, here is my question : Why the SQL Call doesn't give the expected output ? How to correct it ?
    Thanks in advance !

    Well, i found a way to do it using local-name() function. it gives the following :
    <xsl:value-of select="$msg5_2[$Pos1]/*[local-name()='ResultSet']/*[local-name()='Row']/*[local-name()='NewCardCode']"></xsl:value-of>
    The job is done, but this not easy to read.

  • Problem with Xquery transformation in OSB

    hi,
    My scenario is that I have to break the data in a single tag of xml A, to populate multiple tags of xml B.I am using Xquery transformation and substring function to achieve this. The problem comes when i import the xquery resource in OSB and try to do the transformation in a proxy service it gives the following error
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382510</con:errorCode>
    <con:reason>
    *OSB Assign action failed updating variable "message": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}XP0006: "element {http://schemas.xmlsoap.org/soap/envelope/}Body { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type element {http://www.example.org/data}data { {http://www.w3.org/2001/XMLSchema}anyType }*
    </con:reason>
    <con:location>
    <con:node>PipelinePairNode1</con:node>
    <con:pipeline>PipelinePairNode1_request</con:pipeline>
    <con:stage>stage1</con:stage>
    <con:path>request-pipeline</con:path>
    </con:location>
    </con:fault>
    the configuration i have done in the proxy service is this::_
    Assign: [XQuery resource..] to [message]
    Delete: [.] in [body]
    Insert [$message] [as first child of][.] in [body]
    The Xquery resource is the .xq file that i have generated for Xquery transformation.
    and i m routing this proxy service to a business service that wud take the XML and dump it to my D drive using file protocol.
    Edited by: rahulc on Oct 12, 2010 12:40 AM
    Edited by: rahulc on Oct 12, 2010 12:41 AM

    My Xquery is this::
    (:: pragma bea:global-element-parameter parameter="$data1" element="ns0:data" location="data.xsd" ::)
    (:: pragma bea:global-element-return element="note" location="note.xsd" ::)
    declare namespace ns0 = "http://www.example.org/data";
    declare namespace xf = "http://tempuri.org/OSB_Try/tag_break/";
    declare function xf:tag_break($data1 as element(ns0:data))
    as element(note) {
    <note>
    <to>
    fn:substring(data($data1),
    1 ,
    6)
    </to>
    <from>
    fn:substring(data($data1),
    7 ,
    6)
    </from>
    <heading>
    fn:substring(data($data1),
    13 ,
    6)
    </heading>
    <body>
    fn:substring(data($data1),
    19 ,
    11)
    </body>
    </note>
    declare variable $data1 as element(ns0:data) external;
    xf:tag_break($data1)
    and my data is this::
    <?xml version="1.0"?>
    <ns0:data xmlns:ns0="http://www.example.org/data">DON'T FORGET ME THIS WEEKEND!</ns0:data>
    and i have tested this zquery for the above data and this is the transformation its doing::
    <note>
    <to>DON'T </to>
    <from>FORGET</from>
    <heading> ME TH</heading>
    <body>IS WEEKEND!</body>
    </note>
    Edited by: rahulc on Oct 12, 2010 1:57 AM

  • Problem with Simple Transformation

    Hi to all
    I am working with ST, and have the following issue:
    I have a highly nested xml structure, and, when I execute a abap program with a myself ST, only the last one data is passed to internal tables.
    I want to know: how can I do to get that all the information from xml file to store to internal tables but not only the latest information structure?
    For example I have the following xml file, and only the last occurence of <PSMService> is update in internal tables.
    Thank you very much for your help.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <InvoicingInformation>
    <Services>
    <PSMServices>
            <PSMService ContractCode="STF0996" InvoicePeriod="2011-01-31T00:00:00-06:00" ReceiptPointCode="347">
              <Transactions>
                <Transaction ReceiptPointCode="347" DeliveryPointCode="167" ExitTramoCode="15" SectorCode="SECTP_GNV">
                </Transaction>
              </Transactions>
              <DailyCharges>
                <DailyCharge ChargeCode="CHRGS_FIJO" Date="2011-01-01T00:00:00-06:00" Quantity="93" QuantityUnit="KPC">
                </DailyCharge>
                <DailyCharge ChargeCode="CHRGS_FIJO_COP" Date="2011-01-01T00:00:00-06:00" Quantity="93" QuantityUnit="KPC">
                </DailyCharge>
              </DailyCharges>
              <AggregateCharges>
                <AggregateCharge ChargeCode="CHRGS_DESVIO" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="COP">
                </AggregateCharge>
                <AggregateCharge ChargeCode="CHRGS_DESVIO_US$" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="USD">
                </AggregateCharge>
             </AggregateCharges>
            </PSMService>
            <PSMService ContractCode="STF0996" InvoicePeriod="2011-01-31T00:00:00-06:00" ReceiptPointCode="347">
              <Transactions>
                <Transaction ReceiptPointCode="347" DeliveryPointCode="192A" ExitTramoCode="16" SectorCode="SECTP_GNV">
                </Transaction>
              </Transactions>
              <DailyCharges>
                <DailyCharge ChargeCode="CHRGS_FIJO" Date="2011-01-01T00:00:00-06:00" Quantity="112" QuantityUnit="KPC">
                </DailyCharge>
                <DailyCharge ChargeCode="CHRGS_FIJO_COP" Date="2011-01-01T00:00:00-06:00" Quantity="112" QuantityUnit="KPC">
                </DailyCharge>
              </DailyCharges>
              <AggregateCharges>
                <AggregateCharge ChargeCode="CHRGS_FIJO" IsTiered="false" Quantity="560" QuantityUnit="KPC" CurrencyCode="USD">
                </AggregateCharge>
                <AggregateCharge ChargeCode="CHRGS_FIJO_COP" IsTiered="false" Quantity="560" QuantityUnit="KPC" CurrencyCode="COP">
                </AggregateCharge>
              </AggregateCharges>
            </PSMService>
            <PSMService ContractCode="STF0996" InvoicePeriod="2011-01-31T00:00:00-06:00" ReceiptPointCode="360">
              <Transactions>
                <Transaction ReceiptPointCode="260A" DeliveryPointCode="167" ExitTramoCode="15" SectorCode="SECTP_GNV">
                </Transaction>
                <Transaction ReceiptPointCode="260B" DeliveryPointCode="168" ExitTramoCode="15" SectorCode="SECTP_GNV">
                </Transaction>
              </Transactions>
              <DailyCharges>
                <DailyCharge ChargeCode="CHRGS_DESVIO" Date="2011-01-01T00:00:00-06:00" Quantity="0" QuantityUnit="KPC">
                </DailyCharge>
                <DailyCharge ChargeCode="CHRGS_DESVIO_US$" Date="2011-01-01T00:00:00-06:00" Quantity="0" QuantityUnit="KPC">
                </DailyCharge>
              </DailyCharges>
              <AggregateCharges>
                <AggregateCharge ChargeCode="CHRGS_DESVIO" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="COP">
                </AggregateCharge>
                <AggregateCharge ChargeCode="CHRGS_DESVIO_US$" IsTiered="false" Quantity="0" QuantityUnit="KPC" CurrencyCode="USD">
                </AggregateCharge>
              </AggregateCharges>
            </PSMService>
    </PSMServices>
    </Services>
    </InvoicingInformation>
    Edited by: Thomas Zloch on May 10, 2011 12:46 PM - code tags added

    Hi Charles.
    Thank you.
    This is a piece of the simple transformation:
    <Services>
    <!--                 PSM Services  -->
    <PSMServices tt:extensible="deep-dynamic">
    <tt:loop name="PSMService" ref="TABLA_PSM_SERVICES">
         <PSMService tt:extensible="deep-dynamic">
            <tt:attribute name="ContractCode" value-ref="$PSMService.ContractCode"/>
            <tt:attribute name="InvoicePeriod" value-ref="$PSMService.InvoicePeriod"/>
            <tt:attribute name="ReceiptPointCode" value-ref="$PSMService.ReceiptPointCode"/>
            <tt:attribute name="DeliveryPointCode" value-ref="$PSMService.DeliveryPointCode"/>
            <tt:attribute name="ExitTramoCode" value-ref="$PSMService.ExitTramoCode"/>
            <tt:attribute name="SectorCode" value-ref="$PSMService.SectorCode"/>
            <tt:attribute name="MarketCode" value-ref="$PSMService.MarketCode"/>
            <tt:attribute name="TransportMarketCode" value-ref="$PSMService.TransportMarketCode"/>
            <tt:attribute name="InvoiceBy" value-ref="$PSMService.InvoiceBy"/>
            <tt:attribute name="MarketCapacity" value-ref="$PSMService.MarketCapacity"/>
            <tt:attribute name="MarketCapacityUnitCode" value-ref="$PSMService.MarketCapacityUnitCode"/>
            <tt:attribute name="SAPMaterialCode" value-ref="$PSMService.SAPMaterialCode"/>
            <Transactions tt:extensible="deep-dynamic">
               <tt:loop name="Transaction" ref=".TABLA_PSM_TRANSACTIONS">
                 <Transaction tt:extensible="deep-dynamic">
                    <tt:attribute name="ReceiptPointCode" value-ref="$Transaction.ReceiptPointCode"/>
                    <tt:attribute name="DeliveryPointCode" value-ref="$Transaction.DeliveryPointCode"/>
                    <tt:attribute name="ExitTramoCode" value-ref="$Transaction.ExitTramoCode"/>
                    <tt:attribute name="SectorCode" value-ref="$Transaction.SectorCode"/>
                    <tt:attribute name="MarketCode" value-ref="$Transaction.MarketCode"/>
                    <tt:attribute name="MarketCapacity" value-ref="$Transaction.MarketCapacity"/>
                    <tt:attribute name="Firm" value-ref="$Transaction.Firm"/>
                    <tt:attribute name="Overrun " value-ref="$Transaction.Overrun "/>
                    <tt:attribute name="UnitCode" value-ref="$Transaction.UnitCode"/>
                    <tt:attribute name="SAPMaterialCode" value-ref="$Transaction.SAPMaterialCode"/>
                 </Transaction>
               </tt:loop>
            </Transactions>
            <DailyCharges tt:extensible="deep-dynamic">
                <tt:loop name="DailyCharge" ref=".TABLA_PSM_DAILYCHARGES">
                    <DailyCharge tt:extensible="deep-dynamic">
                        <tt:attribute name="ChargeCode" value-ref="$DailyCharge.ChargeCode"/>
                        <tt:attribute name="Date" value-ref="$DailyCharge.Date"/>
                        <tt:attribute name="Quantity" value-ref="$DailyCharge.Quantity"/>
                        <tt:attribute name="QuantityUnit" value-ref="$DailyCharge.QuantityUnit"/>
                    </DailyCharge>
                </tt:loop>
            </DailyCharges>
            <AggregateCharges tt:extensible="deep-dynamic">
                <tt:loop name="AggregateCharge" ref=".TABLA_PSM_AGGREGATECHARGES">
                    <AggregateCharge tt:extensible="deep-dynamic">
                        <tt:attribute name="ChargeCode" value-ref="$AggregateCharge.ChargeCode"/>
                        <tt:attribute name="IsTiered" value-ref="$AggregateCharge.IsTiered"/>
                        <tt:attribute name="Quantity" value-ref="$AggregateCharge.Quantity"/>
                        <tt:attribute name="QuantityUnit" value-ref="$AggregateCharge.QuantityUnit"/>
                        <tt:attribute name="CurrencyCode" value-ref="$AggregateCharge.CurrencyCode"/>
                        <tt:attribute name="TariffRate" value-ref="$AggregateCharge.TariffRate"/>
                        <tt:attribute name="TariffRateUnit" value-ref="$AggregateCharge.TariffRateUnit"/>
                    </AggregateCharge>
                </tt:loop>
              </AggregateCharges>
            </PSMService>
           </tt:loop>
          </PSMServices>
      </Services>
    Edited by: Thomas Zloch on May 10, 2011 12:47 PM - code tags added

  • Sound check / normalization problem with matched versus uploaded tracks

    I am finding that matched tracks are playing MUCH louder than uploaded tracks on my iPod.  Before I started the match process, my library was normalized to an 89 dB reference level, which USED to be the audio engineering standard for recordings.  The AAC tracks that Apple has matched my tracks with seem to be as much as 10 dB above this -- the difference is painful.  To make matters worse, iTunes Match usually only matches portions of albums, so some of the tracks (the uploaded ones) are playing back at a reference of 89dB while the matched tracks are playing back at whatever Apple uses (my guess is @98-100 dB).  My understanding of the MP3 file format is that there is no benefit to ripping to a 100 dB level. It is not like the old days of analogue tape where you could improve the signal-to-noise-ratio by recording slightly 'hot.' In an MP3 file, there is normalization information stored in the file header. I do not know about AAC files.
    I have turned 'sound check' on on my iPod, but it doesn't seem to make a difference.  Has anyone found a way to fix this issue short of renormalizing the entire library and then re-uploading verything to the Match service?  Needless to say, the original process of getting everything I owned to 89 dB was tedious in the first place and I don't want to have to redo that.  If I do need to redo everyhting, does anyone know what reference level Apple uses for its matched files?   

    @ roebeet.  Thanks for telling me that 'Sound Check' does not work in iOS 5.  That is what I had found, but it's good to know it's not just me.  I talked to an Apple tech support guy and he seemed to know nothing about this.  He had me hard reset my iPod and then wrote it up.  He was quite nice about it, and suggested I send a recomendation email to Apple.
    I downloaded a half dozen of Apple's matched AAC tracks from the iCloud and ran a volume check on them, and they seem to be using levels in the upper 90 dB range, so my guess that their tracks were a full 10 dB louder than my 89 dB tracks was confirmed.  What I've done to solve this is to remove all my uploaded MP3 tracks from the iCloud and from iTunes, renormalize them to 98 dB instead of 89 dB, then reimport them into iTunes and then reupload them to the iCloud.  It seems to be working so far.
    You are right about some of Apple's stuff being clipped.  You don't need Audacity, either: digital clipping sounds so very very ugly.  The Apple 256 kbs AAC version of 'Babe I'm Gonna Leave You' from Led Zepplin I is clipped.  There is no excuse for this.  It makes me wonder how to alter a file so that it won't be matched: my MP3 version of the song is fine.
    Thanks again for your help.

Maybe you are looking for

  • Improve performance of the below query

    Hi Gurus, I have following query with the plan described. I need to improve the the performance of this query as it is using full table scans. How could achieve this. SELECT csf.*,        NULL subject_flag,        NULL next_exp_rewards_date,        0

  • Battery - 95% and still calculating

    I have OS 10.9 on my 1.2 ghz iBook G4. The battery is one of those replacements Apple gave us for that whole potential-burning-battery thing. I recently decided to switch the menubar battery indicator from percentage to time, and I've noticed somethi

  • Strange Behavior of GET PERNR

    Hi All, I am facing a strange behavior with GET Event for PNP LDB. In my selection-screen, i have fields like Payroll Area, Current Period, Other Period, personnel number. Usually, i populate Payroll area, other period(say 06-2007) and input some per

  • Strange behavior in 10.6.2

    I am experiencing a strange problem on my home iMac. After booting it up, things will work okay for a while, then randomly it will start this strange phenomenon. I'll be using a program, Pages for example, and then click onto the desktop to use Finde

  • Pages disappeared from the "pages window"

    pages suddenly disappeared from the pages window. whatever file i open or create and no matter how many pages i add, they do not appear in the "pages window". it is completely blank as if no file is opened. therefor i cannot edit, move or manage the