on 06-09-2016 9:43 AM
Hi All
I have a scenario,in which below are my target and source structure
how can we achieve this from message mapping
My source data contains multiple line items
Each item tag contains a parameter ZSECTION which has values (10, 20 or so on). I want to club these item values as SCETION tag in target structure
e.g Source
<E_PRTAB>
<item>
<ZSection>10</zsection>
<text>abcd</text>
</item>
<item>
<ZSection>10</zsection>
<text>second item under a scetion</text>
</item>
<ZSection>20</zsection>
<text>abcd</text>
</item>
<ZSection>20</zsection>
<text>abcddskfsd</text>
</item>
<E_PRTAB>
Target Structure:
<section>
<name>10</name>
<includedInTotal>0</includedInTotal>
<parameterList/>
<parameter>
<description>abcd<description>
</parameter>
<parameter>
<description>second item under a scetion<description>
</parameter>
</section>
<section>
<name>20</name>
<includedInTotal>0</includedInTotal>
<parameterList/>
<parameter>
<description>abcd<description>
</parameter>
<parameter>
<description>abcddskfsd<description>
</parameter>
</section>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hasan,
Try with the below logic
ZSECTION-----removecontexts------Sort----CollapseContexts-----SpiltByValue(EachValue)------Section
Text--------Parameter
Text---------removecontexts----------------------------------------
use one as many-----description
ZSECTION-----removecontexts------Sort----SpiltByValue(EachValue)-----
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.