on 03-10-2010 4:44 PM
Hi, I hope somebody can help:
I have already read lots of blog entries and help articles to find a solution but all the tricks with node functions and special conditions didn't help yet.
I would like the sequence of A and B nodes just as is. In the source structure they are on the same level and in the target structure B is subnode of A.
Thank you very much in advance.
Source structure:
Node A
- source fields A
Node A
- source fields A
Node A
- source fields A
Node B
- source fields B
Node A
- source fields A
Node B
- source fields B
Node B
- source fields B
Target structure (desired):
A
- fields A
A
- fields A
A
- fields A
B
- fields B
A
- fields A
B
- fields B
B
- fields B
However, what I get is:
A
- fields A
B
- fields B
B
- fields B
B
- fields B
B
- fields B
A
- fields A
A
- fields A
A
- fields A
Hi,
Can u try like this.
Map one to one.
Dont use any node function also dont change any conexts also af any node or element.
But in target,make node B is under node A, and both are 0..unbounded occurence.
Try with this....
Let us know the result.
Babu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not possible with graphical mapping tool.
flat structures like your source usually come from file content conversion.
Here you can add additional tags
row
-> a
row
-> a
-> b
row
-> a
and so on. If you can influence the source structure, you can manage it.
if you just want to move the hierarchie, then you could write a Java program with SAX parser.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear all,
meanwhile I realized that this really doesn't work with a Message Mapping. Now I use 2 steps, an XSLT mapping to get the flat structure from the file adapter into the correct hierarchical form. The second step is the Message Mapping which transforms the intermediate message into the IDoc structure.
Thanks everybody for your help.
Best regards, Ulli.
hi.
How do you know the relathionship Segment A or B is there any field beetween them?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.