Giter VIP home page Giter VIP logo

Comments (1)

kputnam avatar kputnam commented on June 27, 2024

From the sample file you provided earlier, it looks like these segments aren't specified in the grammar so you'll have a difficult time accessing them (you can play with #find! but I wouldn't suggest it). Here's the output of bin/edi-pp (after changing it to use Config.contrib):

            LoopVal[0205](
              SegmentVal[AT7: Shipment Status Detail](
                ID.empty[E1650: Shipment Status Code],
                ID.empty[E1651: Shipment Status or Appointment Reason Code],
                ID.value[E1652: Shipment Appointment Status Code](AB: Delivery Appointment Date and/or Time),
                ID.value[E1651: Shipment Status or Appointment Reason Code](BG: Other),
                DT.value[ E373: Date](2013-06-19),
                TM.value[ E337: Time](23:59:0.0),
                ID.value[ E623: Time Code](LT: Local Time (Preferred Usage - Explain in detail)))),
            SegmentVal[L11: Business Instructions and Reference Number](
              AN.value[ E127: Reference Identification](DL-RETURNED TO SHIPPER),
              ID.value[ E128: Reference Identification Qualifier](RRS: Reconciliation Report Section Identification Code),
              AN.empty[ E352: Description]),
            SegmentVal[L11: Business Instructions and Reference Number](
              AN.value[ E127: Reference Identification](49-THE CUSTOMER WAS NOT AVAILA),
              ID.value[ E128: Reference Identification Qualifier](REC: Related Case),
              AN.value[ E352: Description]( ON 3RD ATTEMPT)),
            InvalidSegmentVal[MAN],
            InvalidSegmentVal[CD3],
            InvalidSegmentVal[CD3],
            InvalidSegmentVal[N1],
            InvalidSegmentVal[N3],
            InvalidSegmentVal[N4]),

How you seek to this N1 will ultimately depend on the changes you make to the grammar. If MAN is a sibling loop to 0200 and N1 is a child loop of MAN, you could jump directly from ST to MAN, and the from MAN to N1. You'll need some documentation from your trading partner to be able to construct the grammar, though.

from stupidedi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.