cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping - problem with target sequence

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

stefan_grube
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

hi.

How do you know the relathionship Segment A or B is there any field beetween them?