Generating 999 Acknowledgements

Index

    Generating 999 Acknowledgements

    A 999 Acknowledgement file can be generated after calling the Validate() method on the EDIValidator component. Ack999Generator uses the Errors property as well as the loaded EDI document from the EDIValidator component to create acknowledgements.

    Example

    // Create an instance of EDIValidator
    EDIValidator validator = new EDIValidator();

    // Set the EDI rules file
    validator.EDIRulesFile = “C:\\EDIFile.Rules“;

    // Set the EDI file to validate
    validator.EDIFile = “C:\\EDIFile.txt“;
     
    // Set any other necessary properties on the validator

    // Validate
    validator.Validate();
     
    // Create the 999 generator
    Ack999Generator ack = new Ack999Generator();
     
    // This char will be used to pad data to meet minimum length.  For example group control numbers
    ack.PaddingChar = ‘0’;
     
    // Generate the 999 document
    EDIDocument doc999 = ack.Generate(validator);
     
    // Get the text
    string edi999Data =  doc999.GenerateEDIData();
    in ACK 999 Generator
    Did this article answer your question?