cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping trouble

former_member457420
Participant
0 Kudos

Hi all,

Iam stuck with a mapping problem and need Help!!! :).

Would be grateful if someone could give me a hand on this.

In The picture depicted below is the first problem:

http://i42.tinypic.com/2epn3lt.jpg

For Every occurance of "E1EDPT1",I want to create only one "E1EDKT1".

But with the mapping I have done in the dataeditor it creates a "E1EDKT1" segment for every occurance of "E1EDPT1".How can I prevent it and create only one.

The next problem is as follows.See picture link below:

http://i43.tinypic.com/9arfye.jpg

For Every occurance of "E1EDPT2",I want to create a "E1EDKT2" node under the "E1EDPT1" node created above.

How can I change the mapping shown in the dataeditor to do that.

The next thing is about the "TDLINE". With the following mapping,I want to put the "TDLINE" from source to target "TDLINE".

See figure below:

http://i44.tinypic.com/28i6m20.jpg

"POSEX" and "E1EDPT1" are child elements from the same parent "E1EDP01".

TDID Has context set to "E1EDP01".

POSEX Has context set to "E1EDP01".

TDLINE Has context set to "E1EDP01".

But the "TDLINE" field is not created in the target structure.

Thanks

P

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

From what I understood here is how to go about it

For Every occurance of "E1EDPT1",I want to create only one "E1EDKT1".
But with the mapping I have done in the dataeditor it creates a "E1EDKT1" segment for every occurance
 of "E1EDPT1".How can I prevent it and create only one.

E1EDPT1(Raise it to highest context)> CollapseContext--> E1EDKT1

For Every occurance of "E1EDPT2",I want to create a "E1EDKT2" node under the "E1EDPT1" node created above.
How can I change the mapping shown in the dataeditor to do that.

E1EDPT2-->E1EDKT2 this is a direct map

I'm not able to understand your 3rd problem:

I see you have TDID with map.w.default, make sure the context of TDID here is: E1EDPT1

Why is the context of TDLINE "E1EDP01".??? and not E1EDPT2 not sure i understand this req of urs.

This mapping looks simple though

Cheers!

Hanish John

former_member457420
Participant
0 Kudos

Hi Hanish,

Thanks for the reply.....

This is my first mapping assignement and I was pulling my hair looking into contexts and queues.

Regarding the 3rd question

In the Target "TDLINE", I want to map the concateneted text (Posex + TDLINE from source).

AS said, In the source structure "POSEX" and "E1EDPT1" are child elements of "E1EDP01".

I have to take into account or concatenete only those "posex" and "tdline" fields' from source where TDID is "Y005" as shown in the constant.

What should be TDID, posex context for the top condition in data editor.(Will it work if it is E1EDP01 for both?)

What should be TDID, TDLINE context for the bottom.(Will it work if it is E1EDPT1 for both?)

Another question is, I dont have to create "E1EDKT2" and "TDLINE" using "ifcreate" right?.Is Creat

ing the parent node "E1EDKT1" sufficient so that child elements needs only to be mapped and not created.

Regards

P

Answers (1)

Answers (1)

former_member457420
Participant
0 Kudos

Helo Friends,

Can some one help me on this...

Edited by: pazzuzu on May 1, 2010 10:35 AM