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 have iterated the NK1 segment so we send more than one, that seems to be working ok, but i am trying to put in a table so i can change the relationship codes in the NK1-3, but i am only changing the first NK1 segment, I have tried a few different things with no luck, can someone point me in the right direction...
thanks
Find more posts tagged with
Clovertech
Comments
Max Drown
Kevin, could you please post a picture of your variant, too?
Max Drown
Most likey, you need to do it like this: ...NK1(%s1)...
Kevin Crist
here is my variant. its 2.3
Keith McLeod
The Variable %s1 goes at teh end of the basis. Your Table statement needs to look more like:
Table 0(0).NK1(%s1).#3 --> 0(0).NK1(%s1).#3
When you get a chance view messages in SMAT with you variant selected and take note of the counters such as where the %s1 is located. I had some other iterate examples out on clovertech that you may want to look at. It includes the basis when the iterate is within an iterate. You need to make sure your basis contains the variable of the surrounding basis should you have one. Good luck...
Kevin Crist
ok, i have tried what you said and a few other things but i am still having some issues. It is now iterating the last NK1 segment only. i have a sample below. The inbound variant is the same as the outbound. Iterations always test my patience.
Jim Kosloskey
Kevin,
Did you remember to change your PATHCOPY? It needs the same change as your TABLE Action.
Keith McLeod
Good Catch Jim. You may want to move the pathcopy above the iterate with the following:
pathcopy 0(0).NK1 --> 0(0).NK1
Notice I removed the segment repetiion above.
Or if you wish to keep in in the iterate at its current location.
pathcopy 0(0).NK1(%s1) --> 0(0).NK1(%s1)
This should do the trick...
Kevin Crist
Beautiful. That worked. Thanks to both of you for your time.