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

Generating x12 856

Open muazgultekin opened this issue 5 years ago • 5 comments

Hi ,

this product is really great. I would like to know if this product supports x12 856. I have to generate x12 856 file.

if you help me I would be gratefull.

Best Regards

muazgultekin avatar Jul 10 '19 14:07 muazgultekin

Hi,

thanks for your interest in Edi.Net. There is no transmission model ready to use but you can checkout the samples in the tests project in order to make one yourself. Checkout this exaple https://github.com/indice-co/EDI.Net/blob/master/test/indice.Edi.Tests/Models/X12_850.cs

cleftheris avatar Jul 10 '19 15:07 cleftheris

moved conversation from email

Muaz wrote: I am going to use indice.edi nuget packages in my project. I have a question. If you help me I would be gratefull to you.

when I check the samples for indice.edi I came accros edi850 sample. I have implemented it successfully.

I wonder that if I create the classes correctly for edi856 . can indice edi serilazer method construct the edi856 file ?

can indice edi serilazer method which is developed for edi X12 can serilaze an type of edi X12 ?

Thanks for your help.

Best regards

cleftheris avatar Jul 12 '19 08:07 cleftheris

Hi Muaz,

the serializer can construct and serialize the X12 fine. The only things you have to be careful in order to generate a valid transmission is the ISA header and various counters included in the submission. These are things I want to improve in the future. As it is implemented at the moment you have to watch out for the following

  1. Check to see If you need to override the default grammar for X12
  2. The serializer does not take into account the hard restrictions for the ISA component sizes. You must make sure you have the correct padding for empty fields (for example a null or empty ISA/2 Security_Information must be a string padded with 10 spaces “ ”).
  3. You must maintain the count components yourself. IEA/0 (GroupCount) GE/0 (TransactionsCount), SE/0 (SegmentsCouts) and so on.

You can also post a question on stackoverflow with the tag edi.net. This will benefit future developers having the same questions

A final note: all samples in the tests project are usually partial implementations of their transmission definitions. This means that usually they are models that where developed to showcase an issue and resolve it as part of a test. Some transmissions may be more complete than others. They are excellent way to get you started

Hope this helps,

Constantinos

cleftheris avatar Jul 12 '19 08:07 cleftheris

Hi Constantinos ,

In the sample file I came accros these file types shown in picture below.

i want to learn is indice.edi support the files shown in picture below in parsing and generating?

Capture

Best regards

muazgultekin avatar Jul 18 '19 08:07 muazgultekin

Hi muazg,

the library should be able to read and serialize just fine since x12 is supported. That said if I have not tried myself to generate the said transmissions, so the only way to find out is to make the POCO models yourself. In case you find a bug please open a new issue.

cleftheris avatar Jul 18 '19 09:07 cleftheris