Skip to Content
0
Feb 24, 2009 at 01:55 PM

Message Mapping depending on content

31 Views

Hi

I have the following source:

<record> (0..unbound)

<localDmdUnit>0899878244</localDmdUnit> (0..1)

<localPackSize>1</localPackSize> (0..1)

<markForDeletion>1</markForDeletion> (0..1)

</record>

and the target

<LoadEntityLoekz> (0..unbound) mapped with record

<EntityLoekz action="UPDATE_INSERT">

<table>STSC.ENTITYLOEKZ</table>

<access>

<ITEM></ITEM>

<LOC></LOC>

</access>

<key>

<ITEM></ITEM>

</key>

</EntityLoekz>

</LoadEntityLoekz>

In the source the <markForDeletion> can be 0 or 1. If it is 1 the <record> should be mapped with the target, otherwise <LoadEntityLoekz> should not be created.

i've tried with this mapping but it doesn' work:

record -> exists \

-> AND -> createIf -> LoadEntityLoekz

if (markForDeletion == 1) /

Nothing will be mapped

Any idea?

Thanks

Ronny