Finding EDI Specifications

Index

    Finding EDI Specifications

    The EDISpecification class is used to obtain the specification for an EDI file whether X12 or EDIFACT.

    Example

    EDISpecification spec = EDISpecification.FindSpecificationFromFile(“SampleEDIFACT.txt”);
     
    // EDIFACT
    Console.WriteLine(spec.EDIFileType);
    Console.WriteLine(spec.EDIFACTReleaseVersion);
    Console.WriteLine(spec.EDIFACTMessageType);
    Console.WriteLine(spec.EDIFACTMessageVersion);
    Console.WriteLine(spec.EDIFACTControllingAgency);
     
    // X12
    Console.WriteLine(spec.X12TransactionSetCode);
    Console.WriteLine(spec.X12Version);
    Console.WriteLine(spec.X12VersionCode);
     
    Console.WriteLine(spec.InterchangeSenderIDQualifier);
    Console.WriteLine(spec.InterchangeSenderID);
    Console.WriteLine(spec.InterchangeReceiverIDQualifier);
    Console.WriteLine(spec.InterchangeReceiverID);

    EDI specification could also be retrieved from EDI data in memory using the FindSpecificationFromString() method.

    in EDI Specifications
    Did this article answer your question?

    Related Articles