Skip to Content
avatar image
Former Member

XML to FlatFile IDOC

Hi Experts,

We have a requirement that needs to map a custom XML structure to an IDOC via graphical message mapping. The pitch here is, if I'm not mistaken, the IDOC is a custom one and not SAP standard.

I would like to ask if there is a way to write the result of the mapping (target IDOC format) into the native IDOC flatfile structure.

Thanks in advance!

Best Regards,

Rommel Mendoza

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 02, 2010 at 09:37 PM

    Hi,

    >>>I would like to ask if there is a way to write the result of the mapping (target IDOC format) into the native IDOC flatfile structure

    sure it's possible but the easiest way would not not to use graphical mapping but to do in

    any of the languages mappings (ABAP, java) - there you can model the lines as IDOC segments and just populate them

    and use file adapter to create the IDOC flatfile from each of the segment lines

    if the custom IDOC is not very complicated it's max 1 day of work - maybe less

    Regards,

    Michal Krawczyk

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 03, 2010 at 11:10 AM

    just to clarify, for graphical mapping it doesn't matter if the idoc is a custom one or not. You just import the idoc-structure from the SAP-system into PI, and then can use it as source or target message type in graphical mapping.

    CSY

    Add comment
    10|10000 characters needed characters exceeded