Generating 997 Acknowledgements – JS


    Generating 997 Acknowledgements

    A 997 Acknowledgement can be generated after calling the validate() method on the EDIValidator component. Ack997Generator uses the Errors property as well as the loaded EDI document from the EDIValidator component to create acknowledgements.


    const edi = require(‘rdpcrystal-edi-library’);
    let validator = new edi.EDIValidator();
    validator.EDIRulesFileData = “Set your rules here”;
    validator.LoadValidatedData = true;
    validator.EDIDataString = “Set your EDI data here”;
    //Generate 997 Acknowledgment File
    let ack997Generator = new edi.Ack997Generator();
    let ackDocument = ack997Generator.generate(validator);
    in 997 Acknowledgement Generator – JS
    Did this article answer your question?