cancel
Showing results for 
Search instead for 
Did you mean: 

XML to FlatFile IDOC

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

MichalKrawczyk
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Michal,

Thank you very much for your answer. Will do try it out.

Best Regards,

Rommel