Skip to Content
0
Former Member
May 18, 2005 at 10:35 PM

ResultList object usage

35 Views

Hello

I am having a scenario where my source structure is having occurences 0..9999 and my target structure is having occurence as 1.

e.g. my source structure looks like

<E1MLGNM SEGMENT="1">

<MSGFN>005</MSGFN>

<LGNUM>510</LGNUM>

<LHMG1>0.000</LHMG1>

<LHMG2>0.000</LHMG2>

<LHMG3>0.000</LHMG3>

<MKAPV>0.000</MKAPV>

<LGBKZ>015</LGBKZ>

<VOMEM>N</VOMEM>

</E1MLGNM>

<E1MLGNM SEGMENT="1">

<MSGFN>005</MSGFN>

<LGNUM>530</LGNUM>

<LHMG1>0.000</LHMG1>

<LHMG2>0.000</LHMG2>

<LHMG3>0.000</LHMG3>

<MKAPV>0.000</MKAPV>

<VOMEM>N</VOMEM>

<LGBKZ>011</LGBKZ>

I want my target field to contain value 011.For that I had done many conditions in the map and finally I am getting [ ] and [11] in the queue.I want to fetch value 11 from the array and map to my target structure.

Can resultlist object be used to have only one value? I tried to use result.addValue and result.addSuppress functions but they also give result [] and [11] in the display queue and hence i m getting blank in the target structure.

Thanks in advance.

Regards

Rajeev