EDI.Net icon indicating copy to clipboard operation
EDI.Net copied to clipboard

Segment with fixed length

Open echerost opened this issue 3 years ago • 1 comments

Hello, thanks for this great and very useful library. I was able to successfully read the eancom d.96a standard with variable length data fields separated by specific characters (as defined in the UNA segment, for example ": +" etc.). But now I should read a file with fixed-length fields and no separator characters. In other words "every piece of data" starts at fixed specific position. Spaces are used to fill slot data. I did not understand if it is possible with this library and if so how I should configure the classes of the segments. Here is an example, where I replaced the spaces with points for a more comfortable reading (BGM segment) BGM12393624178........................ZZ................05107350847........................ZZ................ORDERS2263113574201......................20201230..........220 Link to pdf for this standard (in italian, see page 8 for BGM segment) https://gs1it.org/content/public/90/38/9038d190-dac5-46c6-9a90-906142bdb307/manuale_euritmo_ordine_gs1_italy.pdf

Tanks you in advance and good job

echerost avatar May 05 '21 19:05 echerost

Hi @echerost and thanks for your interest in EDI.Net,

unfortunately the usecase with fixed length fields and missing separators is not currently supported.

cleftheris avatar May 07 '21 08:05 cleftheris