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
Pathcopy iterate question
Gina Borden
Here is my inbound ORC segment:
ORC|NW|1012^OrderID~1012^OccOrder_ID~1818^Order_ID|
I have a pathcopy on the ORC segment, but I need to iterate through the 2nd field, look for Order_ID, and put that number in the outbound ORC.2
This is what I have:
IF 2(0).0(0).ORC.00216(%f1).[1] eq =Order_ID
COPY 2(0).0(0).ORC.00216(%f1).[0] -> 1(0).0(0).ORC.00216(0).[0]
Expected Outcome:
ORC|NW|1818|
Actual Outcome:
ORC|NW|1818^OrderID~1012^OccOrder_ID~1818^Order_ID|
I'm sure I am missing something, but I can't figure out what it is. Any help would be greatly appreciated.
Find more posts tagged with
Clovertech
Comments
System
Originally posted by John Hamilton
After you do the first pathcopy. Your field has all the data in it.
you need to go back to that specfic field and pathcopy
@null
to your field
Pathcopy
@null
1(0).0(0).ORC.00216(0)
Then do your iterate and copy only the field you want.
Gina Borden
Perfect!
It worked like a charm.
Thanks for your help.