Powered By

Free XML Skins for Blogger

Powered by Blogger

Saturday, August 9, 2008

MapExampleFilterRecordsByQualifier in SAP XI

Problem

In this example, two identical Person records are mapped to each other. Only those records that contain an Id that is less than ten are to be copied to the target message. To facilitate this, the example uses a filter.

Solution

This graphic is explained in the accompanying text

The target field Person is a structure field that is only created if the condition /ns:MapExampleFlatStructureMessage/Person/Id <> is fulfilled. The target-field mapping for the Person field therefore uses the createIf function.

This graphic is explained in the accompanying text

/ns:MapExampleFlatStructureMessage/Person/Id is assigned to the context MapExampleFlatStructureMessage so that it can be read before the target field Person is created.

A simple assignment copies all other fields.

No comments:

Archives