cancel
Showing results for 
Search instead for 
Did you mean: 

Context Handling

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member214364
Active Contributor
0 Kudos

Hi Jochen,

I have copied mapping images to the following URL

http://www.flickr.com/photos/14144840@N02/?saved=1

<u><b>Fig-1:</b></u> mapping Z1VARLEN(T)

1.inputs to <b>equalsS</b> are <b>KZAUS</b> attribute(Note:Change context to CSTICS) and <b>Constant</b> with value "2"

2. output of <b>equalsS</b> will become input to <b>if</b> boolean function as shown in fig-1

<u><b>Fig-2:</b></u> mapping GROUP(T)

1.inputs to <b>equalsS</b> are <b>KZAUS</b> attribute(Note:Dont change context) and <b>Constant</b> with value "2"

<u><b>Fig-2:</b></u> mapping VAR_LAENGE(T)

1.inputs to <b>equalsS</b> are <b>KZAUS</b> attribute(Note:Dont change context) and <b>Constant</b> with value "2"

Please let me know if you are not clear with this.

Cheers,

Jag

Former Member
0 Kudos

Hi Jag;

thank you for your suggestion.

The result of the mapping looks quite good.

My solution was close to your advice, bt without using the "removeContext" function.

Once more thanks for your help.

Kind regards

Jochen

Answers (1)

Answers (1)

former_member214364
Active Contributor
0 Kudos

Hi Jochen,

Do you get always CHARC and ATFLV values when KZAUS = "2"?

i look forward to hearing from you.

Cheers,

Jag