cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping issue with outbound IDOC

Former Member
0 Kudos

Hi. I am using the DELVRY03 IDOC as an outbound interface. The IDOC has multiple segments. In summary here are the two segments I am taking data from.E1EDL20 and E1EDL24. The structure in XI looks similar to this.

DELVRY03

IDOC

EDI_DC40

E1EDL20 1..9999

VBELN

VKORG

.

.

E1EDL24 0..9999

POSNR

MATNR

.

.

My target structure is a SQL table Where every row will contain the following information under the access line.

access

DeliveryNumber

DeliveryLineItem

SalesOrg

Material number

.

.

I map access to the E1EDL24 segment

I map delivery number to E1EDL20.VBELN

I map SalesOrg to E1EDL20.VKORG

I map DeliveryLineItem to E1EDL24.POSNR

I map Material to E1EDL24.MATNR

When I do a test with two segments of E1EDL24 my mapping does not work correctly.

I only get delivery number and sales org in my first record. My first record contains all the correct information buit my second target record is missing deliverynumber and sales org. These two fields are in the E1EDL20 segment which is the head segment.

Any ideas how to map delivery number and sales org so that the values come into all records?

Thanks,

Jim

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi,

>>When I do a test with two segments of E1EDL24 my mapping does not work correctly

Thats because you were having only one E1EDL20 segment.

Are you going to have only one E1EDL20 segment and multiple E1EDL24 segment??? If yes then you can go for UseOneAsMany function in graphical mapping.

Regards

Suraj

Former Member
0 Kudos

Hi Jim,

Use Copy by Value Standard function for the first two header mapping element.

It should work.

Regards

Vijaya

Answers (1)

Answers (1)

claus_wallacher
Active Participant
0 Kudos

Hi Jim,

this weblog <a href="/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool">/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool</a> covers exactly the issue you have in all variations.

The weblog uses segments E1EDP01 (which is like E1EDL20 in your case) and E1EDP20 (which is like E1EDL24 in your case).

The function useOneAsMany does solve the problem, but only if you always have a E1EDL24 segment and this segment always contains every single field you use in your mapping.

Based on your description you most likely missed to change the context of your mapping of E1EDP24 segment -> access from E1EDP20 to IDOC.

Regards,

Claus