Skip to Content
0
Former Member
Dec 28, 2011 at 02:56 PM

Graphical mapping issue

10 Views

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