cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem with context

Former Member
0 Kudos

Hello,

I have the following problem by mapping in the xi:

In the target structure i will replace the frequency of an source-structure.

source structure

MT_DATEN

row

L1

L2

field1

field2

row

L1

row

L1

L2

field1

field2

L2

field1

field2

L2

field1

field2

row

L1

L2

field1

field2

L2

field1

field2

target structure (IDOC 0...unbounded)

E1HEAD 1x

E1COND nx

Mapping: The following structures getting mapped:

L1 -> E1HEAD

L2 -> E1COND

-field_A

-field_B

-COUNTER-FIELD

L2-index(1,1,context)---E1COND-COUNTER-FIELD

The result:

IDOC1:

E1HEAD

E1COND

field_A

field_B

1

IDOC2:

E1HEAD

IDOC3:

E1HEAD

E1COND

field_A

field_B

<empty>

E1COND

field_A

field_B

1

E1COND

field_A

field_B

<empty>

IDOC4:

E1HEAD

E1COND

field_A

field_B

<empty>

E1COND

field_A

field_B

1

There must be a problem with the context because ,

I would like to have the following result:

IDOC1:

E1HEAD

E1COND

field_A

field_B

1

IDOC2:

E1HEAD

IDOC3:

E1HEAD

E1COND

field_A

field_B

1

E1COND

field_A

field_B

2

E1COND

field_A

field_B

3

IDOC4:

E1HEAD

E1COND

field_A

field_B

1

E1COND

field_A

field_B

2

I hope that somebody can help me

Chris

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

Look also at my blog for a use case for the index function:

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

Regards

Stefan

Message was edited by: Stefan Grube

Former Member
0 Kudos

Thanxs all.

My Problem was a context problem and I fixed my problem with the function "removeContext".

Christoph

moorthy
Active Contributor
0 Kudos

HI,

Check with the SplitByValue node functions.

Also go thru this link-

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Thanks,

Moorthy