SAP IDOC to Flat File


I have a need to create a flat file schema for a few common SAP iDocs (ORDERS, INVOICE, etc…)

To create it from scratch is a cumbersome and error prone exercise. Is there any:

  1. Out of the box solution to convert an iDoc in IData format to a flat file.

  2. SAP Adapter provided services to achieve it.

Thanks in advance for your help.