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
Adding an NTE segment during xlate
System
Originally posted by Scott Smith
I am wanting to add an NTE segment for repeating OBX segments. My problem is that the NTE segment does not exist on my source message. I am struggling to grasp my options for this task, any suggestions?
Thanks
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Gary Atkinson
Try making the NTE segment require on the outbound variant. Then copy in the data you need in those fields. I "believe" if the segment is required, then the xlate will add the segment even if it does not exist in the inbound. Or you could create a tcl proc and put it in the post outbound tps.
Barb Dozier
I have had to do this often for lab results. As long as the NTE is defined in your outbound message variant (required or optonal), I convert the OBX to NTE within my Xlate as i'm looping through the OBX with an interate. I know it is a comment by the OBX 4 value being greater than 1. So with in an if statement checking that condition, I then copy the OBX information into my new NTE segment. I believe I also then have to do a
@null
pathcopy into the OBX segment so it is not included in the outbound message.
If the OBX 4 value can not be used to indicate a comment, I've had to use OBX 3 in my if condition - when OBX 3 equals the previous OBX 3 then it is a comment and I move the information into an NTE.
Thanks,
Barb
RobertKersemakers
Hi Scott,
It doesn't matter that the inbound message has no NTE segments (after an OBX). As long as the NTE segment is defined in your outbound variant, then you can fill your NTE segment with information.
If the NTE segment isn't mandatory in your variant (it mostly isn't), then the NTE will only show up if an NTE-field is filled; else no NTE segment will show.
If the NTE segment is mandatory, then an empry NTE segment will show, even if no field is filled.