To make things round:
Here're some ressources about the same topic,
as well as about parsing and "flatening" the fm-result:
http://scn.sap.com/docs/DOC-43235
http://www.tricktresor.de/content/index.php?navID=696&aID=496
(the 2nd one is german, but the code described there might be self-descriptive)