metafresh logo and link to homepage

Extract particular fields from a generated EDI file

Example

Here is an example for generated DESADV files:

#!/bin/bash
FILES=./desadv*

for f in $FILES
do 
 sed '2!d' $f | cut -c 210-221 >> ./list_desadv.txt
done

Notes

This snippet is very useful if you have a bunch of EDI files generated by metasfresh and you need to know the POReferences of all shipments (M_InOut records) that made it into EDI files.


Zur Quelldatei auf github.com