Skip to Content
avatar image
Former Member

File content conversion for Idoc Structure

Hi Experts,

We have a scenario where we have to write Idoc Structure to a flat file with required format from where it will be picked up by third party.

the strcuture is like this:

- <IDOCNAME>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<TABNAM />

<MANDT />

<DOCNUM />

....other fields

- <E1EDK01 SEGMENT="1">

<BELNR>0000000779</BELNR>

</E1EDK01>

<E1EDK01 SEGMENT="1">

<BELNR>0000000780</BELNR>

</E1EDK01>

- <E1EDP01 SEGMENT="1">

<WERKS>2000071687</WERKS>

<MENGE>1800.0</MENGE>

<MENEE>PCE</MENEE>

<POSEX>00010</POSEX>

- <E1EDP02 SEGMENT="1">

<QUALF>001</QUALF>

<BELNR>5000000825</BELNR>

<ZEILE>00010</ZEILE>

</E1EDP02>

- <E1EDP02 SEGMENT="1">

<QUALF>066</QUALF>

<BELNR>0000000779</BELNR>

<ZEILE>000010</ZEILE>

</E1EDP02>

- <E1EDP02 SEGMENT="1">

<QUALF>083</QUALF>

<BELNR>2000071687</BELNR>

</E1EDP02>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 28, 2009 at 12:04 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Create a file port in SAP system and try to send an idoc to it. A file would get created. Check if that structure is similar to what you require in your case. If yes, then proceed as I replied in first case. Otherwise or in any case, you cannot use FCC as you cannot convert multiple heirarchy structures to flat file using FCC.

      Regards,

      Prateek

  • avatar image
    Former Member
    Mar 28, 2009 at 06:31 AM

    Dear Jyoti,

    FCC supports structures only upto 3 levels:

    /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts

    so i suggest you use the following blog to implement your scenario.

    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

    or else modify your target structure to support the FCC.( if your target sys guys agree that is)...

    just a word of caution.....this is a very tricky requirement that you are talking about....just implement a prototype ..get yourself clear with the requirements...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 30, 2009 at 05:17 AM

    Hi,

    This blog also can be useful for you,

    /people/krishnakumar.ramamoorthy3/blog/2007/01/27/generic-mapping-to-convert-nested-xml-to-flat--receiver-file-adatper

    Regards,

    Madhav

    Note: Points If Useful.

    Add comment
    10|10000 characters needed characters exceeded