I am trying to convert a flat file into a record structure, using the procedure as described in the EDI Core Component Guide
- Create XML template
- stringToDocument (XML structure -> Document)
- documenttoRecord (Document -> idata object)
- convertToValues (format the idata object in proper flat file format)
The flat file has 4 different segment types, but no segment id’s.
The result is that the file segments are unrecognized + classified as “unDefData”.
Is it possible to convert the file into an idata object, or do i have to somehow add segment id’s to the relevant lines?
Any help would be much appreciated.