on 12-28-2011 2:56 PM
Hi gurus,
we need help for following graphical mapping problem.
Our input message structure and payload is like;
<MT_INPUT>
<Header>
<VendorName>GREEN IT</VendorName>
</Header>
<Records>
<MType>T</MType>
<Unit>KG</Unit>
<MS>40</MS>
</Records>
<Records>
<MType>S</MType>
<Unit>STK</Unit>
<MS>2</MS>
</Records>
<Records>
<MType>S</MType>
<Unit>STK</Unit>
<MS>5</MS>
</Records>
<Records>
<MType>T</MType>
<Unit>KG</Unit>
<MS>30</MS>
</Records>
<Records>
<MType>S</MType>
<Unit>STK</Unit>
<MS>3</MS>
</Records>
</MT_INPUT>
We need only the values with Mtype = T
needed output message is like;
<MT_OUTPUT>
<Header>
<VendorName>GREEN IT</VendorName>
</Header>
<Records>
<Type>Total</Type>
<Unit>KG</Unit>
<VALUE>40</VALUE>
</Records>
<Records>
<Type>Total</Type>
</Records>
<Records>
<Type>Total</Type>
</Records>
<Records>
<Type>Total</Type>
<Unit>KG</Unit>
<VALUE>30</VALUE>
</Records>
<Records>
<Type>Total</Type>
</Records>
</MT_OUTPUT>
Kind Regards,
PM
MType---
------ equals-----if withoutelse(Unit----then) ------UNIT
Constant("T")---
MType---
------ equals-----if withoutelse(ms----then) ------VALUE
Constant("T")---
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you should be ideally able to hande this with simple IF -ELSE function.
what is the problem you are running into?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.