infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Iteration Help
Kevin Crist
I am having a difficult time getting the FT1 segment to repeat. Done this many times before with no trouble so i'm not real sure what i have screwed up. My xlate code, basis and variant are in attached doc. Also i am using same variant IB and OB.
Thanks for any help.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Kevin,
I don't think your basis is correct (did you use the 'Copy to Basis' button on the Inbound tree to set it?
Thus if your basis is not correct, then your placement of the repetition variable is not correct in the PATHCOPY Address pathing.
Keith McLeod
Are you iterating on a group or segment or both? Looks like a group with a repeating segment.
Kevin Crist
Im not real sure why but i took the 1(%g1).0(0).FT1(0) and took off the ending (0) and it works now.
Keith McLeod
Also sometimes I find I need to remove the (0) after the segment name of FT1 if you just want to copy all segments.
Pathcopy 1(%g1).0(0).FT1 --> 1(%g1).0(0).FT1
If the segment repetition falls at the parentheses after FT1, then technically you would only copy the first repetition with
1(%g1).0(0).FT1(0) as your path.
Kevin Crist
Thanks for the help and suggestions. Very much appreciated.
Keith McLeod
I guess that answers it...
Kevin Crist
i have to add some more changes this to xlate and i am having trouble again with the Iterate. I originally had trouble getting the FT1 to iterate but i took off the end and it worked. Now i am having trouble adding code to all the iterations of the segments. Any ideas.
Thanks.
Keith McLeod
You will need another iteration but this time use the ft1 segment.
Kevin Crist
It is a repeating FT1 segment. it's a DFT^P03 message for version 2.3.1.
Keith McLeod
With the 2.3.1 variant and no modifications, I show the DFT_P03 message to have the FT1 segment as part of a repeating group.
The iterate for the ft1 statement would be
Group
Basis 1
variable %g1
Iterate