on 02-20-2008 10:12 AM
Hello,
we want to use the value mapping table in ID with XSLT.
Here is my source:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Source xmlns:ns0="http://comsol-ag.com/xi/rfcxslt">
<CustomerNumber>A</CustomerNumber>
</ns0:Source>
XSLT Mapping:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:trg="http://comsol-ag.com/xi/rfcxslt" xmlns:ns0="http://test/xi/tsts" xmlns:ValueMap="java:com.sap.aii.mapping.value.api.XIVMService">
<xsl:template match="/">
<trg:Target>
<CustomerInfo>
<xsl:variable name="sourceValue" select="ns0:Source/CustomerNumber"/>
<ID>
<xsl:value-of select="$sourceValue"/>
</ID>
<xsl:variable name="response" select="ValueMap:executeMapping('http://sap.com/XI/xi','SourceAgency','SourceScheme',string($sourceValue),'http://sap.com/XI/xi','TargetAgency','TargetSchema')"/>
<Name>
<xsl:value-of select="$response"/>
</Name>
</CustomerInfo>
</trg:Target>
</xsl:template>
</xsl:stylesheet>
Target:
<?xml version="1.0" encoding="utf-8" ?>
<trg:Target xmlns:trg="http://comsol-ag.com/xi/rfcxslt">
<CustomerInfo>
<ID>A</ID>
<Name /> ???????????????????????????????????
</CustomerInfo>
</trg:Target>
But the receiving data is not converted to value table in ID:
Integration Directory Value Table :
http://www.image-load.eu/out.php/i26896_pic1.PNG
Please point out where i m going wrong.
Thanks
problem solved!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.