Step – By – Step Simple Approach for XSLT Mapping

Step – By – Step Simple Approach for XSLT Mapping

Scenario

Scenario is simple File to File, with xslt mapping. This will send student data after massaging to the target location.

Input XML

Aashish

Sinha

99

99

Design Part in Integration Builder (Design)

Step 1.

First step is to create your Namespaces for this particular scenario.

image

Step 2.

Now Create Data Type for your scenario. That is source and target. Follow these screen shots.

image

Source Data type

image

Target data Type

image

Step 3:

Creation of Message type for Data Type

MT_Student

image

MT_Student_Result

image

Step 4.

Creation of Message Interfaces

MI_Student

image

MI_Student_Result

image" Step 5.

Now go to, Message objects and using Imported Archives, import your xslt Mapping. It should be in .zip / .jar file.

image

XSLT Mapping

xsltMapStudToResult.xsl

















Step 6.

Now, we need to create Interface mapping that is actual mapping between sources to target. Follow these screen shot to complete your design part.

image

image

Now activate the Change List and you are done with design part.

To test your XSLT mapping, go to Test tab in Display Interface mapping and provide data to see the desired result. See below:

image

image

Click on execute to run this, which is shown in red.

Move to Integration builder (Configuration)

Step 7.

Now create a communication channel for your Business system for receiver and sender.

CC_XSLT_FILESND

image

CC_XSLT_FILERCV

image

Step 8.

Create sender agreement.

image

Step 9.

Create receiver agreement.

image

Step 10.

Create receiver determination and also with the help of this step you will create Interface determination.

image" alt="" border="" hspace="" vspace="" width="" height="" align="" />

Interface Determination

image

Now we are done with configuration part. And activate these to run your scenario.

Put your input file at target location that you have provided in Communication channel.

Now go to sxmb_moni and look for your message.

image

Output XML.

urn:Aash:xsltMapping">

Aashish Sinha

198




SAP Developer Network SAP Weblogs: SAP Process Integration (PI)