Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mapping problem with context

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

Former Member
Not what you were looking for? View more on this topic or Ask a question