cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical Mapping - how to show multiple segments in target structure

0 Kudos

Hello,

I am new to XI and looking for some assistance to understand the following scenario and how to show them in test mode

.

Src

IORDUPD01

IDOC

BEGIN

EDI_DC40

E1ORUPD

E1ORUPD

Target structure

MT_IORUPDO1_OUT.

I am mapping elements of E1ORUPD to MT_ORUPD01_OUT. Basically, the data is user status information of the production order. One is newly created status and the other is deleted status.

In the test mode, I always see only one segment.

How could I see both segments in the test mode.

Thank you for your kind help

Regards

William

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Thank you all for replying to my message.

I would like to provide the in and out structure and the content of the data after processing.

My question is how could I see same segment with different data in the target structure?

Source Structure

E1ORUPD 1:1

Order No 0:1

Status 0:1

Output Structure

MT_IORUPD01_OUT 1:1

OrderNo 1:unbounded

Status 1:unbounded

The XML file has the following data

E1ORUPD01

Aufnr 80100001

Status AAAP

E1ORUPD001

Aufnr 80100001

Status DLTD

The output looks as under. It does not show the second output msg.

MT_IORUPD01_OUT

AUFNR 80100001

Status AAAP

Thanks

William

Former Member
0 Kudos

Hi,

This is because ur root E1ORUPD occurrence is 1 hence it will repeat only once. Change the occurrence to unbounded then u will get the

Change the structure as mentioned below.

Source

E1ORUPD 1:1 make it 0--unbounded

Order No 0:1 t

Status 0:1

Output Structure

MT_IORUPD01_OUT 1:1

Root---- 0-unbounded

OrderNo 0-1

Status 0-1

Map E1ORUPD to Root- node. so as many times Ur E1ORUPD repeats ur Root will also repeat.

chirag

Edited by: Chirag Gohil on Apr 14, 2008 11:01 PM

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi

just do what i told you in my first post,

modify the occurrence of segment en Data Type for 0...unbounded. active the changes and test your mapping again.

Thanks

Rodrigo

Answers (6)

Answers (6)

0 Kudos

Thank you Chirag, Patrick and Rodrigo.

All of you provided invaluable information and the problem is resolved. I gave points to your help.

Regards

William

0 Kudos

Thank you Patrick.

I like to have a solution as in 1.

Also, if you could explain how to do 2 would be nice. I know it can be done using removecontexts, but not sure how to do it.

Our friends have suggested to make the top node MT_IORUPDO1_OUT as 1:unbounded. However, I cannot modify to unbounded in datatype. I could do in lower level elements. At this time I am using JRE 1.6. Is this a problem?

Lastly, in the graphical editor a number buttons ( below design ) are disabled. A lot of people suggested to rollback to 1.4.2_17. Is 1.6 a problem to run PI 7.0

Thank you all who helped me.

Regards

William

0 Kudos

Hello Chirag,

Thank you for the reply.

I guess you are asking me to change the occurences of the node

to 0:unbounded for E1ORUPD01( Source) and MT_E1ORUPD01_OUT(Target Structure).

However, I cannot modify the occurences at the node level. Currently, I am using JVM 1.6. Is this a problem that I cannot modify?

Are you able to modify the Datatypes?

Thank you all for replying my message

William

Former Member
0 Kudos

Hi,

Change it from IR->Data type and once it is change activate it.

above requirement is what u r looking for which u have mentioned in thread.

After that test the message using test tab in message mapping.

chirag

Reward points

Edited by: Chirag Gohil on Apr 14, 2008 11:22 PM

Edited by: Chirag Gohil on Apr 14, 2008 11:23 PM

Former Member
0 Kudos

Hi,

how should your target look like?

1)

MT_IORUPD01_OUT

Aufnr 80100001

Status AAAP

MT_IORUPD01_OUT

Aufnr 80100001

Status DLTD

2)

MT_IORUPD01_OUT

Aufnr 80100001

Status AAAP

Aufnr 80100001

Status DLTD

To answer your question I guess it's not possible to change the occurence of a source element.

Regards

Patrick

0 Kudos

Thanks for the reply.

My question was in the source I have two segments and in the test mode I see the first segment only.

How can see both segments in the target structure in Test mode.

Regards

William

Former Member
0 Kudos

Hi,

Can u specify which segment u r able to see on source side.

Specify this:

have two segments and in the test mode I see the first segment only.

When u run the test button in test mode then only ur target segment will be generated.

have u referred my response which was send previously.

chirag

Former Member
0 Kudos

Hi,

do you checked the occurrence like Rodrigo mentioned.

Otherwise please clarify your scenario.

Regards

Patrick

Edited by: Patrick Koehnen on Apr 14, 2008 6:10 PM

Former Member
0 Kudos

Hi,

Right click on the E1ORUPD segment in test mode and say duplicate. U can add as many segment u wanted to add but the condition is that the occurrence of the E1ORUPD segment should be unbounded.

chirag

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

check whether the occurrence of receiver structure is 0...unbounded or 1...unbounded. sure the occurrence is 0..1 or 1...1. in this case, you have to modify the Data Type of receiver structure and change the ocurrence

Thanks

Rodrigo