cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping condition based

Former Member
0 Kudos

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.

Regards,

Balaji

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

closed

Former Member
0 Kudos

hi,

you can achieve this by using Fix values function in message mapping.

regards.