Splitting edi files
One edi-file can contain several edi-messages. Eg:
- one edifact file, multiple ORDERs.
- one x12 file, multiple 850's.
- export routine of your ERP software puts all exported invoices in one file
- email with multiple edi-attachments
A bots mapping works best for one message (one order, one invoice).
So Bots splits up edi-files:
- Incoming email: different attachments are saved as a separate edi-files.
- Receiving zipped edi files: the files in the zip-file as saved as separate edi-files.
- For edifact, x12, tradacoms: interchanges are being split up to separate files.
- Incoming edi-files are being fed to the mapping-script as messages. This is done by 'nextmessage' in the grammar syntax, see Nextmessage.
- Spit within a mapping script. Think of eg splitting up a shipment to the
different orders. There are 2 ways of doing this:
- Write multiple message to the same file.
- Write each generated message to the same file, using alt translations.