I know this very old, but I’m stuck on something similar. I’ve got a field which can repeat and I’m trying to copy it into ITM-1 which is also a repeating field. The variants being used both have the repeating option checked.
I copied over the ZIT-48 content for 1 instance of the field (test message isn’t repeating in this case). However, I am unfortunately overwriting what is already being copied into ITM-1. I’d like to put this in the next instance of ITM-1 since it repeats.
My iteration is: Type:field Basis: 0(0).ZIT(0).#48 Variable: %f2
Then I use: COPY 0(0).ZIT(0).#48(%f2) –> 1(0).0(0).ITM(0).#1(%f2)
I’ve tried iterating through the ITM-1 field but since that is an output field I think that’s why it doesn’t work. Does anyone have a suggestion? I’ve seen material on the $%g function, but I’m still unclear on how exactly that works.