Skip to Content

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

Condition based Message Mapping

Hi,

IDoc contains 2 Segments:

Seg1 & Seg2.

Seg2 is the child of Seg1.

Seg1 contains field:

CODE

Seg2 contains fields:

DESCRIPTION

HIERARCHY

When i trigger the idoc, the data is stored as:

Seg1:CODE: 1001

-


Seg2:DESCRIPTION: test1,

-


HIERARCHY: 00

Seg1:CODE: 1002

-


Seg2:DESCRIPTION: test2,

-


HIERARCHY: 01

Seg1:CODE: 1003

-


Seg2:DESCRIPTION: test3,

-


HIERARCHY: 02

Seg1:CODE: 1004

-


Seg2:DESCRIPTION: test4,

-


HIERARCHY: 03

creating the duplicate segments as shown above.

-


This data is mapped to the structure in XI.

The structure to map will be as follows:

str1

---ID1

---DES1

---ID2

---DES2

---ID3

---DES3

-


i've to map depending on the field HIERARCHY condition.

IF HIERARCHY = '02' THEN

ID1 = 1003.

DES1 = TEST3.

IF HIERARCHY = '01' THEN

ID2 = 1002.

DES2 = TEST2.

IF HIERARCHY = '00' THEN

ID3 = 1001.

DES3 = TEST1.

-


How to map this condition based, in the MESSAGE MAPPING?

pls help in solving this if possible with a screen shot.

rgds,

balu

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