The requirement is to have a line total (counter) in the header (NOT the trailer) of the DME file.
I understand that you can use 'reference to tree node' or 'aggregation' to count elements above the line total, but how can this be achieved when the total needs to be displayed above the line items?