on 07-13-2015 5:12 PM
Hi All,
My Source structure is like below.
Role
RoleCode
Group
Requirement is if the Rolecode starts with Vendor/Supplier and Group field exist then pass the group value to KTOKK field of IDoc.
Please help how to implement the xslt code for this requirement.
Regards,
karthiga
You could try somethnig like:
<xsl:for-each select="Record/Role[(starts-with(RoleCode,'Vendor') or starts-with(RoleCode,'Supplier'))]">
<xsl:if test="Group">
<!-- create your target node -->
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthiga,
There is a XSLT instruction to compare a string with a string pattern:
<xsl:if test="starts-with(//RoleCode, //Group)">
</xsl:if>
If you share your source and target XML we can try to do the XSLT complete.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Inaki,
Please see below structure.
Record
Partner number
Roles
RoleCode
AccountGroup
if Rolecode strats with vendor or supplier and AccountGroup field exist for role code (vendor/supplier),then pass the account group to KTOKK field of Idoc.
This is our requirement.Record can occur multiple times.
Regards,
Karthiga
Hi,
I don't see any constraint to use graphical mapping.
Could you please share complete source structure?
regards,
Roberto.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.