Skip to Content
avatar image
Former Member

Real time idoc to file scenario - URGENT!

Hi all,

I have a real time idoc to file scenario with the idoc structure as below:








Now as can be seen, EDI_DC40 is the header record common for the eniter idoc. But the segment E1WPA01 will repeat for each item sent from R/3. E1WPA01 in turn has many segments within it whcih corresponds to that one item.

Now the problem i am facing is, I did the mapping for all required fields from E1WPA01 to my file structure and it works fine if i send one 1 instance of E1WPA01. But when i send multiple instance of E1WPA01 for each item, my result in teh file should be 1 line of record for each E1WPA01. But this doesnt happen. It takes allE1WPA01 as 1 and gives only one record in the file.

How can this be overcome? this is a very common requirments? did i miss anything in the configuration?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 26, 2007 at 01:48 PM


    You just need to put the parent context in your mapping.

    Here you can find the solution :



    Edited by: Christophe DUMONT on Dec 26, 2007 2:51 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 26, 2007 at 02:01 PM

    Hi Yash !

    Check your target data/message type to see if each element has the right occurance defined. You should have a parent element with occurance 0..unbounded for example, with simple elements within to allow the mapping to create one simple element for each occurance of the mapped data.



    ps: please award points if helpful.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Matias,

      I have resolved the problem now. I had to write 2 advnace UDFs for than and use node functions. The mapping came out to be a bit complex but its working perfectly fine.

      Thanks for your help.