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
Cloverleaf
multiple NTE segments in Variant
Ron Swain
Here is the variant being used.
MSH
PID
[{NTE}]
PV1
[GT1]
[{IN1}]
[ORC]
OBR
[{NTE}]
{DG1}
{OBX}
When I do a bulkcopy in the translation it copies the value from the second NTE segment from the original message to both the NTE segments in the resulting message. How can I get the correct values for both the NTE segments in the resulting message?
Thanks
Ron
Find more posts tagged with
Clovertech
Comments
Keith McLeod
Your current variant would have the NTE segments at the 0(0). path. NTE segments need to be grouped by highlighting the segment prior to it and selecting repeat or optional checkbox. Ultimately they should have different addresses.... Happy Motoring!!!
MSH
[
PID
[{NTE}]
]
PV1
[GT1]
[{IN1}]
[ORC]
[
OBR
[{NTE}]
]
{DG1}
{OBX}
Jim Kosloskey
I am assuming this is an Order or Result type message.
Your variant is mal formed.
At a minimum I think there should be an ORC Group where the second NTE definition properly lives. Maybe like this:
(
[ORC]
OBR
[{NTE}]
{DG1}
{OBX}
}
In most cases, I find the standard variant adequately describes most messages for most vendors (with the obvious exception of the Z segments and User fields). Even thought the vendors' documentation does not seem to indicate that.
I would be happy to discuss how to work through that. This is part of the discussion I have in my Xlate Class. Just email me if you want to walk through that.
The reason you are getting an issue is both NTE segments in the variant you have are defined at the same address level. BULKCOPY will only use the first instance.
If you insist on keeping the variant as is, then there is a trick but you will have to abandon BULKCOPY. Also the trick may not work with every release of Cloverleaf - so I recommend either altering the variant you have or returning to the base message structure (as a variant) after assuring the structure indeed describes the message you need.
Ron Swain
Keith,
Does it matter if you use the optional or repeat? I am concerned if I use the optional [ ] would it then allow for required fields to not be required?
Jim,
I am going to e-mail you to get more information about this translation class.
Thanks guys
Ron