cancel
Showing results for 
Search instead for 
Did you mean: 

Question in Mapping- (N:1 Mapping)

Former Member
0 Kudos

Dear friends,

Hope everybody is doing great.

I am doing file to Idoc scenario.

I want to map N elements from source side to target one element under particular node.

When I duplicate the node on the target side and do mapping, it pops up below error while saving "The source or target structure has been changed or could not be found in the Integration Repository. The mapping definition contains elements or attributes that do not exist in the changed structure. The relevant entries will be deleted ".

True, because I duplicated the node, and did mapping, target structure is changed.

What should I do in this case?

Thanks in advance.

Thanks

Narayana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi narayan,

Once u have created the mapping for the node and then u need not to create it again by dupl;icating the subtree as it will automatically be generated if the occurances is set to 0..unbounded

Regards

Former Member
0 Kudos

Hi Amit,

I need to map elements A,B,C from source to target element single element D.

And D's parent node is 0 to unbounded. Just duplicated D's parent node 3 times and mapped A,B,C s to D. When I am testing i am getting error saying target structure is changed.

Any suggestions on this how to get rid of it?

Thanks

Narayana

Former Member
0 Kudos

You need to use an Advanced UDF here and populate the D node values.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Jai,

Thanks for the help. In my case using Advanced UDF is mandatory?

I am new to UDF's.

If yes, can you point me to a sample advance UDF?

Thanks

Narayana.

Former Member
0 Kudos

for UDF,have a look at the following

thanx

ahmad

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

first check the target structure message type is exactly same in mapping or not, or once again drag the target message into mapping and change accordingly..

1..N , if you want to do you can duplicate the target node , if the node occurr is 0..unbound or its imediate parent node should contain the occurrences as 0..more if parent is having this type then duplicate parent not the node..

in dupliucated strucutre disable the unnecessary nodes by right click and disable..

Regards

Chilla

Former Member
0 Kudos

Hi Chilla,

in my case, Target node is E1EDK14(0 to 10) which i am duplicating and its immediate parent node is IDOC which is ( 1..1) and its parent node is ORDERS05.

Here i duplicated only E1EDK14 and did mapping. while saving i got the error.

Do i need to duplicate IDOC also here?

Thanks

Narayana

Former Member
0 Kudos

Some more info on my mapping.

From Source side elements A,B,C should be mapped to a single element under node E1EDK14 -> ORGID.

Thanks

Narayana

Former Member
0 Kudos

Hi Narayana,

Try XSLT mapping. It is much simpler to design for cases like this.

Former Member
0 Kudos

Hi Sarath,

Thanks for the suggestion. Can you suggest me how to do in this case?

Thanks

Narayana

Former Member
0 Kudos

Hi Narayana,

You can also try it in graphicla mapping without any trouble. Follow the below steps.

In your target structure, make sure that you have mapped all the mandatory fields of the IDOC.

Lets say that your source is

Source

A

B

C

and target is ORDERS05 IDOC which will look like

ORDERS05

IDOC

E1EDK14

ORGID

Now map like below.

A --> E1EDK14

A --> ORGID

Now duplicate the E1EDK14

B --> E1EDK14

B --> ORGID

Duplicate it again

C --> E1EDK14

C --> ORGID

I think this solves your problem.