Flatfile creation

Hello All,
I am new to this flatfile creation.
i am getting 856 EDI document(multiple ST) as inbound.
i have to create flatfile (positional) from this.

I have done this steps until now.

  1. basic segments mapping(converted edi values into common text fields mapping)
    2.created flatfile template. how to, and where to use in developer this flatfile template?
  2. envelope process .

so i got now output record structure with all the fields i need for creating the flatfile.

Now what all the services i have to invoke in order to create flatfile
Can anybody please tell me steps i ahve to take.
i need to do it asap.

Any help is appreciated.

Thanks,
rao.

wm.b2b.edi:convertToString is the service to use to create the flat-file from your converted record. It accepts a template as a parameter. Use the services in wm.b2b.edi.templateMgr to create/load your template into memory for passing to convertToString.