Generating 997 Acknowledgements – JS

Index

    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.

    Example

    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”;
     
    validator.validate();
     
    //Generate 997 Acknowledgment File
    let ack997Generator = new edi.Ack997Generator();
    let ackDocument = ack997Generator.generate(validator);
     
    console.log(ackDocument.generateEDIData());
    in 997 Acknowledgement Generator – JS
    Did this article answer your question?