Subscribe to keep this site alive! Under new management but as always, still 100% FREE. Anyone with the IBM i is a friend of ours.
The Challenge: We are currently doing EDI testing with a trading partner for the EDI 850 document. This trading partner is not sending the CTT segment, which will cause an issue with our system (when there is no CTT 1.0 posting).
How can I get the value of CTT 1.0 without counting the PO1's?
The Analysis: You are right, creating a work field and counting the PO1 segments will do the trick. But this is tedious. The software has a keyword called <Detail Loop Count> which contains the running count of the document details. The document detail segment is decided or configured in the Format Properties-Control Totals tab.
The Solution: Pick a segment that is surely past the Details portion of the document (for this PO1 Loop) and map the keyword <Detail Loop Count> to the field where the CTT 1.0 used to be mapped.
Thinking of a new CHALLENGE? Let us know HERE.