Skip to Content
avatar image
Former Member

n source 1 target.

Hi Experts,

I have a scenario where i am receiving a file where it can have three different structures.

This file has to be mapped to an Idoc structure.

can it be done using single message mapping or do i need to create three MM.

How to go about it.

Source side structure can be of this type.

Root

- name

- age

- height

Root

-name

-weight

Root

-name

-age

-color

Thanks all.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 05, 2008 at 07:52 AM

    HI,

    One Mapping is enough, if source is file use FCC it will solve easily. Take occurence in source end, it will help to pick more then one records.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2008 at 07:43 AM

    Hi!

    It could be done in one message mapping. However you have to set value 'name' to be mandatory and the rest of fields optional (minOccurs ="0").

    Regards,

    Radek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2008 at 07:53 AM

    Hi,

    if all fields are coming from one structure then Give the occurence of Root node as 0..Unbound and map these fields to the IDOC field which has the Multiple Occurence.

    if u want to give multiple messages in the source side then u can select by going to Message tab in Mapping editor and map the corresponding fields

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2008 at 07:53 AM

    Hi

    You can do that in ur message mapping , Go to the Messages Tab (the 3rd one ) in ur MM editor,

    You add more than one Message Type in the Source and select ur target IDOC

    Regards

    Krishna

    Add comment
    10|10000 characters needed characters exceeded

    • Hello

      you can achieve this by creating a common source Data type for all the three structures.

      also the target side having all the fields. make unique fields optional and common fields from FIle No to Invoice No M.

      SO One mapping.

      If you have further req let me know. that is receiver detrmination etc.

      File No ( Destination ) M

      File No ( Transmission Date ) M

      Receiver's ID M

      Data ID M

      Record ID M

      Buyer Code M

      Invoice No M

      Currency code O

      Container No O

      NML's Container ID No. O

      Container size O

      Filler O

      Container Gross Weihgt (kgs) O

      Container Gross Cubic Meter (M3) O

      FOB Price Amount ( Container Total ) O

      Container Seal Number O

      Container Dock Location O

      Due Date O

      Vanning Plant O

      Invoice Total Weight ( kgs ) O

      Invoice Total Volume ( M3 ) O

      Invoice Total Price O

      CLP Loading Location O

      Parts No. O

      RAN O

      Vanning Plant O

      Parts Quantity O

      Parts Piece Price O

      Parts Total Net Weight (kgs) O

      Box No. O

      External Package Module O

      Order No. O

      Case Gross Weight O

      Parts Description O

      NML's Container ID No. O

      Internal Package Module O

      Number of the carton box O

      Linefeed Location O

  • avatar image
    Former Member
    Sep 05, 2008 at 08:28 AM

    Hi ,

    I am sorry I believe I was not very clear.

    Thing is i am getting a file with three structure.

    Structure 1 has 33 fields,

    Structure 2 has 29 fields,

    Structure 2 has 21 fields,

    Fields of structure 1,2 and 3 can be different and mapped to different segment in the idoc

    Now I have to map these structures to Idoc ( Only one structure will be coming at a time. ).

    Kindly help.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2009 at 09:59 AM

    solved

    Add comment
    10|10000 characters needed characters exceeded