Skip to Content
0
Former Member
Dec 10, 2007 at 03:32 PM

Context Handling

16 Views

Hi @ll;

i try to realize a Message Mapping in a Szenario.

Unfortunately I have some problems with the context handling

The input message looks like this

<E1EDP01>
	<POSEX> ... </POSEX>
	<LGORT/>
	<configuration>
		<configKey>abc</configKey>
		<details>
			<INST>
				<CSTICS>
					<CSTIC CHARC="FMU860_010" ATFLV="111" KZAUS="2" KBETR="62"/>
					<CSTIC CHARC="VARCOND_RESULT"/>
					<CSTIC VALUE="1" KZAUS="1"/>
					<CSTIC CHARC="FMU860_030" ATFLV="222" KZAUS="2" KBETR="74"/>
				</CSTICS>
			</INST>
		</details>
	</configuration>
</E1EDP01>

And the target message like this

<E1EDP01 SEGMENT="1">
	<POSEX>00010</POSEX>
	<Z1VARLEN SEGMENT="1">
		<GROUP>this should be CHARC e.g FMU860_010"</GROUP>
		<VAR_LAENGE>this should be ATFLV</VAR_LAENGE>
	</Z1VARLEN>
</E1EDP01>

I want to create the target element<Z1VARLEN/> depending on the attribute KZAUS (value should be KZAUS="2") of the element CSTIC. .

Further if <Z1VARLEN/> is created, the child element <GROUP> should contain the value of the CHARC element of the suitable CSTIC.

a example is shown in the target message.

how can I realize that using the Node Functions of the Message Mapping?

I hope your experts can give me some advice

Thanks in advance

Kind regards

Jochen