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

File to IDoc

HI all,

I have the FILE-IDoc scenario.

my source structure is :

HEADER

--field1

--field2

--field3

ITEM

--field4

--field5

DETAIL

--field6

--field7

Target structure is:

HEADER

--field1

--field2

--field3

ITEM

--field4

--field5

--DETAIL

-


field6

-


field7

Hera my problem is, I have many Detail fields. All these fields should come under each Item. That is,

ITEM

--field4

--field5

--DETAIL

-


field6

-


field7

--DETAIL

-


field6

-


field7

--DETAIL

-


field6

-


field7

ITEM

--field4

--field5

--DETAIL

-


field6

-


field7

--DETAIL

-


field6

-


field7

--DETAIL

-


field6

-


field7

what mapping i should give for this???

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 31, 2008 at 10:22 PM

    Shanthi,

    Your source and target looks same! Could you please make sure that you gave us the correct structure? Also could you please show us an example?

    raj.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI Shanthi

      You have created data type for source also? You can create source and target same ? will it not work for you. Above mapping using standard mapping is tough .. i think we need to look XSLT or Java mapping now.

      What exactly is the file you are trying to load i got a doubt in that.

      You said you want to send

      1 field1 field2 field3

      2 field4 field5

      3 field6 field7

      3 field6 field7

      2 field4 field5

      3 field6 field7

      3 field6 field7

      I think the source data type need to be revisited. As you want to pass item and detail ...if you create subnode in source itself i think you will be able to do it.

      Share the file you are trying to read may be this will help.

      Thanks

      Gaurav

  • author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2008 at 11:25 AM

    Hi

    The target node is the subnode of item whereas in Source is was just subnode. I gotta doubt. So how do we achieve this in mapping ? Is it by context changing ?

    Regards

    Midhun

    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.