Start of Content Area

This graphic is explained in the accompanying text MapExampleFilterRecordsByQualifier  Locate the document in its SAP Library structure

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 < 10 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.

 

 

 

 

 

End of Content Area