Tuesday, April 21, 2009

SAP mapping and XSLT fun

      If you are on a BizTalk , SAP project , Your XSLT skills can come real handy .
      For e.g. here I needed to set a flag to true based on the existence of value in a  node. Normally this is  easy but in this case that node happens to be in a repeatable group node which can occur n number of times where n is unknown .

      It would be a mapping nightmare or a custom Xml manipulation if not for XSLT

      <xsl:for-each select="//*[local-name()='Receive' and namespace-uri()='http://Idoc/3/DEBMAS06//700/Receive']/*[local-name()='idocData' and namespace-uri()='http://Idoc/3/DEBMAS06//700/Receive']/*[local-name()='E2KNA1M005GRP' and namespace-uri()='http://Idoc/3/DEBMAS06//700']/*[local-name()='E2KNVVM007GRP' and namespace-uri()='http://Idoc/3/DEBMAS06//700']/*[local-name()='E2KNVPM002' and namespace-uri()='http://Idoc/3/DEBMAS06//700']/*[local-name()='PARVW' and namespace-uri()='http://Idoc/3/DEBMAS06//700']">

      <xsl:variable name="nodeType"><xsl:value-of select="."/></xsl:variable>
      <xsl:if test="$nodeType ='WE'">

      <xsl:element name="shipToFlag">


choco said...

Another aspect worth considering for business and travel security is deciding which travel agent and travel agency to book your holiday or vacations with. Security is paramount.Reisen Sicherheit

private jets said...

Traveling by way of a charter plane service offers many wonderful benefits for the passenger. There's a reason the rich and famous want to fly using executive aircraft.

jega rose said...

They can do fixed rates because they have a lot less overhead costs than a professional studio. If you do choose a pro studio, plan your budget out.www.studio-six.com

seo services said...

Ensuring dominant online visibility is imperative in today's times, since an effective online presence boils down to increased revenue and traffic.

criminal lawyer toronto said...

Whether or not you are guilty there is always a chance that your case could have a bad outcome which is why it's so important to ensure you get the help you can.