on 05-23-2007 5:02 PM
hello,
Can you tell me how to map these items (by grouping)
ns0:OrdersInput xmlns:ns0="urn:symbol:motorola:integration">
<OrdersRecord>
<Orders>
<ShipSetNo>1 </ShipSetNo>
<FcsProdType>FNE</FcsProdType>
<PartNum>ST1407 </PartNum>
</Orders>
<Orders>
<ShipSetNo>1 </ShipSetNo>
<FcsProdType>FNE</FcsProdType>
<PartNum>ST1408 </PartNum>
</Orders>
<Orders>
<ShipSetNo>1 </ShipSetNo>
<FcsProdType>FNE</FcsProdType>
<PartNum>ST1409 </PartNum>
</Orders>
<Orders>
<ShipSetNo>2 </ShipSetNo>
<FcsProdType>FNE</FcsProdType>
<PartNum>ST1410 </PartNum>
</Orders>
<Orders>
<ShipSetNo>2 </ShipSetNo>
<FcsProdType>FNE</FcsProdType>
<PartNum>ST1411 </PartNum>
</Orders>
<Orders>
<ShipSetNo>2 </ShipSetNo>
<FcsProdType>FNE</FcsProdType>
<PartNum>ST1412 </PartNum>
</Orders>
<OrdersRecord>
I want to map it to
E1CUCFG SEGMENT="1"><SEMENT><ShipSetNo><1</ShipSetNo<E1CUVAL SEGMENT="1"><PartNum>ST1408 </PartNum></E1CUVAL>
E1CUVAL SEGMENT="1"><PartNum>ST1409 </PartNum></E1CUVAL>
E1CUCFG SEGMENT="1"><SEMENT><ShipSetNo><2</ShipSetNo<E1CUVAL SEGMENT="1"><PartNum>ST1411 </PartNum></E1CUVAL>
E1CUVAL SEGMENT="1"><PartNum>ST1412 </PartNum></E1CUVAL>
Basically , what I want to do is to pick the new value of ship set no and move it to E1CUCFG segment and group all the the patnum with the same shipset no under the E1CUCFG segment in (E1CUVAL segment).
Any help will be appreciated.
Raj---
Hi Rajan,
Try this
ShipSetNo(try using all context) -
>SplitByValue(ValueChange)-->CollapseContext->SplitByValue(Each Value)--ShipSetNo
PartNumber--
ShipSetNo(try using all context) -
>SplitByValue(ValueChange)-------/
it will be better to provide solution if u give ur target structure properly.
Thanks,
Maheshwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajan,
Try this,
ShipSetNo(Context OrderRecord)->SplitByValue(Value Change)->collapseContex--->E1CUCFG
ShipSetNo(Context OrderRecord)->SplitByValue(Value Change)->collapseContex------
-
>SplitByValue(Each Value)--->ShipSetNo
PartNum--
ShipSetNo(Context OrderRecord)->SplitByValue(Value Change)----/
PartNum--
ShipSetNo(Context OrderRecord)->SplitByValue(Value Change)----/
Thanks,
Maheshwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Maheshwari.
The target structure is part of ORDERS05 idoc (I replaced the charc field with partnumber).
How do I map the root node. Is it OrdersRecord->E1CUFG AND OrdersRecord->E1CUVAL.
I tried your suggestion. unfortuantely I'm finding that the partnumbers of all the first element of Context are coming under the first E1CUFG and nothing is coming for the second E1CUFG segment
i.e
E1CUCFG SEGMENT="1"><SEMENT><ShipSetNo><1</ShipSetNo>
<E1CUVAL SEGMENT="1"><PartNum>ST1408 </PartNum></E1CUVAL>
E1CUVAL SEGMENT="1"><PartNum>ST1410 </PartNum></E1CUVAL>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rajan,
Check this claus weblogs which were mentioned on this type of issues:
/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool
---Satish
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.