High Level Design for FF to SAP using Trading Network

Hi Could someone give me some high level design ideas/options for doing the following using the TN capability.

  1. Partner sends a flat file
  2. Flat file validation / Sequence validation
  3. Mapping flat file to idoc
  4. Sends idoc to SAP

Thanks!