I am currently working on a small project to generate EDIFACT messages and I want to know how the example composite below should be generated as a string if 0004 = ATEPA
and 0008 = ADDR01
?
Should conditional elements that are empty be excluded from the output string? If so, what would be the output string look like if 0007
was blank?.
Would it look like ATEPA::ADDR01
, or would it be ATEPA:ADDR01
? I am hoping it's not the latter as parsing it would be impossible as there would be no way to determine if ADDR01
belongs to 0007
or 0008
.
!======!===================================!===!========! ! S002 ! INTERCHANGE SENDER ! M ! ! ! 0004 ! Sender identification ! M ! an..35 ! ! 0007 ! Identification code qualifier ! C ! an..4 ! ! 0008 ! Address for reverse routing ! C ! an..14 ! !======!===================================!===!========!