How to create XSLT to map PI to CPI channels

How to create XSLT to map PI to CPI channels

How do you create XSLT to be used in the mapping of SAP PI to SAP CPI. 
You should start by looking in the git repository and use it as templates.

Here is an example of and XSLT
  1. <xsl:stylesheet version="2.0" xmlns:xsl=""  xmlns:ns2="" xmlns:figaf="" xmlns:ifl="http:///" >
  2.     <xsl:output indent="yes"/>

  3.     <xsl:template match="ns2:CommunicationChannel">
  4.         <figaf:Block>
  5.             <Name>FTP</Name>
  6.             <ExtensionElements>
  7.                 <ifl:property>
  8.                     <key>fileName</key>
  9.                     <value>{{FTP_FILENAME}}</value>
  10.                 </ifl:property>
  11.                  <ifl:property>
  12.                     <key>path</key>
  13.                     <value>{{FTP_DIRECTORY}}</value>
  14.                 </ifl:property>
  15.                     <key>encryption</key>
  16.                 <ifl:property>
  17.                     <value>ftpes</value>
  18.                 </ifl:property>
  19.                 <ifl:property>
  20.                     <key>host</key>
  21.                     <value>{{FTP_HOST}}</value>
  22.                 </ifl:property>
  23.                 <!-- More lines -->
  24.              </ExtensionElements>
  25.             <ExternalProperties>
  26.                 <item>
  27.                     <name>FTP_PASSWORD</name>
  28.                     <value><xsl:value-of select="CommunicationChannelID/ComponentID"/>_USER</value>
  29.                </item>
  30.                 <item>
  31.                     <name>FTP_HOST</name>
  32.                     <value><xsl:value-of select="AdapterSpecificAttribute[Name='']/Value"/></value>
  33.                 </item>
  34.                 <item>
  35.                     <name>FTP_DIRECTORY</name>
  36.                     <value><xsl:value-of select="AdapterSpecificAttribute[Name='ftp.targetDir']/Value"/></value>
  37.                 </item>
  38.                 <item>
  39.                     <name>FTP_FILENAME</name>
  40.                     <value><xsl:value-of select="AdapterSpecificAttribute[Name='file.targetFileName']/Value"/></value>
  41.                 </item>
  42.             </ExternalProperties>
  43.             <Notifcations>
  44.                 <Warning>Check FTP credentials exsists</Warning>
  45.             </Notifcations>
  46.         </figaf:Block>
  47.     </xsl:template>
  48. </xsl:stylesheet>

    • Related Articles

    • Create Service Keys for SAP CPI Cloud Foundry

      For SAP CPI Cloud Foundry you have an option to use Service Keys to send messages. The Figaf Tool will not test the properties are correct before running tests.  To create a service key for running test follow the procedure. 1 ) Goto SAP BTP Cockpit ...
    • Create a git repository for SAP Cloud Integration

      In this guide you will see how you can create a git repository for your SAP CPI/Cloud Integration system.  Before you start you need 1. Have installed Figaf 2. Have connected it with a SAP CPI tenant 1. Create a git repository on forinstance github ...
    • Testing SAP PI to CPI Migrations

      In this article, you will see how you can test how the migration of your SAP CPI migration went.  We have recorded a video about how to create the testing ​ Create SAP PI Test case Find the ICO to select the recording from Create a Recording request ...
    • How to install Figaf to handle SAP PI to CPI migrations

      This guide shows you how to install the Figaf Suite, and enables you to create your first SAP PI to CPI migration.  It is recommended that you follow along in the video.  ​ Install the Tool Registered for the Trial on Figaf  and you will get the ...
    • Configure CPI agents

      Figaf tool supports both CPI platforms: Neo and Cloud Foundry. The configuration of such agents has some differences though there are lots of common settings. You can find details about all parameters ...