| Richard,
Thanks for your suggestion.
The Application File I am trying to map looks something like this:
- Header Record (generates BGM segment)
- Detail Record (generate NAD segments) ... can repeat theoretically 9999
times
If the Detail Records contain no records of a certain type then the whole
EDIFACT document should be discarded. The way I have implemented this so
far is to increment a counter when generating the NAD segment (There is a
condition on this map to only handle the relevant record type.) In the
summary section the counter is tested. If zero then a Soft Error ($ERROR)
is generated and the EDIFACT document is not created.
If I was to build a check into the Map for BGM then this would mean writing
a FOR loop from 1 to 9999 as I can see no way of getting the number of
Detail Records without using a counter and the BGM is generated before the
NAD.
...colin
I don't see how I could easily implement this though. The record type in
question can theoretically repeat 9999 times. I considered using FOR loops
but with an end value of 9999 this wouldn't be very efficient.
|