cancel
Showing results for 
Search instead for 
Did you mean: 

A deep nested xml in PI

harish_babu5
Participant
0 Kudos

Hi everyone

I have a proxy to AS2 scenario. AS2 receiver is using xml format.

In Proxy, I am taking all fields required for the mapping in one node.

In the target side, this is the structure I need to follow:

<OutboundDelivery>

          <Header>

          <Item>

                    Field A

                    Field B

                    Field C

                    Field D

                    <Node1>

                              Field 1

                              Field 2

                              <Node2>

                                        Field X                                                                                                             

Is this possible to maintain this deep nested structure with xml? Will it work in mapping runtime?

Regards

Harish Babu

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Harish,

Is this possible to maintain this deep nested structure with xml? Will it work in mapping runtime?


-->> Yes it is possible through message mapping.


regards.

Harish

harish_babu5
Participant
0 Kudos

Hi Harish

I was not clear enough.

The Filed 2 under Node 1 can come unbounded times. And the Field X under Node 2 can also come unbounded times

Is it possible now?

Harish

praveen_sutra
Active Contributor
0 Kudos

hi Harish,

Yes don't find any issues with this.

PFA the screenshot for the same. Hope this answers ur query.

thanks and regards,

Praveen T

harish_babu5
Participant
0 Kudos

Hi Praveen,

I doubt this works.

Right now my source structure is:

<row>

Field A

Filed B

Field C

Field D

Field 1

Field 2

Field X

The functional consultants cannot tell how many times Field 2 and Field X comes. So I have t put them as nodes at both sender and receiver sides

Harish
Active Contributor
0 Kudos

Hi Harish,

The relationship between the fields has to be define, otherwise you do not know how many segment will come under first node.

If you do not know the relationship between the segment then it is not possible.

regards,

Harish

azharshaikh
Active Contributor
0 Kudos

Hi Harish,

My few cents...

The functional consultants cannot tell how many times Field 2 and Field X comes. So I have t put them as

nodes at both sender and receiver sides

>>>> You can check with the ABAPer who will be working on this Proxy Interface from ur ABAP team. They should be able to help you with designing the Proxy Structure....


Regards,

Azhar

harish_babu5
Participant
0 Kudos

Harish,

If I create a structure like this at source side similar to the target side..

Header

Items

     Field A

     Field B

     Field C

     Field D

     Node1 (1...unbounded)

          Field 1

          Field  2  (1.1)

               Node 2  (1..unbounded)

                    Field X

Then map one to one between the nodes, will it not work..

praveen_sutra
Active Contributor
0 Kudos

hi Harish,

My opinion is if you can create a sample source file rather than source structure it will be easier to think of other option of creating Data type.

thanks and regards,

Praveen

Harish
Active Contributor
0 Kudos

If you map one to one from source to target, then your target segment Node 1 and Node 2 will be populated only once.

If you want to populate them more then once then you need to find the mapping rule for that.

Answers (0)