I am running into an issue with looping over segments when mapping a documents list. I should say this is an intermittent issue, because I haven’t run into this problem before with similar conditions.
In particular, I am trying to map an 824 document to a canonical. I want to loop over the OTI segment an map the nested AMT from only the parent OTI qualified with a GA. The issue comes in, when the customer only sends a single OTI. WM doesn’t read this as a doc list, so my loop doesn’t work.
Without making duplicate mapping for a doc VS a doc list, is there some way I need to define my doc list so that it will be looked at as a list even if there is only 1 iteration. I am using the DT that WM provides in the schema.
Now, having made this statement, My REFs map perfectly in the 820 regardless if there is only 1.
#edi#Integration-Server-and-ESB#webMethods