Class EDI::E::Segment
In: lib/edi4r/edifact.rb
lib/edi4r/edifact-rexml.rb
Parent: EDI::Segment

Class EDI::E::Segment

This class implements UN/EDIFACT segments like BGM, NAD etc., including the service segments UNB, UNH …

Methods

d0001=   d0002=   d0020=   d0048=   d0062=   d0340=   new   new_CDE   new_DE   parse   to_din16557_4   to_s  

Public Class methods

A new segment must have a parent (usually, a message). This is the first parameter. The second is a string with the desired segment tag.

Don‘t create segments without their context - use Message#new_segment() instead.

Reserved for internal use

Public Instance methods

Don‘t change DE 0001! d0001=() raises an exception when called.

Don‘t change DE 0002! d0002=() raises an exception when called.

Setter for DE 0020 in UNB & UNZ (interchange control reference)

Setter for DE 0048 in UNE & UNG (group reference)

Setter for DE 0062 in UNH & UNT (message reference number)

Setter for DE 0340 in UIH & UIT (message reference number)

[Validate]