cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding message mapping

Former Member
0 Kudos

Hi there,

I have a source message with one header and 5 details an XML File.My target is IDOC.

Source message:

<HEADER>

<BUKRS>4789>/BUKRS>

.

.

</HEADER>

<Detail>

<BSCHL>10</BSCHL>

:

:

</Detail>

<Detail>

<BSCHL>20</BSCHL>

:

:

</Detail>

Like this I have my source message.How should I create my source structure,I mean one Header and one detail Or One Header and several details?

Thank you,

Ann

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anns,

Yes you can create the 5 Details in but make sure that the occurrence should be 0....5.

If you specify Detail node as 0...5 you can generate the details node as five times.

Ex: Detail-1

...

Details-2

....

Ofcourse the values can vary for each Details.

Hope I am clear.

Thanks and Regards,

Chandu.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all,

Thank you all for you input.

Former Member
0 Kudos

Hi Ann

You should create the Data Type structure in this way:

the Header tag, in the parameters ocurrence = 1..1

the Detail tag, in the parameter ocurrence = 1..unbounded

It may you helpfull

Hector

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Create the Datatyope as

HEADER  Occurence 1..1
 Field1.. 
 Field 2..
DETAIL  Occurence 5..5 
  Field X.
   Field Y..

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Thank you for the quick response.

I have some more questions.

The Fields occurence in Detail should be 0....1?

Thank you,

Ann

Former Member
0 Kudos

it should be 0...1 if in our case right now.