Skip to Content
author's profile photo Former Member
Former Member

Occurences in mapping

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 09, 2014 at 02:31 AM

    Hi,

    MesssageType

    Node1

    Field A

    Field B

    Node 2

    Field C

    Field D create like this, mapping is easy.

    reg,

    avinash M

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 09, 2014 at 03:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 09, 2014 at 06:43 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 09, 2014 at 07:04 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.