cancel
Showing results for 
Search instead for 
Did you mean: 

Occurences in mapping

Former Member
0 Kudos

I have to map from Idoc to file. The Idoc is a Z Idoc and has two segments with values.  I am not clear as to how many times the segments come. The functional guys said it may come more than oonce. Inorder to make sure that it will work in any case, I gave the File structure unbounded. I am quite confused about target structure which I should design

MesssageType

    Node1

            Field A

            Field B

  Node 2

           Field C

           Field D

I can also create it like this

MesssageType

    Node1

            Field A

            Field B

           Node 2

                     Field C

                     Field D

Node1 pertains to one segent in Idoc that doesnot repeat. Node2 stands for the segmenst In Idoc that repeats.

So should I create Node2 as a child node of Node 1 or should I create both nodes at same level?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

MesssageType

    Node1

            Field A

            Field B

  Node 2

           Field C

           Field D create like this, mapping is easy.

reg,

avinash M

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Midhun,

You can create Node1 and Node2 at the same level.

No need to make node 2 as child of Node 1.

But please maintain their occurance properly,

for node 1 it should be 0..1 and for Node 2 keep it 0..unbounded.

Regards

Rajeshwari

Former Member
0 Kudos

Hi Midhun,

Creating two different segments with their corresponding occurrences (i.e; 1st segment 0 to 1and 2nd segment 0 to unbound) is better option...

Regards,

Anusha

former_member182455
Active Contributor
0 Kudos

Hi,

MesssageType

    Node1                     Occurance 0 t0 1

            Field A

            Field B

  Node 2                    Ocurance 0 to unbounded

           Field C

           Field D

please try like this.

Regards

srinivas